2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile CGEN_MAINT cgendir cgen cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
862 --enable-sim-hostendian=end Specify host byte endian orientation.
863 --enable-sim-scache=size Specify simulator execution cache size.
864 --enable-build-warnings Enable build-time compiler warnings if gcc is used
865 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
866 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
867 --enable-sim-default-model=model Specify default model to simulate.
868 --enable-sim-environment=environment Specify mixed, user, virtual or operating environment.
869 --enable-sim-inline=inlines Specify which functions should be inlined.
870 --enable-cgen-maint=DIR build cgen generated files
873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
875 --with-included-gettext use the GNU gettext library included here
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 ac_dir_suffix= ac_top_builddir=
908 .) # No --srcdir option. We are building in place.
910 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Do not use `cd foo && pwd` to compute absolute paths, because
924 # the directories may not exist.
926 .) ac_abs_builddir="$ac_dir";;
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 case $ac_abs_builddir in
935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 case $ac_abs_builddir in
944 .) ac_abs_srcdir=$ac_srcdir;;
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 case $ac_abs_builddir in
953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981 test -n "$ac_init_help" && exit 0
982 if $ac_init_version; then
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_must_keep_next=false
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 -* ) ac_must_keep_next=true ;;
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1114 # The following way of writing the cache mishandles newlines in values,
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -n "$ac_subst_files"; then
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1159 if test -s confdefs.h; then
1166 sed "/^$/d" confdefs.h | sort
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1249 # Check that the precious variables saved in the cache have kept the same
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1324 ac_config_headers="$ac_config_headers config.h:config.in"
1327 # This file contains common code used by all simulators.
1329 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1330 # directory. It is intended to be invoked before any target specific stuff.
1331 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1332 # It is intended to be invoked last.
1334 # The simulator's configure.in should look like:
1336 # dnl Process this file with autoconf to produce a configure script.
1337 # sinclude(../common/aclocal.m4)
1339 # AC_INIT(Makefile.in)
1343 # ... target specific stuff ...
1394 sim_inline="-DDEFAULT_INLINE=0"
1431 # This file is derived from `gettext.m4'. The difference is that the
1432 # included macros assume Cygnus-style source and build trees.
1434 # Macro to add for using GNU gettext.
1435 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1437 # This file file be copied and used freely without restrictions. It can
1438 # be used in projects which are not available under the GNU Public License
1439 # but which still want to provide support for the GNU gettext functionality.
1440 # Please note that the actual code is *not* freely available.
1448 # Search path for a program which passes the given test.
1449 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1451 # This file file be copied and used freely without restrictions. It can
1452 # be used in projects which are not available under the GNU Public License
1453 # but which still want to provide support for the GNU gettext functionality.
1454 # Please note that the actual code is *not* freely available.
1460 # Check whether LC_MESSAGES is available in <locale.h>.
1461 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1463 # This file file be copied and used freely without restrictions. It can
1464 # be used in projects which are not available under the GNU Public License
1465 # but which still want to provide support for the GNU gettext functionality.
1466 # Please note that the actual code is *not* freely available.
1476 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1477 # it by inlining the macro's contents.
1478 # This file contains common code used by all simulators.
1480 # common.m4 invokes AC macros used by all simulators and by the common
1481 # directory. It is intended to be included before any target specific
1482 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1483 # the Makefile. It is intended to be invoked last.
1485 # The simulator's configure.in should look like:
1487 # dnl Process this file with autoconf to produce a configure script.
1489 # AC_INIT(Makefile.in)
1490 # AC_CONFIG_HEADER(config.h:config.in)
1492 # sinclude(../common/aclocal.m4)
1493 # sinclude(../common/common.m4)
1495 # ... target specific stuff ...
1498 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1499 if test -f $ac_dir/install-sh; then
1501 ac_install_sh="$ac_aux_dir/install-sh -c"
1503 elif test -f $ac_dir/install.sh; then
1505 ac_install_sh="$ac_aux_dir/install.sh -c"
1507 elif test -f $ac_dir/shtool; then
1509 ac_install_sh="$ac_aux_dir/shtool install -c"
1513 if test -z "$ac_aux_dir"; then
1514 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1515 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1516 { (exit 1); exit 1; }; }
1518 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1519 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1520 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1522 # Make sure we can run config.sub.
1523 $ac_config_sub sun4 >/dev/null 2>&1 ||
1524 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1525 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1526 { (exit 1); exit 1; }; }
1528 echo "$as_me:$LINENO: checking build system type" >&5
1529 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1530 if test "${ac_cv_build+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 ac_cv_build_alias=$build_alias
1534 test -z "$ac_cv_build_alias" &&
1535 ac_cv_build_alias=`$ac_config_guess`
1536 test -z "$ac_cv_build_alias" &&
1537 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1538 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1539 { (exit 1); exit 1; }; }
1540 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1541 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1542 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1543 { (exit 1); exit 1; }; }
1546 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1547 echo "${ECHO_T}$ac_cv_build" >&6
1549 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554 echo "$as_me:$LINENO: checking host system type" >&5
1555 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1556 if test "${ac_cv_host+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 ac_cv_host_alias=$host_alias
1560 test -z "$ac_cv_host_alias" &&
1561 ac_cv_host_alias=$ac_cv_build_alias
1562 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1564 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1568 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1569 echo "${ECHO_T}$ac_cv_host" >&6
1571 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576 echo "$as_me:$LINENO: checking target system type" >&5
1577 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1578 if test "${ac_cv_target+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 ac_cv_target_alias=$target_alias
1582 test "x$ac_cv_target_alias" = "x" &&
1583 ac_cv_target_alias=$ac_cv_host_alias
1584 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1586 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1591 echo "${ECHO_T}$ac_cv_target" >&6
1592 target=$ac_cv_target
1593 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598 # The aliases save the names the user supplied, while $host etc.
1599 # will get canonicalized.
1600 test -n "$target_alias" &&
1601 test "$program_prefix$program_suffix$program_transform_name" = \
1603 program_prefix=${target_alias}-
1604 test "$program_prefix" != NONE &&
1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1606 # Use a double $ so make ignores it.
1607 test "$program_suffix" != NONE &&
1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1609 # Double any \ or $. echo might interpret backslashes.
1610 # By default was `s,x,x', remove it if useless.
1611 cat <<\_ACEOF >conftest.sed
1612 s/[\\$]/&&/g;s/;s,x,x,$//
1614 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1618 ac_cpp='$CPP $CPPFLAGS'
1619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1622 if test -n "$ac_tool_prefix"; then
1623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC="$CC" # Let the user override the test.
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 if test -n "$CC"; then
1651 echo "$as_me:$LINENO: result: $CC" >&5
1652 echo "${ECHO_T}$CC" >&6
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1659 if test -z "$ac_cv_prog_CC"; then
1661 # Extract the first word of "gcc", so it can be a program name with args.
1662 set dummy gcc; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$ac_ct_CC"; then
1669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_ac_ct_CC="gcc"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1688 if test -n "$ac_ct_CC"; then
1689 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1690 echo "${ECHO_T}$ac_ct_CC" >&6
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1701 if test -z "$CC"; then
1702 if test -n "$ac_tool_prefix"; then
1703 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1704 set dummy ${ac_tool_prefix}cc; ac_word=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 if test -n "$CC"; then
1711 ac_cv_prog_CC="$CC" # Let the user override the test.
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir=.
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720 ac_cv_prog_CC="${ac_tool_prefix}cc"
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 if test -n "$CC"; then
1731 echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1739 if test -z "$ac_cv_prog_CC"; then
1741 # Extract the first word of "cc", so it can be a program name with args.
1742 set dummy cc; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$ac_ct_CC"; then
1749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_ac_ct_CC="cc"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1768 if test -n "$ac_ct_CC"; then
1769 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1770 echo "${ECHO_T}$ac_ct_CC" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1782 if test -z "$CC"; then
1783 # Extract the first word of "cc", so it can be a program name with args.
1784 set dummy cc; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$CC"; then
1791 ac_cv_prog_CC="$CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1802 ac_prog_rejected=yes
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 if test $ac_prog_rejected = yes; then
1813 # We found a bogon in the path, so make sure we never use it.
1814 set dummy $ac_cv_prog_CC
1816 if test $# != 0; then
1817 # We chose a different compiler from the bogus one.
1818 # However, it has the same basename, so the bogon will be chosen
1819 # first if we set CC to just the basename; use the full file name.
1821 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1827 if test -n "$CC"; then
1828 echo "$as_me:$LINENO: result: $CC" >&5
1829 echo "${ECHO_T}$CC" >&6
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1836 if test -z "$CC"; then
1837 if test -n "$ac_tool_prefix"; then
1840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 if test -n "$CC"; then
1848 ac_cv_prog_CC="$CC" # Let the user override the test.
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 if test -n "$CC"; then
1868 echo "$as_me:$LINENO: result: $CC" >&5
1869 echo "${ECHO_T}$CC" >&6
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1875 test -n "$CC" && break
1878 if test -z "$CC"; then
1882 # Extract the first word of "$ac_prog", so it can be a program name with args.
1883 set dummy $ac_prog; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$ac_ct_CC"; then
1890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_ac_ct_CC="$ac_prog"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1909 if test -n "$ac_ct_CC"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1911 echo "${ECHO_T}$ac_ct_CC" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 test -n "$ac_ct_CC" && break
1926 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1927 See \`config.log' for more details." >&5
1928 echo "$as_me: error: no acceptable C compiler found in \$PATH
1929 See \`config.log' for more details." >&2;}
1930 { (exit 1); exit 1; }; }
1932 # Provide some information about the compiler.
1933 echo "$as_me:$LINENO:" \
1934 "checking for C compiler version" >&5
1935 ac_compiler=`set X $ac_compile; echo $2`
1936 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1937 (eval $ac_compiler --version </dev/null >&5) 2>&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }
1941 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1942 (eval $ac_compiler -v </dev/null >&5) 2>&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }
1946 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1947 (eval $ac_compiler -V </dev/null >&5) 2>&5
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }
1952 cat >conftest.$ac_ext <<_ACEOF
1955 cat confdefs.h >>conftest.$ac_ext
1956 cat >>conftest.$ac_ext <<_ACEOF
1957 /* end confdefs.h. */
1967 ac_clean_files_save=$ac_clean_files
1968 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1969 # Try to create an executable without -o first, disregard a.out.
1970 # It will help us diagnose broken compilers, and finding out an intuition
1972 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1973 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1974 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1976 (eval $ac_link_default) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # Find the output, starting from the most likely. This scheme is
1981 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1984 # Be careful to initialize this variable, since it used to be cached.
1985 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1987 # b.out is created by i960 compilers.
1988 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1990 test -f "$ac_file" || continue
1992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1995 # This is the source file.
1998 # We found the default executable, but exeext='' is most
2002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2003 # FIXME: I believe we export ac_cv_exeext for Libtool,
2004 # but it would be cool to find out if it's true. Does anybody
2005 # maintain Libtool? --akim.
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2017 See \`config.log' for more details." >&5
2018 echo "$as_me: error: C compiler cannot create executables
2019 See \`config.log' for more details." >&2;}
2020 { (exit 77); exit 77; }; }
2023 ac_exeext=$ac_cv_exeext
2024 echo "$as_me:$LINENO: result: $ac_file" >&5
2025 echo "${ECHO_T}$ac_file" >&6
2027 # Check the compiler produces executables we can run. If not, either
2028 # the compiler is broken, or we cross compile.
2029 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2030 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2031 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2032 # If not cross compiling, check that we can run a simple program.
2033 if test "$cross_compiling" != yes; then
2034 if { ac_try='./$ac_file'
2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; }; then
2042 if test "$cross_compiling" = maybe; then
2045 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2046 If you meant to cross compile, use \`--host'.
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot run C compiled programs.
2049 If you meant to cross compile, use \`--host'.
2050 See \`config.log' for more details." >&2;}
2051 { (exit 1); exit 1; }; }
2055 echo "$as_me:$LINENO: result: yes" >&5
2056 echo "${ECHO_T}yes" >&6
2058 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2059 ac_clean_files=$ac_clean_files_save
2060 # Check the compiler produces executables we can run. If not, either
2061 # the compiler is broken, or we cross compile.
2062 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2063 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2064 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2065 echo "${ECHO_T}$cross_compiling" >&6
2067 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2068 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2070 (eval $ac_link) 2>&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; then
2074 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2075 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2076 # work properly (i.e., refer to `conftest.exe'), while it won't with
2078 for ac_file in conftest.exe conftest conftest.*; do
2079 test -f "$ac_file" || continue
2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2082 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2089 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2096 rm -f conftest$ac_cv_exeext
2097 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098 echo "${ECHO_T}$ac_cv_exeext" >&6
2100 rm -f conftest.$ac_ext
2101 EXEEXT=$ac_cv_exeext
2103 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105 if test "${ac_cv_objext+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 cat >conftest.$ac_ext <<_ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2123 rm -f conftest.o conftest.obj
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2137 echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2140 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2141 See \`config.log' for more details." >&5
2142 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2143 See \`config.log' for more details." >&2;}
2144 { (exit 1); exit 1; }; }
2147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2149 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2150 echo "${ECHO_T}$ac_cv_objext" >&6
2151 OBJEXT=$ac_cv_objext
2153 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2154 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 cat >conftest.$ac_ext <<_ACEOF
2161 cat confdefs.h >>conftest.$ac_ext
2162 cat >>conftest.$ac_ext <<_ACEOF
2163 /* end confdefs.h. */
2176 rm -f conftest.$ac_objext
2177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>conftest.er1
2180 grep -v '^ *+' conftest.er1 >conftest.err
2182 cat conftest.err >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -z "$ac_c_werror_flag"
2186 || test ! -s conftest.err'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2200 echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2206 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2209 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2210 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2211 GCC=`test $ac_compiler_gnu = yes && echo yes`
2212 ac_test_CFLAGS=${CFLAGS+set}
2213 ac_save_CFLAGS=$CFLAGS
2215 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2216 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2217 if test "${ac_cv_prog_cc_g+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 cat >conftest.$ac_ext <<_ACEOF
2223 cat confdefs.h >>conftest.$ac_ext
2224 cat >>conftest.$ac_ext <<_ACEOF
2225 /* end confdefs.h. */
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>conftest.er1
2239 grep -v '^ *+' conftest.er1 >conftest.err
2241 cat conftest.err >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } &&
2244 { ac_try='test -z "$ac_c_werror_flag"
2245 || test ! -s conftest.err'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; } &&
2251 { ac_try='test -s conftest.$ac_objext'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2259 echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2267 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2268 if test "$ac_test_CFLAGS" = set; then
2269 CFLAGS=$ac_save_CFLAGS
2270 elif test $ac_cv_prog_cc_g = yes; then
2271 if test "$GCC" = yes; then
2277 if test "$GCC" = yes; then
2283 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2284 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2285 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_cv_prog_cc_stdc=no
2290 cat >conftest.$ac_ext <<_ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2298 #include <sys/types.h>
2299 #include <sys/stat.h>
2300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2301 struct buf { int x; };
2302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2303 static char *e (p, i)
2309 static char *f (char * (*g) (char **, int), char **p, ...)
2314 s = g (p, va_arg (v,int));
2319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2320 function prototypes and stuff, but not '\xHH' hex character constants.
2321 These don't provoke an error unfortunately, instead are silently treated
2322 as 'x'. The following induces an error, until -std1 is added to get
2323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2324 array size at least. It's necessary to write '\x00'==0 to get something
2325 that's true only with -std1. */
2326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328 int test (int i, double x);
2329 struct s1 {int (*f) (int a);};
2330 struct s2 {int (*f) (double a);};
2331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2337 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2342 # Don't try gcc -ansi; that turns off useful extensions and
2343 # breaks some systems' header files.
2344 # AIX -qlanglvl=ansi
2345 # Ultrix and OSF/1 -std1
2346 # HP-UX 10.20 and later -Ae
2347 # HP-UX older versions -Aa -D_HPUX_SOURCE
2348 # SVR4 -Xc -D__EXTENSIONS__
2349 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351 CC="$ac_save_CC $ac_arg"
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 (eval $ac_compile) 2>conftest.er1
2356 grep -v '^ *+' conftest.er1 >conftest.err
2358 cat conftest.err >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try='test -z "$ac_c_werror_flag"
2362 || test ! -s conftest.err'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; } &&
2368 { ac_try='test -s conftest.$ac_objext'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2374 ac_cv_prog_cc_stdc=$ac_arg
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2381 rm -f conftest.err conftest.$ac_objext
2383 rm -f conftest.$ac_ext conftest.$ac_objext
2388 case "x$ac_cv_prog_cc_stdc" in
2390 echo "$as_me:$LINENO: result: none needed" >&5
2391 echo "${ECHO_T}none needed" >&6 ;;
2393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2394 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2395 CC="$CC $ac_cv_prog_cc_stdc" ;;
2398 # Some people use a C++ compiler to compile C. Since we use `exit',
2399 # in C++ we need to declare it. In case someone uses the same compiler
2400 # for both compiling C and C++ we need to have the C++ compiler decide
2401 # the declaration of exit, since it's the most demanding environment.
2402 cat >conftest.$ac_ext <<_ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>conftest.er1
2411 grep -v '^ *+' conftest.er1 >conftest.err
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_c_werror_flag"
2417 || test ! -s conftest.err'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2429 for ac_declaration in \
2431 'extern "C" void std::exit (int) throw (); using std::exit;' \
2432 'extern "C" void std::exit (int); using std::exit;' \
2433 'extern "C" void exit (int) throw ();' \
2434 'extern "C" void exit (int);' \
2437 cat >conftest.$ac_ext <<_ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2457 grep -v '^ *+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag"
2463 || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483 cat >conftest.$ac_ext <<_ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 if test -n "$ac_declaration"; then
2530 echo '#ifdef __cplusplus' >>confdefs.h
2531 echo $ac_declaration >>confdefs.h
2532 echo '#endif' >>confdefs.h
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547 # Find a good install program. We prefer a C program (faster),
2548 # so one script is as good as another. But avoid the broken or
2549 # incompatible versions:
2550 # SysV /etc/install, /usr/sbin/install
2551 # SunOS /usr/etc/install
2552 # IRIX /sbin/install
2554 # AmigaOS /C/install, which installs bootblocks on floppy discs
2555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2558 # OS/2's system install, which has a completely different semantic
2559 # ./install, which can be erroneously created by make from ./install.sh.
2560 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2561 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2562 if test -z "$INSTALL"; then
2563 if test "${ac_cv_path_install+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 # Account for people who put trailing slashes in PATH elements.
2573 ./ | .// | /cC/* | \
2574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2575 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2578 # OSF1 and SCO ODT 3.0 have their own names for install.
2579 # Don't use installbsd from OSF since it installs stuff as root
2581 for ac_prog in ginstall scoinst install; do
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2584 if test $ac_prog = install &&
2585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # AIX install. It has an incompatible calling convention.
2588 elif test $ac_prog = install &&
2589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2590 # program-specific install script used by HP pwplus--don't use.
2593 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2605 if test "${ac_cv_path_install+set}" = set; then
2606 INSTALL=$ac_cv_path_install
2608 # As a last resort, use the slow shell script. We don't cache a
2609 # path for INSTALL within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the path is relative.
2612 INSTALL=$ac_install_sh
2615 echo "$as_me:$LINENO: result: $INSTALL" >&5
2616 echo "${ECHO_T}$INSTALL" >&6
2618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2619 # It thinks the first close brace ends the variable substitution.
2620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2627 # Put a plausible default for CC_FOR_BUILD in Makefile.
2628 if test "x$cross_compiling" = "xno"; then
2629 CC_FOR_BUILD='$(CC)'
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2642 echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2644 if test "${ac_cv_prog_RANLIB+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 if test -n "$RANLIB"; then
2648 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 RANLIB=$ac_cv_prog_RANLIB
2667 if test -n "$RANLIB"; then
2668 echo "$as_me:$LINENO: result: $RANLIB" >&5
2669 echo "${ECHO_T}$RANLIB" >&6
2671 echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6
2676 if test -z "$ac_cv_prog_RANLIB"; then
2677 ac_ct_RANLIB=$RANLIB
2678 # Extract the first word of "ranlib", so it can be a program name with args.
2679 set dummy ranlib; ac_word=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$ac_ct_RANLIB"; then
2686 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_ac_ct_RANLIB="ranlib"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2705 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2706 if test -n "$ac_ct_RANLIB"; then
2707 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2708 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2710 echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2714 RANLIB=$ac_ct_RANLIB
2716 RANLIB="$ac_cv_prog_RANLIB"
2721 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2722 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2723 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2724 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 cat >conftest.make <<\_ACEOF
2729 @echo 'ac_maketemp="$(MAKE)"'
2731 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2732 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2733 if test -n "$ac_maketemp"; then
2734 eval ac_cv_prog_make_${ac_make}_set=yes
2736 eval ac_cv_prog_make_${ac_make}_set=no
2740 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2741 echo "$as_me:$LINENO: result: yes" >&5
2742 echo "${ECHO_T}yes" >&6
2745 echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6
2747 SET_MAKE="MAKE=${MAKE-make}"
2751 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2752 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2753 if test "${ac_cv_search_strerror+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 ac_func_search_save_LIBS=$LIBS
2757 ac_cv_search_strerror=no
2758 cat >conftest.$ac_ext <<_ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2765 /* Override any gcc2 internal prototype to avoid an error. */
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2780 rm -f conftest.$ac_objext conftest$ac_exeext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2782 (eval $ac_link) 2>conftest.er1
2784 grep -v '^ *+' conftest.er1 >conftest.err
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest$ac_exeext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 ac_cv_search_strerror="none required"
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2808 rm -f conftest.err conftest.$ac_objext \
2809 conftest$ac_exeext conftest.$ac_ext
2810 if test "$ac_cv_search_strerror" = no; then
2811 for ac_lib in cposix; do
2812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2813 cat >conftest.$ac_ext <<_ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2820 /* Override any gcc2 internal prototype to avoid an error. */
2824 /* We use char because int might match the return type of a gcc2
2825 builtin and then its argument prototype would still apply. */
2835 rm -f conftest.$ac_objext conftest$ac_exeext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2837 (eval $ac_link) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest$ac_exeext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_search_strerror="-l$ac_lib"
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2864 rm -f conftest.err conftest.$ac_objext \
2865 conftest$ac_exeext conftest.$ac_ext
2868 LIBS=$ac_func_search_save_LIBS
2870 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2871 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2872 if test "$ac_cv_search_strerror" != no; then
2873 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2883 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2884 # On Suns, sometimes $CPP names a directory.
2885 if test -n "$CPP" && test -d "$CPP"; then
2888 if test -z "$CPP"; then
2889 if test "${ac_cv_prog_CPP+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 # Double quotes because CPP needs to be expanded
2893 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2896 for ac_c_preproc_warn_flag in '' yes
2898 # Use a header file that comes with gcc, so configuring glibc
2899 # with a fresh cross-compiler works.
2900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2901 # <limits.h> exists even on freestanding compilers.
2902 # On the NeXT, cc -E runs the code through the compiler's parser,
2903 # not just through cpp. "Syntax error" is here to catch this case.
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2911 # include <limits.h>
2913 # include <assert.h>
2917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1 >conftest.err
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev/null; then
2925 if test -s conftest.err; then
2926 ac_cpp_err=$ac_c_preproc_warn_flag
2927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934 if test -z "$ac_cpp_err"; then
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 # Broken: fails on valid input.
2943 rm -f conftest.err conftest.$ac_ext
2945 # OK, works on sane cases. Now check whether non-existent headers
2946 # can be detected and how.
2947 cat >conftest.$ac_ext <<_ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 #include <ac_nonexistent.h>
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null; then
2963 if test -s conftest.err; then
2964 ac_cpp_err=$ac_c_preproc_warn_flag
2965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 if test -z "$ac_cpp_err"; then
2973 # Broken: success on invalid input.
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 # Passes both tests.
2983 rm -f conftest.err conftest.$ac_ext
2986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2987 rm -f conftest.err conftest.$ac_ext
2988 if $ac_preproc_ok; then
3000 echo "$as_me:$LINENO: result: $CPP" >&5
3001 echo "${ECHO_T}$CPP" >&6
3003 for ac_c_preproc_warn_flag in '' yes
3005 # Use a header file that comes with gcc, so configuring glibc
3006 # with a fresh cross-compiler works.
3007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008 # <limits.h> exists even on freestanding compilers.
3009 # On the NeXT, cc -E runs the code through the compiler's parser,
3010 # not just through cpp. "Syntax error" is here to catch this case.
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3018 # include <limits.h>
3020 # include <assert.h>
3024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } >/dev/null; then
3032 if test -s conftest.err; then
3033 ac_cpp_err=$ac_c_preproc_warn_flag
3034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041 if test -z "$ac_cpp_err"; then
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 # Broken: fails on valid input.
3050 rm -f conftest.err conftest.$ac_ext
3052 # OK, works on sane cases. Now check whether non-existent headers
3053 # can be detected and how.
3054 cat >conftest.$ac_ext <<_ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060 #include <ac_nonexistent.h>
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079 if test -z "$ac_cpp_err"; then
3080 # Broken: success on invalid input.
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 # Passes both tests.
3090 rm -f conftest.err conftest.$ac_ext
3093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3094 rm -f conftest.err conftest.$ac_ext
3095 if $ac_preproc_ok; then
3098 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3099 See \`config.log' for more details." >&5
3100 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&2;}
3102 { (exit 1); exit 1; }; }
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112 echo "$as_me:$LINENO: checking for egrep" >&5
3113 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3114 if test "${ac_cv_prog_egrep+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3118 then ac_cv_prog_egrep='grep -E'
3119 else ac_cv_prog_egrep='egrep'
3122 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3123 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3124 EGREP=$ac_cv_prog_egrep
3127 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3128 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3129 if test "${ac_cv_header_stdc+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3151 rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -z "$ac_c_werror_flag"
3161 || test ! -s conftest.err'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; } &&
3167 { ac_try='test -s conftest.$ac_objext'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3173 ac_cv_header_stdc=yes
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 ac_cv_header_stdc=no
3180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3182 if test $ac_cv_header_stdc = yes; then
3183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3194 $EGREP "memchr" >/dev/null 2>&1; then
3197 ac_cv_header_stdc=no
3203 if test $ac_cv_header_stdc = yes; then
3204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3205 cat >conftest.$ac_ext <<_ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3215 $EGREP "free" >/dev/null 2>&1; then
3218 ac_cv_header_stdc=no
3224 if test $ac_cv_header_stdc = yes; then
3225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3226 if test "$cross_compiling" = yes; then
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3236 #if ((' ' & 0x0FF) == 0x020)
3237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3240 # define ISLOWER(c) \
3241 (('a' <= (c) && (c) <= 'i') \
3242 || ('j' <= (c) && (c) <= 'r') \
3243 || ('s' <= (c) && (c) <= 'z'))
3244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3252 for (i = 0; i < 256; i++)
3253 if (XOR (islower (i), ISLOWER (i))
3254 || toupper (i) != TOUPPER (i))
3259 rm -f conftest$ac_exeext
3260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3261 (eval $ac_link) 2>&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3272 echo "$as_me: program exited with status $ac_status" >&5
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3277 ac_cv_header_stdc=no
3279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3283 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3284 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3285 if test $ac_cv_header_stdc = yes; then
3287 cat >>confdefs.h <<\_ACEOF
3288 #define STDC_HEADERS 1
3293 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3294 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3295 if test "${ac_cv_c_const+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3308 /* FIXME: Include the comments suggested by Paul. */
3310 /* Ultrix mips cc rejects this. */
3311 typedef int charset[2];
3313 /* SunOS 4.1.1 cc rejects this. */
3314 char const *const *ccp;
3316 /* NEC SVR4.0.2 mips cc rejects this. */
3317 struct point {int x, y;};
3318 static struct point const zero = {0,0};
3319 /* AIX XL C 1.02.0.0 rejects this.
3320 It does not let you subtract one const X* pointer from another in
3321 an arm of an if-expression whose if-part is not a constant
3323 const char *g = "string";
3324 ccp = &g + (g ? g-g : 0);
3325 /* HPUX 7.0 cc rejects these. */
3328 ccp = (char const *const *) p;
3329 { /* SCO 3.2v4 cc rejects this. */
3331 char const *s = 0 ? (char *) 0 : (char const *) 0;
3335 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3337 const int *foo = &x[0];
3340 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3341 typedef const int *iptr;
3345 { /* AIX XL C 1.02.0.0 rejects this saying
3346 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3347 struct s { int j; const int *ap[3]; };
3348 struct s *b; b->j = 5;
3350 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -z "$ac_c_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3391 echo "${ECHO_T}$ac_cv_c_const" >&6
3392 if test $ac_cv_c_const = no; then
3394 cat >>confdefs.h <<\_ACEOF
3400 echo "$as_me:$LINENO: checking for inline" >&5
3401 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3402 if test "${ac_cv_c_inline+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 for ac_kw in inline __inline__ __inline; do
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3415 static $ac_kw foo_t static_foo () {return 0; }
3416 $ac_kw foo_t foo () {return 0; }
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3424 grep -v '^ *+' conftest.er1 >conftest.err
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_c_inline=$ac_kw; break
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3452 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3453 echo "${ECHO_T}$ac_cv_c_inline" >&6
3456 case $ac_cv_c_inline in
3459 case $ac_cv_c_inline in
3461 *) ac_val=$ac_cv_c_inline;;
3463 cat >>confdefs.h <<_ACEOF
3465 #define inline $ac_val
3471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3481 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3482 inttypes.h stdint.h unistd.h
3484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3485 echo "$as_me:$LINENO: checking for $ac_header" >&5
3486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 $ac_includes_default
3498 #include <$ac_header>
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag"
3510 || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 eval "$as_ac_Header=yes"
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 eval "$as_ac_Header=no"
3529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3534 cat >>confdefs.h <<_ACEOF
3535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3543 echo "$as_me:$LINENO: checking for off_t" >&5
3544 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3545 if test "${ac_cv_type_off_t+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 cat >conftest.$ac_ext <<_ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 $ac_includes_default
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3570 grep -v '^ *+' conftest.er1 >conftest.err
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_type_off_t=yes
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3597 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3598 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3599 if test $ac_cv_type_off_t = yes; then
3603 cat >>confdefs.h <<_ACEOF
3609 echo "$as_me:$LINENO: checking for size_t" >&5
3610 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3611 if test "${ac_cv_type_size_t+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 $ac_includes_default
3626 if (sizeof (size_t))
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -z "$ac_c_werror_flag"
3642 || test ! -s conftest.err'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 ac_cv_type_size_t=yes
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 ac_cv_type_size_t=no
3661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3663 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3664 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3665 if test $ac_cv_type_size_t = yes; then
3669 cat >>confdefs.h <<_ACEOF
3670 #define size_t unsigned
3675 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3676 # for constant arguments. Useless!
3677 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3678 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3679 if test "${ac_cv_working_alloca_h+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3692 char *p = (char *) alloca (2 * sizeof (int));
3697 rm -f conftest.$ac_objext conftest$ac_exeext
3698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3699 (eval $ac_link) 2>conftest.er1
3701 grep -v '^ *+' conftest.er1 >conftest.err
3703 cat conftest.err >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 { ac_try='test -z "$ac_c_werror_flag"
3707 || test ! -s conftest.err'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; } &&
3713 { ac_try='test -s conftest$ac_exeext'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 ac_cv_working_alloca_h=yes
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 ac_cv_working_alloca_h=no
3726 rm -f conftest.err conftest.$ac_objext \
3727 conftest$ac_exeext conftest.$ac_ext
3729 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3730 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3731 if test $ac_cv_working_alloca_h = yes; then
3733 cat >>confdefs.h <<\_ACEOF
3734 #define HAVE_ALLOCA_H 1
3739 echo "$as_me:$LINENO: checking for alloca" >&5
3740 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3741 if test "${ac_cv_func_alloca_works+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 cat >conftest.$ac_ext <<_ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3751 # define alloca __builtin_alloca
3754 # include <malloc.h>
3755 # define alloca _alloca
3758 # include <alloca.h>
3763 # ifndef alloca /* predefined by HP cc +Olibcalls */
3774 char *p = (char *) alloca (1);
3779 rm -f conftest.$ac_objext conftest$ac_exeext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3781 (eval $ac_link) 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try='test -z "$ac_c_werror_flag"
3789 || test ! -s conftest.err'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try='test -s conftest$ac_exeext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_cv_func_alloca_works=yes
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 ac_cv_func_alloca_works=no
3808 rm -f conftest.err conftest.$ac_objext \
3809 conftest$ac_exeext conftest.$ac_ext
3811 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3812 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3814 if test $ac_cv_func_alloca_works = yes; then
3816 cat >>confdefs.h <<\_ACEOF
3817 #define HAVE_ALLOCA 1
3821 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3822 # that cause trouble. Some versions do not even contain alloca or
3823 # contain a buggy version. If you still want to use their alloca,
3824 # use ar to extract alloca.o from them instead of compiling alloca.c.
3826 ALLOCA=alloca.$ac_objext
3828 cat >>confdefs.h <<\_ACEOF
3833 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3834 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3835 if test "${ac_cv_os_cray+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #if defined(CRAY) && ! defined(CRAY2)
3851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3852 $EGREP "webecray" >/dev/null 2>&1; then
3860 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3861 echo "${ECHO_T}$ac_cv_os_cray" >&6
3862 if test $ac_cv_os_cray = yes; then
3863 for ac_func in _getb67 GETB67 getb67; do
3864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3865 echo "$as_me:$LINENO: checking for $ac_func" >&5
3866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3867 if eval "test \"\${$as_ac_var+set}\" = set"; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3878 #define $ac_func innocuous_$ac_func
3880 /* System header to define __stub macros and hopefully few prototypes,
3881 which can conflict with char $ac_func (); below.
3882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3883 <limits.h> exists even on freestanding compilers. */
3886 # include <limits.h>
3888 # include <assert.h>
3893 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3901 /* The GNU C library defines this for functions which it implements
3902 to always fail with ENOSYS. Some functions are actually named
3903 something starting with __ and the normal name is an alias. */
3904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3907 char (*f) () = $ac_func;
3916 return f != $ac_func;
3921 rm -f conftest.$ac_objext conftest$ac_exeext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3923 (eval $ac_link) 2>conftest.er1
3925 grep -v '^ *+' conftest.er1 >conftest.err
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag"
3931 || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest$ac_exeext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 eval "$as_ac_var=yes"
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3948 eval "$as_ac_var=no"
3950 rm -f conftest.err conftest.$ac_objext \
3951 conftest$ac_exeext conftest.$ac_ext
3953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3955 if test `eval echo '${'$as_ac_var'}'` = yes; then
3957 cat >>confdefs.h <<_ACEOF
3958 #define CRAY_STACKSEG_END $ac_func
3967 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3968 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3969 if test "${ac_cv_c_stack_direction+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 if test "$cross_compiling" = yes; then
3973 ac_cv_c_stack_direction=0
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3982 find_stack_direction ()
3984 static char *addr = 0;
3989 return find_stack_direction ();
3992 return (&dummy > addr) ? 1 : -1;
3998 exit (find_stack_direction () < 0);
4001 rm -f conftest$ac_exeext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4003 (eval $ac_link) 2>&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4012 ac_cv_c_stack_direction=1
4014 echo "$as_me: program exited with status $ac_status" >&5
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4019 ac_cv_c_stack_direction=-1
4021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4024 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4025 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4027 cat >>confdefs.h <<_ACEOF
4028 #define STACK_DIRECTION $ac_cv_c_stack_direction
4036 for ac_header in stdlib.h unistd.h
4038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4040 echo "$as_me:$LINENO: checking for $ac_header" >&5
4041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4048 # Is the header compilable?
4049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4051 cat >conftest.$ac_ext <<_ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057 $ac_includes_default
4058 #include <$ac_header>
4060 rm -f conftest.$ac_objext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_c_werror_flag"
4070 || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 ac_header_compiler=yes
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 ac_header_compiler=no
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4091 echo "${ECHO_T}$ac_header_compiler" >&6
4093 # Is the header present?
4094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #include <$ac_header>
4104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4107 grep -v '^ *+' conftest.er1 >conftest.err
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } >/dev/null; then
4112 if test -s conftest.err; then
4113 ac_cpp_err=$ac_c_preproc_warn_flag
4114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4121 if test -z "$ac_cpp_err"; then
4122 ac_header_preproc=yes
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 ac_header_preproc=no
4129 rm -f conftest.err conftest.$ac_ext
4130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4131 echo "${ECHO_T}$ac_header_preproc" >&6
4133 # So? What about this header?
4134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4140 ac_header_preproc=yes
4143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4157 ## ------------------------------------------ ##
4158 ## Report this to the AC_PACKAGE_NAME lists. ##
4159 ## ------------------------------------------ ##
4162 sed "s/^/$as_me: WARNING: /" >&2
4165 echo "$as_me:$LINENO: checking for $ac_header" >&5
4166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 eval "$as_ac_Header=\$ac_header_preproc"
4172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4177 cat >>confdefs.h <<_ACEOF
4178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4186 for ac_func in getpagesize
4188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4189 echo "$as_me:$LINENO: checking for $ac_func" >&5
4190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4191 if eval "test \"\${$as_ac_var+set}\" = set"; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4202 #define $ac_func innocuous_$ac_func
4204 /* System header to define __stub macros and hopefully few prototypes,
4205 which can conflict with char $ac_func (); below.
4206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4207 <limits.h> exists even on freestanding compilers. */
4210 # include <limits.h>
4212 # include <assert.h>
4217 /* Override any gcc2 internal prototype to avoid an error. */
4222 /* We use char because int might match the return type of a gcc2
4223 builtin and then its argument prototype would still apply. */
4225 /* The GNU C library defines this for functions which it implements
4226 to always fail with ENOSYS. Some functions are actually named
4227 something starting with __ and the normal name is an alias. */
4228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4231 char (*f) () = $ac_func;
4240 return f != $ac_func;
4245 rm -f conftest.$ac_objext conftest$ac_exeext
4246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4247 (eval $ac_link) 2>conftest.er1
4249 grep -v '^ *+' conftest.er1 >conftest.err
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try='test -z "$ac_c_werror_flag"
4255 || test ! -s conftest.err'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest$ac_exeext'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; }; then
4267 eval "$as_ac_var=yes"
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4272 eval "$as_ac_var=no"
4274 rm -f conftest.err conftest.$ac_objext \
4275 conftest$ac_exeext conftest.$ac_ext
4277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4279 if test `eval echo '${'$as_ac_var'}'` = yes; then
4280 cat >>confdefs.h <<_ACEOF
4281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4287 echo "$as_me:$LINENO: checking for working mmap" >&5
4288 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4289 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 if test "$cross_compiling" = yes; then
4293 ac_cv_func_mmap_fixed_mapped=no
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4302 /* malloc might have been renamed as rpl_malloc. */
4305 /* Thanks to Mike Haertel and Jim Avera for this test.
4306 Here is a matrix of mmap possibilities:
4307 mmap private not fixed
4308 mmap private fixed at somewhere currently unmapped
4309 mmap private fixed at somewhere already mapped
4310 mmap shared not fixed
4311 mmap shared fixed at somewhere currently unmapped
4312 mmap shared fixed at somewhere already mapped
4313 For private mappings, we should verify that changes cannot be read()
4314 back from the file, nor mmap's back from the file at a different
4315 address. (There have been systems where private was not correctly
4316 implemented like the infamous i386 svr4.0, and systems where the
4317 VM page cache was not coherent with the file system buffer cache
4318 like early versions of FreeBSD and possibly contemporary NetBSD.)
4319 For shared mappings, we should conversely verify that changes get
4320 propagated back to all the places they're supposed to be.
4322 Grep wants private fixed already mapped.
4323 The main things grep needs to know about mmap are:
4324 * does it exist and is it safe to write into the mmap'd area
4325 * how to use it (BSD variants) */
4328 #include <sys/mman.h>
4330 #if !STDC_HEADERS && !HAVE_STDLIB_H
4334 /* This mess was copied from the GNU getpagesize.h. */
4335 #if !HAVE_GETPAGESIZE
4336 /* Assume that all systems that can run configure have sys/param.h. */
4337 # if !HAVE_SYS_PARAM_H
4338 # define HAVE_SYS_PARAM_H 1
4341 # ifdef _SC_PAGESIZE
4342 # define getpagesize() sysconf(_SC_PAGESIZE)
4343 # else /* no _SC_PAGESIZE */
4344 # if HAVE_SYS_PARAM_H
4345 # include <sys/param.h>
4346 # ifdef EXEC_PAGESIZE
4347 # define getpagesize() EXEC_PAGESIZE
4348 # else /* no EXEC_PAGESIZE */
4350 # define getpagesize() NBPG * CLSIZE
4353 # endif /* no CLSIZE */
4354 # else /* no NBPG */
4356 # define getpagesize() NBPC
4357 # else /* no NBPC */
4359 # define getpagesize() PAGESIZE
4360 # endif /* PAGESIZE */
4361 # endif /* no NBPC */
4362 # endif /* no NBPG */
4363 # endif /* no EXEC_PAGESIZE */
4364 # else /* no HAVE_SYS_PARAM_H */
4365 # define getpagesize() 8192 /* punt totally */
4366 # endif /* no HAVE_SYS_PARAM_H */
4367 # endif /* no _SC_PAGESIZE */
4369 #endif /* no HAVE_GETPAGESIZE */
4374 char *data, *data2, *data3;
4378 pagesize = getpagesize ();
4380 /* First, make a file with some known garbage in it. */
4381 data = (char *) malloc (pagesize);
4384 for (i = 0; i < pagesize; ++i)
4385 *(data + i) = rand ();
4387 fd = creat ("conftest.mmap", 0600);
4390 if (write (fd, data, pagesize) != pagesize)
4394 /* Next, try to mmap the file at a fixed address which already has
4395 something else allocated at it. If we can, also make sure that
4396 we see the same garbage. */
4397 fd = open ("conftest.mmap", O_RDWR);
4400 data2 = (char *) malloc (2 * pagesize);
4403 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4404 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4405 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4407 for (i = 0; i < pagesize; ++i)
4408 if (*(data + i) != *(data2 + i))
4411 /* Finally, make sure that changes to the mapped area do not
4412 percolate back to the file as seen by read(). (This is a bug on
4413 some variants of i386 svr4.0.) */
4414 for (i = 0; i < pagesize; ++i)
4415 *(data2 + i) = *(data2 + i) + 1;
4416 data3 = (char *) malloc (pagesize);
4419 if (read (fd, data3, pagesize) != pagesize)
4421 for (i = 0; i < pagesize; ++i)
4422 if (*(data + i) != *(data3 + i))
4428 rm -f conftest$ac_exeext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4430 (eval $ac_link) 2>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_cv_func_mmap_fixed_mapped=yes
4441 echo "$as_me: program exited with status $ac_status" >&5
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_cv_func_mmap_fixed_mapped=no
4448 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4452 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4455 cat >>confdefs.h <<\_ACEOF
4472 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4473 unistd.h values.h sys/param.h
4475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4477 echo "$as_me:$LINENO: checking for $ac_header" >&5
4478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485 # Is the header compilable?
4486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 $ac_includes_default
4495 #include <$ac_header>
4497 rm -f conftest.$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4501 grep -v '^ *+' conftest.er1 >conftest.err
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -z "$ac_c_werror_flag"
4507 || test ! -s conftest.err'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 ac_header_compiler=yes
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 ac_header_compiler=no
4526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4528 echo "${ECHO_T}$ac_header_compiler" >&6
4530 # Is the header present?
4531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 #include <$ac_header>
4541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4544 grep -v '^ *+' conftest.er1 >conftest.err
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } >/dev/null; then
4549 if test -s conftest.err; then
4550 ac_cpp_err=$ac_c_preproc_warn_flag
4551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4558 if test -z "$ac_cpp_err"; then
4559 ac_header_preproc=yes
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 ac_header_preproc=no
4566 rm -f conftest.err conftest.$ac_ext
4567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4568 echo "${ECHO_T}$ac_header_preproc" >&6
4570 # So? What about this header?
4571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4577 ac_header_preproc=yes
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4594 ## ------------------------------------------ ##
4595 ## Report this to the AC_PACKAGE_NAME lists. ##
4596 ## ------------------------------------------ ##
4599 sed "s/^/$as_me: WARNING: /" >&2
4602 echo "$as_me:$LINENO: checking for $ac_header" >&5
4603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 eval "$as_ac_Header=\$ac_header_preproc"
4609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4614 cat >>confdefs.h <<_ACEOF
4615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4632 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4633 __argz_count __argz_stringify __argz_next
4635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4636 echo "$as_me:$LINENO: checking for $ac_func" >&5
4637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_var+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 cat >conftest.$ac_ext <<_ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4649 #define $ac_func innocuous_$ac_func
4651 /* System header to define __stub macros and hopefully few prototypes,
4652 which can conflict with char $ac_func (); below.
4653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4654 <limits.h> exists even on freestanding compilers. */
4657 # include <limits.h>
4659 # include <assert.h>
4664 /* Override any gcc2 internal prototype to avoid an error. */
4669 /* We use char because int might match the return type of a gcc2
4670 builtin and then its argument prototype would still apply. */
4672 /* The GNU C library defines this for functions which it implements
4673 to always fail with ENOSYS. Some functions are actually named
4674 something starting with __ and the normal name is an alias. */
4675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4678 char (*f) () = $ac_func;
4687 return f != $ac_func;
4692 rm -f conftest.$ac_objext conftest$ac_exeext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4694 (eval $ac_link) 2>conftest.er1
4696 grep -v '^ *+' conftest.er1 >conftest.err
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest$ac_exeext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 eval "$as_ac_var=yes"
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 eval "$as_ac_var=no"
4721 rm -f conftest.err conftest.$ac_objext \
4722 conftest$ac_exeext conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4726 if test `eval echo '${'$as_ac_var'}'` = yes; then
4727 cat >>confdefs.h <<_ACEOF
4728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4735 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4737 for ac_func in stpcpy
4739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4740 echo "$as_me:$LINENO: checking for $ac_func" >&5
4741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4742 if eval "test \"\${$as_ac_var+set}\" = set"; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 cat >conftest.$ac_ext <<_ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4753 #define $ac_func innocuous_$ac_func
4755 /* System header to define __stub macros and hopefully few prototypes,
4756 which can conflict with char $ac_func (); below.
4757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4758 <limits.h> exists even on freestanding compilers. */
4761 # include <limits.h>
4763 # include <assert.h>
4768 /* Override any gcc2 internal prototype to avoid an error. */
4773 /* We use char because int might match the return type of a gcc2
4774 builtin and then its argument prototype would still apply. */
4776 /* The GNU C library defines this for functions which it implements
4777 to always fail with ENOSYS. Some functions are actually named
4778 something starting with __ and the normal name is an alias. */
4779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4782 char (*f) () = $ac_func;
4791 return f != $ac_func;
4796 rm -f conftest.$ac_objext conftest$ac_exeext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4798 (eval $ac_link) 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_c_werror_flag"
4806 || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest$ac_exeext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 eval "$as_ac_var=yes"
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4823 eval "$as_ac_var=no"
4825 rm -f conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4830 if test `eval echo '${'$as_ac_var'}'` = yes; then
4831 cat >>confdefs.h <<_ACEOF
4832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4839 if test "${ac_cv_func_stpcpy}" = "yes"; then
4841 cat >>confdefs.h <<\_ACEOF
4842 #define HAVE_STPCPY 1
4847 if test $ac_cv_header_locale_h = yes; then
4848 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4849 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4850 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4868 rm -f conftest.$ac_objext conftest$ac_exeext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4870 (eval $ac_link) 2>conftest.er1
4872 grep -v '^ *+' conftest.er1 >conftest.err
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -z "$ac_c_werror_flag"
4878 || test ! -s conftest.err'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try='test -s conftest$ac_exeext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 am_cv_val_LC_MESSAGES=yes
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 am_cv_val_LC_MESSAGES=no
4897 rm -f conftest.err conftest.$ac_objext \
4898 conftest$ac_exeext conftest.$ac_ext
4900 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4901 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4902 if test $am_cv_val_LC_MESSAGES = yes; then
4904 cat >>confdefs.h <<\_ACEOF
4905 #define HAVE_LC_MESSAGES 1
4910 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4911 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4912 # Check whether --enable-nls or --disable-nls was given.
4913 if test "${enable_nls+set}" = set; then
4914 enableval="$enable_nls"
4919 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4920 echo "${ECHO_T}$USE_NLS" >&6
4923 USE_INCLUDED_LIBINTL=no
4925 if test "$USE_NLS" = "yes"; then
4926 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4927 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4929 # Check whether --with-included-gettext or --without-included-gettext was given.
4930 if test "${with_included_gettext+set}" = set; then
4931 withval="$with_included_gettext"
4932 nls_cv_force_use_gnu_gettext=$withval
4934 nls_cv_force_use_gnu_gettext=no
4936 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4937 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4939 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4940 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4942 nls_cv_header_libgt=
4945 if test "${ac_cv_header_libintl_h+set}" = set; then
4946 echo "$as_me:$LINENO: checking for libintl.h" >&5
4947 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4948 if test "${ac_cv_header_libintl_h+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4952 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4954 # Is the header compilable?
4955 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4956 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4957 cat >conftest.$ac_ext <<_ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 $ac_includes_default
4964 #include <libintl.h>
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968 (eval $ac_compile) 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -z "$ac_c_werror_flag"
4976 || test ! -s conftest.err'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; } &&
4982 { ac_try='test -s conftest.$ac_objext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_header_compiler=yes
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 ac_header_compiler=no
4995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4997 echo "${ECHO_T}$ac_header_compiler" >&6
4999 # Is the header present?
5000 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5001 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5002 cat >conftest.$ac_ext <<_ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 #include <libintl.h>
5010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } >/dev/null; then
5018 if test -s conftest.err; then
5019 ac_cpp_err=$ac_c_preproc_warn_flag
5020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5027 if test -z "$ac_cpp_err"; then
5028 ac_header_preproc=yes
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5033 ac_header_preproc=no
5035 rm -f conftest.err conftest.$ac_ext
5036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5037 echo "${ECHO_T}$ac_header_preproc" >&6
5039 # So? What about this header?
5040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5042 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5043 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5044 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5045 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5046 ac_header_preproc=yes
5049 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5050 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5051 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5052 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5054 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5055 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5056 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5057 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5058 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5059 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5060 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5063 ## ------------------------------------------ ##
5064 ## Report this to the AC_PACKAGE_NAME lists. ##
5065 ## ------------------------------------------ ##
5068 sed "s/^/$as_me: WARNING: /" >&2
5071 echo "$as_me:$LINENO: checking for libintl.h" >&5
5072 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5073 if test "${ac_cv_header_libintl_h+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 ac_cv_header_libintl_h=$ac_header_preproc
5078 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5079 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5082 if test $ac_cv_header_libintl_h = yes; then
5083 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5084 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5085 if test "${gt_cv_func_gettext_libc+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 cat >conftest.$ac_ext <<_ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 #include <libintl.h>
5098 return (int) gettext ("")
5103 rm -f conftest.$ac_objext conftest$ac_exeext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5105 (eval $ac_link) 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } &&
5112 { ac_try='test -z "$ac_c_werror_flag"
5113 || test ! -s conftest.err'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; } &&
5119 { ac_try='test -s conftest$ac_exeext'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 gt_cv_func_gettext_libc=yes
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 gt_cv_func_gettext_libc=no
5132 rm -f conftest.err conftest.$ac_objext \
5133 conftest$ac_exeext conftest.$ac_ext
5135 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5136 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5138 if test "$gt_cv_func_gettext_libc" != "yes"; then
5139 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5140 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5141 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 ac_check_lib_save_LIBS=$LIBS
5146 cat >conftest.$ac_ext <<_ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5153 /* Override any gcc2 internal prototype to avoid an error. */
5157 /* We use char because int might match the return type of a gcc2
5158 builtin and then its argument prototype would still apply. */
5159 char bindtextdomain ();
5168 rm -f conftest.$ac_objext conftest$ac_exeext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5170 (eval $ac_link) 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -z "$ac_c_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try='test -s conftest$ac_exeext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_cv_lib_intl_bindtextdomain=yes
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 ac_cv_lib_intl_bindtextdomain=no
5197 rm -f conftest.err conftest.$ac_objext \
5198 conftest$ac_exeext conftest.$ac_ext
5199 LIBS=$ac_check_lib_save_LIBS
5201 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5202 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5203 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5204 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5205 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5206 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5219 return (int) gettext ("")
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>conftest.er1
5228 grep -v '^ *+' conftest.er1 >conftest.err
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -z "$ac_c_werror_flag"
5234 || test ! -s conftest.err'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; } &&
5240 { ac_try='test -s conftest$ac_exeext'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 gt_cv_func_gettext_libintl=yes
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5251 gt_cv_func_gettext_libintl=no
5253 rm -f conftest.err conftest.$ac_objext \
5254 conftest$ac_exeext conftest.$ac_ext
5256 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5257 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5262 if test "$gt_cv_func_gettext_libc" = "yes" \
5263 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5265 cat >>confdefs.h <<\_ACEOF
5266 #define HAVE_GETTEXT 1
5269 # Extract the first word of "msgfmt", so it can be a program name with args.
5270 set dummy msgfmt; ac_word=$2
5271 echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5273 if test "${ac_cv_path_MSGFMT+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5282 for ac_dir in $PATH; do
5283 test -z "$ac_dir" && ac_dir=.
5284 if test -f $ac_dir/$ac_word; then
5285 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5286 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5292 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5296 MSGFMT="$ac_cv_path_MSGFMT"
5297 if test -n "$MSGFMT"; then
5298 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5299 echo "${ECHO_T}$MSGFMT" >&6
5301 echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5304 if test "$MSGFMT" != "no"; then
5306 for ac_func in dcgettext
5308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5309 echo "$as_me:$LINENO: checking for $ac_func" >&5
5310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5311 if eval "test \"\${$as_ac_var+set}\" = set"; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 cat >conftest.$ac_ext <<_ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5322 #define $ac_func innocuous_$ac_func
5324 /* System header to define __stub macros and hopefully few prototypes,
5325 which can conflict with char $ac_func (); below.
5326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 <limits.h> exists even on freestanding compilers. */
5330 # include <limits.h>
5332 # include <assert.h>
5337 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5345 /* The GNU C library defines this for functions which it implements
5346 to always fail with ENOSYS. Some functions are actually named
5347 something starting with __ and the normal name is an alias. */
5348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5351 char (*f) () = $ac_func;
5360 return f != $ac_func;
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367 (eval $ac_link) 2>conftest.er1
5369 grep -v '^ *+' conftest.er1 >conftest.err
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_c_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try='test -s conftest$ac_exeext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 eval "$as_ac_var=yes"
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 eval "$as_ac_var=no"
5394 rm -f conftest.err conftest.$ac_objext \
5395 conftest$ac_exeext conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5399 if test `eval echo '${'$as_ac_var'}'` = yes; then
5400 cat >>confdefs.h <<_ACEOF
5401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5407 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5408 set dummy gmsgfmt; ac_word=$2
5409 echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5411 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5437 GMSGFMT=$ac_cv_path_GMSGFMT
5439 if test -n "$GMSGFMT"; then
5440 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5441 echo "${ECHO_T}$GMSGFMT" >&6
5443 echo "$as_me:$LINENO: result: no" >&5
5444 echo "${ECHO_T}no" >&6
5447 # Extract the first word of "xgettext", so it can be a program name with args.
5448 set dummy xgettext; ac_word=$2
5449 echo "$as_me:$LINENO: checking for $ac_word" >&5
5450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5451 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5460 for ac_dir in $PATH; do
5461 test -z "$ac_dir" && ac_dir=.
5462 if test -f $ac_dir/$ac_word; then
5463 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5464 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5470 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5474 XGETTEXT="$ac_cv_path_XGETTEXT"
5475 if test -n "$XGETTEXT"; then
5476 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5477 echo "${ECHO_T}$XGETTEXT" >&6
5479 echo "$as_me:$LINENO: result: no" >&5
5480 echo "${ECHO_T}no" >&6
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5493 extern int _nl_msg_cat_cntr;
5494 return _nl_msg_cat_cntr
5499 rm -f conftest.$ac_objext conftest$ac_exeext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5501 (eval $ac_link) 2>conftest.er1
5503 grep -v '^ *+' conftest.er1 >conftest.err
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -z "$ac_c_werror_flag"
5509 || test ! -s conftest.err'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest$ac_exeext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5530 rm -f conftest.err conftest.$ac_objext \
5531 conftest$ac_exeext conftest.$ac_ext
5541 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5542 # Neither gettext nor catgets in included in the C library.
5543 # Fall back on GNU gettext library (assuming it is present).
5544 nls_cv_use_gnu_gettext=yes
5548 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5549 INTLOBJS="\$(GETTOBJS)"
5550 # Extract the first word of "msgfmt", so it can be a program name with args.
5551 set dummy msgfmt; ac_word=$2
5552 echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554 if test "${ac_cv_path_MSGFMT+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5563 for ac_dir in $PATH; do
5564 test -z "$ac_dir" && ac_dir=.
5565 if test -f $ac_dir/$ac_word; then
5566 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5567 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5573 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5577 MSGFMT="$ac_cv_path_MSGFMT"
5578 if test -n "$MSGFMT"; then
5579 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5580 echo "${ECHO_T}$MSGFMT" >&6
5582 echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5586 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5587 set dummy gmsgfmt; ac_word=$2
5588 echo "$as_me:$LINENO: checking for $ac_word" >&5
5589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5590 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5616 GMSGFMT=$ac_cv_path_GMSGFMT
5618 if test -n "$GMSGFMT"; then
5619 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5620 echo "${ECHO_T}$GMSGFMT" >&6
5622 echo "$as_me:$LINENO: result: no" >&5
5623 echo "${ECHO_T}no" >&6
5626 # Extract the first word of "xgettext", so it can be a program name with args.
5627 set dummy xgettext; ac_word=$2
5628 echo "$as_me:$LINENO: checking for $ac_word" >&5
5629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5630 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5639 for ac_dir in $PATH; do
5640 test -z "$ac_dir" && ac_dir=.
5641 if test -f $ac_dir/$ac_word; then
5642 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5643 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5649 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5653 XGETTEXT="$ac_cv_path_XGETTEXT"
5654 if test -n "$XGETTEXT"; then
5655 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5656 echo "${ECHO_T}$XGETTEXT" >&6
5658 echo "$as_me:$LINENO: result: no" >&5
5659 echo "${ECHO_T}no" >&6
5663 USE_INCLUDED_LIBINTL=yes
5667 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5669 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5670 nls_cv_header_intl=libintl.h
5671 nls_cv_header_libgt=libgettext.h
5674 if test "$XGETTEXT" != ":"; then
5675 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5678 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5679 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5684 # We need to process the po/ directory.
5688 nls_cv_header_intl=libintl.h
5689 nls_cv_header_libgt=libgettext.h
5692 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5693 # because some of the sources are only built for this goal.
5694 if test "$PACKAGE" = gettext; then
5696 USE_INCLUDED_LIBINTL=yes
5699 for lang in $ALL_LINGUAS; do
5700 GMOFILES="$GMOFILES $lang.gmo"
5701 POFILES="$POFILES $lang.po"
5715 if test "x$CATOBJEXT" != "x"; then
5717 cat >>confdefs.h <<\_ACEOF
5718 #define ENABLE_NLS 1
5724 if test "x$CATOBJEXT" != "x"; then
5725 if test "x$ALL_LINGUAS" = "x"; then
5728 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5729 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5731 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5732 case "$ALL_LINGUAS" in
5733 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5736 LINGUAS=$NEW_LINGUAS
5737 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5738 echo "${ECHO_T}$LINGUAS" >&6
5741 if test -n "$LINGUAS"; then
5742 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5746 if test $ac_cv_header_locale_h = yes; then
5747 INCLUDE_LOCALE_H="#include <locale.h>"
5750 /* The system does not provide the header <locale.h>. Take care yourself. */"
5754 if test -f $srcdir/po2tbl.sed.in; then
5755 if test "$CATOBJEXT" = ".cat"; then
5756 if test "${ac_cv_header_linux_version_h+set}" = set; then
5757 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5758 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5759 if test "${ac_cv_header_linux_version_h+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5763 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5765 # Is the header compilable?
5766 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5767 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5768 cat >conftest.$ac_ext <<_ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 $ac_includes_default
5775 #include <linux/version.h>
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_header_compiler=yes
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 ac_header_compiler=no
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5808 echo "${ECHO_T}$ac_header_compiler" >&6
5810 # Is the header present?
5811 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5812 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 #include <linux/version.h>
5821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5824 grep -v '^ *+' conftest.er1 >conftest.err
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } >/dev/null; then
5829 if test -s conftest.err; then
5830 ac_cpp_err=$ac_c_preproc_warn_flag
5831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5838 if test -z "$ac_cpp_err"; then
5839 ac_header_preproc=yes
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5844 ac_header_preproc=no
5846 rm -f conftest.err conftest.$ac_ext
5847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5848 echo "${ECHO_T}$ac_header_preproc" >&6
5850 # So? What about this header?
5851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5853 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5854 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5855 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5856 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5857 ac_header_preproc=yes
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5861 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5863 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5865 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5867 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5869 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5871 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5874 ## ------------------------------------------ ##
5875 ## Report this to the AC_PACKAGE_NAME lists. ##
5876 ## ------------------------------------------ ##
5879 sed "s/^/$as_me: WARNING: /" >&2
5882 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5883 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5884 if test "${ac_cv_header_linux_version_h+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 ac_cv_header_linux_version_h=$ac_header_preproc
5889 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5890 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5893 if test $ac_cv_header_linux_version_h = yes; then
5901 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5903 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5904 $srcdir/po2tbl.sed.in > po2tbl.sed
5907 if test "$PACKAGE" = "gettext"; then
5917 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5923 if test -f $srcdir/po/POTFILES.in; then
5924 test -d po || mkdir po
5925 if test "x$srcdir" != "x."; then
5926 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5927 posrcprefix="$srcdir/"
5929 posrcprefix="../$srcdir/"
5935 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5936 < $srcdir/po/POTFILES.in > po/POTFILES
5940 # Check for common headers.
5941 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5942 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5948 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5952 echo "$as_me:$LINENO: checking for $ac_header" >&5
5953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5960 # Is the header compilable?
5961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 $ac_includes_default
5970 #include <$ac_header>
5972 rm -f conftest.$ac_objext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974 (eval $ac_compile) 2>conftest.er1
5976 grep -v '^ *+' conftest.er1 >conftest.err
5978 cat conftest.err >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -z "$ac_c_werror_flag"
5982 || test ! -s conftest.err'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5994 ac_header_compiler=yes
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 ac_header_compiler=no
6001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6003 echo "${ECHO_T}$ac_header_compiler" >&6
6005 # Is the header present?
6006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #include <$ac_header>
6016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6019 grep -v '^ *+' conftest.er1 >conftest.err
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } >/dev/null; then
6024 if test -s conftest.err; then
6025 ac_cpp_err=$ac_c_preproc_warn_flag
6026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6033 if test -z "$ac_cpp_err"; then
6034 ac_header_preproc=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_header_preproc=no
6041 rm -f conftest.err conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6043 echo "${ECHO_T}$ac_header_preproc" >&6
6045 # So? What about this header?
6046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6052 ac_header_preproc=yes
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6069 ## ------------------------------------------ ##
6070 ## Report this to the AC_PACKAGE_NAME lists. ##
6071 ## ------------------------------------------ ##
6074 sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
6084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6089 cat >>confdefs.h <<_ACEOF
6090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6099 for ac_header in sys/time.h sys/resource.h
6101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6103 echo "$as_me:$LINENO: checking for $ac_header" >&5
6104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6111 # Is the header compilable?
6112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6114 cat >conftest.$ac_ext <<_ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6121 #include <$ac_header>
6123 rm -f conftest.$ac_objext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125 (eval $ac_compile) 2>conftest.er1
6127 grep -v '^ *+' conftest.er1 >conftest.err
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -z "$ac_c_werror_flag"
6133 || test ! -s conftest.err'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_header_compiler=yes
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6150 ac_header_compiler=no
6152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6154 echo "${ECHO_T}$ac_header_compiler" >&6
6156 # Is the header present?
6157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 #include <$ac_header>
6167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } >/dev/null; then
6175 if test -s conftest.err; then
6176 ac_cpp_err=$ac_c_preproc_warn_flag
6177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6184 if test -z "$ac_cpp_err"; then
6185 ac_header_preproc=yes
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 ac_header_preproc=no
6192 rm -f conftest.err conftest.$ac_ext
6193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6194 echo "${ECHO_T}$ac_header_preproc" >&6
6196 # So? What about this header?
6197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6203 ac_header_preproc=yes
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6220 ## ------------------------------------------ ##
6221 ## Report this to the AC_PACKAGE_NAME lists. ##
6222 ## ------------------------------------------ ##
6225 sed "s/^/$as_me: WARNING: /" >&2
6228 echo "$as_me:$LINENO: checking for $ac_header" >&5
6229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 eval "$as_ac_Header=\$ac_header_preproc"
6235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6240 cat >>confdefs.h <<_ACEOF
6241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6250 for ac_header in fcntl.h fpu_control.h
6252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254 echo "$as_me:$LINENO: checking for $ac_header" >&5
6255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6262 # Is the header compilable?
6263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6265 cat >conftest.$ac_ext <<_ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 $ac_includes_default
6272 #include <$ac_header>
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>conftest.er1
6278 grep -v '^ *+' conftest.er1 >conftest.err
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_c_werror_flag"
6284 || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_header_compiler=yes
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_header_compiler=no
6303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6305 echo "${ECHO_T}$ac_header_compiler" >&6
6307 # Is the header present?
6308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 #include <$ac_header>
6318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321 grep -v '^ *+' conftest.er1 >conftest.err
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } >/dev/null; then
6326 if test -s conftest.err; then
6327 ac_cpp_err=$ac_c_preproc_warn_flag
6328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6335 if test -z "$ac_cpp_err"; then
6336 ac_header_preproc=yes
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6341 ac_header_preproc=no
6343 rm -f conftest.err conftest.$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6345 echo "${ECHO_T}$ac_header_preproc" >&6
6347 # So? What about this header?
6348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6354 ac_header_preproc=yes
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6371 ## ------------------------------------------ ##
6372 ## Report this to the AC_PACKAGE_NAME lists. ##
6373 ## ------------------------------------------ ##
6376 sed "s/^/$as_me: WARNING: /" >&2
6379 echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 eval "$as_ac_Header=\$ac_header_preproc"
6386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6391 cat >>confdefs.h <<_ACEOF
6392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6402 for ac_header in dlfcn.h errno.h sys/stat.h
6404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406 echo "$as_me:$LINENO: checking for $ac_header" >&5
6407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6414 # Is the header compilable?
6415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6417 cat >conftest.$ac_ext <<_ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 $ac_includes_default
6424 #include <$ac_header>
6426 rm -f conftest.$ac_objext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428 (eval $ac_compile) 2>conftest.er1
6430 grep -v '^ *+' conftest.er1 >conftest.err
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -z "$ac_c_werror_flag"
6436 || test ! -s conftest.err'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; } &&
6442 { ac_try='test -s conftest.$ac_objext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_header_compiler=yes
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_header_compiler=no
6455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6457 echo "${ECHO_T}$ac_header_compiler" >&6
6459 # Is the header present?
6460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #include <$ac_header>
6470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1 >conftest.err
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } >/dev/null; then
6478 if test -s conftest.err; then
6479 ac_cpp_err=$ac_c_preproc_warn_flag
6480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6487 if test -z "$ac_cpp_err"; then
6488 ac_header_preproc=yes
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 ac_header_preproc=no
6495 rm -f conftest.err conftest.$ac_ext
6496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6497 echo "${ECHO_T}$ac_header_preproc" >&6
6499 # So? What about this header?
6500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6506 ac_header_preproc=yes
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6523 ## ------------------------------------------ ##
6524 ## Report this to the AC_PACKAGE_NAME lists. ##
6525 ## ------------------------------------------ ##
6528 sed "s/^/$as_me: WARNING: /" >&2
6531 echo "$as_me:$LINENO: checking for $ac_header" >&5
6532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 eval "$as_ac_Header=\$ac_header_preproc"
6538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6543 cat >>confdefs.h <<_ACEOF
6544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6555 for ac_func in getrusage time sigaction __setfpucw
6557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6558 echo "$as_me:$LINENO: checking for $ac_func" >&5
6559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6560 if eval "test \"\${$as_ac_var+set}\" = set"; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 cat >conftest.$ac_ext <<_ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6571 #define $ac_func innocuous_$ac_func
6573 /* System header to define __stub macros and hopefully few prototypes,
6574 which can conflict with char $ac_func (); below.
6575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6576 <limits.h> exists even on freestanding compilers. */
6579 # include <limits.h>
6581 # include <assert.h>
6586 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6594 /* The GNU C library defines this for functions which it implements
6595 to always fail with ENOSYS. Some functions are actually named
6596 something starting with __ and the normal name is an alias. */
6597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6600 char (*f) () = $ac_func;
6609 return f != $ac_func;
6614 rm -f conftest.$ac_objext conftest$ac_exeext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616 (eval $ac_link) 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
6623 { ac_try='test -z "$ac_c_werror_flag"
6624 || test ! -s conftest.err'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; } &&
6630 { ac_try='test -s conftest$ac_exeext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 eval "$as_ac_var=yes"
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 eval "$as_ac_var=no"
6643 rm -f conftest.err conftest.$ac_objext \
6644 conftest$ac_exeext conftest.$ac_ext
6646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6648 if test `eval echo '${'$as_ac_var'}'` = yes; then
6649 cat >>confdefs.h <<_ACEOF
6650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6657 # Check for socket libraries
6659 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6660 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6661 if test "${ac_cv_lib_socket_bind+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 ac_check_lib_save_LIBS=$LIBS
6665 LIBS="-lsocket $LIBS"
6666 cat >conftest.$ac_ext <<_ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6673 /* Override any gcc2 internal prototype to avoid an error. */
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6688 rm -f conftest.$ac_objext conftest$ac_exeext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690 (eval $ac_link) 2>conftest.er1
6692 grep -v '^ *+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -z "$ac_c_werror_flag"
6698 || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest$ac_exeext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_lib_socket_bind=yes
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 ac_cv_lib_socket_bind=no
6717 rm -f conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 LIBS=$ac_check_lib_save_LIBS
6721 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6722 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6723 if test $ac_cv_lib_socket_bind = yes; then
6724 cat >>confdefs.h <<_ACEOF
6725 #define HAVE_LIBSOCKET 1
6728 LIBS="-lsocket $LIBS"
6733 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6734 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6735 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 ac_check_lib_save_LIBS=$LIBS
6740 cat >conftest.$ac_ext <<_ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6747 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6753 char gethostbyname ();
6762 rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764 (eval $ac_link) 2>conftest.er1
6766 grep -v '^ *+' conftest.er1 >conftest.err
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try='test -z "$ac_c_werror_flag"
6772 || test ! -s conftest.err'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; } &&
6778 { ac_try='test -s conftest$ac_exeext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6784 ac_cv_lib_nsl_gethostbyname=yes
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6789 ac_cv_lib_nsl_gethostbyname=no
6791 rm -f conftest.err conftest.$ac_objext \
6792 conftest$ac_exeext conftest.$ac_ext
6793 LIBS=$ac_check_lib_save_LIBS
6795 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6796 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6797 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6798 cat >>confdefs.h <<_ACEOF
6799 #define HAVE_LIBNSL 1
6807 . ${srcdir}/../../bfd/configure.host
6811 USE_MAINTAINER_MODE=no
6812 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6813 if test "${enable_maintainer_mode+set}" = set; then
6814 enableval="$enable_maintainer_mode"
6815 case "${enableval}" in
6816 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6818 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6819 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6820 { (exit 1); exit 1; }; }; MAINT="#" ;;
6822 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6823 echo "Setting maintainer mode" 6>&1
6830 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6831 if test "${enable_sim_bswap+set}" = set; then
6832 enableval="$enable_sim_bswap"
6833 case "${enableval}" in
6834 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6835 no) sim_bswap="-DWITH_BSWAP=0";;
6836 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6837 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6838 { (exit 1); exit 1; }; }; sim_bswap="";;
6840 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6841 echo "Setting bswap flags = $sim_bswap" 6>&1
6848 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6849 if test "${enable_sim_cflags+set}" = set; then
6850 enableval="$enable_sim_cflags"
6851 case "${enableval}" in
6852 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6853 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6854 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6855 { (exit 1); exit 1; }; }; sim_cflags="";;
6857 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6859 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6860 echo "Setting sim cflags = $sim_cflags" 6>&1
6867 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6868 if test "${enable_sim_debug+set}" = set; then
6869 enableval="$enable_sim_debug"
6870 case "${enableval}" in
6871 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6872 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6873 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6875 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6876 echo "Setting sim debug = $sim_debug" 6>&1
6883 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6884 if test "${enable_sim_stdio+set}" = set; then
6885 enableval="$enable_sim_stdio"
6886 case "${enableval}" in
6887 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6888 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6889 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6890 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6891 { (exit 1); exit 1; }; }; sim_stdio="";;
6893 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6894 echo "Setting stdio flags = $sim_stdio" 6>&1
6901 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6902 if test "${enable_sim_trace+set}" = set; then
6903 enableval="$enable_sim_trace"
6904 case "${enableval}" in
6905 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6906 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6908 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6911 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6912 if test x"$sim_trace" = x; then
6913 sim_trace="-DWITH_TRACE='(TRACE_$x"
6915 sim_trace="${sim_trace}|TRACE_$x"
6918 sim_trace="$sim_trace)'" ;;
6920 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6921 echo "Setting sim trace = $sim_trace" 6>&1
6928 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6929 if test "${enable_sim_profile+set}" = set; then
6930 enableval="$enable_sim_profile"
6931 case "${enableval}" in
6932 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6933 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6935 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6938 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6939 if test x"$sim_profile" = x; then
6940 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6942 sim_profile="${sim_profile}|PROFILE_$x"
6945 sim_profile="$sim_profile)'" ;;
6947 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6948 echo "Setting sim profile = $sim_profile" 6>&1
6951 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6955 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6956 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6957 if test "${ac_cv_type_signal+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 cat >conftest.$ac_ext <<_ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #include <sys/types.h>
6972 extern "C" void (*signal (int, void (*)(int)))(int);
6974 void (*signal ()) ();
6985 rm -f conftest.$ac_objext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987 (eval $ac_compile) 2>conftest.er1
6989 grep -v '^ *+' conftest.er1 >conftest.err
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -z "$ac_c_werror_flag"
6995 || test ! -s conftest.err'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; } &&
7001 { ac_try='test -s conftest.$ac_objext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 ac_cv_type_signal=void
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 ac_cv_type_signal=int
7014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7016 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7017 echo "${ECHO_T}$ac_cv_type_signal" >&6
7019 cat >>confdefs.h <<_ACEOF
7020 #define RETSIGTYPE $ac_cv_type_signal
7030 sim_link_links=tconfig.h
7031 if test -f ${srcdir}/tconfig.in
7033 sim_link_files=tconfig.in
7035 sim_link_files=../common/tconfig.in
7038 # targ-vals.def points to the libc macro description file.
7040 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
7042 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
7043 sim_link_links="${sim_link_links} targ-vals.def"
7046 # For dv-rv and rvdummy.
7049 for ac_header in sys/socket.h sys/select.h
7051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7053 echo "$as_me:$LINENO: checking for $ac_header" >&5
7054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7061 # Is the header compilable?
7062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7064 cat >conftest.$ac_ext <<_ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7071 #include <$ac_header>
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>conftest.er1
7077 grep -v '^ *+' conftest.er1 >conftest.err
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try='test -s conftest.$ac_objext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 ac_header_compiler=yes
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 ac_header_compiler=no
7102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7104 echo "${ECHO_T}$ac_header_compiler" >&6
7106 # Is the header present?
7107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <$ac_header>
7117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } >/dev/null; then
7125 if test -s conftest.err; then
7126 ac_cpp_err=$ac_c_preproc_warn_flag
7127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7134 if test -z "$ac_cpp_err"; then
7135 ac_header_preproc=yes
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 ac_header_preproc=no
7142 rm -f conftest.err conftest.$ac_ext
7143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7144 echo "${ECHO_T}$ac_header_preproc" >&6
7146 # So? What about this header?
7147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7153 ac_header_preproc=yes
7156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7170 ## ------------------------------------------ ##
7171 ## Report this to the AC_PACKAGE_NAME lists. ##
7172 ## ------------------------------------------ ##
7175 sed "s/^/$as_me: WARNING: /" >&2
7178 echo "$as_me:$LINENO: checking for $ac_header" >&5
7179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 eval "$as_ac_Header=\$ac_header_preproc"
7185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7190 cat >>confdefs.h <<_ACEOF
7191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7199 wire_alignment="NONSTRICT_ALIGNMENT"
7200 default_alignment=""
7202 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7203 if test "${enable_sim_alignment+set}" = set; then
7204 enableval="$enable_sim_alignment"
7205 case "${enableval}" in
7206 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7207 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7208 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7209 yes) if test x"$wire_alignment" != x; then
7210 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
7212 if test x"$default_alignment" != x; then
7213 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
7215 echo "No hard-wired alignment for target $target" 1>&6
7216 sim_alignment="-DWITH_ALIGNMENT=0"
7219 no) if test x"$default_alignment" != x; then
7220 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7222 if test x"$wire_alignment" != x; then
7223 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7225 echo "No default alignment for target $target" 1>&6
7226 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
7229 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7230 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7231 { (exit 1); exit 1; }; }; sim_alignment="";;
7233 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
7234 echo "Setting alignment flags = $sim_alignment" 6>&1
7237 if test x"$default_alignment" != x; then
7238 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7240 if test x"$wire_alignment" != x; then
7241 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
7248 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7249 if test "${enable_sim_hostendian+set}" = set; then
7250 enableval="$enable_sim_hostendian"
7251 case "${enableval}" in
7252 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
7253 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7254 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
7255 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7256 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7257 { (exit 1); exit 1; }; }; sim_hostendian="";;
7259 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
7260 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7264 if test "x$cross_compiling" = "xno"; then
7265 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7266 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7267 if test "${ac_cv_c_bigendian+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 # See if sys/param.h defines the BYTE_ORDER macro.
7271 cat >conftest.$ac_ext <<_ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #include <sys/types.h>
7278 #include <sys/param.h>
7283 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293 (eval $ac_compile) 2>conftest.er1
7295 grep -v '^ *+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -z "$ac_c_werror_flag"
7301 || test ! -s conftest.err'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; } &&
7307 { ac_try='test -s conftest.$ac_objext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 # It does; now see whether it defined to BIG_ENDIAN or not.
7314 cat >conftest.$ac_ext <<_ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 #include <sys/types.h>
7321 #include <sys/param.h>
7326 #if BYTE_ORDER != BIG_ENDIAN
7334 rm -f conftest.$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7338 grep -v '^ *+' conftest.er1 >conftest.err
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -z "$ac_c_werror_flag"
7344 || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_c_bigendian=yes
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 ac_cv_c_bigendian=no
7363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 # It does not; compile a test program.
7369 if test "$cross_compiling" = yes; then
7370 # try to guess the endianness by grepping values into an object file
7371 ac_cv_c_bigendian=unknown
7372 cat >conftest.$ac_ext <<_ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7379 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7380 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7381 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7382 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7383 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7387 _ascii (); _ebcdic ();
7392 rm -f conftest.$ac_objext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7394 (eval $ac_compile) 2>conftest.er1
7396 grep -v '^ *+' conftest.er1 >conftest.err
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } &&
7401 { ac_try='test -z "$ac_c_werror_flag"
7402 || test ! -s conftest.err'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; } &&
7408 { ac_try='test -s conftest.$ac_objext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7415 ac_cv_c_bigendian=yes
7417 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7418 if test "$ac_cv_c_bigendian" = unknown; then
7419 ac_cv_c_bigendian=no
7421 # finding both strings is unlikely to happen, but who knows?
7422 ac_cv_c_bigendian=unknown
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7432 cat >conftest.$ac_ext <<_ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7441 /* Are we little or big endian? From Harbison&Steele. */
7445 char c[sizeof (long)];
7448 exit (u.c[sizeof (long) - 1] == 1);
7451 rm -f conftest$ac_exeext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453 (eval $ac_link) 2>&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_cv_c_bigendian=no
7464 echo "$as_me: program exited with status $ac_status" >&5
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7469 ac_cv_c_bigendian=yes
7471 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7476 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7477 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7478 case $ac_cv_c_bigendian in
7481 cat >>confdefs.h <<\_ACEOF
7482 #define WORDS_BIGENDIAN 1
7488 { { echo "$as_me:$LINENO: error: unknown endianness
7489 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7490 echo "$as_me: error: unknown endianness
7491 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7492 { (exit 1); exit 1; }; } ;;
7495 if test $ac_cv_c_bigendian = yes; then
7496 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7498 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7501 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7505 default_sim_scache="16384"
7506 # Check whether --enable-sim-scache or --disable-sim-scache was given.
7507 if test "${enable_sim_scache+set}" = set; then
7508 enableval="$enable_sim_scache"
7509 case "${enableval}" in
7510 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
7511 no) sim_scache="-DWITH_SCACHE=0" ;;
7512 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
7513 *) { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
7514 echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
7515 { (exit 1); exit 1; }; };
7518 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
7519 echo "Setting scache size = $sim_scache" 6>&1
7522 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
7526 # NOTE: Don't add -Wall or -Wunused, they both include
7527 # -Wunused-parameter which reports bogus warnings.
7528 # NOTE: If you add to this list, remember to update
7529 # gdb/doc/gdbint.texinfo.
7530 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7531 -Wformat -Wparentheses -Wpointer-arith"
7532 # GCC supports -Wuninitialized only with -O or -On, n != 0.
7533 if test x${CFLAGS+set} = xset; then
7537 build_warnings="${build_warnings} -Wuninitialized"
7541 build_warnings="${build_warnings} -Wuninitialized"
7543 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7544 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7545 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7546 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7547 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7548 # -Woverloaded-virtual -Winline -Werror"
7549 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7550 if test "${enable_build_warnings+set}" = set; then
7551 enableval="$enable_build_warnings"
7552 case "${enableval}" in
7554 no) build_warnings="-w";;
7555 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7556 build_warnings="${build_warnings} ${t}";;
7557 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7558 build_warnings="${t} ${build_warnings}";;
7559 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7561 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7562 echo "Setting compiler warning flags = $build_warnings" 6>&1
7564 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7565 if test "${enable_sim_build_warnings+set}" = set; then
7566 enableval="$enable_sim_build_warnings"
7567 case "${enableval}" in
7569 no) build_warnings="-w";;
7570 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7571 build_warnings="${build_warnings} ${t}";;
7572 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7573 build_warnings="${t} ${build_warnings}";;
7574 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7576 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7577 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7581 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7583 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7584 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7585 # Separate out the -Werror flag as some files just cannot be
7586 # compiled with it enabled.
7587 for w in ${build_warnings}; do
7589 -Werr*) WERROR_CFLAGS=-Werror ;;
7590 *) # Check that GCC accepts it
7591 saved_CFLAGS="$CFLAGS"
7593 cat >conftest.$ac_ext <<_ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7608 rm -f conftest.$ac_objext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7610 (eval $ac_compile) 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -z "$ac_c_werror_flag"
7618 || test ! -s conftest.err'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; } &&
7624 { ac_try='test -s conftest.$ac_objext'
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
7630 WARN_CFLAGS="${WARN_CFLAGS} $w"
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7637 CFLAGS="$saved_CFLAGS"
7640 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7641 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7645 if test x"no" = x"yes"; then
7651 hardware="core pal glue"
7653 hardware="core pal glue rv cris"
7655 sim_hw_cflags="-DWITH_HW=1"
7657 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7658 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7659 if test "${enable_sim_hardware+set}" = set; then
7660 enableval="$enable_sim_hardware"
7662 case "${enableval}" in
7665 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7666 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7667 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7669 if test "$sim_hw_p" != yes; then
7671 sim_hw_cflags="-DWITH_HW=0"
7674 sim_hw_cflags="-DWITH_HW=1"
7677 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
7678 for i in $hardware ; do
7681 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
7685 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
7686 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7690 if test "$sim_hw_p" != yes; then
7692 sim_hw_cflags="-DWITH_HW=0"
7695 if test x"$silent" != x"yes"; then
7696 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7700 # The default model shouldn't matter as long as there's a BFD.
7702 default_sim_default_model="crisv32"
7703 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
7704 if test "${enable_sim_default_model+set}" = set; then
7705 enableval="$enable_sim_default_model"
7706 case "${enableval}" in
7707 yes|no) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
7708 echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
7709 { (exit 1); exit 1; }; };;
7710 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
7712 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
7713 echo "Setting default model = $sim_default_model" 6>&1
7716 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
7720 # Check whether --enable-sim-environment or --disable-sim-environment was given.
7721 if test "${enable_sim_environment+set}" = set; then
7722 enableval="$enable_sim_environment"
7723 case "${enableval}" in
7724 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
7725 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
7726 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
7727 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
7728 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
7729 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
7730 { (exit 1); exit 1; }; };
7731 sim_environment="";;
7733 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
7734 echo "Setting sim environment = $sim_environment" 6>&1
7737 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
7740 default_sim_inline=""
7741 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7742 if test "${enable_sim_inline+set}" = set; then
7743 enableval="$enable_sim_inline"
7745 case "$enableval" in
7746 no) sim_inline="-DDEFAULT_INLINE=0";;
7747 0) sim_inline="-DDEFAULT_INLINE=0";;
7748 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
7749 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
7750 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
7753 *_INLINE=*) new_flag="-D$x";;
7754 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7755 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
7756 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
7758 if test x"$sim_inline" = x""; then
7759 sim_inline="$new_flag"
7761 sim_inline="$sim_inline $new_flag"
7765 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
7766 echo "Setting inline flags = $sim_inline" 6>&1
7770 if test "x$cross_compiling" = "xno"; then
7771 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
7772 sim_inline="${default_sim_inline}"
7773 if test x"$silent" != x"yes"; then
7774 echo "Setting inline flags = $sim_inline" 6>&1
7780 sim_inline="-DDEFAULT_INLINE=0"
7786 cgendir='$(srcdir)/../../cgen'
7787 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
7788 if test "${enable_cgen_maint+set}" = set; then
7789 enableval="$enable_cgen_maint"
7790 case "${enableval}" in
7791 yes) cgen_maint=yes ;;
7792 no) cgen_maint=no ;;
7794 # argument is cgen install directory (not implemented yet).
7795 # Having a `share' directory might be more appropriate for the .scm,
7797 cgendir=${cgen_maint}/lib/cgen
7801 fi; if test x${cgen_maint} != xno ; then
7812 ac_sources="$sim_link_files"
7813 ac_dests="$sim_link_links"
7814 while test -n "$ac_sources"; do
7815 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7816 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7817 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7819 ac_config_links="$ac_config_links $ac_config_links_1"
7822 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7823 cgen_breaks="break cgen_rtx_error";
7826 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
7828 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
7830 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
7832 ac_config_commands="$ac_config_commands Makefile"
7834 ac_config_commands="$ac_config_commands stamp-h"
7836 cat >confcache <<\_ACEOF
7837 # This file is a shell script that caches the results of configure
7838 # tests run on this system so they can be shared between configure
7839 # scripts and configure runs, see configure's option --config-cache.
7840 # It is not useful on other systems. If it contains results you don't
7841 # want to keep, you may remove or edit it.
7843 # config.status only pays attention to the cache file if you give it
7844 # the --recheck option to rerun configure.
7846 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7847 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7852 # The following way of writing the cache mishandles newlines in values,
7853 # but we know of no workaround that is simple, portable, and efficient.
7854 # So, don't put newlines in cache variables' values.
7855 # Ultrix sh set writes to stderr and can't be redirected directly,
7856 # and sets the high bit in the cache file unless we assign to the vars.
7859 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7861 # `set' does not quote correctly, so add quotes (double-quote
7862 # substitution turns \\\\ into \\, and sed turns \\ into \).
7865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7868 # `set' quotes correctly as required by POSIX, so do not add quotes.
7870 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7879 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7881 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7882 if test -w $cache_file; then
7883 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7884 cat confcache >$cache_file
7886 echo "not updating unwritable cache $cache_file"
7891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7892 # Let make expand exec_prefix.
7893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7895 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7896 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7897 # trailing colons and then remove the whole line if VPATH becomes empty
7898 # (actually we leave an empty line to preserve line numbers).
7899 if test "x$srcdir" = x.; then
7900 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7901 s/:*\$(srcdir):*/:/;
7902 s/:*\${srcdir}:*/:/;
7904 s/^\([^=]*=[ ]*\):*/\1/;
7910 DEFS=-DHAVE_CONFIG_H
7914 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7915 # 1. Remove the extension, and $U if already installed.
7916 ac_i=`echo "$ac_i" |
7917 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7919 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7920 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7924 LTLIBOBJS=$ac_ltlibobjs
7928 : ${CONFIG_STATUS=./config.status}
7929 ac_clean_files_save=$ac_clean_files
7930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7931 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7932 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7933 cat >$CONFIG_STATUS <<_ACEOF
7935 # Generated by $as_me.
7936 # Run this file to recreate the current configuration.
7937 # Compiler output produced by configure, useful for debugging
7938 # configure, is in config.log if it exists.
7943 SHELL=\${CONFIG_SHELL-$SHELL}
7946 cat >>$CONFIG_STATUS <<\_ACEOF
7947 ## --------------------- ##
7948 ## M4sh Initialization. ##
7949 ## --------------------- ##
7951 # Be Bourne compatible
7952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7955 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7956 # is contrary to our usage. Disable this feature.
7957 alias -g '${1+"$@"}'='"$@"'
7958 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7961 DUALCASE=1; export DUALCASE # for MKS sh
7963 # Support unset when possible.
7964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7971 # Work around bugs in pre-3.0 UWIN ksh.
7972 $as_unset ENV MAIL MAILPATH
7979 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7980 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7981 LC_TELEPHONE LC_TIME
7983 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7984 eval $as_var=C; export $as_var
7990 # Required to use basename.
7991 if expr a : '\(a\)' >/dev/null 2>&1; then
7997 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7998 as_basename=basename
8004 # Name of the executable.
8005 as_me=`$as_basename "$0" ||
8006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8007 X"$0" : 'X\(//\)$' \| \
8008 X"$0" : 'X\(/\)$' \| \
8009 . : '\(.\)' 2>/dev/null ||
8011 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8012 /^X\/\(\/\/\)$/{ s//\1/; q; }
8013 /^X\/\(\/\).*/{ s//\1/; q; }
8017 # PATH needs CR, and LINENO needs CR and PATH.
8018 # Avoid depending upon Character Ranges.
8019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8022 as_cr_digits='0123456789'
8023 as_cr_alnum=$as_cr_Letters$as_cr_digits
8025 # The user is always right.
8026 if test "${PATH_SEPARATOR+set}" != set; then
8027 echo "#! /bin/sh" >conf$$.sh
8028 echo "exit 0" >>conf$$.sh
8030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8042 test "x$as_lineno_1" != "x$as_lineno_2" &&
8043 test "x$as_lineno_3" = "x$as_lineno_2" || {
8044 # Find who we are. Look in the path if we contain no path at all
8047 *[\\/]* ) as_myself=$0 ;;
8048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 test -z "$as_dir" && as_dir=.
8053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8058 # We did not find ourselves, most probably we were run as `sh COMMAND'
8059 # in which case we are not to be found in the path.
8060 if test "x$as_myself" = x; then
8063 if test ! -f "$as_myself"; then
8064 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8065 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8066 { (exit 1); exit 1; }; }
8068 case $CONFIG_SHELL in
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8074 test -z "$as_dir" && as_dir=.
8075 for as_base in sh bash ksh sh5; do
8078 if ("$as_dir/$as_base" -c '
8081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8082 test "x$as_lineno_1" != "x$as_lineno_2" &&
8083 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8084 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8085 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8086 CONFIG_SHELL=$as_dir/$as_base
8088 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8096 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8097 # uniformly replaced by the line number. The first 'sed' inserts a
8098 # line-number line before each line; the second 'sed' does the real
8099 # work. The second script uses 'N' to pair each line-number line
8100 # with the numbered line, and appends trailing '-' during
8101 # substitution so that $LINENO is not a special case at line end.
8102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8103 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8104 sed '=' <$as_myself |
8109 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8112 s,^['$as_cr_digits']*\n,,
8114 chmod +x $as_me.lineno ||
8115 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8116 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8117 { (exit 1); exit 1; }; }
8119 # Don't try to exec as it changes $[0], causing all sort of problems
8120 # (the dirname of $[0] is not the place where we might find the
8121 # original and so on. Autoconf is especially sensible to this).
8123 # Exit status is that of the last command.
8128 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8129 *c*,-n*) ECHO_N= ECHO_C='
8131 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8132 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8135 if expr a : '\(a\)' >/dev/null 2>&1; then
8141 rm -f conf$$ conf$$.exe conf$$.file
8143 if ln -s conf$$.file conf$$ 2>/dev/null; then
8144 # We could just check for DJGPP; but this test a) works b) is more generic
8145 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8146 if test -f conf$$.exe; then
8147 # Don't use ln at all; we don't have any links
8152 elif ln conf$$.file conf$$ 2>/dev/null; then
8157 rm -f conf$$ conf$$.exe conf$$.file
8159 if mkdir -p . 2>/dev/null; then
8162 test -d ./-p && rmdir ./-p
8166 as_executable_p="test -f"
8168 # Sed expression to map a string onto a valid CPP name.
8169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8171 # Sed expression to map a string onto a valid variable name.
8172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8176 # We need space, tab and new line, in precisely that order.
8186 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8187 # report actual input values of CONFIG_FILES etc. instead of their
8188 # values after options handling. Logging --version etc. is OK.
8192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8193 ## Running $as_me. ##
8198 This file was extended by $as_me, which was
8199 generated by GNU Autoconf 2.59. Invocation command line was
8201 CONFIG_FILES = $CONFIG_FILES
8202 CONFIG_HEADERS = $CONFIG_HEADERS
8203 CONFIG_LINKS = $CONFIG_LINKS
8204 CONFIG_COMMANDS = $CONFIG_COMMANDS
8208 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8212 # Files that config.status was made for.
8213 if test -n "$ac_config_files"; then
8214 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8217 if test -n "$ac_config_headers"; then
8218 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8221 if test -n "$ac_config_links"; then
8222 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8225 if test -n "$ac_config_commands"; then
8226 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8229 cat >>$CONFIG_STATUS <<\_ACEOF
8232 \`$as_me' instantiates files from templates according to the
8233 current configuration.
8235 Usage: $0 [OPTIONS] [FILE]...
8237 -h, --help print this help, then exit
8238 -V, --version print version number, then exit
8239 -q, --quiet do not print progress messages
8240 -d, --debug don't remove temporary files
8241 --recheck update $as_me by reconfiguring in the same conditions
8242 --file=FILE[:TEMPLATE]
8243 instantiate the configuration file FILE
8244 --header=FILE[:TEMPLATE]
8245 instantiate the configuration header FILE
8247 Configuration files:
8250 Configuration headers:
8253 Configuration links:
8256 Configuration commands:
8259 Report bugs to <bug-autoconf@gnu.org>."
8262 cat >>$CONFIG_STATUS <<_ACEOF
8265 configured by $0, generated by GNU Autoconf 2.59,
8266 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8268 Copyright (C) 2003 Free Software Foundation, Inc.
8269 This config.status script is free software; the Free Software Foundation
8270 gives unlimited permission to copy, distribute and modify it."
8275 cat >>$CONFIG_STATUS <<\_ACEOF
8276 # If no file are specified by the user, then we need to provide default
8277 # value. By we need to know if files were specified by the user.
8283 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8284 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8292 *) # This is not an option, so the user has probably given explicit
8295 ac_need_defaults=false;;
8299 # Handling of the options.
8301 cat >>$CONFIG_STATUS <<\_ACEOF
8302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8304 --version | --vers* | -V )
8305 echo "$ac_cs_version"; exit 0 ;;
8307 # Conflict between --help and --header
8308 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8309 Try \`$0 --help' for more information." >&5
8310 echo "$as_me: error: ambiguous option: $1
8311 Try \`$0 --help' for more information." >&2;}
8312 { (exit 1); exit 1; }; };;
8313 --help | --hel | -h )
8314 echo "$ac_cs_usage"; exit 0 ;;
8315 --debug | --d* | -d )
8317 --file | --fil | --fi | --f )
8319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8320 ac_need_defaults=false;;
8321 --header | --heade | --head | --hea )
8323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8324 ac_need_defaults=false;;
8325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8326 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8330 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8331 Try \`$0 --help' for more information." >&5
8332 echo "$as_me: error: unrecognized option: $1
8333 Try \`$0 --help' for more information." >&2;}
8334 { (exit 1); exit 1; }; } ;;
8336 *) ac_config_targets="$ac_config_targets $1" ;;
8342 ac_configure_extra_args=
8344 if $ac_cs_silent; then
8346 ac_configure_extra_args="$ac_configure_extra_args --silent"
8350 cat >>$CONFIG_STATUS <<_ACEOF
8351 if \$ac_cs_recheck; then
8352 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8353 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8362 cat >>$CONFIG_STATUS <<\_ACEOF
8363 for ac_config_target in $ac_config_targets
8365 case "$ac_config_target" in
8366 # Handling of arguments.
8367 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8368 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8369 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8370 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
8371 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
8372 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
8373 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8374 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8375 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8376 { (exit 1); exit 1; }; };;
8380 # If the user did not use the arguments to specify the items to instantiate,
8381 # then the envvar interface is used. Set only those that are not.
8382 # We use the long form for the default assignment because of an extremely
8383 # bizarre bug on SunOS 4.1.3.
8384 if $ac_need_defaults; then
8385 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8386 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8387 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8388 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8391 # Have a temporary directory for convenience. Make it in the build tree
8392 # simply because there is no reason to put it here, and in addition,
8393 # creating and moving files from /tmp can sometimes cause problems.
8394 # Create a temporary directory, and hook for its removal unless debugging.
8397 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8398 trap '{ (exit 1); exit 1; }' 1 2 13 15
8401 # Create a (secure) tmp directory for tmp files.
8404 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8405 test -n "$tmp" && test -d "$tmp"
8408 tmp=./confstat$$-$RANDOM
8409 (umask 077 && mkdir $tmp)
8412 echo "$me: cannot create a temporary directory in ." >&2
8413 { (exit 1); exit 1; }
8418 cat >>$CONFIG_STATUS <<_ACEOF
8421 # CONFIG_FILES section.
8424 # No need to generate the scripts if there are no CONFIG_FILES.
8425 # This happens for instance when ./config.status config.h
8426 if test -n "\$CONFIG_FILES"; then
8427 # Protect against being on the right side of a sed subst in config.status.
8428 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8429 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8430 s,@SHELL@,$SHELL,;t t
8431 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8432 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8433 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8434 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8435 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8436 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8437 s,@exec_prefix@,$exec_prefix,;t t
8438 s,@prefix@,$prefix,;t t
8439 s,@program_transform_name@,$program_transform_name,;t t
8440 s,@bindir@,$bindir,;t t
8441 s,@sbindir@,$sbindir,;t t
8442 s,@libexecdir@,$libexecdir,;t t
8443 s,@datadir@,$datadir,;t t
8444 s,@sysconfdir@,$sysconfdir,;t t
8445 s,@sharedstatedir@,$sharedstatedir,;t t
8446 s,@localstatedir@,$localstatedir,;t t
8447 s,@libdir@,$libdir,;t t
8448 s,@includedir@,$includedir,;t t
8449 s,@oldincludedir@,$oldincludedir,;t t
8450 s,@infodir@,$infodir,;t t
8451 s,@mandir@,$mandir,;t t
8452 s,@build_alias@,$build_alias,;t t
8453 s,@host_alias@,$host_alias,;t t
8454 s,@target_alias@,$target_alias,;t t
8456 s,@ECHO_C@,$ECHO_C,;t t
8457 s,@ECHO_N@,$ECHO_N,;t t
8458 s,@ECHO_T@,$ECHO_T,;t t
8460 s,@sim_environment@,$sim_environment,;t t
8461 s,@sim_alignment@,$sim_alignment,;t t
8462 s,@sim_assert@,$sim_assert,;t t
8463 s,@sim_bitsize@,$sim_bitsize,;t t
8464 s,@sim_endian@,$sim_endian,;t t
8465 s,@sim_hostendian@,$sim_hostendian,;t t
8466 s,@sim_float@,$sim_float,;t t
8467 s,@sim_scache@,$sim_scache,;t t
8468 s,@sim_default_model@,$sim_default_model,;t t
8469 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8470 s,@sim_hw_objs@,$sim_hw_objs,;t t
8471 s,@sim_hw@,$sim_hw,;t t
8472 s,@sim_inline@,$sim_inline,;t t
8473 s,@sim_packages@,$sim_packages,;t t
8474 s,@sim_regparm@,$sim_regparm,;t t
8475 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8476 s,@sim_smp@,$sim_smp,;t t
8477 s,@sim_stdcall@,$sim_stdcall,;t t
8478 s,@sim_xor_endian@,$sim_xor_endian,;t t
8479 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8480 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8481 s,@build@,$build,;t t
8482 s,@build_cpu@,$build_cpu,;t t
8483 s,@build_vendor@,$build_vendor,;t t
8484 s,@build_os@,$build_os,;t t
8486 s,@host_cpu@,$host_cpu,;t t
8487 s,@host_vendor@,$host_vendor,;t t
8488 s,@host_os@,$host_os,;t t
8489 s,@target@,$target,;t t
8490 s,@target_cpu@,$target_cpu,;t t
8491 s,@target_vendor@,$target_vendor,;t t
8492 s,@target_os@,$target_os,;t t
8494 s,@CFLAGS@,$CFLAGS,;t t
8495 s,@LDFLAGS@,$LDFLAGS,;t t
8496 s,@CPPFLAGS@,$CPPFLAGS,;t t
8497 s,@ac_ct_CC@,$ac_ct_CC,;t t
8498 s,@EXEEXT@,$EXEEXT,;t t
8499 s,@OBJEXT@,$OBJEXT,;t t
8500 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8501 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8502 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8503 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8504 s,@HDEFINES@,$HDEFINES,;t t
8506 s,@RANLIB@,$RANLIB,;t t
8507 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8508 s,@SET_MAKE@,$SET_MAKE,;t t
8510 s,@EGREP@,$EGREP,;t t
8511 s,@ALLOCA@,$ALLOCA,;t t
8512 s,@USE_NLS@,$USE_NLS,;t t
8513 s,@MSGFMT@,$MSGFMT,;t t
8514 s,@GMSGFMT@,$GMSGFMT,;t t
8515 s,@XGETTEXT@,$XGETTEXT,;t t
8516 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8517 s,@CATALOGS@,$CATALOGS,;t t
8518 s,@CATOBJEXT@,$CATOBJEXT,;t t
8519 s,@DATADIRNAME@,$DATADIRNAME,;t t
8520 s,@GMOFILES@,$GMOFILES,;t t
8521 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8522 s,@INTLDEPS@,$INTLDEPS,;t t
8523 s,@INTLLIBS@,$INTLLIBS,;t t
8524 s,@INTLOBJS@,$INTLOBJS,;t t
8525 s,@POFILES@,$POFILES,;t t
8526 s,@POSUB@,$POSUB,;t t
8527 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8528 s,@GT_NO@,$GT_NO,;t t
8529 s,@GT_YES@,$GT_YES,;t t
8530 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8532 s,@MAINT@,$MAINT,;t t
8533 s,@sim_bswap@,$sim_bswap,;t t
8534 s,@sim_cflags@,$sim_cflags,;t t
8535 s,@sim_debug@,$sim_debug,;t t
8536 s,@sim_stdio@,$sim_stdio,;t t
8537 s,@sim_trace@,$sim_trace,;t t
8538 s,@sim_profile@,$sim_profile,;t t
8539 s,@CGEN_MAINT@,$CGEN_MAINT,;t t
8540 s,@cgendir@,$cgendir,;t t
8542 s,@cgen_breaks@,$cgen_breaks,;t t
8543 s,@LIBOBJS@,$LIBOBJS,;t t
8544 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8549 cat >>$CONFIG_STATUS <<\_ACEOF
8550 # Split the substitutions into bite-sized pieces for seds with
8551 # small command number limits, like on Digital OSF/1 and HP-UX.
8553 ac_sed_frag=1 # Number of current file.
8554 ac_beg=1 # First line for current file.
8555 ac_end=$ac_max_sed_lines # Line after last line for current file.
8558 while $ac_more_lines; do
8559 if test $ac_beg -gt 1; then
8560 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8562 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8564 if test ! -s $tmp/subs.frag; then
8567 # The purpose of the label and of the branching condition is to
8568 # speed up the sed processing (if there are no `@' at all, there
8569 # is no need to browse any of the substitutions).
8570 # These are the two extra sed commands mentioned above.
8572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8573 if test -z "$ac_sed_cmds"; then
8574 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8576 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8578 ac_sed_frag=`expr $ac_sed_frag + 1`
8580 ac_end=`expr $ac_end + $ac_max_sed_lines`
8583 if test -z "$ac_sed_cmds"; then
8586 fi # test -n "$CONFIG_FILES"
8589 cat >>$CONFIG_STATUS <<\_ACEOF
8590 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8591 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8593 - | *:- | *:-:* ) # input from stdin
8595 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8597 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8599 * ) ac_file_in=$ac_file.in ;;
8602 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8603 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8605 X"$ac_file" : 'X\(//\)[^/]' \| \
8606 X"$ac_file" : 'X\(//\)$' \| \
8607 X"$ac_file" : 'X\(/\)' \| \
8608 . : '\(.\)' 2>/dev/null ||
8610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8612 /^X\(\/\/\)$/{ s//\1/; q; }
8613 /^X\(\/\).*/{ s//\1/; q; }
8615 { if $as_mkdir_p; then
8620 while test ! -d "$as_dir"; do
8621 as_dirs="$as_dir $as_dirs"
8622 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8624 X"$as_dir" : 'X\(//\)[^/]' \| \
8625 X"$as_dir" : 'X\(//\)$' \| \
8626 X"$as_dir" : 'X\(/\)' \| \
8627 . : '\(.\)' 2>/dev/null ||
8629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8631 /^X\(\/\/\)$/{ s//\1/; q; }
8632 /^X\(\/\).*/{ s//\1/; q; }
8635 test ! -n "$as_dirs" || mkdir $as_dirs
8636 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8637 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8638 { (exit 1); exit 1; }; }; }
8642 if test "$ac_dir" != .; then
8643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8644 # A "../" for each directory in $ac_dir_suffix.
8645 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8647 ac_dir_suffix= ac_top_builddir=
8651 .) # No --srcdir option. We are building in place.
8653 if test -z "$ac_top_builddir"; then
8656 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8658 [\\/]* | ?:[\\/]* ) # Absolute path.
8659 ac_srcdir=$srcdir$ac_dir_suffix;
8660 ac_top_srcdir=$srcdir ;;
8662 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8663 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8666 # Do not use `cd foo && pwd` to compute absolute paths, because
8667 # the directories may not exist.
8669 .) ac_abs_builddir="$ac_dir";;
8672 .) ac_abs_builddir=`pwd`;;
8673 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8674 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8677 case $ac_abs_builddir in
8678 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8680 case ${ac_top_builddir}. in
8681 .) ac_abs_top_builddir=$ac_abs_builddir;;
8682 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8683 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8686 case $ac_abs_builddir in
8687 .) ac_abs_srcdir=$ac_srcdir;;
8690 .) ac_abs_srcdir=$ac_abs_builddir;;
8691 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8692 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8695 case $ac_abs_builddir in
8696 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8698 case $ac_top_srcdir in
8699 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8700 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8701 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8707 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8708 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8711 if test x"$ac_file" != x-; then
8712 { echo "$as_me:$LINENO: creating $ac_file" >&5
8713 echo "$as_me: creating $ac_file" >&6;}
8716 # Let's still pretend it is `configure' which instantiates (i.e., don't
8717 # use $as_me), people would be surprised to read:
8718 # /* config.h. Generated by config.status. */
8719 if test x"$ac_file" = x-; then
8722 configure_input="$ac_file. "
8724 configure_input=$configure_input"Generated from `echo $ac_file_in |
8725 sed 's,.*/,,'` by configure."
8727 # First look for the input files in the build tree, otherwise in the
8729 ac_file_inputs=`IFS=:
8730 for f in $ac_file_in; do
8732 -) echo $tmp/stdin ;;
8734 # Absolute (can't be DOS-style, as IFS=:)
8735 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8736 echo "$as_me: error: cannot find input file: $f" >&2;}
8737 { (exit 1); exit 1; }; }
8740 if test -f "$f"; then
8743 elif test -f "$srcdir/$f"; then
8748 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8749 echo "$as_me: error: cannot find input file: $f" >&2;}
8750 { (exit 1); exit 1; }; }
8753 done` || { (exit 1); exit 1; }
8755 cat >>$CONFIG_STATUS <<_ACEOF
8759 cat >>$CONFIG_STATUS <<\_ACEOF
8761 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8762 s,@configure_input@,$configure_input,;t t
8763 s,@srcdir@,$ac_srcdir,;t t
8764 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8765 s,@top_srcdir@,$ac_top_srcdir,;t t
8766 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8767 s,@builddir@,$ac_builddir,;t t
8768 s,@abs_builddir@,$ac_abs_builddir,;t t
8769 s,@top_builddir@,$ac_top_builddir,;t t
8770 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8771 s,@INSTALL@,$ac_INSTALL,;t t
8772 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8774 if test x"$ac_file" != x-; then
8775 mv $tmp/out $ac_file
8783 cat >>$CONFIG_STATUS <<\_ACEOF
8786 # CONFIG_HEADER section.
8789 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8790 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8792 # ac_d sets the value in "#define NAME VALUE" lines.
8793 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8794 ac_dB='[ ].*$,\1#\2'
8797 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8798 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8799 ac_uB='$,\1#\2define\3'
8803 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8804 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8806 - | *:- | *:-:* ) # input from stdin
8808 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8809 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8810 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8812 * ) ac_file_in=$ac_file.in ;;
8815 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8816 echo "$as_me: creating $ac_file" >&6;}
8818 # First look for the input files in the build tree, otherwise in the
8820 ac_file_inputs=`IFS=:
8821 for f in $ac_file_in; do
8823 -) echo $tmp/stdin ;;
8825 # Absolute (can't be DOS-style, as IFS=:)
8826 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8827 echo "$as_me: error: cannot find input file: $f" >&2;}
8828 { (exit 1); exit 1; }; }
8829 # Do quote $f, to prevent DOS paths from being IFS'd.
8832 if test -f "$f"; then
8835 elif test -f "$srcdir/$f"; then
8840 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8841 echo "$as_me: error: cannot find input file: $f" >&2;}
8842 { (exit 1); exit 1; }; }
8845 done` || { (exit 1); exit 1; }
8846 # Remove the trailing spaces.
8847 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8851 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8852 # `conftest.undefs', that substitutes the proper values into
8853 # config.h.in to produce config.h. The first handles `#define'
8854 # templates, and the second `#undef' templates.
8855 # And first: Protect against being on the right side of a sed subst in
8856 # config.status. Protect against being in an unquoted here document
8858 rm -f conftest.defines conftest.undefs
8859 # Using a here document instead of a string reduces the quoting nightmare.
8860 # Putting comments in sed scripts is not portable.
8862 # `end' is used to avoid that the second main sed command (meant for
8863 # 0-ary CPP macros) applies to n-ary macro definitions.
8864 # See the Autoconf documentation for `clear'.
8865 cat >confdef2sed.sed <<\_ACEOF
8870 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8872 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8875 # If some macros were called several times there might be several times
8876 # the same #defines, which is useless. Nevertheless, we may not want to
8877 # sort them, since we want the *last* AC-DEFINE to be honored.
8878 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8879 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8880 rm -f confdef2sed.sed
8882 # This sed command replaces #undef with comments. This is necessary, for
8883 # example, in the case of _POSIX_SOURCE, which is predefined and required
8884 # on some systems where configure will not decide to define it.
8885 cat >>conftest.undefs <<\_ACEOF
8886 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8889 # Break up conftest.defines because some shells have a limit on the size
8890 # of here documents, and old seds have small limits too (100 cmds).
8891 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8892 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8893 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8894 echo ' :' >>$CONFIG_STATUS
8896 while grep . conftest.defines >/dev/null
8898 # Write a limited-size here document to $tmp/defines.sed.
8899 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8900 # Speed up: don't consider the non `#define' lines.
8901 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8902 # Work around the forget-to-reset-the-flag bug.
8903 echo 't clr' >>$CONFIG_STATUS
8904 echo ': clr' >>$CONFIG_STATUS
8905 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8907 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8911 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8912 rm -f conftest.defines
8913 mv conftest.tail conftest.defines
8915 rm -f conftest.defines
8916 echo ' fi # grep' >>$CONFIG_STATUS
8917 echo >>$CONFIG_STATUS
8919 # Break up conftest.undefs because some shells have a limit on the size
8920 # of here documents, and old seds have small limits too (100 cmds).
8921 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8923 while grep . conftest.undefs >/dev/null
8925 # Write a limited-size here document to $tmp/undefs.sed.
8926 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8927 # Speed up: don't consider the non `#undef'
8928 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8929 # Work around the forget-to-reset-the-flag bug.
8930 echo 't clr' >>$CONFIG_STATUS
8931 echo ': clr' >>$CONFIG_STATUS
8932 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8934 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8938 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8939 rm -f conftest.undefs
8940 mv conftest.tail conftest.undefs
8942 rm -f conftest.undefs
8944 cat >>$CONFIG_STATUS <<\_ACEOF
8945 # Let's still pretend it is `configure' which instantiates (i.e., don't
8946 # use $as_me), people would be surprised to read:
8947 # /* config.h. Generated by config.status. */
8948 if test x"$ac_file" = x-; then
8949 echo "/* Generated by configure. */" >$tmp/config.h
8951 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8953 cat $tmp/in >>$tmp/config.h
8955 if test x"$ac_file" != x-; then
8956 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8957 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8958 echo "$as_me: $ac_file is unchanged" >&6;}
8960 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8962 X"$ac_file" : 'X\(//\)[^/]' \| \
8963 X"$ac_file" : 'X\(//\)$' \| \
8964 X"$ac_file" : 'X\(/\)' \| \
8965 . : '\(.\)' 2>/dev/null ||
8967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8969 /^X\(\/\/\)$/{ s//\1/; q; }
8970 /^X\(\/\).*/{ s//\1/; q; }
8972 { if $as_mkdir_p; then
8977 while test ! -d "$as_dir"; do
8978 as_dirs="$as_dir $as_dirs"
8979 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8981 X"$as_dir" : 'X\(//\)[^/]' \| \
8982 X"$as_dir" : 'X\(//\)$' \| \
8983 X"$as_dir" : 'X\(/\)' \| \
8984 . : '\(.\)' 2>/dev/null ||
8986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8988 /^X\(\/\/\)$/{ s//\1/; q; }
8989 /^X\(\/\).*/{ s//\1/; q; }
8992 test ! -n "$as_dirs" || mkdir $as_dirs
8993 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8995 { (exit 1); exit 1; }; }; }
8998 mv $tmp/config.h $ac_file
9006 cat >>$CONFIG_STATUS <<\_ACEOF
9009 # CONFIG_LINKS section.
9012 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9013 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9014 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9016 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9017 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9019 if test ! -r $srcdir/$ac_source; then
9020 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9021 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9022 { (exit 1); exit 1; }; }
9026 # Make relative symlinks.
9027 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9028 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9029 X"$ac_dest" : 'X\(//\)[^/]' \| \
9030 X"$ac_dest" : 'X\(//\)$' \| \
9031 X"$ac_dest" : 'X\(/\)' \| \
9032 . : '\(.\)' 2>/dev/null ||
9034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9036 /^X\(\/\/\)$/{ s//\1/; q; }
9037 /^X\(\/\).*/{ s//\1/; q; }
9039 { if $as_mkdir_p; then
9040 mkdir -p "$ac_dest_dir"
9042 as_dir="$ac_dest_dir"
9044 while test ! -d "$as_dir"; do
9045 as_dirs="$as_dir $as_dirs"
9046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9048 X"$as_dir" : 'X\(//\)[^/]' \| \
9049 X"$as_dir" : 'X\(//\)$' \| \
9050 X"$as_dir" : 'X\(/\)' \| \
9051 . : '\(.\)' 2>/dev/null ||
9053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9055 /^X\(\/\/\)$/{ s//\1/; q; }
9056 /^X\(\/\).*/{ s//\1/; q; }
9059 test ! -n "$as_dirs" || mkdir $as_dirs
9060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9061 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9062 { (exit 1); exit 1; }; }; }
9066 if test "$ac_dest_dir" != .; then
9067 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9068 # A "../" for each directory in $ac_dir_suffix.
9069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9071 ac_dir_suffix= ac_top_builddir=
9075 .) # No --srcdir option. We are building in place.
9077 if test -z "$ac_top_builddir"; then
9080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9082 [\\/]* | ?:[\\/]* ) # Absolute path.
9083 ac_srcdir=$srcdir$ac_dir_suffix;
9084 ac_top_srcdir=$srcdir ;;
9086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9090 # Do not use `cd foo && pwd` to compute absolute paths, because
9091 # the directories may not exist.
9093 .) ac_abs_builddir="$ac_dest_dir";;
9095 case "$ac_dest_dir" in
9096 .) ac_abs_builddir=`pwd`;;
9097 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9098 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9101 case $ac_abs_builddir in
9102 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9104 case ${ac_top_builddir}. in
9105 .) ac_abs_top_builddir=$ac_abs_builddir;;
9106 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9107 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9110 case $ac_abs_builddir in
9111 .) ac_abs_srcdir=$ac_srcdir;;
9114 .) ac_abs_srcdir=$ac_abs_builddir;;
9115 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9116 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9119 case $ac_abs_builddir in
9120 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9122 case $ac_top_srcdir in
9123 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9124 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9125 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9131 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9132 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9135 # Try a symlink, then a hard link, then a copy.
9136 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9137 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9138 cp -p $srcdir/$ac_source $ac_dest ||
9139 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9140 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9141 { (exit 1); exit 1; }; }
9144 cat >>$CONFIG_STATUS <<\_ACEOF
9147 # CONFIG_COMMANDS section.
9149 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9150 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9151 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9152 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9153 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9154 X"$ac_dest" : 'X\(//\)[^/]' \| \
9155 X"$ac_dest" : 'X\(//\)$' \| \
9156 X"$ac_dest" : 'X\(/\)' \| \
9157 . : '\(.\)' 2>/dev/null ||
9159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9161 /^X\(\/\/\)$/{ s//\1/; q; }
9162 /^X\(\/\).*/{ s//\1/; q; }
9164 { if $as_mkdir_p; then
9169 while test ! -d "$as_dir"; do
9170 as_dirs="$as_dir $as_dirs"
9171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9173 X"$as_dir" : 'X\(//\)[^/]' \| \
9174 X"$as_dir" : 'X\(//\)$' \| \
9175 X"$as_dir" : 'X\(/\)' \| \
9176 . : '\(.\)' 2>/dev/null ||
9178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9180 /^X\(\/\/\)$/{ s//\1/; q; }
9181 /^X\(\/\).*/{ s//\1/; q; }
9184 test ! -n "$as_dirs" || mkdir $as_dirs
9185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9186 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9187 { (exit 1); exit 1; }; }; }
9191 if test "$ac_dir" != .; then
9192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9193 # A "../" for each directory in $ac_dir_suffix.
9194 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9196 ac_dir_suffix= ac_top_builddir=
9200 .) # No --srcdir option. We are building in place.
9202 if test -z "$ac_top_builddir"; then
9205 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9207 [\\/]* | ?:[\\/]* ) # Absolute path.
9208 ac_srcdir=$srcdir$ac_dir_suffix;
9209 ac_top_srcdir=$srcdir ;;
9211 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9212 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9215 # Do not use `cd foo && pwd` to compute absolute paths, because
9216 # the directories may not exist.
9218 .) ac_abs_builddir="$ac_dir";;
9221 .) ac_abs_builddir=`pwd`;;
9222 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9223 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9226 case $ac_abs_builddir in
9227 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9229 case ${ac_top_builddir}. in
9230 .) ac_abs_top_builddir=$ac_abs_builddir;;
9231 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9232 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9235 case $ac_abs_builddir in
9236 .) ac_abs_srcdir=$ac_srcdir;;
9239 .) ac_abs_srcdir=$ac_abs_builddir;;
9240 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9241 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9244 case $ac_abs_builddir in
9245 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9247 case $ac_top_srcdir in
9248 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9249 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9250 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9255 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9256 echo "$as_me: executing $ac_dest commands" >&6;}
9258 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9259 rm -f Makesim1.tmp Makesim2.tmp Makefile
9260 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
9261 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
9262 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9263 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9264 <Makefile.sim >Makefile
9265 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9267 stamp-h ) echo > stamp-h ;;
9272 cat >>$CONFIG_STATUS <<\_ACEOF
9274 { (exit 0); exit 0; }
9276 chmod +x $CONFIG_STATUS
9277 ac_clean_files=$ac_clean_files_save
9280 # configure is writing to config.log, and then calls config.status.
9281 # config.status does its own redirection, appending to config.log.
9282 # Unfortunately, on DOS this fails, as config.log is still kept open
9283 # by configure, so config.status won't be able to write to it; its
9284 # output is simply discarded. So we exec the FD to /dev/null,
9285 # effectively closing config.log, so it can be properly (re)opened and
9286 # appended to by config.status. When coming back to configure, we
9287 # need to make the FD available again.
9288 if test "$no_create" != yes; then
9290 ac_config_status_args=
9291 test "$silent" = yes &&
9292 ac_config_status_args="$ac_config_status_args --quiet"
9294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9297 # would make configure fail if this is the last instruction.
9298 $ac_cs_success || { (exit 1); exit 1; }