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 CGEN_MAINT cgendir cgen traps_obj sim_extra_cflags cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-endian=endian Specify target byte endian orientation.
862 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify host byte endian orientation.
864 --enable-sim-scache=size Specify simulator execution cache size.
865 --enable-sim-default-model=model Specify default model to simulate.
866 --enable-sim-environment=environment Specify mixed, user, virtual or operating environment.
867 --enable-sim-inline=inlines Specify which functions should be inlined.
868 --enable-cgen-maint=DIR build cgen generated files
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-included-gettext use the GNU gettext library included here
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 ac_dir_suffix= ac_top_builddir=
906 .) # No --srcdir option. We are building in place.
908 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
924 .) ac_abs_builddir="$ac_dir";;
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_must_keep_next=false
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 -* ) ac_must_keep_next=true ;;
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1112 # The following way of writing the cache mishandles newlines in values,
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -n "$ac_subst_files"; then
1149 for ac_var in $ac_subst_files
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1157 if test -s confdefs.h; then
1164 sed "/^$/d" confdefs.h | sort
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1247 # Check that the precious variables saved in the cache have kept the same
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 # Make sure we can run config.sub.
1324 $ac_config_sub sun4 >/dev/null 2>&1 ||
1325 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1326 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1327 { (exit 1); exit 1; }; }
1329 echo "$as_me:$LINENO: checking build system type" >&5
1330 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1331 if test "${ac_cv_build+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1334 ac_cv_build_alias=$build_alias
1335 test -z "$ac_cv_build_alias" &&
1336 ac_cv_build_alias=`$ac_config_guess`
1337 test -z "$ac_cv_build_alias" &&
1338 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1339 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1340 { (exit 1); exit 1; }; }
1341 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1343 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1344 { (exit 1); exit 1; }; }
1347 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1348 echo "${ECHO_T}$ac_cv_build" >&6
1350 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1355 echo "$as_me:$LINENO: checking host system type" >&5
1356 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1357 if test "${ac_cv_host+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 ac_cv_host_alias=$host_alias
1361 test -z "$ac_cv_host_alias" &&
1362 ac_cv_host_alias=$ac_cv_build_alias
1363 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1364 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1365 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1366 { (exit 1); exit 1; }; }
1369 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1370 echo "${ECHO_T}$ac_cv_host" >&6
1372 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1378 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1379 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1380 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 cat >conftest.make <<\_ACEOF
1385 @echo 'ac_maketemp="$(MAKE)"'
1387 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1388 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1389 if test -n "$ac_maketemp"; then
1390 eval ac_cv_prog_make_${ac_make}_set=yes
1392 eval ac_cv_prog_make_${ac_make}_set=no
1396 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1397 echo "$as_me:$LINENO: result: yes" >&5
1398 echo "${ECHO_T}yes" >&6
1401 echo "$as_me:$LINENO: result: no" >&5
1402 echo "${ECHO_T}no" >&6
1403 SET_MAKE="MAKE=${MAKE-make}"
1407 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1408 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1409 if test "${ac_cv_search_strerror+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_func_search_save_LIBS=$LIBS
1413 ac_cv_search_strerror=no
1414 cat >conftest.$ac_ext <<_ACEOF
1417 cat confdefs.h >>conftest.$ac_ext
1418 cat >>conftest.$ac_ext <<_ACEOF
1419 /* end confdefs.h. */
1421 /* Override any gcc2 internal prototype to avoid an error. */
1425 /* We use char because int might match the return type of a gcc2
1426 builtin and then its argument prototype would still apply. */
1436 rm -f conftest.$ac_objext conftest$ac_exeext
1437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1438 (eval $ac_link) 2>conftest.er1
1440 grep -v '^ *+' conftest.er1 >conftest.err
1442 cat conftest.err >&5
1443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1444 (exit $ac_status); } &&
1445 { ac_try='test -z "$ac_c_werror_flag"
1446 || test ! -s conftest.err'
1447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1451 (exit $ac_status); }; } &&
1452 { ac_try='test -s conftest$ac_exeext'
1453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1457 (exit $ac_status); }; }; then
1458 ac_cv_search_strerror="none required"
1460 echo "$as_me: failed program was:" >&5
1461 sed 's/^/| /' conftest.$ac_ext >&5
1464 rm -f conftest.err conftest.$ac_objext \
1465 conftest$ac_exeext conftest.$ac_ext
1466 if test "$ac_cv_search_strerror" = no; then
1467 for ac_lib in cposix; do
1468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1469 cat >conftest.$ac_ext <<_ACEOF
1472 cat confdefs.h >>conftest.$ac_ext
1473 cat >>conftest.$ac_ext <<_ACEOF
1474 /* end confdefs.h. */
1476 /* Override any gcc2 internal prototype to avoid an error. */
1480 /* We use char because int might match the return type of a gcc2
1481 builtin and then its argument prototype would still apply. */
1491 rm -f conftest.$ac_objext conftest$ac_exeext
1492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1493 (eval $ac_link) 2>conftest.er1
1495 grep -v '^ *+' conftest.er1 >conftest.err
1497 cat conftest.err >&5
1498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1499 (exit $ac_status); } &&
1500 { ac_try='test -z "$ac_c_werror_flag"
1501 || test ! -s conftest.err'
1502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1506 (exit $ac_status); }; } &&
1507 { ac_try='test -s conftest$ac_exeext'
1508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1512 (exit $ac_status); }; }; then
1513 ac_cv_search_strerror="-l$ac_lib"
1516 echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1520 rm -f conftest.err conftest.$ac_objext \
1521 conftest$ac_exeext conftest.$ac_ext
1524 LIBS=$ac_func_search_save_LIBS
1526 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1527 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1528 if test "$ac_cv_search_strerror" != no; then
1529 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1534 ac_cpp='$CPP $CPPFLAGS'
1535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1539 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1540 # On Suns, sometimes $CPP names a directory.
1541 if test -n "$CPP" && test -d "$CPP"; then
1544 if test -z "$CPP"; then
1545 if test "${ac_cv_prog_CPP+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 # Double quotes because CPP needs to be expanded
1549 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1552 for ac_c_preproc_warn_flag in '' yes
1554 # Use a header file that comes with gcc, so configuring glibc
1555 # with a fresh cross-compiler works.
1556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1557 # <limits.h> exists even on freestanding compilers.
1558 # On the NeXT, cc -E runs the code through the compiler's parser,
1559 # not just through cpp. "Syntax error" is here to catch this case.
1560 cat >conftest.$ac_ext <<_ACEOF
1563 cat confdefs.h >>conftest.$ac_ext
1564 cat >>conftest.$ac_ext <<_ACEOF
1565 /* end confdefs.h. */
1567 # include <limits.h>
1569 # include <assert.h>
1573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1576 grep -v '^ *+' conftest.er1 >conftest.err
1578 cat conftest.err >&5
1579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1580 (exit $ac_status); } >/dev/null; then
1581 if test -s conftest.err; then
1582 ac_cpp_err=$ac_c_preproc_warn_flag
1583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1590 if test -z "$ac_cpp_err"; then
1593 echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1596 # Broken: fails on valid input.
1599 rm -f conftest.err conftest.$ac_ext
1601 # OK, works on sane cases. Now check whether non-existent headers
1602 # can be detected and how.
1603 cat >conftest.$ac_ext <<_ACEOF
1606 cat confdefs.h >>conftest.$ac_ext
1607 cat >>conftest.$ac_ext <<_ACEOF
1608 /* end confdefs.h. */
1609 #include <ac_nonexistent.h>
1611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1614 grep -v '^ *+' conftest.er1 >conftest.err
1616 cat conftest.err >&5
1617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1618 (exit $ac_status); } >/dev/null; then
1619 if test -s conftest.err; then
1620 ac_cpp_err=$ac_c_preproc_warn_flag
1621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1628 if test -z "$ac_cpp_err"; then
1629 # Broken: success on invalid input.
1632 echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1635 # Passes both tests.
1639 rm -f conftest.err conftest.$ac_ext
1642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1643 rm -f conftest.err conftest.$ac_ext
1644 if $ac_preproc_ok; then
1656 echo "$as_me:$LINENO: result: $CPP" >&5
1657 echo "${ECHO_T}$CPP" >&6
1659 for ac_c_preproc_warn_flag in '' yes
1661 # Use a header file that comes with gcc, so configuring glibc
1662 # with a fresh cross-compiler works.
1663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1664 # <limits.h> exists even on freestanding compilers.
1665 # On the NeXT, cc -E runs the code through the compiler's parser,
1666 # not just through cpp. "Syntax error" is here to catch this case.
1667 cat >conftest.$ac_ext <<_ACEOF
1670 cat confdefs.h >>conftest.$ac_ext
1671 cat >>conftest.$ac_ext <<_ACEOF
1672 /* end confdefs.h. */
1674 # include <limits.h>
1676 # include <assert.h>
1680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1683 grep -v '^ *+' conftest.er1 >conftest.err
1685 cat conftest.err >&5
1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687 (exit $ac_status); } >/dev/null; then
1688 if test -s conftest.err; then
1689 ac_cpp_err=$ac_c_preproc_warn_flag
1690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1697 if test -z "$ac_cpp_err"; then
1700 echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1703 # Broken: fails on valid input.
1706 rm -f conftest.err conftest.$ac_ext
1708 # OK, works on sane cases. Now check whether non-existent headers
1709 # can be detected and how.
1710 cat >conftest.$ac_ext <<_ACEOF
1713 cat confdefs.h >>conftest.$ac_ext
1714 cat >>conftest.$ac_ext <<_ACEOF
1715 /* end confdefs.h. */
1716 #include <ac_nonexistent.h>
1718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1721 grep -v '^ *+' conftest.er1 >conftest.err
1723 cat conftest.err >&5
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); } >/dev/null; then
1726 if test -s conftest.err; then
1727 ac_cpp_err=$ac_c_preproc_warn_flag
1728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1735 if test -z "$ac_cpp_err"; then
1736 # Broken: success on invalid input.
1739 echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 # Passes both tests.
1746 rm -f conftest.err conftest.$ac_ext
1749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1750 rm -f conftest.err conftest.$ac_ext
1751 if $ac_preproc_ok; then
1754 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1755 See \`config.log' for more details." >&5
1756 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1757 See \`config.log' for more details." >&2;}
1758 { (exit 1); exit 1; }; }
1762 ac_cpp='$CPP $CPPFLAGS'
1763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 echo "$as_me:$LINENO: checking for egrep" >&5
1769 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1770 if test "${ac_cv_prog_egrep+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1774 then ac_cv_prog_egrep='grep -E'
1775 else ac_cv_prog_egrep='egrep'
1778 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1779 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1780 EGREP=$ac_cv_prog_egrep
1783 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1784 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1785 if test "${ac_cv_header_stdc+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 cat >conftest.$ac_ext <<_ACEOF
1791 cat confdefs.h >>conftest.$ac_ext
1792 cat >>conftest.$ac_ext <<_ACEOF
1793 /* end confdefs.h. */
1807 rm -f conftest.$ac_objext
1808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1809 (eval $ac_compile) 2>conftest.er1
1811 grep -v '^ *+' conftest.er1 >conftest.err
1813 cat conftest.err >&5
1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815 (exit $ac_status); } &&
1816 { ac_try='test -z "$ac_c_werror_flag"
1817 || test ! -s conftest.err'
1818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; } &&
1823 { ac_try='test -s conftest.$ac_objext'
1824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1829 ac_cv_header_stdc=yes
1831 echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 ac_cv_header_stdc=no
1836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1838 if test $ac_cv_header_stdc = yes; then
1839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1840 cat >conftest.$ac_ext <<_ACEOF
1843 cat confdefs.h >>conftest.$ac_ext
1844 cat >>conftest.$ac_ext <<_ACEOF
1845 /* end confdefs.h. */
1849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1850 $EGREP "memchr" >/dev/null 2>&1; then
1853 ac_cv_header_stdc=no
1859 if test $ac_cv_header_stdc = yes; then
1860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1861 cat >conftest.$ac_ext <<_ACEOF
1864 cat confdefs.h >>conftest.$ac_ext
1865 cat >>conftest.$ac_ext <<_ACEOF
1866 /* end confdefs.h. */
1870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1871 $EGREP "free" >/dev/null 2>&1; then
1874 ac_cv_header_stdc=no
1880 if test $ac_cv_header_stdc = yes; then
1881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1882 if test "$cross_compiling" = yes; then
1885 cat >conftest.$ac_ext <<_ACEOF
1888 cat confdefs.h >>conftest.$ac_ext
1889 cat >>conftest.$ac_ext <<_ACEOF
1890 /* end confdefs.h. */
1892 #if ((' ' & 0x0FF) == 0x020)
1893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1896 # define ISLOWER(c) \
1897 (('a' <= (c) && (c) <= 'i') \
1898 || ('j' <= (c) && (c) <= 'r') \
1899 || ('s' <= (c) && (c) <= 'z'))
1900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1908 for (i = 0; i < 256; i++)
1909 if (XOR (islower (i), ISLOWER (i))
1910 || toupper (i) != TOUPPER (i))
1915 rm -f conftest$ac_exeext
1916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1917 (eval $ac_link) 2>&5
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; }; then
1928 echo "$as_me: program exited with status $ac_status" >&5
1929 echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1933 ac_cv_header_stdc=no
1935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1939 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1940 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1941 if test $ac_cv_header_stdc = yes; then
1943 cat >>confdefs.h <<\_ACEOF
1944 #define STDC_HEADERS 1
1949 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1950 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1951 if test "${ac_cv_c_const+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 cat >conftest.$ac_ext <<_ACEOF
1957 cat confdefs.h >>conftest.$ac_ext
1958 cat >>conftest.$ac_ext <<_ACEOF
1959 /* end confdefs.h. */
1964 /* FIXME: Include the comments suggested by Paul. */
1966 /* Ultrix mips cc rejects this. */
1967 typedef int charset[2];
1969 /* SunOS 4.1.1 cc rejects this. */
1970 char const *const *ccp;
1972 /* NEC SVR4.0.2 mips cc rejects this. */
1973 struct point {int x, y;};
1974 static struct point const zero = {0,0};
1975 /* AIX XL C 1.02.0.0 rejects this.
1976 It does not let you subtract one const X* pointer from another in
1977 an arm of an if-expression whose if-part is not a constant
1979 const char *g = "string";
1980 ccp = &g + (g ? g-g : 0);
1981 /* HPUX 7.0 cc rejects these. */
1984 ccp = (char const *const *) p;
1985 { /* SCO 3.2v4 cc rejects this. */
1987 char const *s = 0 ? (char *) 0 : (char const *) 0;
1991 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1993 const int *foo = &x[0];
1996 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1997 typedef const int *iptr;
2001 { /* AIX XL C 1.02.0.0 rejects this saying
2002 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2003 struct s { int j; const int *ap[3]; };
2004 struct s *b; b->j = 5;
2006 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2015 rm -f conftest.$ac_objext
2016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2017 (eval $ac_compile) 2>conftest.er1
2019 grep -v '^ *+' conftest.er1 >conftest.err
2021 cat conftest.err >&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); } &&
2024 { ac_try='test -z "$ac_c_werror_flag"
2025 || test ! -s conftest.err'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; } &&
2031 { ac_try='test -s conftest.$ac_objext'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2046 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2047 echo "${ECHO_T}$ac_cv_c_const" >&6
2048 if test $ac_cv_c_const = no; then
2050 cat >>confdefs.h <<\_ACEOF
2056 echo "$as_me:$LINENO: checking for inline" >&5
2057 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2058 if test "${ac_cv_c_inline+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 for ac_kw in inline __inline__ __inline; do
2063 cat >conftest.$ac_ext <<_ACEOF
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h. */
2071 static $ac_kw foo_t static_foo () {return 0; }
2072 $ac_kw foo_t foo () {return 0; }
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
2080 grep -v '^ *+' conftest.er1 >conftest.err
2082 cat conftest.err >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 ac_cv_c_inline=$ac_kw; break
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2109 echo "${ECHO_T}$ac_cv_c_inline" >&6
2112 case $ac_cv_c_inline in
2115 case $ac_cv_c_inline in
2117 *) ac_val=$ac_cv_c_inline;;
2119 cat >>confdefs.h <<_ACEOF
2121 #define inline $ac_val
2127 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2137 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2138 inttypes.h stdint.h unistd.h
2140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2141 echo "$as_me:$LINENO: checking for $ac_header" >&5
2142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 cat >conftest.$ac_ext <<_ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2152 $ac_includes_default
2154 #include <$ac_header>
2156 rm -f conftest.$ac_objext
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2160 grep -v '^ *+' conftest.er1 >conftest.err
2162 cat conftest.err >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -z "$ac_c_werror_flag"
2166 || test ! -s conftest.err'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 eval "$as_ac_Header=yes"
2180 echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2183 eval "$as_ac_Header=no"
2185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2190 cat >>confdefs.h <<_ACEOF
2191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2199 echo "$as_me:$LINENO: checking for off_t" >&5
2200 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2201 if test "${ac_cv_type_off_t+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 cat >conftest.$ac_ext <<_ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2210 $ac_includes_default
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2226 grep -v '^ *+' conftest.er1 >conftest.err
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 ac_cv_type_off_t=yes
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2253 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2254 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2255 if test $ac_cv_type_off_t = yes; then
2259 cat >>confdefs.h <<_ACEOF
2265 echo "$as_me:$LINENO: checking for size_t" >&5
2266 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2267 if test "${ac_cv_type_size_t+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 cat >conftest.$ac_ext <<_ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2276 $ac_includes_default
2282 if (sizeof (size_t))
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>conftest.er1
2292 grep -v '^ *+' conftest.er1 >conftest.err
2294 cat conftest.err >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -z "$ac_c_werror_flag"
2298 || test ! -s conftest.err'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2310 ac_cv_type_size_t=yes
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2315 ac_cv_type_size_t=no
2317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2319 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2320 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2321 if test $ac_cv_type_size_t = yes; then
2325 cat >>confdefs.h <<_ACEOF
2326 #define size_t unsigned
2331 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2332 # for constant arguments. Useless!
2333 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2334 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2335 if test "${ac_cv_working_alloca_h+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 cat >conftest.$ac_ext <<_ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2348 char *p = (char *) alloca (2 * sizeof (int));
2353 rm -f conftest.$ac_objext conftest$ac_exeext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2355 (eval $ac_link) 2>conftest.er1
2357 grep -v '^ *+' conftest.er1 >conftest.err
2359 cat conftest.err >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest$ac_exeext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_cv_working_alloca_h=yes
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2380 ac_cv_working_alloca_h=no
2382 rm -f conftest.err conftest.$ac_objext \
2383 conftest$ac_exeext conftest.$ac_ext
2385 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2386 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2387 if test $ac_cv_working_alloca_h = yes; then
2389 cat >>confdefs.h <<\_ACEOF
2390 #define HAVE_ALLOCA_H 1
2395 echo "$as_me:$LINENO: checking for alloca" >&5
2396 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2397 if test "${ac_cv_func_alloca_works+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 cat >conftest.$ac_ext <<_ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2407 # define alloca __builtin_alloca
2410 # include <malloc.h>
2411 # define alloca _alloca
2414 # include <alloca.h>
2419 # ifndef alloca /* predefined by HP cc +Olibcalls */
2430 char *p = (char *) alloca (1);
2435 rm -f conftest.$ac_objext conftest$ac_exeext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2437 (eval $ac_link) 2>conftest.er1
2439 grep -v '^ *+' conftest.er1 >conftest.err
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -z "$ac_c_werror_flag"
2445 || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest$ac_exeext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 ac_cv_func_alloca_works=yes
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2462 ac_cv_func_alloca_works=no
2464 rm -f conftest.err conftest.$ac_objext \
2465 conftest$ac_exeext conftest.$ac_ext
2467 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2468 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2470 if test $ac_cv_func_alloca_works = yes; then
2472 cat >>confdefs.h <<\_ACEOF
2473 #define HAVE_ALLOCA 1
2477 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2478 # that cause trouble. Some versions do not even contain alloca or
2479 # contain a buggy version. If you still want to use their alloca,
2480 # use ar to extract alloca.o from them instead of compiling alloca.c.
2482 ALLOCA=alloca.$ac_objext
2484 cat >>confdefs.h <<\_ACEOF
2489 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2490 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2491 if test "${ac_cv_os_cray+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.$ac_ext <<_ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2500 #if defined(CRAY) && ! defined(CRAY2)
2507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2508 $EGREP "webecray" >/dev/null 2>&1; then
2516 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2517 echo "${ECHO_T}$ac_cv_os_cray" >&6
2518 if test $ac_cv_os_cray = yes; then
2519 for ac_func in _getb67 GETB67 getb67; do
2520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2521 echo "$as_me:$LINENO: checking for $ac_func" >&5
2522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2523 if eval "test \"\${$as_ac_var+set}\" = set"; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 cat >conftest.$ac_ext <<_ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2534 #define $ac_func innocuous_$ac_func
2536 /* System header to define __stub macros and hopefully few prototypes,
2537 which can conflict with char $ac_func (); below.
2538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2539 <limits.h> exists even on freestanding compilers. */
2542 # include <limits.h>
2544 # include <assert.h>
2549 /* Override any gcc2 internal prototype to avoid an error. */
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2557 /* The GNU C library defines this for functions which it implements
2558 to always fail with ENOSYS. Some functions are actually named
2559 something starting with __ and the normal name is an alias. */
2560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2563 char (*f) () = $ac_func;
2572 return f != $ac_func;
2577 rm -f conftest.$ac_objext conftest$ac_exeext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2579 (eval $ac_link) 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag"
2587 || test ! -s conftest.err'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest$ac_exeext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 eval "$as_ac_var=yes"
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 eval "$as_ac_var=no"
2606 rm -f conftest.err conftest.$ac_objext \
2607 conftest$ac_exeext conftest.$ac_ext
2609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2611 if test `eval echo '${'$as_ac_var'}'` = yes; then
2613 cat >>confdefs.h <<_ACEOF
2614 #define CRAY_STACKSEG_END $ac_func
2623 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2624 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2625 if test "${ac_cv_c_stack_direction+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test "$cross_compiling" = yes; then
2629 ac_cv_c_stack_direction=0
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2638 find_stack_direction ()
2640 static char *addr = 0;
2645 return find_stack_direction ();
2648 return (&dummy > addr) ? 1 : -1;
2654 exit (find_stack_direction () < 0);
2657 rm -f conftest$ac_exeext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2659 (eval $ac_link) 2>&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 ac_cv_c_stack_direction=1
2670 echo "$as_me: program exited with status $ac_status" >&5
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2675 ac_cv_c_stack_direction=-1
2677 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2680 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2681 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2683 cat >>confdefs.h <<_ACEOF
2684 #define STACK_DIRECTION $ac_cv_c_stack_direction
2692 for ac_header in stdlib.h unistd.h
2694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2696 echo "$as_me:$LINENO: checking for $ac_header" >&5
2697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2704 # Is the header compilable?
2705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2707 cat >conftest.$ac_ext <<_ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2713 $ac_includes_default
2714 #include <$ac_header>
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>conftest.er1
2720 grep -v '^ *+' conftest.er1 >conftest.err
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
2725 { ac_try='test -z "$ac_c_werror_flag"
2726 || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_header_compiler=yes
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2743 ac_header_compiler=no
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2747 echo "${ECHO_T}$ac_header_compiler" >&6
2749 # Is the header present?
2750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2752 cat >conftest.$ac_ext <<_ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2758 #include <$ac_header>
2760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2763 grep -v '^ *+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } >/dev/null; then
2768 if test -s conftest.err; then
2769 ac_cpp_err=$ac_c_preproc_warn_flag
2770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2777 if test -z "$ac_cpp_err"; then
2778 ac_header_preproc=yes
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 ac_header_preproc=no
2785 rm -f conftest.err conftest.$ac_ext
2786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2787 echo "${ECHO_T}$ac_header_preproc" >&6
2789 # So? What about this header?
2790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2796 ac_header_preproc=yes
2799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2813 ## ------------------------------------------ ##
2814 ## Report this to the AC_PACKAGE_NAME lists. ##
2815 ## ------------------------------------------ ##
2818 sed "s/^/$as_me: WARNING: /" >&2
2821 echo "$as_me:$LINENO: checking for $ac_header" >&5
2822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 eval "$as_ac_Header=\$ac_header_preproc"
2828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2833 cat >>confdefs.h <<_ACEOF
2834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2842 for ac_func in getpagesize
2844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2845 echo "$as_me:$LINENO: checking for $ac_func" >&5
2846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2847 if eval "test \"\${$as_ac_var+set}\" = set"; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 cat >conftest.$ac_ext <<_ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2858 #define $ac_func innocuous_$ac_func
2860 /* System header to define __stub macros and hopefully few prototypes,
2861 which can conflict with char $ac_func (); below.
2862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2863 <limits.h> exists even on freestanding compilers. */
2866 # include <limits.h>
2868 # include <assert.h>
2873 /* Override any gcc2 internal prototype to avoid an error. */
2878 /* We use char because int might match the return type of a gcc2
2879 builtin and then its argument prototype would still apply. */
2881 /* The GNU C library defines this for functions which it implements
2882 to always fail with ENOSYS. Some functions are actually named
2883 something starting with __ and the normal name is an alias. */
2884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2887 char (*f) () = $ac_func;
2896 return f != $ac_func;
2901 rm -f conftest.$ac_objext conftest$ac_exeext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903 (eval $ac_link) 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -z "$ac_c_werror_flag"
2911 || test ! -s conftest.err'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest$ac_exeext'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 eval "$as_ac_var=yes"
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2928 eval "$as_ac_var=no"
2930 rm -f conftest.err conftest.$ac_objext \
2931 conftest$ac_exeext conftest.$ac_ext
2933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2935 if test `eval echo '${'$as_ac_var'}'` = yes; then
2936 cat >>confdefs.h <<_ACEOF
2937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2943 echo "$as_me:$LINENO: checking for working mmap" >&5
2944 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2945 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test "$cross_compiling" = yes; then
2949 ac_cv_func_mmap_fixed_mapped=no
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2957 $ac_includes_default
2958 /* malloc might have been renamed as rpl_malloc. */
2961 /* Thanks to Mike Haertel and Jim Avera for this test.
2962 Here is a matrix of mmap possibilities:
2963 mmap private not fixed
2964 mmap private fixed at somewhere currently unmapped
2965 mmap private fixed at somewhere already mapped
2966 mmap shared not fixed
2967 mmap shared fixed at somewhere currently unmapped
2968 mmap shared fixed at somewhere already mapped
2969 For private mappings, we should verify that changes cannot be read()
2970 back from the file, nor mmap's back from the file at a different
2971 address. (There have been systems where private was not correctly
2972 implemented like the infamous i386 svr4.0, and systems where the
2973 VM page cache was not coherent with the file system buffer cache
2974 like early versions of FreeBSD and possibly contemporary NetBSD.)
2975 For shared mappings, we should conversely verify that changes get
2976 propagated back to all the places they're supposed to be.
2978 Grep wants private fixed already mapped.
2979 The main things grep needs to know about mmap are:
2980 * does it exist and is it safe to write into the mmap'd area
2981 * how to use it (BSD variants) */
2984 #include <sys/mman.h>
2986 #if !STDC_HEADERS && !HAVE_STDLIB_H
2990 /* This mess was copied from the GNU getpagesize.h. */
2991 #if !HAVE_GETPAGESIZE
2992 /* Assume that all systems that can run configure have sys/param.h. */
2993 # if !HAVE_SYS_PARAM_H
2994 # define HAVE_SYS_PARAM_H 1
2997 # ifdef _SC_PAGESIZE
2998 # define getpagesize() sysconf(_SC_PAGESIZE)
2999 # else /* no _SC_PAGESIZE */
3000 # if HAVE_SYS_PARAM_H
3001 # include <sys/param.h>
3002 # ifdef EXEC_PAGESIZE
3003 # define getpagesize() EXEC_PAGESIZE
3004 # else /* no EXEC_PAGESIZE */
3006 # define getpagesize() NBPG * CLSIZE
3009 # endif /* no CLSIZE */
3010 # else /* no NBPG */
3012 # define getpagesize() NBPC
3013 # else /* no NBPC */
3015 # define getpagesize() PAGESIZE
3016 # endif /* PAGESIZE */
3017 # endif /* no NBPC */
3018 # endif /* no NBPG */
3019 # endif /* no EXEC_PAGESIZE */
3020 # else /* no HAVE_SYS_PARAM_H */
3021 # define getpagesize() 8192 /* punt totally */
3022 # endif /* no HAVE_SYS_PARAM_H */
3023 # endif /* no _SC_PAGESIZE */
3025 #endif /* no HAVE_GETPAGESIZE */
3030 char *data, *data2, *data3;
3034 pagesize = getpagesize ();
3036 /* First, make a file with some known garbage in it. */
3037 data = (char *) malloc (pagesize);
3040 for (i = 0; i < pagesize; ++i)
3041 *(data + i) = rand ();
3043 fd = creat ("conftest.mmap", 0600);
3046 if (write (fd, data, pagesize) != pagesize)
3050 /* Next, try to mmap the file at a fixed address which already has
3051 something else allocated at it. If we can, also make sure that
3052 we see the same garbage. */
3053 fd = open ("conftest.mmap", O_RDWR);
3056 data2 = (char *) malloc (2 * pagesize);
3059 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3060 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3061 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3063 for (i = 0; i < pagesize; ++i)
3064 if (*(data + i) != *(data2 + i))
3067 /* Finally, make sure that changes to the mapped area do not
3068 percolate back to the file as seen by read(). (This is a bug on
3069 some variants of i386 svr4.0.) */
3070 for (i = 0; i < pagesize; ++i)
3071 *(data2 + i) = *(data2 + i) + 1;
3072 data3 = (char *) malloc (pagesize);
3075 if (read (fd, data3, pagesize) != pagesize)
3077 for (i = 0; i < pagesize; ++i)
3078 if (*(data + i) != *(data3 + i))
3084 rm -f conftest$ac_exeext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3086 (eval $ac_link) 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 ac_cv_func_mmap_fixed_mapped=yes
3097 echo "$as_me: program exited with status $ac_status" >&5
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3102 ac_cv_func_mmap_fixed_mapped=no
3104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3107 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3108 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3109 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3111 cat >>confdefs.h <<\_ACEOF
3119 # autoconf.info says this should be called right after AC_INIT.
3120 ac_config_headers="$ac_config_headers config.h:config.in"
3124 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
3125 if test -f $ac_dir/install-sh; then
3127 ac_install_sh="$ac_aux_dir/install-sh -c"
3129 elif test -f $ac_dir/install.sh; then
3131 ac_install_sh="$ac_aux_dir/install.sh -c"
3133 elif test -f $ac_dir/shtool; then
3135 ac_install_sh="$ac_aux_dir/shtool install -c"
3139 if test -z "$ac_aux_dir"; then
3140 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5
3141 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;}
3142 { (exit 1); exit 1; }; }
3144 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3145 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3146 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3148 echo "$as_me:$LINENO: checking target system type" >&5
3149 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3150 if test "${ac_cv_target+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 ac_cv_target_alias=$target_alias
3154 test "x$ac_cv_target_alias" = "x" &&
3155 ac_cv_target_alias=$ac_cv_host_alias
3156 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3157 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3158 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3159 { (exit 1); exit 1; }; }
3162 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3163 echo "${ECHO_T}$ac_cv_target" >&6
3164 target=$ac_cv_target
3165 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3166 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3167 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3170 # The aliases save the names the user supplied, while $host etc.
3171 # will get canonicalized.
3172 test -n "$target_alias" &&
3173 test "$program_prefix$program_suffix$program_transform_name" = \
3175 program_prefix=${target_alias}-
3176 test "$program_prefix" != NONE &&
3177 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3178 # Use a double $ so make ignores it.
3179 test "$program_suffix" != NONE &&
3180 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3181 # Double any \ or $. echo might interpret backslashes.
3182 # By default was `s,x,x', remove it if useless.
3183 cat <<\_ACEOF >conftest.sed
3184 s/[\\$]/&&/g;s/;s,x,x,$//
3186 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194 if test -n "$ac_tool_prefix"; then
3195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3196 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3197 echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_prog_CC+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 if test -n "$CC"; then
3223 echo "$as_me:$LINENO: result: $CC" >&5
3224 echo "${ECHO_T}$CC" >&6
3226 echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3231 if test -z "$ac_cv_prog_CC"; then
3233 # Extract the first word of "gcc", so it can be a program name with args.
3234 set dummy gcc; ac_word=$2
3235 echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 if test -n "$ac_ct_CC"; then
3241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_ac_ct_CC="gcc"
3251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3262 echo "${ECHO_T}$ac_ct_CC" >&6
3264 echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3273 if test -z "$CC"; then
3274 if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3276 set dummy ${ac_tool_prefix}cc; ac_word=$2
3277 echo "$as_me:$LINENO: checking for $ac_word" >&5
3278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279 if test "${ac_cv_prog_CC+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_CC="${ac_tool_prefix}cc"
3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$CC"; then
3303 echo "$as_me:$LINENO: result: $CC" >&5
3304 echo "${ECHO_T}$CC" >&6
3306 echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3311 if test -z "$ac_cv_prog_CC"; then
3313 # Extract the first word of "cc", so it can be a program name with args.
3314 set dummy cc; ac_word=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CC="cc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340 if test -n "$ac_ct_CC"; then
3341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3342 echo "${ECHO_T}$ac_ct_CC" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3354 if test -z "$CC"; then
3355 # Extract the first word of "cc", so it can be a program name with args.
3356 set dummy cc; ac_word=$2
3357 echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_CC+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3374 ac_prog_rejected=yes
3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 if test $ac_prog_rejected = yes; then
3385 # We found a bogon in the path, so make sure we never use it.
3386 set dummy $ac_cv_prog_CC
3388 if test $# != 0; then
3389 # We chose a different compiler from the bogus one.
3390 # However, it has the same basename, so the bogon will be chosen
3391 # first if we set CC to just the basename; use the full file name.
3393 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3399 if test -n "$CC"; then
3400 echo "$as_me:$LINENO: result: $CC" >&5
3401 echo "${ECHO_T}$CC" >&6
3403 echo "$as_me:$LINENO: result: no" >&5
3404 echo "${ECHO_T}no" >&6
3408 if test -z "$CC"; then
3409 if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3414 echo "$as_me:$LINENO: checking for $ac_word" >&5
3415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3416 if test "${ac_cv_prog_CC+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 if test -n "$CC"; then
3440 echo "$as_me:$LINENO: result: $CC" >&5
3441 echo "${ECHO_T}$CC" >&6
3443 echo "$as_me:$LINENO: result: no" >&5
3444 echo "${ECHO_T}no" >&6
3447 test -n "$CC" && break
3450 if test -z "$CC"; then
3454 # Extract the first word of "$ac_prog", so it can be a program name with args.
3455 set dummy $ac_prog; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 if test -n "$ac_ct_CC"; then
3462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_ac_ct_CC="$ac_prog"
3472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3483 echo "${ECHO_T}$ac_ct_CC" >&6
3485 echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3489 test -n "$ac_ct_CC" && break
3498 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3499 See \`config.log' for more details." >&5
3500 echo "$as_me: error: no acceptable C compiler found in \$PATH
3501 See \`config.log' for more details." >&2;}
3502 { (exit 1); exit 1; }; }
3504 # Provide some information about the compiler.
3505 echo "$as_me:$LINENO:" \
3506 "checking for C compiler version" >&5
3507 ac_compiler=`set X $ac_compile; echo $2`
3508 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3509 (eval $ac_compiler --version </dev/null >&5) 2>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }
3513 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3514 (eval $ac_compiler -v </dev/null >&5) 2>&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }
3518 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3519 (eval $ac_compiler -V </dev/null >&5) 2>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3539 ac_clean_files_save=$ac_clean_files
3540 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3541 # Try to create an executable without -o first, disregard a.out.
3542 # It will help us diagnose broken compilers, and finding out an intuition
3544 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3545 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3546 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3547 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3548 (eval $ac_link_default) 2>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; then
3552 # Find the output, starting from the most likely. This scheme is
3553 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3556 # Be careful to initialize this variable, since it used to be cached.
3557 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3559 # b.out is created by i960 compilers.
3560 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3562 test -f "$ac_file" || continue
3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3567 # This is the source file.
3570 # We found the default executable, but exeext='' is most
3574 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3575 # FIXME: I believe we export ac_cv_exeext for Libtool,
3576 # but it would be cool to find out if it's true. Does anybody
3577 # maintain Libtool? --akim.
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3589 See \`config.log' for more details." >&5
3590 echo "$as_me: error: C compiler cannot create executables
3591 See \`config.log' for more details." >&2;}
3592 { (exit 77); exit 77; }; }
3595 ac_exeext=$ac_cv_exeext
3596 echo "$as_me:$LINENO: result: $ac_file" >&5
3597 echo "${ECHO_T}$ac_file" >&6
3599 # Check the compiler produces executables we can run. If not, either
3600 # the compiler is broken, or we cross compile.
3601 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3602 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3603 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3604 # If not cross compiling, check that we can run a simple program.
3605 if test "$cross_compiling" != yes; then
3606 if { ac_try='./$ac_file'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3614 if test "$cross_compiling" = maybe; then
3617 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." >&5
3620 echo "$as_me: error: cannot run C compiled programs.
3621 If you meant to cross compile, use \`--host'.
3622 See \`config.log' for more details." >&2;}
3623 { (exit 1); exit 1; }; }
3627 echo "$as_me:$LINENO: result: yes" >&5
3628 echo "${ECHO_T}yes" >&6
3630 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3631 ac_clean_files=$ac_clean_files_save
3632 # Check the compiler produces executables we can run. If not, either
3633 # the compiler is broken, or we cross compile.
3634 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3635 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3636 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3637 echo "${ECHO_T}$cross_compiling" >&6
3639 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3640 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642 (eval $ac_link) 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; then
3646 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3647 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3648 # work properly (i.e., refer to `conftest.exe'), while it won't with
3650 for ac_file in conftest.exe conftest conftest.*; do
3651 test -f "$ac_file" || continue
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3654 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3662 See \`config.log' for more details." >&5
3663 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3664 See \`config.log' for more details." >&2;}
3665 { (exit 1); exit 1; }; }
3668 rm -f conftest$ac_cv_exeext
3669 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3670 echo "${ECHO_T}$ac_cv_exeext" >&6
3672 rm -f conftest.$ac_ext
3673 EXEEXT=$ac_cv_exeext
3675 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3676 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3677 if test "${ac_cv_objext+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3695 rm -f conftest.o conftest.obj
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; then
3701 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3704 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3713 See \`config.log' for more details." >&5
3714 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3715 See \`config.log' for more details." >&2;}
3716 { (exit 1); exit 1; }; }
3719 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3721 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3722 echo "${ECHO_T}$ac_cv_objext" >&6
3723 OBJEXT=$ac_cv_objext
3725 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3726 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3727 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 cat >conftest.$ac_ext <<_ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3748 rm -f conftest.$ac_objext
3749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3750 (eval $ac_compile) 2>conftest.er1
3752 grep -v '^ *+' conftest.er1 >conftest.err
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } &&
3757 { ac_try='test -z "$ac_c_werror_flag"
3758 || test ! -s conftest.err'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; } &&
3764 { ac_try='test -s conftest.$ac_objext'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; }; then
3772 echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3781 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3782 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3783 GCC=`test $ac_compiler_gnu = yes && echo yes`
3784 ac_test_CFLAGS=${CFLAGS+set}
3785 ac_save_CFLAGS=$CFLAGS
3787 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3788 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3789 if test "${ac_cv_prog_cc_g+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 cat >conftest.$ac_ext <<_ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3807 rm -f conftest.$ac_objext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -z "$ac_c_werror_flag"
3817 || test ! -s conftest.err'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try='test -s conftest.$ac_objext'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3838 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3839 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3840 if test "$ac_test_CFLAGS" = set; then
3841 CFLAGS=$ac_save_CFLAGS
3842 elif test $ac_cv_prog_cc_g = yes; then
3843 if test "$GCC" = yes; then
3849 if test "$GCC" = yes; then
3855 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3856 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3857 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 ac_cv_prog_cc_stdc=no
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3870 #include <sys/types.h>
3871 #include <sys/stat.h>
3872 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3873 struct buf { int x; };
3874 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3875 static char *e (p, i)
3881 static char *f (char * (*g) (char **, int), char **p, ...)
3886 s = g (p, va_arg (v,int));
3891 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3892 function prototypes and stuff, but not '\xHH' hex character constants.
3893 These don't provoke an error unfortunately, instead are silently treated
3894 as 'x'. The following induces an error, until -std1 is added to get
3895 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3896 array size at least. It's necessary to write '\x00'==0 to get something
3897 that's true only with -std1. */
3898 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3900 int test (int i, double x);
3901 struct s1 {int (*f) (int a);};
3902 struct s2 {int (*f) (double a);};
3903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3914 # Don't try gcc -ansi; that turns off useful extensions and
3915 # breaks some systems' header files.
3916 # AIX -qlanglvl=ansi
3917 # Ultrix and OSF/1 -std1
3918 # HP-UX 10.20 and later -Ae
3919 # HP-UX older versions -Aa -D_HPUX_SOURCE
3920 # SVR4 -Xc -D__EXTENSIONS__
3921 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3923 CC="$ac_save_CC $ac_arg"
3924 rm -f conftest.$ac_objext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926 (eval $ac_compile) 2>conftest.er1
3928 grep -v '^ *+' conftest.er1 >conftest.err
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -z "$ac_c_werror_flag"
3934 || test ! -s conftest.err'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; } &&
3940 { ac_try='test -s conftest.$ac_objext'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; }; then
3946 ac_cv_prog_cc_stdc=$ac_arg
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3953 rm -f conftest.err conftest.$ac_objext
3955 rm -f conftest.$ac_ext conftest.$ac_objext
3960 case "x$ac_cv_prog_cc_stdc" in
3962 echo "$as_me:$LINENO: result: none needed" >&5
3963 echo "${ECHO_T}none needed" >&6 ;;
3965 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3966 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3967 CC="$CC $ac_cv_prog_cc_stdc" ;;
3970 # Some people use a C++ compiler to compile C. Since we use `exit',
3971 # in C++ we need to declare it. In case someone uses the same compiler
3972 # for both compiling C and C++ we need to have the C++ compiler decide
3973 # the declaration of exit, since it's the most demanding environment.
3974 cat >conftest.$ac_ext <<_ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>conftest.er1
3983 grep -v '^ *+' conftest.er1 >conftest.err
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try='test -z "$ac_c_werror_flag"
3989 || test ! -s conftest.err'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; } &&
3995 { ac_try='test -s conftest.$ac_objext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 for ac_declaration in \
4003 'extern "C" void std::exit (int) throw (); using std::exit;' \
4004 'extern "C" void std::exit (int); using std::exit;' \
4005 'extern "C" void exit (int) throw ();' \
4006 'extern "C" void exit (int);' \
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4025 rm -f conftest.$ac_objext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>conftest.er1
4029 grep -v '^ *+' conftest.er1 >conftest.err
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_c_werror_flag"
4035 || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag"
4080 || test ! -s conftest.err'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 if test -n "$ac_declaration"; then
4102 echo '#ifdef __cplusplus' >>confdefs.h
4103 echo $ac_declaration >>confdefs.h
4104 echo '#endif' >>confdefs.h
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 # Find a good install program. We prefer a C program (faster),
4120 # so one script is as good as another. But avoid the broken or
4121 # incompatible versions:
4122 # SysV /etc/install, /usr/sbin/install
4123 # SunOS /usr/etc/install
4124 # IRIX /sbin/install
4126 # AmigaOS /C/install, which installs bootblocks on floppy discs
4127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4130 # OS/2's system install, which has a completely different semantic
4131 # ./install, which can be erroneously created by make from ./install.sh.
4132 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4133 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4134 if test -z "$INSTALL"; then
4135 if test "${ac_cv_path_install+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 # Account for people who put trailing slashes in PATH elements.
4145 ./ | .// | /cC/* | \
4146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4147 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4150 # OSF1 and SCO ODT 3.0 have their own names for install.
4151 # Don't use installbsd from OSF since it installs stuff as root
4153 for ac_prog in ginstall scoinst install; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4156 if test $ac_prog = install &&
4157 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4158 # AIX install. It has an incompatible calling convention.
4160 elif test $ac_prog = install &&
4161 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4162 # program-specific install script used by HP pwplus--don't use.
4165 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4177 if test "${ac_cv_path_install+set}" = set; then
4178 INSTALL=$ac_cv_path_install
4180 # As a last resort, use the slow shell script. We don't cache a
4181 # path for INSTALL within a source directory, because that will
4182 # break other packages using the cache if that directory is
4183 # removed, or if the path is relative.
4184 INSTALL=$ac_install_sh
4187 echo "$as_me:$LINENO: result: $INSTALL" >&5
4188 echo "${ECHO_T}$INSTALL" >&6
4190 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4191 # It thinks the first close brace ends the variable substitution.
4192 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4194 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4196 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4199 # Put a plausible default for CC_FOR_BUILD in Makefile.
4200 if test "x$cross_compiling" = "xno"; then
4201 CC_FOR_BUILD='$(CC)'
4211 if test -n "$ac_tool_prefix"; then
4212 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4213 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4214 echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_RANLIB+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -n "$RANLIB"; then
4220 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 RANLIB=$ac_cv_prog_RANLIB
4239 if test -n "$RANLIB"; then
4240 echo "$as_me:$LINENO: result: $RANLIB" >&5
4241 echo "${ECHO_T}$RANLIB" >&6
4243 echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6
4248 if test -z "$ac_cv_prog_RANLIB"; then
4249 ac_ct_RANLIB=$RANLIB
4250 # Extract the first word of "ranlib", so it can be a program name with args.
4251 set dummy ranlib; ac_word=$2
4252 echo "$as_me:$LINENO: checking for $ac_word" >&5
4253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if test -n "$ac_ct_RANLIB"; then
4258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_ac_ct_RANLIB="ranlib"
4268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4278 if test -n "$ac_ct_RANLIB"; then
4279 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4280 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4282 echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6
4286 RANLIB=$ac_ct_RANLIB
4288 RANLIB="$ac_cv_prog_RANLIB"
4303 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4304 unistd.h values.h sys/param.h
4306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308 echo "$as_me:$LINENO: checking for $ac_header" >&5
4309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316 # Is the header compilable?
4317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 $ac_includes_default
4326 #include <$ac_header>
4328 rm -f conftest.$ac_objext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>conftest.er1
4332 grep -v '^ *+' conftest.er1 >conftest.err
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } &&
4337 { ac_try='test -z "$ac_c_werror_flag"
4338 || test ! -s conftest.err'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; } &&
4344 { ac_try='test -s conftest.$ac_objext'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4350 ac_header_compiler=yes
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 ac_header_compiler=no
4357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4359 echo "${ECHO_T}$ac_header_compiler" >&6
4361 # Is the header present?
4362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #include <$ac_header>
4372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4375 grep -v '^ *+' conftest.er1 >conftest.err
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } >/dev/null; then
4380 if test -s conftest.err; then
4381 ac_cpp_err=$ac_c_preproc_warn_flag
4382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4389 if test -z "$ac_cpp_err"; then
4390 ac_header_preproc=yes
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4395 ac_header_preproc=no
4397 rm -f conftest.err conftest.$ac_ext
4398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4399 echo "${ECHO_T}$ac_header_preproc" >&6
4401 # So? What about this header?
4402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4408 ac_header_preproc=yes
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4425 ## ------------------------------------------ ##
4426 ## Report this to the AC_PACKAGE_NAME lists. ##
4427 ## ------------------------------------------ ##
4430 sed "s/^/$as_me: WARNING: /" >&2
4433 echo "$as_me:$LINENO: checking for $ac_header" >&5
4434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 eval "$as_ac_Header=\$ac_header_preproc"
4440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4445 cat >>confdefs.h <<_ACEOF
4446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4463 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4464 __argz_count __argz_stringify __argz_next
4466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4467 echo "$as_me:$LINENO: checking for $ac_func" >&5
4468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4469 if eval "test \"\${$as_ac_var+set}\" = set"; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4480 #define $ac_func innocuous_$ac_func
4482 /* System header to define __stub macros and hopefully few prototypes,
4483 which can conflict with char $ac_func (); below.
4484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4485 <limits.h> exists even on freestanding compilers. */
4488 # include <limits.h>
4490 # include <assert.h>
4495 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4503 /* The GNU C library defines this for functions which it implements
4504 to always fail with ENOSYS. Some functions are actually named
4505 something starting with __ and the normal name is an alias. */
4506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4509 char (*f) () = $ac_func;
4518 return f != $ac_func;
4523 rm -f conftest.$ac_objext conftest$ac_exeext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4525 (eval $ac_link) 2>conftest.er1
4527 grep -v '^ *+' conftest.er1 >conftest.err
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try='test -z "$ac_c_werror_flag"
4533 || test ! -s conftest.err'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; } &&
4539 { ac_try='test -s conftest$ac_exeext'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
4545 eval "$as_ac_var=yes"
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 eval "$as_ac_var=no"
4552 rm -f conftest.err conftest.$ac_objext \
4553 conftest$ac_exeext conftest.$ac_ext
4555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4557 if test `eval echo '${'$as_ac_var'}'` = yes; then
4558 cat >>confdefs.h <<_ACEOF
4559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4566 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4568 for ac_func in stpcpy
4570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4571 echo "$as_me:$LINENO: checking for $ac_func" >&5
4572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4573 if eval "test \"\${$as_ac_var+set}\" = set"; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 cat >conftest.$ac_ext <<_ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4584 #define $ac_func innocuous_$ac_func
4586 /* System header to define __stub macros and hopefully few prototypes,
4587 which can conflict with char $ac_func (); below.
4588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589 <limits.h> exists even on freestanding compilers. */
4592 # include <limits.h>
4594 # include <assert.h>
4599 /* Override any gcc2 internal prototype to avoid an error. */
4604 /* We use char because int might match the return type of a gcc2
4605 builtin and then its argument prototype would still apply. */
4607 /* The GNU C library defines this for functions which it implements
4608 to always fail with ENOSYS. Some functions are actually named
4609 something starting with __ and the normal name is an alias. */
4610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4613 char (*f) () = $ac_func;
4622 return f != $ac_func;
4627 rm -f conftest.$ac_objext conftest$ac_exeext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629 (eval $ac_link) 2>conftest.er1
4631 grep -v '^ *+' conftest.er1 >conftest.err
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -z "$ac_c_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try='test -s conftest$ac_exeext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 eval "$as_ac_var=yes"
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 eval "$as_ac_var=no"
4656 rm -f conftest.err conftest.$ac_objext \
4657 conftest$ac_exeext conftest.$ac_ext
4659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4661 if test `eval echo '${'$as_ac_var'}'` = yes; then
4662 cat >>confdefs.h <<_ACEOF
4663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4670 if test "${ac_cv_func_stpcpy}" = "yes"; then
4671 cat >>confdefs.h <<\_ACEOF
4672 #define HAVE_STPCPY 1
4677 if test $ac_cv_header_locale_h = yes; then
4678 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4679 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4680 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 cat >conftest.$ac_ext <<_ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4698 rm -f conftest.$ac_objext conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1 >conftest.err
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 am_cv_val_LC_MESSAGES=yes
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 am_cv_val_LC_MESSAGES=no
4727 rm -f conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4730 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4731 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4732 if test $am_cv_val_LC_MESSAGES = yes; then
4733 cat >>confdefs.h <<\_ACEOF
4734 #define HAVE_LC_MESSAGES 1
4739 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4740 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4741 # Check whether --enable-nls or --disable-nls was given.
4742 if test "${enable_nls+set}" = set; then
4743 enableval="$enable_nls"
4748 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4749 echo "${ECHO_T}$USE_NLS" >&6
4752 USE_INCLUDED_LIBINTL=no
4754 if test "$USE_NLS" = "yes"; then
4755 cat >>confdefs.h <<\_ACEOF
4756 #define ENABLE_NLS 1
4759 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4760 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4762 # Check whether --with-included-gettext or --without-included-gettext was given.
4763 if test "${with_included_gettext+set}" = set; then
4764 withval="$with_included_gettext"
4765 nls_cv_force_use_gnu_gettext=$withval
4767 nls_cv_force_use_gnu_gettext=no
4769 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4770 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4772 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4773 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4775 nls_cv_header_libgt=
4778 if test "${ac_cv_header_libintl_h+set}" = set; then
4779 echo "$as_me:$LINENO: checking for libintl.h" >&5
4780 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4781 if test "${ac_cv_header_libintl_h+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4785 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4787 # Is the header compilable?
4788 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4789 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4790 cat >conftest.$ac_ext <<_ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 $ac_includes_default
4797 #include <libintl.h>
4799 rm -f conftest.$ac_objext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801 (eval $ac_compile) 2>conftest.er1
4803 grep -v '^ *+' conftest.er1 >conftest.err
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler=yes
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_header_compiler=no
4828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6
4832 # Is the header present?
4833 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4834 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4835 cat >conftest.$ac_ext <<_ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <libintl.h>
4843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846 grep -v '^ *+' conftest.er1 >conftest.err
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null; then
4851 if test -s conftest.err; then
4852 ac_cpp_err=$ac_c_preproc_warn_flag
4853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4860 if test -z "$ac_cpp_err"; then
4861 ac_header_preproc=yes
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 ac_header_preproc=no
4868 rm -f conftest.err conftest.$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4872 # So? What about this header?
4873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4878 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4879 ac_header_preproc=yes
4882 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4883 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4885 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4887 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4889 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4893 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4896 ## ------------------------------------------ ##
4897 ## Report this to the AC_PACKAGE_NAME lists. ##
4898 ## ------------------------------------------ ##
4901 sed "s/^/$as_me: WARNING: /" >&2
4904 echo "$as_me:$LINENO: checking for libintl.h" >&5
4905 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4906 if test "${ac_cv_header_libintl_h+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_cv_header_libintl_h=$ac_header_preproc
4911 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4912 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4915 if test $ac_cv_header_libintl_h = yes; then
4916 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4917 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4918 if test "${gt_cv_func_gettext_libc+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 cat >conftest.$ac_ext <<_ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 #include <libintl.h>
4931 return (int) gettext ("")
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>conftest.er1
4940 grep -v '^ *+' conftest.er1 >conftest.err
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 gt_cv_func_gettext_libc=yes
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 gt_cv_func_gettext_libc=no
4965 rm -f conftest.err conftest.$ac_objext \
4966 conftest$ac_exeext conftest.$ac_ext
4968 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4969 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4971 if test "$gt_cv_func_gettext_libc" != "yes"; then
4972 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4973 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4974 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 ac_check_lib_save_LIBS=$LIBS
4979 cat >conftest.$ac_ext <<_ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4986 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
4992 char bindtextdomain ();
5001 rm -f conftest.$ac_objext conftest$ac_exeext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5003 (eval $ac_link) 2>conftest.er1
5005 grep -v '^ *+' conftest.er1 >conftest.err
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -z "$ac_c_werror_flag"
5011 || test ! -s conftest.err'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try='test -s conftest$ac_exeext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 ac_cv_lib_intl_bindtextdomain=yes
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5028 ac_cv_lib_intl_bindtextdomain=no
5030 rm -f conftest.err conftest.$ac_objext \
5031 conftest$ac_exeext conftest.$ac_ext
5032 LIBS=$ac_check_lib_save_LIBS
5034 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5035 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5036 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5037 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5038 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5039 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5052 return (int) gettext ("")
5057 rm -f conftest.$ac_objext conftest$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5061 grep -v '^ *+' conftest.er1 >conftest.err
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 gt_cv_func_gettext_libintl=yes
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5084 gt_cv_func_gettext_libintl=no
5086 rm -f conftest.err conftest.$ac_objext \
5087 conftest$ac_exeext conftest.$ac_ext
5089 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5090 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5095 if test "$gt_cv_func_gettext_libc" = "yes" \
5096 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5097 cat >>confdefs.h <<\_ACEOF
5098 #define HAVE_GETTEXT 1
5101 # Extract the first word of "msgfmt", so it can be a program name with args.
5102 set dummy msgfmt; ac_word=$2
5103 echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105 if test "${ac_cv_path_MSGFMT+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5114 for ac_dir in $PATH; do
5115 test -z "$ac_dir" && ac_dir=.
5116 if test -f $ac_dir/$ac_word; then
5117 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5118 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5124 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5128 MSGFMT="$ac_cv_path_MSGFMT"
5129 if test -n "$MSGFMT"; then
5130 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5131 echo "${ECHO_T}$MSGFMT" >&6
5133 echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6
5136 if test "$MSGFMT" != "no"; then
5138 for ac_func in dcgettext
5140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5141 echo "$as_me:$LINENO: checking for $ac_func" >&5
5142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5143 if eval "test \"\${$as_ac_var+set}\" = set"; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5154 #define $ac_func innocuous_$ac_func
5156 /* System header to define __stub macros and hopefully few prototypes,
5157 which can conflict with char $ac_func (); below.
5158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159 <limits.h> exists even on freestanding compilers. */
5162 # include <limits.h>
5164 # include <assert.h>
5169 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5177 /* The GNU C library defines this for functions which it implements
5178 to always fail with ENOSYS. Some functions are actually named
5179 something starting with __ and the normal name is an alias. */
5180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5183 char (*f) () = $ac_func;
5192 return f != $ac_func;
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199 (eval $ac_link) 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try='test -z "$ac_c_werror_flag"
5207 || test ! -s conftest.err'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; } &&
5213 { ac_try='test -s conftest$ac_exeext'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5219 eval "$as_ac_var=yes"
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 eval "$as_ac_var=no"
5226 rm -f conftest.err conftest.$ac_objext \
5227 conftest$ac_exeext conftest.$ac_ext
5229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5231 if test `eval echo '${'$as_ac_var'}'` = yes; then
5232 cat >>confdefs.h <<_ACEOF
5233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5239 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5240 set dummy gmsgfmt; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5269 GMSGFMT=$ac_cv_path_GMSGFMT
5271 if test -n "$GMSGFMT"; then
5272 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5273 echo "${ECHO_T}$GMSGFMT" >&6
5275 echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5279 # Extract the first word of "xgettext", so it can be a program name with args.
5280 set dummy xgettext; ac_word=$2
5281 echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5283 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5292 for ac_dir in $PATH; do
5293 test -z "$ac_dir" && ac_dir=.
5294 if test -f $ac_dir/$ac_word; then
5295 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5296 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5302 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5306 XGETTEXT="$ac_cv_path_XGETTEXT"
5307 if test -n "$XGETTEXT"; then
5308 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5309 echo "${ECHO_T}$XGETTEXT" >&6
5311 echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5325 extern int _nl_msg_cat_cntr;
5326 return _nl_msg_cat_cntr
5331 rm -f conftest.$ac_objext conftest$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333 (eval $ac_link) 2>conftest.er1
5335 grep -v '^ *+' conftest.er1 >conftest.err
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -z "$ac_c_werror_flag"
5341 || test ! -s conftest.err'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest$ac_exeext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5362 rm -f conftest.err conftest.$ac_objext \
5363 conftest$ac_exeext conftest.$ac_ext
5373 if test "$CATOBJEXT" = "NONE"; then
5374 nls_cv_use_gnu_gettext=yes
5378 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5379 INTLOBJS="\$(GETTOBJS)"
5380 # Extract the first word of "msgfmt", so it can be a program name with args.
5381 set dummy msgfmt; ac_word=$2
5382 echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384 if test "${ac_cv_path_MSGFMT+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5393 for ac_dir in $PATH; do
5394 test -z "$ac_dir" && ac_dir=.
5395 if test -f $ac_dir/$ac_word; then
5396 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5397 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5403 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5407 MSGFMT="$ac_cv_path_MSGFMT"
5408 if test -n "$MSGFMT"; then
5409 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5410 echo "${ECHO_T}$MSGFMT" >&6
5412 echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5416 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5417 set dummy gmsgfmt; ac_word=$2
5418 echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5446 GMSGFMT=$ac_cv_path_GMSGFMT
5448 if test -n "$GMSGFMT"; then
5449 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5450 echo "${ECHO_T}$GMSGFMT" >&6
5452 echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6
5456 # Extract the first word of "xgettext", so it can be a program name with args.
5457 set dummy xgettext; ac_word=$2
5458 echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5460 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5469 for ac_dir in $PATH; do
5470 test -z "$ac_dir" && ac_dir=.
5471 if test -f $ac_dir/$ac_word; then
5472 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5473 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5479 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5483 XGETTEXT="$ac_cv_path_XGETTEXT"
5484 if test -n "$XGETTEXT"; then
5485 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5486 echo "${ECHO_T}$XGETTEXT" >&6
5488 echo "$as_me:$LINENO: result: no" >&5
5489 echo "${ECHO_T}no" >&6
5493 USE_INCLUDED_LIBINTL=yes
5497 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5499 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5500 nls_cv_header_intl=libintl.h
5501 nls_cv_header_libgt=libgettext.h
5504 if test "$XGETTEXT" != ":"; then
5505 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5508 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5509 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5514 # We need to process the po/ directory.
5518 nls_cv_header_intl=libintl.h
5519 nls_cv_header_libgt=libgettext.h
5522 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5523 # because some of the sources are only built for this goal.
5524 if test "$PACKAGE" = gettext; then
5526 USE_INCLUDED_LIBINTL=yes
5529 for lang in $ALL_LINGUAS; do
5530 GMOFILES="$GMOFILES $lang.gmo"
5531 POFILES="$POFILES $lang.po"
5547 if test "x$CATOBJEXT" != "x"; then
5548 if test "x$ALL_LINGUAS" = "x"; then
5551 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5552 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5554 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5555 case "$ALL_LINGUAS" in
5556 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5559 LINGUAS=$NEW_LINGUAS
5560 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5561 echo "${ECHO_T}$LINGUAS" >&6
5564 if test -n "$LINGUAS"; then
5565 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5569 if test $ac_cv_header_locale_h = yes; then
5570 INCLUDE_LOCALE_H="#include <locale.h>"
5573 /* The system does not provide the header <locale.h>. Take care yourself. */"
5577 if test -f $srcdir/po2tbl.sed.in; then
5578 if test "$CATOBJEXT" = ".cat"; then
5579 if test "${ac_cv_header_linux_version_h+set}" = set; then
5580 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5581 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5582 if test "${ac_cv_header_linux_version_h+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5586 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5588 # Is the header compilable?
5589 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5590 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 $ac_includes_default
5598 #include <linux/version.h>
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_header_compiler=yes
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_header_compiler=no
5629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5631 echo "${ECHO_T}$ac_header_compiler" >&6
5633 # Is the header present?
5634 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5635 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <linux/version.h>
5644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5647 grep -v '^ *+' conftest.er1 >conftest.err
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } >/dev/null; then
5652 if test -s conftest.err; then
5653 ac_cpp_err=$ac_c_preproc_warn_flag
5654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5661 if test -z "$ac_cpp_err"; then
5662 ac_header_preproc=yes
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5667 ac_header_preproc=no
5669 rm -f conftest.err conftest.$ac_ext
5670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5671 echo "${ECHO_T}$ac_header_preproc" >&6
5673 # So? What about this header?
5674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5676 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5677 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5678 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5679 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5680 ac_header_preproc=yes
5683 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5684 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5685 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5686 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5687 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5688 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5689 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5690 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5691 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5692 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5694 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5697 ## ------------------------------------------ ##
5698 ## Report this to the AC_PACKAGE_NAME lists. ##
5699 ## ------------------------------------------ ##
5702 sed "s/^/$as_me: WARNING: /" >&2
5705 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5706 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5707 if test "${ac_cv_header_linux_version_h+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 ac_cv_header_linux_version_h=$ac_header_preproc
5712 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5713 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5716 if test $ac_cv_header_linux_version_h = yes; then
5724 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5726 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5727 $srcdir/po2tbl.sed.in > po2tbl.sed
5730 if test "$PACKAGE" = "gettext"; then
5740 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5746 if test -d $srcdir/po; then
5747 test -d po || mkdir po
5748 if test "x$srcdir" != "x."; then
5749 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5750 posrcprefix="$srcdir/"
5752 posrcprefix="../$srcdir/"
5758 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5759 < $srcdir/po/POTFILES.in > po/POTFILES
5763 # Check for common headers.
5764 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5765 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5771 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5775 echo "$as_me:$LINENO: checking for $ac_header" >&5
5776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5783 # Is the header compilable?
5784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5786 cat >conftest.$ac_ext <<_ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 $ac_includes_default
5793 #include <$ac_header>
5795 rm -f conftest.$ac_objext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_c_werror_flag"
5805 || test ! -s conftest.err'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try='test -s conftest.$ac_objext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_header_compiler=yes
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5822 ac_header_compiler=no
5824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5826 echo "${ECHO_T}$ac_header_compiler" >&6
5828 # Is the header present?
5829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #include <$ac_header>
5839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5842 grep -v '^ *+' conftest.er1 >conftest.err
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } >/dev/null; then
5847 if test -s conftest.err; then
5848 ac_cpp_err=$ac_c_preproc_warn_flag
5849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5856 if test -z "$ac_cpp_err"; then
5857 ac_header_preproc=yes
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5862 ac_header_preproc=no
5864 rm -f conftest.err conftest.$ac_ext
5865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5866 echo "${ECHO_T}$ac_header_preproc" >&6
5868 # So? What about this header?
5869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5875 ac_header_preproc=yes
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5892 ## ------------------------------------------ ##
5893 ## Report this to the AC_PACKAGE_NAME lists. ##
5894 ## ------------------------------------------ ##
5897 sed "s/^/$as_me: WARNING: /" >&2
5900 echo "$as_me:$LINENO: checking for $ac_header" >&5
5901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 eval "$as_ac_Header=\$ac_header_preproc"
5907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5912 cat >>confdefs.h <<_ACEOF
5913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5922 for ac_header in sys/time.h sys/resource.h
5924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5926 echo "$as_me:$LINENO: checking for $ac_header" >&5
5927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5934 # Is the header compilable?
5935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 $ac_includes_default
5944 #include <$ac_header>
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_header_compiler=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_header_compiler=no
5975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5977 echo "${ECHO_T}$ac_header_compiler" >&6
5979 # Is the header present?
5980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <$ac_header>
5990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5993 grep -v '^ *+' conftest.er1 >conftest.err
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } >/dev/null; then
5998 if test -s conftest.err; then
5999 ac_cpp_err=$ac_c_preproc_warn_flag
6000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6007 if test -z "$ac_cpp_err"; then
6008 ac_header_preproc=yes
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 ac_header_preproc=no
6015 rm -f conftest.err conftest.$ac_ext
6016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6017 echo "${ECHO_T}$ac_header_preproc" >&6
6019 # So? What about this header?
6020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6026 ac_header_preproc=yes
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6043 ## ------------------------------------------ ##
6044 ## Report this to the AC_PACKAGE_NAME lists. ##
6045 ## ------------------------------------------ ##
6048 sed "s/^/$as_me: WARNING: /" >&2
6051 echo "$as_me:$LINENO: checking for $ac_header" >&5
6052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 eval "$as_ac_Header=\$ac_header_preproc"
6058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6063 cat >>confdefs.h <<_ACEOF
6064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6073 for ac_header in fcntl.h fpu_control.h
6075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6077 echo "$as_me:$LINENO: checking for $ac_header" >&5
6078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6085 # Is the header compilable?
6086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6088 cat >conftest.$ac_ext <<_ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 $ac_includes_default
6095 #include <$ac_header>
6097 rm -f conftest.$ac_objext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099 (eval $ac_compile) 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try='test -z "$ac_c_werror_flag"
6107 || test ! -s conftest.err'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try='test -s conftest.$ac_objext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6119 ac_header_compiler=yes
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_header_compiler=no
6126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6128 echo "${ECHO_T}$ac_header_compiler" >&6
6130 # Is the header present?
6131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6133 cat >conftest.$ac_ext <<_ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #include <$ac_header>
6141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6144 grep -v '^ *+' conftest.er1 >conftest.err
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } >/dev/null; then
6149 if test -s conftest.err; then
6150 ac_cpp_err=$ac_c_preproc_warn_flag
6151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6158 if test -z "$ac_cpp_err"; then
6159 ac_header_preproc=yes
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_header_preproc=no
6166 rm -f conftest.err conftest.$ac_ext
6167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6168 echo "${ECHO_T}$ac_header_preproc" >&6
6170 # So? What about this header?
6171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6177 ac_header_preproc=yes
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6194 ## ------------------------------------------ ##
6195 ## Report this to the AC_PACKAGE_NAME lists. ##
6196 ## ------------------------------------------ ##
6199 sed "s/^/$as_me: WARNING: /" >&2
6202 echo "$as_me:$LINENO: checking for $ac_header" >&5
6203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 eval "$as_ac_Header=\$ac_header_preproc"
6209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6214 cat >>confdefs.h <<_ACEOF
6215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6225 for ac_header in dlfcn.h errno.h sys/stat.h
6227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229 echo "$as_me:$LINENO: checking for $ac_header" >&5
6230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6237 # Is the header compilable?
6238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 $ac_includes_default
6247 #include <$ac_header>
6249 rm -f conftest.$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_header_compiler=yes
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6276 ac_header_compiler=no
6278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6280 echo "${ECHO_T}$ac_header_compiler" >&6
6282 # Is the header present?
6283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6285 cat >conftest.$ac_ext <<_ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 #include <$ac_header>
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296 grep -v '^ *+' conftest.er1 >conftest.err
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev/null; then
6301 if test -s conftest.err; then
6302 ac_cpp_err=$ac_c_preproc_warn_flag
6303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6310 if test -z "$ac_cpp_err"; then
6311 ac_header_preproc=yes
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6316 ac_header_preproc=no
6318 rm -f conftest.err conftest.$ac_ext
6319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6320 echo "${ECHO_T}$ac_header_preproc" >&6
6322 # So? What about this header?
6323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6329 ac_header_preproc=yes
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6346 ## ------------------------------------------ ##
6347 ## Report this to the AC_PACKAGE_NAME lists. ##
6348 ## ------------------------------------------ ##
6351 sed "s/^/$as_me: WARNING: /" >&2
6354 echo "$as_me:$LINENO: checking for $ac_header" >&5
6355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 eval "$as_ac_Header=\$ac_header_preproc"
6361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6366 cat >>confdefs.h <<_ACEOF
6367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378 for ac_func in getrusage time sigaction __setfpucw
6380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6381 echo "$as_me:$LINENO: checking for $ac_func" >&5
6382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6383 if eval "test \"\${$as_ac_var+set}\" = set"; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6394 #define $ac_func innocuous_$ac_func
6396 /* System header to define __stub macros and hopefully few prototypes,
6397 which can conflict with char $ac_func (); below.
6398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6399 <limits.h> exists even on freestanding compilers. */
6402 # include <limits.h>
6404 # include <assert.h>
6409 /* Override any gcc2 internal prototype to avoid an error. */
6414 /* We use char because int might match the return type of a gcc2
6415 builtin and then its argument prototype would still apply. */
6417 /* The GNU C library defines this for functions which it implements
6418 to always fail with ENOSYS. Some functions are actually named
6419 something starting with __ and the normal name is an alias. */
6420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6423 char (*f) () = $ac_func;
6432 return f != $ac_func;
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439 (eval $ac_link) 2>conftest.er1
6441 grep -v '^ *+' conftest.er1 >conftest.err
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try='test -z "$ac_c_werror_flag"
6447 || test ! -s conftest.err'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try='test -s conftest$ac_exeext'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; }; then
6459 eval "$as_ac_var=yes"
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 eval "$as_ac_var=no"
6466 rm -f conftest.err conftest.$ac_objext \
6467 conftest$ac_exeext conftest.$ac_ext
6469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6471 if test `eval echo '${'$as_ac_var'}'` = yes; then
6472 cat >>confdefs.h <<_ACEOF
6473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6480 # Check for socket libraries
6482 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6483 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6484 if test "${ac_cv_lib_socket_bind+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 ac_check_lib_save_LIBS=$LIBS
6488 LIBS="-lsocket $LIBS"
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6496 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6511 rm -f conftest.$ac_objext conftest$ac_exeext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513 (eval $ac_link) 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest$ac_exeext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_cv_lib_socket_bind=yes
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 ac_cv_lib_socket_bind=no
6540 rm -f conftest.err conftest.$ac_objext \
6541 conftest$ac_exeext conftest.$ac_ext
6542 LIBS=$ac_check_lib_save_LIBS
6544 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6545 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6546 if test $ac_cv_lib_socket_bind = yes; then
6547 cat >>confdefs.h <<_ACEOF
6548 #define HAVE_LIBSOCKET 1
6551 LIBS="-lsocket $LIBS"
6556 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6557 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6558 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 ac_check_lib_save_LIBS=$LIBS
6563 cat >conftest.$ac_ext <<_ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6570 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char gethostbyname ();
6585 rm -f conftest.$ac_objext conftest$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587 (eval $ac_link) 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -z "$ac_c_werror_flag"
6595 || test ! -s conftest.err'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; } &&
6601 { ac_try='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_lib_nsl_gethostbyname=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_cv_lib_nsl_gethostbyname=no
6614 rm -f conftest.err conftest.$ac_objext \
6615 conftest$ac_exeext conftest.$ac_ext
6616 LIBS=$ac_check_lib_save_LIBS
6618 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6619 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6620 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6621 cat >>confdefs.h <<_ACEOF
6622 #define HAVE_LIBNSL 1
6630 . ${srcdir}/../../bfd/configure.host
6634 USE_MAINTAINER_MODE=no
6635 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6636 if test "${enable_maintainer_mode+set}" = set; then
6637 enableval="$enable_maintainer_mode"
6638 case "${enableval}" in
6639 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6641 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6642 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6643 { (exit 1); exit 1; }; }; MAINT="#" ;;
6645 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6646 echo "Setting maintainer mode" 6>&1
6653 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6654 if test "${enable_sim_bswap+set}" = set; then
6655 enableval="$enable_sim_bswap"
6656 case "${enableval}" in
6657 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6658 no) sim_bswap="-DWITH_BSWAP=0";;
6659 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6660 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6661 { (exit 1); exit 1; }; }; sim_bswap="";;
6663 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6664 echo "Setting bswap flags = $sim_bswap" 6>&1
6671 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6672 if test "${enable_sim_cflags+set}" = set; then
6673 enableval="$enable_sim_cflags"
6674 case "${enableval}" in
6675 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6676 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6677 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6678 { (exit 1); exit 1; }; }; sim_cflags="";;
6680 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6682 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6683 echo "Setting sim cflags = $sim_cflags" 6>&1
6690 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6691 if test "${enable_sim_debug+set}" = set; then
6692 enableval="$enable_sim_debug"
6693 case "${enableval}" in
6694 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6695 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6696 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6698 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6699 echo "Setting sim debug = $sim_debug" 6>&1
6706 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6707 if test "${enable_sim_stdio+set}" = set; then
6708 enableval="$enable_sim_stdio"
6709 case "${enableval}" in
6710 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6711 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6712 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6713 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6714 { (exit 1); exit 1; }; }; sim_stdio="";;
6716 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6717 echo "Setting stdio flags = $sim_stdio" 6>&1
6724 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6725 if test "${enable_sim_trace+set}" = set; then
6726 enableval="$enable_sim_trace"
6727 case "${enableval}" in
6728 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6729 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6731 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6734 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6735 if test x"$sim_trace" = x; then
6736 sim_trace="-DWITH_TRACE='(TRACE_$x"
6738 sim_trace="${sim_trace}|TRACE_$x"
6741 sim_trace="$sim_trace)'" ;;
6743 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6744 echo "Setting sim trace = $sim_trace" 6>&1
6751 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6752 if test "${enable_sim_profile+set}" = set; then
6753 enableval="$enable_sim_profile"
6754 case "${enableval}" in
6755 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6756 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6758 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6761 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6762 if test x"$sim_profile" = x; then
6763 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6765 sim_profile="${sim_profile}|PROFILE_$x"
6768 sim_profile="$sim_profile)'" ;;
6770 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6771 echo "Setting sim profile = $sim_profile" 6>&1
6774 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6778 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6779 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6780 if test "${ac_cv_type_signal+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 cat >conftest.$ac_ext <<_ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <sys/types.h>
6795 extern "C" void (*signal (int, void (*)(int)))(int);
6797 void (*signal ()) ();
6808 rm -f conftest.$ac_objext
6809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810 (eval $ac_compile) 2>conftest.er1
6812 grep -v '^ *+' conftest.er1 >conftest.err
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -z "$ac_c_werror_flag"
6818 || test ! -s conftest.err'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; } &&
6824 { ac_try='test -s conftest.$ac_objext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_type_signal=void
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 ac_cv_type_signal=int
6837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6839 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6840 echo "${ECHO_T}$ac_cv_type_signal" >&6
6842 cat >>confdefs.h <<_ACEOF
6843 #define RETSIGTYPE $ac_cv_type_signal
6853 sim_link_links=tconfig.h
6854 if test -f ${srcdir}/tconfig.in
6856 sim_link_files=tconfig.in
6858 sim_link_files=../common/tconfig.in
6861 # targ-vals.def points to the libc macro description file.
6863 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6865 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6866 sim_link_links="${sim_link_links} targ-vals.def"
6871 wire_endian="BIG_ENDIAN"
6873 # Check whether --enable-sim-endian or --disable-sim-endian was given.
6874 if test "${enable_sim_endian+set}" = set; then
6875 enableval="$enable_sim_endian"
6876 case "${enableval}" in
6877 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
6878 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
6879 yes) if test x"$wire_endian" != x; then
6880 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
6882 if test x"$default_endian" != x; then
6883 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
6885 echo "No hard-wired endian for target $target" 1>&6
6886 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
6889 no) if test x"$default_endian" != x; then
6890 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
6892 if test x"$wire_endian" != x; then
6893 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
6895 echo "No default endian for target $target" 1>&6
6896 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
6899 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
6900 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
6901 { (exit 1); exit 1; }; }; sim_endian="";;
6903 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
6904 echo "Setting endian flags = $sim_endian" 6>&1
6907 if test x"$default_endian" != x; then
6908 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
6910 if test x"$wire_endian" != x; then
6911 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
6917 wire_alignment="STRICT_ALIGNMENT"
6918 default_alignment=""
6920 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
6921 if test "${enable_sim_alignment+set}" = set; then
6922 enableval="$enable_sim_alignment"
6923 case "${enableval}" in
6924 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
6925 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
6926 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
6927 yes) if test x"$wire_alignment" != x; then
6928 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6930 if test x"$default_alignment" != x; then
6931 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
6933 echo "No hard-wired alignment for target $target" 1>&6
6934 sim_alignment="-DWITH_ALIGNMENT=0"
6937 no) if test x"$default_alignment" != x; then
6938 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6940 if test x"$wire_alignment" != x; then
6941 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
6943 echo "No default alignment for target $target" 1>&6
6944 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
6947 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
6948 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
6949 { (exit 1); exit 1; }; }; sim_alignment="";;
6951 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
6952 echo "Setting alignment flags = $sim_alignment" 6>&1
6955 if test x"$default_alignment" != x; then
6956 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6958 if test x"$wire_alignment" != x; then
6959 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6966 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
6967 if test "${enable_sim_hostendian+set}" = set; then
6968 enableval="$enable_sim_hostendian"
6969 case "${enableval}" in
6970 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6971 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6972 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6973 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
6974 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
6975 { (exit 1); exit 1; }; }; sim_hostendian="";;
6977 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6978 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6982 if test "x$cross_compiling" = "xno"; then
6983 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6984 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6985 if test "${ac_cv_c_bigendian+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 # See if sys/param.h defines the BYTE_ORDER macro.
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include <sys/types.h>
6996 #include <sys/param.h>
7001 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7009 rm -f conftest.$ac_objext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7013 grep -v '^ *+' conftest.er1 >conftest.err
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 # It does; now see whether it defined to BIG_ENDIAN or not.
7032 cat >conftest.$ac_ext <<_ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <sys/types.h>
7039 #include <sys/param.h>
7044 #if BYTE_ORDER != BIG_ENDIAN
7052 rm -f conftest.$ac_objext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7054 (eval $ac_compile) 2>conftest.er1
7056 grep -v '^ *+' conftest.er1 >conftest.err
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -z "$ac_c_werror_flag"
7062 || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_c_bigendian=yes
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_c_bigendian=no
7081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 # It does not; compile a test program.
7087 if test "$cross_compiling" = yes; then
7088 # try to guess the endianness by grepping values into an object file
7089 ac_cv_c_bigendian=unknown
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7097 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7098 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7099 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7100 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7101 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7105 _ascii (); _ebcdic ();
7110 rm -f conftest.$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112 (eval $ac_compile) 2>conftest.er1
7114 grep -v '^ *+' conftest.er1 >conftest.err
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try='test -s conftest.$ac_objext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7133 ac_cv_c_bigendian=yes
7135 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7136 if test "$ac_cv_c_bigendian" = unknown; then
7137 ac_cv_c_bigendian=no
7139 # finding both strings is unlikely to happen, but who knows?
7140 ac_cv_c_bigendian=unknown
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7159 /* Are we little or big endian? From Harbison&Steele. */
7163 char c[sizeof (long)];
7166 exit (u.c[sizeof (long) - 1] == 1);
7169 rm -f conftest$ac_exeext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7171 (eval $ac_link) 2>&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_cv_c_bigendian=no
7182 echo "$as_me: program exited with status $ac_status" >&5
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7187 ac_cv_c_bigendian=yes
7189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7194 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7195 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7196 case $ac_cv_c_bigendian in
7199 cat >>confdefs.h <<\_ACEOF
7200 #define WORDS_BIGENDIAN 1
7206 { { echo "$as_me:$LINENO: error: unknown endianness
7207 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7208 echo "$as_me: error: unknown endianness
7209 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7210 { (exit 1); exit 1; }; } ;;
7213 if test $ac_cv_c_bigendian = yes; then
7214 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7216 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7219 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7223 default_sim_scache="16384"
7224 # Check whether --enable-sim-scache or --disable-sim-scache was given.
7225 if test "${enable_sim_scache+set}" = set; then
7226 enableval="$enable_sim_scache"
7227 case "${enableval}" in
7228 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
7229 no) sim_scache="-DWITH_SCACHE=0" ;;
7230 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
7231 *) { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
7232 echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
7233 { (exit 1); exit 1; }; };
7236 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
7237 echo "Setting scache size = $sim_scache" 6>&1
7240 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
7244 default_sim_default_model="m32r/d"
7245 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
7246 if test "${enable_sim_default_model+set}" = set; then
7247 enableval="$enable_sim_default_model"
7248 case "${enableval}" in
7249 yes|no) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
7250 echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
7251 { (exit 1); exit 1; }; };;
7252 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
7254 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
7255 echo "Setting default model = $sim_default_model" 6>&1
7258 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
7262 # Check whether --enable-sim-environment or --disable-sim-environment was given.
7263 if test "${enable_sim_environment+set}" = set; then
7264 enableval="$enable_sim_environment"
7265 case "${enableval}" in
7266 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
7267 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
7268 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
7269 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
7270 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
7271 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
7272 { (exit 1); exit 1; }; };
7273 sim_environment="";;
7275 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
7276 echo "Setting sim environment = $sim_environment" 6>&1
7279 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
7282 default_sim_inline=""
7283 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7284 if test "${enable_sim_inline+set}" = set; then
7285 enableval="$enable_sim_inline"
7287 case "$enableval" in
7288 no) sim_inline="-DDEFAULT_INLINE=0";;
7289 0) sim_inline="-DDEFAULT_INLINE=0";;
7290 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
7291 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
7292 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
7295 *_INLINE=*) new_flag="-D$x";;
7296 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7297 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
7298 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
7300 if test x"$sim_inline" = x""; then
7301 sim_inline="$new_flag"
7303 sim_inline="$sim_inline $new_flag"
7307 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
7308 echo "Setting inline flags = $sim_inline" 6>&1
7312 if test "x$cross_compiling" = "xno"; then
7313 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
7314 sim_inline="${default_sim_inline}"
7315 if test x"$silent" != x"yes"; then
7316 echo "Setting inline flags = $sim_inline" 6>&1
7322 sim_inline="-DDEFAULT_INLINE=0"
7328 cgendir='$(srcdir)/../../cgen'
7329 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
7330 if test "${enable_cgen_maint+set}" = set; then
7331 enableval="$enable_cgen_maint"
7332 case "${enableval}" in
7333 yes) cgen_maint=yes ;;
7334 no) cgen_maint=no ;;
7336 # argument is cgen install directory (not implemented yet).
7337 # Having a `share' directory might be more appropriate for the .scm,
7339 cgendir=${cgen_maint}/lib/cgen
7343 fi; if test x${cgen_maint} != xno ; then
7353 case "${target_alias}" in
7355 traps_obj=traps-linux.o
7356 sim_extra_cflags="-DM32R_LINUX"
7360 sim_extra_cflags="-DM32R_ELF"
7368 ac_sources="$sim_link_files"
7369 ac_dests="$sim_link_links"
7370 while test -n "$ac_sources"; do
7371 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7372 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7373 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7375 ac_config_links="$ac_config_links $ac_config_links_1"
7378 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7379 cgen_breaks="break cgen_rtx_error";
7382 ac_config_files="$ac_config_files Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"
7383 ac_config_commands="$ac_config_commands default"
7384 cat >confcache <<\_ACEOF
7385 # This file is a shell script that caches the results of configure
7386 # tests run on this system so they can be shared between configure
7387 # scripts and configure runs, see configure's option --config-cache.
7388 # It is not useful on other systems. If it contains results you don't
7389 # want to keep, you may remove or edit it.
7391 # config.status only pays attention to the cache file if you give it
7392 # the --recheck option to rerun configure.
7394 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7395 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7400 # The following way of writing the cache mishandles newlines in values,
7401 # but we know of no workaround that is simple, portable, and efficient.
7402 # So, don't put newlines in cache variables' values.
7403 # Ultrix sh set writes to stderr and can't be redirected directly,
7404 # and sets the high bit in the cache file unless we assign to the vars.
7407 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7409 # `set' does not quote correctly, so add quotes (double-quote
7410 # substitution turns \\\\ into \\, and sed turns \\ into \).
7413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7416 # `set' quotes correctly as required by POSIX, so do not add quotes.
7418 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7427 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7429 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7430 if test -w $cache_file; then
7431 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7432 cat confcache >$cache_file
7434 echo "not updating unwritable cache $cache_file"
7439 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7440 # Let make expand exec_prefix.
7441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7443 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7444 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7445 # trailing colons and then remove the whole line if VPATH becomes empty
7446 # (actually we leave an empty line to preserve line numbers).
7447 if test "x$srcdir" = x.; then
7448 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7449 s/:*\$(srcdir):*/:/;
7450 s/:*\${srcdir}:*/:/;
7452 s/^\([^=]*=[ ]*\):*/\1/;
7458 DEFS=-DHAVE_CONFIG_H
7462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7463 # 1. Remove the extension, and $U if already installed.
7464 ac_i=`echo "$ac_i" |
7465 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7467 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7468 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7472 LTLIBOBJS=$ac_ltlibobjs
7476 : ${CONFIG_STATUS=./config.status}
7477 ac_clean_files_save=$ac_clean_files
7478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7479 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7480 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7481 cat >$CONFIG_STATUS <<_ACEOF
7483 # Generated by $as_me.
7484 # Run this file to recreate the current configuration.
7485 # Compiler output produced by configure, useful for debugging
7486 # configure, is in config.log if it exists.
7491 SHELL=\${CONFIG_SHELL-$SHELL}
7494 cat >>$CONFIG_STATUS <<\_ACEOF
7495 ## --------------------- ##
7496 ## M4sh Initialization. ##
7497 ## --------------------- ##
7499 # Be Bourne compatible
7500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7503 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7504 # is contrary to our usage. Disable this feature.
7505 alias -g '${1+"$@"}'='"$@"'
7506 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7509 DUALCASE=1; export DUALCASE # for MKS sh
7511 # Support unset when possible.
7512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7519 # Work around bugs in pre-3.0 UWIN ksh.
7520 $as_unset ENV MAIL MAILPATH
7527 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7528 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7529 LC_TELEPHONE LC_TIME
7531 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7532 eval $as_var=C; export $as_var
7538 # Required to use basename.
7539 if expr a : '\(a\)' >/dev/null 2>&1; then
7545 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7546 as_basename=basename
7552 # Name of the executable.
7553 as_me=`$as_basename "$0" ||
7554 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7555 X"$0" : 'X\(//\)$' \| \
7556 X"$0" : 'X\(/\)$' \| \
7557 . : '\(.\)' 2>/dev/null ||
7559 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7560 /^X\/\(\/\/\)$/{ s//\1/; q; }
7561 /^X\/\(\/\).*/{ s//\1/; q; }
7565 # PATH needs CR, and LINENO needs CR and PATH.
7566 # Avoid depending upon Character Ranges.
7567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7570 as_cr_digits='0123456789'
7571 as_cr_alnum=$as_cr_Letters$as_cr_digits
7573 # The user is always right.
7574 if test "${PATH_SEPARATOR+set}" != set; then
7575 echo "#! /bin/sh" >conf$$.sh
7576 echo "exit 0" >>conf$$.sh
7578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7589 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7590 test "x$as_lineno_1" != "x$as_lineno_2" &&
7591 test "x$as_lineno_3" = "x$as_lineno_2" || {
7592 # Find who we are. Look in the path if we contain no path at all
7595 *[\\/]* ) as_myself=$0 ;;
7596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7606 # We did not find ourselves, most probably we were run as `sh COMMAND'
7607 # in which case we are not to be found in the path.
7608 if test "x$as_myself" = x; then
7611 if test ! -f "$as_myself"; then
7612 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7613 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7614 { (exit 1); exit 1; }; }
7616 case $CONFIG_SHELL in
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7622 test -z "$as_dir" && as_dir=.
7623 for as_base in sh bash ksh sh5; do
7626 if ("$as_dir/$as_base" -c '
7629 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7630 test "x$as_lineno_1" != "x$as_lineno_2" &&
7631 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7632 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7633 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7634 CONFIG_SHELL=$as_dir/$as_base
7636 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7644 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7645 # uniformly replaced by the line number. The first 'sed' inserts a
7646 # line-number line before each line; the second 'sed' does the real
7647 # work. The second script uses 'N' to pair each line-number line
7648 # with the numbered line, and appends trailing '-' during
7649 # substitution so that $LINENO is not a special case at line end.
7650 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7651 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7652 sed '=' <$as_myself |
7657 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7660 s,^['$as_cr_digits']*\n,,
7662 chmod +x $as_me.lineno ||
7663 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7664 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7665 { (exit 1); exit 1; }; }
7667 # Don't try to exec as it changes $[0], causing all sort of problems
7668 # (the dirname of $[0] is not the place where we might find the
7669 # original and so on. Autoconf is especially sensible to this).
7671 # Exit status is that of the last command.
7676 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7677 *c*,-n*) ECHO_N= ECHO_C='
7679 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7680 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7683 if expr a : '\(a\)' >/dev/null 2>&1; then
7689 rm -f conf$$ conf$$.exe conf$$.file
7691 if ln -s conf$$.file conf$$ 2>/dev/null; then
7692 # We could just check for DJGPP; but this test a) works b) is more generic
7693 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7694 if test -f conf$$.exe; then
7695 # Don't use ln at all; we don't have any links
7700 elif ln conf$$.file conf$$ 2>/dev/null; then
7705 rm -f conf$$ conf$$.exe conf$$.file
7707 if mkdir -p . 2>/dev/null; then
7710 test -d ./-p && rmdir ./-p
7714 as_executable_p="test -f"
7716 # Sed expression to map a string onto a valid CPP name.
7717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7719 # Sed expression to map a string onto a valid variable name.
7720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7724 # We need space, tab and new line, in precisely that order.
7734 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7735 # report actual input values of CONFIG_FILES etc. instead of their
7736 # values after options handling. Logging --version etc. is OK.
7740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7741 ## Running $as_me. ##
7746 This file was extended by $as_me, which was
7747 generated by GNU Autoconf 2.59. Invocation command line was
7749 CONFIG_FILES = $CONFIG_FILES
7750 CONFIG_HEADERS = $CONFIG_HEADERS
7751 CONFIG_LINKS = $CONFIG_LINKS
7752 CONFIG_COMMANDS = $CONFIG_COMMANDS
7756 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7760 # Files that config.status was made for.
7761 if test -n "$ac_config_files"; then
7762 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7765 if test -n "$ac_config_headers"; then
7766 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7769 if test -n "$ac_config_links"; then
7770 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7773 if test -n "$ac_config_commands"; then
7774 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7777 cat >>$CONFIG_STATUS <<\_ACEOF
7780 \`$as_me' instantiates files from templates according to the
7781 current configuration.
7783 Usage: $0 [OPTIONS] [FILE]...
7785 -h, --help print this help, then exit
7786 -V, --version print version number, then exit
7787 -q, --quiet do not print progress messages
7788 -d, --debug don't remove temporary files
7789 --recheck update $as_me by reconfiguring in the same conditions
7790 --file=FILE[:TEMPLATE]
7791 instantiate the configuration file FILE
7792 --header=FILE[:TEMPLATE]
7793 instantiate the configuration header FILE
7795 Configuration files:
7798 Configuration headers:
7801 Configuration links:
7804 Configuration commands:
7807 Report bugs to <bug-autoconf@gnu.org>."
7810 cat >>$CONFIG_STATUS <<_ACEOF
7813 configured by $0, generated by GNU Autoconf 2.59,
7814 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7816 Copyright (C) 2003 Free Software Foundation, Inc.
7817 This config.status script is free software; the Free Software Foundation
7818 gives unlimited permission to copy, distribute and modify it."
7823 cat >>$CONFIG_STATUS <<\_ACEOF
7824 # If no file are specified by the user, then we need to provide default
7825 # value. By we need to know if files were specified by the user.
7831 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7832 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7840 *) # This is not an option, so the user has probably given explicit
7843 ac_need_defaults=false;;
7847 # Handling of the options.
7849 cat >>$CONFIG_STATUS <<\_ACEOF
7850 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7852 --version | --vers* | -V )
7853 echo "$ac_cs_version"; exit 0 ;;
7855 # Conflict between --help and --header
7856 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7857 Try \`$0 --help' for more information." >&5
7858 echo "$as_me: error: ambiguous option: $1
7859 Try \`$0 --help' for more information." >&2;}
7860 { (exit 1); exit 1; }; };;
7861 --help | --hel | -h )
7862 echo "$ac_cs_usage"; exit 0 ;;
7863 --debug | --d* | -d )
7865 --file | --fil | --fi | --f )
7867 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7868 ac_need_defaults=false;;
7869 --header | --heade | --head | --hea )
7871 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7872 ac_need_defaults=false;;
7873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7874 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7878 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7879 Try \`$0 --help' for more information." >&5
7880 echo "$as_me: error: unrecognized option: $1
7881 Try \`$0 --help' for more information." >&2;}
7882 { (exit 1); exit 1; }; } ;;
7884 *) ac_config_targets="$ac_config_targets $1" ;;
7890 ac_configure_extra_args=
7892 if $ac_cs_silent; then
7894 ac_configure_extra_args="$ac_configure_extra_args --silent"
7898 cat >>$CONFIG_STATUS <<_ACEOF
7899 if \$ac_cs_recheck; then
7900 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7901 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7910 cat >>$CONFIG_STATUS <<\_ACEOF
7911 for ac_config_target in $ac_config_targets
7913 case "$ac_config_target" in
7914 # Handling of arguments.
7915 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
7916 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
7917 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
7918 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
7919 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7920 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7921 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7922 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7923 { (exit 1); exit 1; }; };;
7927 # If the user did not use the arguments to specify the items to instantiate,
7928 # then the envvar interface is used. Set only those that are not.
7929 # We use the long form for the default assignment because of an extremely
7930 # bizarre bug on SunOS 4.1.3.
7931 if $ac_need_defaults; then
7932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7934 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7935 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7938 # Have a temporary directory for convenience. Make it in the build tree
7939 # simply because there is no reason to put it here, and in addition,
7940 # creating and moving files from /tmp can sometimes cause problems.
7941 # Create a temporary directory, and hook for its removal unless debugging.
7944 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7945 trap '{ (exit 1); exit 1; }' 1 2 13 15
7948 # Create a (secure) tmp directory for tmp files.
7951 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7952 test -n "$tmp" && test -d "$tmp"
7955 tmp=./confstat$$-$RANDOM
7956 (umask 077 && mkdir $tmp)
7959 echo "$me: cannot create a temporary directory in ." >&2
7960 { (exit 1); exit 1; }
7965 cat >>$CONFIG_STATUS <<_ACEOF
7968 # CONFIG_FILES section.
7971 # No need to generate the scripts if there are no CONFIG_FILES.
7972 # This happens for instance when ./config.status config.h
7973 if test -n "\$CONFIG_FILES"; then
7974 # Protect against being on the right side of a sed subst in config.status.
7975 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7976 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7977 s,@sim_environment@,$sim_environment,;t t
7978 s,@sim_alignment@,$sim_alignment,;t t
7979 s,@sim_assert@,$sim_assert,;t t
7980 s,@sim_bitsize@,$sim_bitsize,;t t
7981 s,@sim_endian@,$sim_endian,;t t
7982 s,@sim_hostendian@,$sim_hostendian,;t t
7983 s,@sim_float@,$sim_float,;t t
7984 s,@sim_scache@,$sim_scache,;t t
7985 s,@sim_default_model@,$sim_default_model,;t t
7986 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7987 s,@sim_hw_objs@,$sim_hw_objs,;t t
7988 s,@sim_hw@,$sim_hw,;t t
7989 s,@sim_inline@,$sim_inline,;t t
7990 s,@sim_packages@,$sim_packages,;t t
7991 s,@sim_regparm@,$sim_regparm,;t t
7992 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7993 s,@sim_smp@,$sim_smp,;t t
7994 s,@sim_stdcall@,$sim_stdcall,;t t
7995 s,@sim_xor_endian@,$sim_xor_endian,;t t
7996 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7997 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7998 s,@SHELL@,$SHELL,;t t
7999 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8000 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8001 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8002 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8003 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8004 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8005 s,@exec_prefix@,$exec_prefix,;t t
8006 s,@prefix@,$prefix,;t t
8007 s,@program_transform_name@,$program_transform_name,;t t
8008 s,@bindir@,$bindir,;t t
8009 s,@sbindir@,$sbindir,;t t
8010 s,@libexecdir@,$libexecdir,;t t
8011 s,@datadir@,$datadir,;t t
8012 s,@sysconfdir@,$sysconfdir,;t t
8013 s,@sharedstatedir@,$sharedstatedir,;t t
8014 s,@localstatedir@,$localstatedir,;t t
8015 s,@libdir@,$libdir,;t t
8016 s,@includedir@,$includedir,;t t
8017 s,@oldincludedir@,$oldincludedir,;t t
8018 s,@infodir@,$infodir,;t t
8019 s,@mandir@,$mandir,;t t
8020 s,@build_alias@,$build_alias,;t t
8021 s,@host_alias@,$host_alias,;t t
8022 s,@target_alias@,$target_alias,;t t
8024 s,@ECHO_C@,$ECHO_C,;t t
8025 s,@ECHO_N@,$ECHO_N,;t t
8026 s,@ECHO_T@,$ECHO_T,;t t
8028 s,@build@,$build,;t t
8029 s,@build_cpu@,$build_cpu,;t t
8030 s,@build_vendor@,$build_vendor,;t t
8031 s,@build_os@,$build_os,;t t
8033 s,@host_cpu@,$host_cpu,;t t
8034 s,@host_vendor@,$host_vendor,;t t
8035 s,@host_os@,$host_os,;t t
8036 s,@target@,$target,;t t
8037 s,@target_cpu@,$target_cpu,;t t
8038 s,@target_vendor@,$target_vendor,;t t
8039 s,@target_os@,$target_os,;t t
8041 s,@CFLAGS@,$CFLAGS,;t t
8042 s,@LDFLAGS@,$LDFLAGS,;t t
8043 s,@CPPFLAGS@,$CPPFLAGS,;t t
8044 s,@ac_ct_CC@,$ac_ct_CC,;t t
8045 s,@EXEEXT@,$EXEEXT,;t t
8046 s,@OBJEXT@,$OBJEXT,;t t
8047 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8048 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8049 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8050 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8051 s,@HDEFINES@,$HDEFINES,;t t
8053 s,@RANLIB@,$RANLIB,;t t
8054 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8055 s,@SET_MAKE@,$SET_MAKE,;t t
8057 s,@EGREP@,$EGREP,;t t
8058 s,@ALLOCA@,$ALLOCA,;t t
8059 s,@USE_NLS@,$USE_NLS,;t t
8060 s,@MSGFMT@,$MSGFMT,;t t
8061 s,@GMSGFMT@,$GMSGFMT,;t t
8062 s,@XGETTEXT@,$XGETTEXT,;t t
8063 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8064 s,@CATALOGS@,$CATALOGS,;t t
8065 s,@CATOBJEXT@,$CATOBJEXT,;t t
8066 s,@DATADIRNAME@,$DATADIRNAME,;t t
8067 s,@GMOFILES@,$GMOFILES,;t t
8068 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8069 s,@INTLDEPS@,$INTLDEPS,;t t
8070 s,@INTLLIBS@,$INTLLIBS,;t t
8071 s,@INTLOBJS@,$INTLOBJS,;t t
8072 s,@POFILES@,$POFILES,;t t
8073 s,@POSUB@,$POSUB,;t t
8074 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8075 s,@GT_NO@,$GT_NO,;t t
8076 s,@GT_YES@,$GT_YES,;t t
8077 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8079 s,@MAINT@,$MAINT,;t t
8080 s,@sim_bswap@,$sim_bswap,;t t
8081 s,@sim_cflags@,$sim_cflags,;t t
8082 s,@sim_debug@,$sim_debug,;t t
8083 s,@sim_stdio@,$sim_stdio,;t t
8084 s,@sim_trace@,$sim_trace,;t t
8085 s,@sim_profile@,$sim_profile,;t t
8086 s,@CGEN_MAINT@,$CGEN_MAINT,;t t
8087 s,@cgendir@,$cgendir,;t t
8089 s,@traps_obj@,$traps_obj,;t t
8090 s,@sim_extra_cflags@,$sim_extra_cflags,;t t
8091 s,@cgen_breaks@,$cgen_breaks,;t t
8092 s,@LIBOBJS@,$LIBOBJS,;t t
8093 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8098 cat >>$CONFIG_STATUS <<\_ACEOF
8099 # Split the substitutions into bite-sized pieces for seds with
8100 # small command number limits, like on Digital OSF/1 and HP-UX.
8102 ac_sed_frag=1 # Number of current file.
8103 ac_beg=1 # First line for current file.
8104 ac_end=$ac_max_sed_lines # Line after last line for current file.
8107 while $ac_more_lines; do
8108 if test $ac_beg -gt 1; then
8109 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8111 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8113 if test ! -s $tmp/subs.frag; then
8116 # The purpose of the label and of the branching condition is to
8117 # speed up the sed processing (if there are no `@' at all, there
8118 # is no need to browse any of the substitutions).
8119 # These are the two extra sed commands mentioned above.
8121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8122 if test -z "$ac_sed_cmds"; then
8123 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8125 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8127 ac_sed_frag=`expr $ac_sed_frag + 1`
8129 ac_end=`expr $ac_end + $ac_max_sed_lines`
8132 if test -z "$ac_sed_cmds"; then
8135 fi # test -n "$CONFIG_FILES"
8138 cat >>$CONFIG_STATUS <<\_ACEOF
8139 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8140 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8142 - | *:- | *:-:* ) # input from stdin
8144 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8145 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8146 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8147 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8148 * ) ac_file_in=$ac_file.in ;;
8151 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8152 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8153 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8154 X"$ac_file" : 'X\(//\)[^/]' \| \
8155 X"$ac_file" : 'X\(//\)$' \| \
8156 X"$ac_file" : 'X\(/\)' \| \
8157 . : '\(.\)' 2>/dev/null ||
8159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8161 /^X\(\/\/\)$/{ s//\1/; q; }
8162 /^X\(\/\).*/{ s//\1/; q; }
8164 { if $as_mkdir_p; then
8169 while test ! -d "$as_dir"; do
8170 as_dirs="$as_dir $as_dirs"
8171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8173 X"$as_dir" : 'X\(//\)[^/]' \| \
8174 X"$as_dir" : 'X\(//\)$' \| \
8175 X"$as_dir" : 'X\(/\)' \| \
8176 . : '\(.\)' 2>/dev/null ||
8178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8180 /^X\(\/\/\)$/{ s//\1/; q; }
8181 /^X\(\/\).*/{ s//\1/; q; }
8184 test ! -n "$as_dirs" || mkdir $as_dirs
8185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8186 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8187 { (exit 1); exit 1; }; }; }
8191 if test "$ac_dir" != .; then
8192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8193 # A "../" for each directory in $ac_dir_suffix.
8194 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8196 ac_dir_suffix= ac_top_builddir=
8200 .) # No --srcdir option. We are building in place.
8202 if test -z "$ac_top_builddir"; then
8205 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8207 [\\/]* | ?:[\\/]* ) # Absolute path.
8208 ac_srcdir=$srcdir$ac_dir_suffix;
8209 ac_top_srcdir=$srcdir ;;
8211 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8212 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8215 # Do not use `cd foo && pwd` to compute absolute paths, because
8216 # the directories may not exist.
8218 .) ac_abs_builddir="$ac_dir";;
8221 .) ac_abs_builddir=`pwd`;;
8222 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8223 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8226 case $ac_abs_builddir in
8227 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8229 case ${ac_top_builddir}. in
8230 .) ac_abs_top_builddir=$ac_abs_builddir;;
8231 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8232 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8235 case $ac_abs_builddir in
8236 .) ac_abs_srcdir=$ac_srcdir;;
8239 .) ac_abs_srcdir=$ac_abs_builddir;;
8240 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8241 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8244 case $ac_abs_builddir in
8245 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8247 case $ac_top_srcdir in
8248 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8249 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8250 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8256 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8257 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8260 if test x"$ac_file" != x-; then
8261 { echo "$as_me:$LINENO: creating $ac_file" >&5
8262 echo "$as_me: creating $ac_file" >&6;}
8265 # Let's still pretend it is `configure' which instantiates (i.e., don't
8266 # use $as_me), people would be surprised to read:
8267 # /* config.h. Generated by config.status. */
8268 if test x"$ac_file" = x-; then
8271 configure_input="$ac_file. "
8273 configure_input=$configure_input"Generated from `echo $ac_file_in |
8274 sed 's,.*/,,'` by configure."
8276 # First look for the input files in the build tree, otherwise in the
8278 ac_file_inputs=`IFS=:
8279 for f in $ac_file_in; do
8281 -) echo $tmp/stdin ;;
8283 # Absolute (can't be DOS-style, as IFS=:)
8284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8285 echo "$as_me: error: cannot find input file: $f" >&2;}
8286 { (exit 1); exit 1; }; }
8289 if test -f "$f"; then
8292 elif test -f "$srcdir/$f"; then
8297 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8298 echo "$as_me: error: cannot find input file: $f" >&2;}
8299 { (exit 1); exit 1; }; }
8302 done` || { (exit 1); exit 1; }
8304 cat >>$CONFIG_STATUS <<_ACEOF
8308 cat >>$CONFIG_STATUS <<\_ACEOF
8310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8311 s,@configure_input@,$configure_input,;t t
8312 s,@srcdir@,$ac_srcdir,;t t
8313 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8314 s,@top_srcdir@,$ac_top_srcdir,;t t
8315 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8316 s,@builddir@,$ac_builddir,;t t
8317 s,@abs_builddir@,$ac_abs_builddir,;t t
8318 s,@top_builddir@,$ac_top_builddir,;t t
8319 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8320 s,@INSTALL@,$ac_INSTALL,;t t
8321 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8323 if test x"$ac_file" != x-; then
8324 mv $tmp/out $ac_file
8332 cat >>$CONFIG_STATUS <<\_ACEOF
8335 # CONFIG_HEADER section.
8338 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8339 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8341 # ac_d sets the value in "#define NAME VALUE" lines.
8342 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8343 ac_dB='[ ].*$,\1#\2'
8346 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8347 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8348 ac_uB='$,\1#\2define\3'
8352 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8355 - | *:- | *:-:* ) # input from stdin
8357 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8358 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8359 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8361 * ) ac_file_in=$ac_file.in ;;
8364 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8365 echo "$as_me: creating $ac_file" >&6;}
8367 # First look for the input files in the build tree, otherwise in the
8369 ac_file_inputs=`IFS=:
8370 for f in $ac_file_in; do
8372 -) echo $tmp/stdin ;;
8374 # Absolute (can't be DOS-style, as IFS=:)
8375 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8376 echo "$as_me: error: cannot find input file: $f" >&2;}
8377 { (exit 1); exit 1; }; }
8378 # Do quote $f, to prevent DOS paths from being IFS'd.
8381 if test -f "$f"; then
8384 elif test -f "$srcdir/$f"; then
8389 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8390 echo "$as_me: error: cannot find input file: $f" >&2;}
8391 { (exit 1); exit 1; }; }
8394 done` || { (exit 1); exit 1; }
8395 # Remove the trailing spaces.
8396 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8400 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8401 # `conftest.undefs', that substitutes the proper values into
8402 # config.h.in to produce config.h. The first handles `#define'
8403 # templates, and the second `#undef' templates.
8404 # And first: Protect against being on the right side of a sed subst in
8405 # config.status. Protect against being in an unquoted here document
8407 rm -f conftest.defines conftest.undefs
8408 # Using a here document instead of a string reduces the quoting nightmare.
8409 # Putting comments in sed scripts is not portable.
8411 # `end' is used to avoid that the second main sed command (meant for
8412 # 0-ary CPP macros) applies to n-ary macro definitions.
8413 # See the Autoconf documentation for `clear'.
8414 cat >confdef2sed.sed <<\_ACEOF
8419 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8421 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8424 # If some macros were called several times there might be several times
8425 # the same #defines, which is useless. Nevertheless, we may not want to
8426 # sort them, since we want the *last* AC-DEFINE to be honored.
8427 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8428 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8429 rm -f confdef2sed.sed
8431 # This sed command replaces #undef with comments. This is necessary, for
8432 # example, in the case of _POSIX_SOURCE, which is predefined and required
8433 # on some systems where configure will not decide to define it.
8434 cat >>conftest.undefs <<\_ACEOF
8435 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8438 # Break up conftest.defines because some shells have a limit on the size
8439 # of here documents, and old seds have small limits too (100 cmds).
8440 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8441 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8442 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8443 echo ' :' >>$CONFIG_STATUS
8445 while grep . conftest.defines >/dev/null
8447 # Write a limited-size here document to $tmp/defines.sed.
8448 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8449 # Speed up: don't consider the non `#define' lines.
8450 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8451 # Work around the forget-to-reset-the-flag bug.
8452 echo 't clr' >>$CONFIG_STATUS
8453 echo ': clr' >>$CONFIG_STATUS
8454 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8456 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8460 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8461 rm -f conftest.defines
8462 mv conftest.tail conftest.defines
8464 rm -f conftest.defines
8465 echo ' fi # grep' >>$CONFIG_STATUS
8466 echo >>$CONFIG_STATUS
8468 # Break up conftest.undefs because some shells have a limit on the size
8469 # of here documents, and old seds have small limits too (100 cmds).
8470 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8472 while grep . conftest.undefs >/dev/null
8474 # Write a limited-size here document to $tmp/undefs.sed.
8475 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8476 # Speed up: don't consider the non `#undef'
8477 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8478 # Work around the forget-to-reset-the-flag bug.
8479 echo 't clr' >>$CONFIG_STATUS
8480 echo ': clr' >>$CONFIG_STATUS
8481 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8483 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8487 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8488 rm -f conftest.undefs
8489 mv conftest.tail conftest.undefs
8491 rm -f conftest.undefs
8493 cat >>$CONFIG_STATUS <<\_ACEOF
8494 # Let's still pretend it is `configure' which instantiates (i.e., don't
8495 # use $as_me), people would be surprised to read:
8496 # /* config.h. Generated by config.status. */
8497 if test x"$ac_file" = x-; then
8498 echo "/* Generated by configure. */" >$tmp/config.h
8500 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8502 cat $tmp/in >>$tmp/config.h
8504 if test x"$ac_file" != x-; then
8505 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8506 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8507 echo "$as_me: $ac_file is unchanged" >&6;}
8509 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8511 X"$ac_file" : 'X\(//\)[^/]' \| \
8512 X"$ac_file" : 'X\(//\)$' \| \
8513 X"$ac_file" : 'X\(/\)' \| \
8514 . : '\(.\)' 2>/dev/null ||
8516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8518 /^X\(\/\/\)$/{ s//\1/; q; }
8519 /^X\(\/\).*/{ s//\1/; q; }
8521 { if $as_mkdir_p; then
8526 while test ! -d "$as_dir"; do
8527 as_dirs="$as_dir $as_dirs"
8528 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8530 X"$as_dir" : 'X\(//\)[^/]' \| \
8531 X"$as_dir" : 'X\(//\)$' \| \
8532 X"$as_dir" : 'X\(/\)' \| \
8533 . : '\(.\)' 2>/dev/null ||
8535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8537 /^X\(\/\/\)$/{ s//\1/; q; }
8538 /^X\(\/\).*/{ s//\1/; q; }
8541 test ! -n "$as_dirs" || mkdir $as_dirs
8542 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8543 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8544 { (exit 1); exit 1; }; }; }
8547 mv $tmp/config.h $ac_file
8555 cat >>$CONFIG_STATUS <<\_ACEOF
8558 # CONFIG_LINKS section.
8561 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8562 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8563 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8565 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8566 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8568 if test ! -r $srcdir/$ac_source; then
8569 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8570 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8571 { (exit 1); exit 1; }; }
8575 # Make relative symlinks.
8576 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8577 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8578 X"$ac_dest" : 'X\(//\)[^/]' \| \
8579 X"$ac_dest" : 'X\(//\)$' \| \
8580 X"$ac_dest" : 'X\(/\)' \| \
8581 . : '\(.\)' 2>/dev/null ||
8583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8585 /^X\(\/\/\)$/{ s//\1/; q; }
8586 /^X\(\/\).*/{ s//\1/; q; }
8588 { if $as_mkdir_p; then
8589 mkdir -p "$ac_dest_dir"
8591 as_dir="$ac_dest_dir"
8593 while test ! -d "$as_dir"; do
8594 as_dirs="$as_dir $as_dirs"
8595 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8597 X"$as_dir" : 'X\(//\)[^/]' \| \
8598 X"$as_dir" : 'X\(//\)$' \| \
8599 X"$as_dir" : 'X\(/\)' \| \
8600 . : '\(.\)' 2>/dev/null ||
8602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8604 /^X\(\/\/\)$/{ s//\1/; q; }
8605 /^X\(\/\).*/{ s//\1/; q; }
8608 test ! -n "$as_dirs" || mkdir $as_dirs
8609 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8610 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8611 { (exit 1); exit 1; }; }; }
8615 if test "$ac_dest_dir" != .; then
8616 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8617 # A "../" for each directory in $ac_dir_suffix.
8618 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8620 ac_dir_suffix= ac_top_builddir=
8624 .) # No --srcdir option. We are building in place.
8626 if test -z "$ac_top_builddir"; then
8629 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8631 [\\/]* | ?:[\\/]* ) # Absolute path.
8632 ac_srcdir=$srcdir$ac_dir_suffix;
8633 ac_top_srcdir=$srcdir ;;
8635 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8636 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8639 # Do not use `cd foo && pwd` to compute absolute paths, because
8640 # the directories may not exist.
8642 .) ac_abs_builddir="$ac_dest_dir";;
8644 case "$ac_dest_dir" in
8645 .) ac_abs_builddir=`pwd`;;
8646 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8647 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8650 case $ac_abs_builddir in
8651 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8653 case ${ac_top_builddir}. in
8654 .) ac_abs_top_builddir=$ac_abs_builddir;;
8655 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8656 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8659 case $ac_abs_builddir in
8660 .) ac_abs_srcdir=$ac_srcdir;;
8663 .) ac_abs_srcdir=$ac_abs_builddir;;
8664 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8665 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8668 case $ac_abs_builddir in
8669 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8671 case $ac_top_srcdir in
8672 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8673 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8674 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8680 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8681 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8684 # Try a symlink, then a hard link, then a copy.
8685 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8686 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8687 cp -p $srcdir/$ac_source $ac_dest ||
8688 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8689 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8690 { (exit 1); exit 1; }; }
8693 cat >>$CONFIG_STATUS <<\_ACEOF
8696 # CONFIG_COMMANDS section.
8698 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8699 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8700 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8701 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8702 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8703 X"$ac_dest" : 'X\(//\)[^/]' \| \
8704 X"$ac_dest" : 'X\(//\)$' \| \
8705 X"$ac_dest" : 'X\(/\)' \| \
8706 . : '\(.\)' 2>/dev/null ||
8708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8710 /^X\(\/\/\)$/{ s//\1/; q; }
8711 /^X\(\/\).*/{ s//\1/; q; }
8713 { if $as_mkdir_p; then
8718 while test ! -d "$as_dir"; do
8719 as_dirs="$as_dir $as_dirs"
8720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8722 X"$as_dir" : 'X\(//\)[^/]' \| \
8723 X"$as_dir" : 'X\(//\)$' \| \
8724 X"$as_dir" : 'X\(/\)' \| \
8725 . : '\(.\)' 2>/dev/null ||
8727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8729 /^X\(\/\/\)$/{ s//\1/; q; }
8730 /^X\(\/\).*/{ s//\1/; q; }
8733 test ! -n "$as_dirs" || mkdir $as_dirs
8734 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8735 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8736 { (exit 1); exit 1; }; }; }
8740 if test "$ac_dir" != .; then
8741 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8742 # A "../" for each directory in $ac_dir_suffix.
8743 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8745 ac_dir_suffix= ac_top_builddir=
8749 .) # No --srcdir option. We are building in place.
8751 if test -z "$ac_top_builddir"; then
8754 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8756 [\\/]* | ?:[\\/]* ) # Absolute path.
8757 ac_srcdir=$srcdir$ac_dir_suffix;
8758 ac_top_srcdir=$srcdir ;;
8760 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8761 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8764 # Do not use `cd foo && pwd` to compute absolute paths, because
8765 # the directories may not exist.
8767 .) ac_abs_builddir="$ac_dir";;
8770 .) ac_abs_builddir=`pwd`;;
8771 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8772 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8775 case $ac_abs_builddir in
8776 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8778 case ${ac_top_builddir}. in
8779 .) ac_abs_top_builddir=$ac_abs_builddir;;
8780 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8781 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8784 case $ac_abs_builddir in
8785 .) ac_abs_srcdir=$ac_srcdir;;
8788 .) ac_abs_srcdir=$ac_abs_builddir;;
8789 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8790 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8793 case $ac_abs_builddir in
8794 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8796 case $ac_top_srcdir in
8797 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8798 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8799 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8804 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8805 echo "$as_me: executing $ac_dest commands" >&6;}
8807 default ) case "x$CONFIG_FILES" in
8809 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8810 rm -f Makesim1.tmp Makesim2.tmp Makefile
8811 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
8812 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
8813 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8814 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8815 <Makefile.sim >Makefile
8816 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8819 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
8825 cat >>$CONFIG_STATUS <<\_ACEOF
8827 { (exit 0); exit 0; }
8829 chmod +x $CONFIG_STATUS
8830 ac_clean_files=$ac_clean_files_save
8833 # configure is writing to config.log, and then calls config.status.
8834 # config.status does its own redirection, appending to config.log.
8835 # Unfortunately, on DOS this fails, as config.log is still kept open
8836 # by configure, so config.status won't be able to write to it; its
8837 # output is simply discarded. So we exec the FD to /dev/null,
8838 # effectively closing config.log, so it can be properly (re)opened and
8839 # appended to by config.status. When coming back to configure, we
8840 # need to make the FD available again.
8841 if test "$no_create" != yes; then
8843 ac_config_status_args=
8844 test "$silent" = yes &&
8845 ac_config_status_args="$ac_config_status_args --quiet"
8847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8850 # would make configure fail if this is the last instruction.
8851 $ac_cs_success || { (exit 1); exit 1; }