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_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-build-warnings Enable build-time compiler warnings if gcc is used
862 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-included-gettext use the GNU gettext library included here
869 Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
884 if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
891 if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 ac_dir_suffix= ac_top_builddir=
900 .) # No --srcdir option. We are building in place.
902 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
918 .) ac_abs_builddir="$ac_dir";;
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_must_keep_next=false
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 -* ) ac_must_keep_next=true ;;
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1106 # The following way of writing the cache mishandles newlines in values,
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1129 for ac_var in $ac_subst_vars
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -n "$ac_subst_files"; then
1143 for ac_var in $ac_subst_files
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -s confdefs.h; then
1158 sed "/^$/d" confdefs.h | sort
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 # Predefined preprocessor variables.
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1241 # Check that the precious variables saved in the cache have kept the same
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316 ac_config_headers="$ac_config_headers config.h:config.in"
1319 # This file contains common code used by all simulators.
1321 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1322 # directory. It is intended to be invoked before any target specific stuff.
1323 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1324 # It is intended to be invoked last.
1326 # The simulator's configure.in should look like:
1328 # dnl Process this file with autoconf to produce a configure script.
1329 # sinclude(../common/aclocal.m4)
1331 # AC_INIT(Makefile.in)
1335 # ... target specific stuff ...
1386 sim_inline="-DDEFAULT_INLINE=0"
1423 # This file is derived from `gettext.m4'. The difference is that the
1424 # included macros assume Cygnus-style source and build trees.
1426 # Macro to add for using GNU gettext.
1429 # This file file be copied and used freely without restrictions. It can
1430 # be used in projects which are not available under the GNU Public License
1431 # but which still want to provide support for the GNU gettext functionality.
1432 # Please note that the actual code is *not* freely available.
1440 # Search path for a program which passes the given test.
1443 # This file file be copied and used freely without restrictions. It can
1444 # be used in projects which are not available under the GNU Public License
1445 # but which still want to provide support for the GNU gettext functionality.
1446 # Please note that the actual code is *not* freely available.
1452 # Check whether LC_MESSAGES is available in <locale.h>.
1455 # This file file be copied and used freely without restrictions. It can
1456 # be used in projects which are not available under the GNU Public License
1457 # but which still want to provide support for the GNU gettext functionality.
1458 # Please note that the actual code is *not* freely available.
1468 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1469 # it by inlining the macro's contents.
1470 # This file contains common code used by all simulators.
1472 # common.m4 invokes AC macros used by all simulators and by the common
1473 # directory. It is intended to be included before any target specific
1474 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1475 # the Makefile. It is intended to be invoked last.
1477 # The simulator's configure.in should look like:
1479 # dnl Process this file with autoconf to produce a configure script.
1481 # AC_INIT(Makefile.in)
1482 # AC_CONFIG_HEADER(config.h:config.in)
1484 # sinclude(../common/aclocal.m4)
1485 # sinclude(../common/common.m4)
1487 # ... target specific stuff ...
1490 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1491 if test -f $ac_dir/install-sh; then
1493 ac_install_sh="$ac_aux_dir/install-sh -c"
1495 elif test -f $ac_dir/install.sh; then
1497 ac_install_sh="$ac_aux_dir/install.sh -c"
1499 elif test -f $ac_dir/shtool; then
1501 ac_install_sh="$ac_aux_dir/shtool install -c"
1505 if test -z "$ac_aux_dir"; then
1506 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1507 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1508 { (exit 1); exit 1; }; }
1510 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1511 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1512 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1514 # Make sure we can run config.sub.
1515 $ac_config_sub sun4 >/dev/null 2>&1 ||
1516 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518 { (exit 1); exit 1; }; }
1520 echo "$as_me:$LINENO: checking build system type" >&5
1521 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522 if test "${ac_cv_build+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 ac_cv_build_alias=$build_alias
1526 test -z "$ac_cv_build_alias" &&
1527 ac_cv_build_alias=`$ac_config_guess`
1528 test -z "$ac_cv_build_alias" &&
1529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531 { (exit 1); exit 1; }; }
1532 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539 echo "${ECHO_T}$ac_cv_build" >&6
1541 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 echo "$as_me:$LINENO: checking host system type" >&5
1547 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548 if test "${ac_cv_host+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 ac_cv_host_alias=$host_alias
1552 test -z "$ac_cv_host_alias" &&
1553 ac_cv_host_alias=$ac_cv_build_alias
1554 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561 echo "${ECHO_T}$ac_cv_host" >&6
1563 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568 echo "$as_me:$LINENO: checking target system type" >&5
1569 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1570 if test "${ac_cv_target+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 ac_cv_target_alias=$target_alias
1574 test "x$ac_cv_target_alias" = "x" &&
1575 ac_cv_target_alias=$ac_cv_host_alias
1576 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1578 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1582 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1583 echo "${ECHO_T}$ac_cv_target" >&6
1584 target=$ac_cv_target
1585 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590 # The aliases save the names the user supplied, while $host etc.
1591 # will get canonicalized.
1592 test -n "$target_alias" &&
1593 test "$program_prefix$program_suffix$program_transform_name" = \
1595 program_prefix=${target_alias}-
1596 test "$program_prefix" != NONE &&
1597 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1598 # Use a double $ so make ignores it.
1599 test "$program_suffix" != NONE &&
1600 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1601 # Double any \ or $. echo might interpret backslashes.
1602 # By default was `s,x,x', remove it if useless.
1603 cat <<\_ACEOF >conftest.sed
1604 s/[\\$]/&&/g;s/;s,x,x,$//
1606 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1610 ac_cpp='$CPP $CPPFLAGS'
1611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$ac_cv_prog_CC"; then
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654 set dummy gcc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1693 if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}cc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$ac_cv_prog_CC"; then
1733 # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1774 if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1808 if test $# != 0; then
1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1819 if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1828 if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1867 test -n "$CC" && break
1870 if test -z "$CC"; then
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909 test -n "$ac_ct_CC" && break
1918 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: no acceptable C compiler found in \$PATH
1921 See \`config.log' for more details." >&2;}
1922 { (exit 1); exit 1; }; }
1924 # Provide some information about the compiler.
1925 echo "$as_me:$LINENO:" \
1926 "checking for C compiler version" >&5
1927 ac_compiler=`set X $ac_compile; echo $2`
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1929 (eval $ac_compiler --version </dev/null >&5) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1933 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1934 (eval $ac_compiler -v </dev/null >&5) 2>&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }
1938 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1939 (eval $ac_compiler -V </dev/null >&5) 2>&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }
1944 cat >conftest.$ac_ext <<_ACEOF
1947 cat confdefs.h >>conftest.$ac_ext
1948 cat >>conftest.$ac_ext <<_ACEOF
1949 /* end confdefs.h. */
1959 ac_clean_files_save=$ac_clean_files
1960 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1961 # Try to create an executable without -o first, disregard a.out.
1962 # It will help us diagnose broken compilers, and finding out an intuition
1964 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1965 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1966 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1968 (eval $ac_link_default) 2>&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 # Find the output, starting from the most likely. This scheme is
1973 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976 # Be careful to initialize this variable, since it used to be cached.
1977 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1979 # b.out is created by i960 compilers.
1980 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1982 test -f "$ac_file" || continue
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987 # This is the source file.
1990 # We found the default executable, but exeext='' is most
1994 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 # FIXME: I believe we export ac_cv_exeext for Libtool,
1996 # but it would be cool to find out if it's true. Does anybody
1997 # maintain Libtool? --akim.
2005 echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2008 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2009 See \`config.log' for more details." >&5
2010 echo "$as_me: error: C compiler cannot create executables
2011 See \`config.log' for more details." >&2;}
2012 { (exit 77); exit 77; }; }
2015 ac_exeext=$ac_cv_exeext
2016 echo "$as_me:$LINENO: result: $ac_file" >&5
2017 echo "${ECHO_T}$ac_file" >&6
2019 # Check the compiler produces executables we can run. If not, either
2020 # the compiler is broken, or we cross compile.
2021 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2022 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2023 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2024 # If not cross compiling, check that we can run a simple program.
2025 if test "$cross_compiling" != yes; then
2026 if { ac_try='./$ac_file'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2034 if test "$cross_compiling" = maybe; then
2037 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2038 If you meant to cross compile, use \`--host'.
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: cannot run C compiled programs.
2041 If you meant to cross compile, use \`--host'.
2042 See \`config.log' for more details." >&2;}
2043 { (exit 1); exit 1; }; }
2047 echo "$as_me:$LINENO: result: yes" >&5
2048 echo "${ECHO_T}yes" >&6
2050 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2051 ac_clean_files=$ac_clean_files_save
2052 # Check the compiler produces executables we can run. If not, either
2053 # the compiler is broken, or we cross compile.
2054 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2055 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2056 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2057 echo "${ECHO_T}$cross_compiling" >&6
2059 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2060 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2062 (eval $ac_link) 2>&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; then
2066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2067 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2068 # work properly (i.e., refer to `conftest.exe'), while it won't with
2070 for ac_file in conftest.exe conftest conftest.*; do
2071 test -f "$ac_file" || continue
2073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084 See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }
2088 rm -f conftest$ac_cv_exeext
2089 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090 echo "${ECHO_T}$ac_cv_exeext" >&6
2092 rm -f conftest.$ac_ext
2093 EXEEXT=$ac_cv_exeext
2095 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097 if test "${ac_cv_objext+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 cat >conftest.$ac_ext <<_ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2115 rm -f conftest.o conftest.obj
2116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2129 echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2141 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142 echo "${ECHO_T}$ac_cv_objext" >&6
2143 OBJEXT=$ac_cv_objext
2145 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 cat >conftest.$ac_ext <<_ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h. */
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2172 grep -v '^ *+' conftest.er1 >conftest.err
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2201 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203 GCC=`test $ac_compiler_gnu = yes && echo yes`
2204 ac_test_CFLAGS=${CFLAGS+set}
2205 ac_save_CFLAGS=$CFLAGS
2207 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.$ac_ext <<_ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2231 grep -v '^ *+' conftest.er1 >conftest.err
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260 if test "$ac_test_CFLAGS" = set; then
2261 CFLAGS=$ac_save_CFLAGS
2262 elif test $ac_cv_prog_cc_g = yes; then
2263 if test "$GCC" = yes; then
2269 if test "$GCC" = yes; then
2275 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 ac_cv_prog_cc_stdc=no
2282 cat >conftest.$ac_ext <<_ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2290 #include <sys/types.h>
2291 #include <sys/stat.h>
2292 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2293 struct buf { int x; };
2294 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295 static char *e (p, i)
2301 static char *f (char * (*g) (char **, int), char **p, ...)
2306 s = g (p, va_arg (v,int));
2311 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2312 function prototypes and stuff, but not '\xHH' hex character constants.
2313 These don't provoke an error unfortunately, instead are silently treated
2314 as 'x'. The following induces an error, until -std1 is added to get
2315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2316 array size at least. It's necessary to write '\x00'==0 to get something
2317 that's true only with -std1. */
2318 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2320 int test (int i, double x);
2321 struct s1 {int (*f) (int a);};
2322 struct s2 {int (*f) (double a);};
2323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2334 # Don't try gcc -ansi; that turns off useful extensions and
2335 # breaks some systems' header files.
2336 # AIX -qlanglvl=ansi
2337 # Ultrix and OSF/1 -std1
2338 # HP-UX 10.20 and later -Ae
2339 # HP-UX older versions -Aa -D_HPUX_SOURCE
2340 # SVR4 -Xc -D__EXTENSIONS__
2341 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2343 CC="$ac_save_CC $ac_arg"
2344 rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2348 grep -v '^ *+' conftest.er1 >conftest.err
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag"
2354 || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_cv_prog_cc_stdc=$ac_arg
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.err conftest.$ac_objext
2375 rm -f conftest.$ac_ext conftest.$ac_objext
2380 case "x$ac_cv_prog_cc_stdc" in
2382 echo "$as_me:$LINENO: result: none needed" >&5
2383 echo "${ECHO_T}none needed" >&6 ;;
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387 CC="$CC $ac_cv_prog_cc_stdc" ;;
2390 # Some people use a C++ compiler to compile C. Since we use `exit',
2391 # in C++ we need to declare it. In case someone uses the same compiler
2392 # for both compiling C and C++ we need to have the C++ compiler decide
2393 # the declaration of exit, since it's the most demanding environment.
2394 cat >conftest.$ac_ext <<_ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2403 grep -v '^ *+' conftest.er1 >conftest.err
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 for ac_declaration in \
2423 'extern "C" void std::exit (int) throw (); using std::exit;' \
2424 'extern "C" void std::exit (int); using std::exit;' \
2425 'extern "C" void exit (int) throw ();' \
2426 'extern "C" void exit (int);' \
2429 cat >conftest.$ac_ext <<_ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1 >conftest.err
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2490 rm -f conftest.$ac_objext
2491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>conftest.er1
2494 grep -v '^ *+' conftest.er1 >conftest.err
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -z "$ac_c_werror_flag"
2500 || test ! -s conftest.err'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521 if test -n "$ac_declaration"; then
2522 echo '#ifdef __cplusplus' >>confdefs.h
2523 echo $ac_declaration >>confdefs.h
2524 echo '#endif' >>confdefs.h
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 # Find a good install program. We prefer a C program (faster),
2540 # so one script is as good as another. But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # OS/2's system install, which has a completely different semantic
2551 # ./install, which can be erroneously created by make from ./install.sh.
2552 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2553 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2554 if test -z "$INSTALL"; then
2555 if test "${ac_cv_path_install+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir=.
2563 # Account for people who put trailing slashes in PATH elements.
2565 ./ | .// | /cC/* | \
2566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2567 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2573 for ac_prog in ginstall scoinst install; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2576 if test $ac_prog = install &&
2577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578 # AIX install. It has an incompatible calling convention.
2580 elif test $ac_prog = install &&
2581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # program-specific install script used by HP pwplus--don't use.
2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2597 if test "${ac_cv_path_install+set}" = set; then
2598 INSTALL=$ac_cv_path_install
2600 # As a last resort, use the slow shell script. We don't cache a
2601 # path for INSTALL within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the path is relative.
2604 INSTALL=$ac_install_sh
2607 echo "$as_me:$LINENO: result: $INSTALL" >&5
2608 echo "${ECHO_T}$INSTALL" >&6
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2619 # Put a plausible default for CC_FOR_BUILD in Makefile.
2620 if test "x$cross_compiling" = "xno"; then
2621 CC_FOR_BUILD='$(CC)'
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2634 echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636 if test "${ac_cv_prog_RANLIB+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$RANLIB"; then
2640 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 RANLIB=$ac_cv_prog_RANLIB
2659 if test -n "$RANLIB"; then
2660 echo "$as_me:$LINENO: result: $RANLIB" >&5
2661 echo "${ECHO_T}$RANLIB" >&6
2663 echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6
2668 if test -z "$ac_cv_prog_RANLIB"; then
2669 ac_ct_RANLIB=$RANLIB
2670 # Extract the first word of "ranlib", so it can be a program name with args.
2671 set dummy ranlib; ac_word=$2
2672 echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 if test -n "$ac_ct_RANLIB"; then
2678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_ac_ct_RANLIB="ranlib"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2698 if test -n "$ac_ct_RANLIB"; then
2699 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2700 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2702 echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2706 RANLIB=$ac_ct_RANLIB
2708 RANLIB="$ac_cv_prog_RANLIB"
2713 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 cat >conftest.make <<\_ACEOF
2721 @echo 'ac_maketemp="$(MAKE)"'
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725 if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2728 eval ac_cv_prog_make_${ac_make}_set=no
2732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734 echo "${ECHO_T}yes" >&6
2737 echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2743 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2744 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2745 if test "${ac_cv_search_strerror+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 ac_func_search_save_LIBS=$LIBS
2749 ac_cv_search_strerror=no
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2757 /* Override any gcc2 internal prototype to avoid an error. */
2761 /* We use char because int might match the return type of a gcc2
2762 builtin and then its argument prototype would still apply. */
2772 rm -f conftest.$ac_objext conftest$ac_exeext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2774 (eval $ac_link) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest$ac_exeext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 ac_cv_search_strerror="none required"
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f conftest.err conftest.$ac_objext \
2801 conftest$ac_exeext conftest.$ac_ext
2802 if test "$ac_cv_search_strerror" = no; then
2803 for ac_lib in cposix; do
2804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2805 cat >conftest.$ac_ext <<_ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h. */
2812 /* Override any gcc2 internal prototype to avoid an error. */
2816 /* We use char because int might match the return type of a gcc2
2817 builtin and then its argument prototype would still apply. */
2827 rm -f conftest.$ac_objext conftest$ac_exeext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2829 (eval $ac_link) 2>conftest.er1
2831 grep -v '^ *+' conftest.er1 >conftest.err
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -z "$ac_c_werror_flag"
2837 || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest$ac_exeext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 ac_cv_search_strerror="-l$ac_lib"
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f conftest.err conftest.$ac_objext \
2857 conftest$ac_exeext conftest.$ac_ext
2860 LIBS=$ac_func_search_save_LIBS
2862 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2863 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2864 if test "$ac_cv_search_strerror" != no; then
2865 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2875 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2876 # On Suns, sometimes $CPP names a directory.
2877 if test -n "$CPP" && test -d "$CPP"; then
2880 if test -z "$CPP"; then
2881 if test "${ac_cv_prog_CPP+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 # Double quotes because CPP needs to be expanded
2885 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2888 for ac_c_preproc_warn_flag in '' yes
2890 # Use a header file that comes with gcc, so configuring glibc
2891 # with a fresh cross-compiler works.
2892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2893 # <limits.h> exists even on freestanding compilers.
2894 # On the NeXT, cc -E runs the code through the compiler's parser,
2895 # not just through cpp. "Syntax error" is here to catch this case.
2896 cat >conftest.$ac_ext <<_ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2903 # include <limits.h>
2905 # include <assert.h>
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912 grep -v '^ *+' conftest.er1 >conftest.err
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2926 if test -z "$ac_cpp_err"; then
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2932 # Broken: fails on valid input.
2935 rm -f conftest.err conftest.$ac_ext
2937 # OK, works on sane cases. Now check whether non-existent headers
2938 # can be detected and how.
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <ac_nonexistent.h>
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2964 if test -z "$ac_cpp_err"; then
2965 # Broken: success on invalid input.
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 # Passes both tests.
2975 rm -f conftest.err conftest.$ac_ext
2978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2979 rm -f conftest.err conftest.$ac_ext
2980 if $ac_preproc_ok; then
2992 echo "$as_me:$LINENO: result: $CPP" >&5
2993 echo "${ECHO_T}$CPP" >&6
2995 for ac_c_preproc_warn_flag in '' yes
2997 # Use a header file that comes with gcc, so configuring glibc
2998 # with a fresh cross-compiler works.
2999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3000 # <limits.h> exists even on freestanding compilers.
3001 # On the NeXT, cc -E runs the code through the compiler's parser,
3002 # not just through cpp. "Syntax error" is here to catch this case.
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3010 # include <limits.h>
3012 # include <assert.h>
3016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019 grep -v '^ *+' conftest.er1 >conftest.err
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } >/dev/null; then
3024 if test -s conftest.err; then
3025 ac_cpp_err=$ac_c_preproc_warn_flag
3026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3033 if test -z "$ac_cpp_err"; then
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 # Broken: fails on valid input.
3042 rm -f conftest.err conftest.$ac_ext
3044 # OK, works on sane cases. Now check whether non-existent headers
3045 # can be detected and how.
3046 cat >conftest.$ac_ext <<_ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052 #include <ac_nonexistent.h>
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057 grep -v '^ *+' conftest.er1 >conftest.err
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } >/dev/null; then
3062 if test -s conftest.err; then
3063 ac_cpp_err=$ac_c_preproc_warn_flag
3064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 if test -z "$ac_cpp_err"; then
3072 # Broken: success on invalid input.
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3078 # Passes both tests.
3082 rm -f conftest.err conftest.$ac_ext
3085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3086 rm -f conftest.err conftest.$ac_ext
3087 if $ac_preproc_ok; then
3090 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3091 See \`config.log' for more details." >&5
3092 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3093 See \`config.log' for more details." >&2;}
3094 { (exit 1); exit 1; }; }
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 echo "$as_me:$LINENO: checking for egrep" >&5
3105 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3106 if test "${ac_cv_prog_egrep+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3110 then ac_cv_prog_egrep='grep -E'
3111 else ac_cv_prog_egrep='egrep'
3114 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3115 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3116 EGREP=$ac_cv_prog_egrep
3119 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3121 if test "${ac_cv_header_stdc+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3143 rm -f conftest.$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag"
3153 || test ! -s conftest.err'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_cv_header_stdc=yes
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 ac_cv_header_stdc=no
3172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3174 if test $ac_cv_header_stdc = yes; then
3175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3176 cat >conftest.$ac_ext <<_ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3186 $EGREP "memchr" >/dev/null 2>&1; then
3189 ac_cv_header_stdc=no
3195 if test $ac_cv_header_stdc = yes; then
3196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3197 cat >conftest.$ac_ext <<_ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3207 $EGREP "free" >/dev/null 2>&1; then
3210 ac_cv_header_stdc=no
3216 if test $ac_cv_header_stdc = yes; then
3217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3218 if test "$cross_compiling" = yes; then
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3228 #if ((' ' & 0x0FF) == 0x020)
3229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3232 # define ISLOWER(c) \
3233 (('a' <= (c) && (c) <= 'i') \
3234 || ('j' <= (c) && (c) <= 'r') \
3235 || ('s' <= (c) && (c) <= 'z'))
3236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3244 for (i = 0; i < 256; i++)
3245 if (XOR (islower (i), ISLOWER (i))
3246 || toupper (i) != TOUPPER (i))
3251 rm -f conftest$ac_exeext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253 (eval $ac_link) 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3264 echo "$as_me: program exited with status $ac_status" >&5
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3269 ac_cv_header_stdc=no
3271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3275 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3276 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3277 if test $ac_cv_header_stdc = yes; then
3279 cat >>confdefs.h <<\_ACEOF
3280 #define STDC_HEADERS 1
3285 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3286 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3287 if test "${ac_cv_c_const+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 cat >conftest.$ac_ext <<_ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3300 /* FIXME: Include the comments suggested by Paul. */
3302 /* Ultrix mips cc rejects this. */
3303 typedef int charset[2];
3305 /* SunOS 4.1.1 cc rejects this. */
3306 char const *const *ccp;
3308 /* NEC SVR4.0.2 mips cc rejects this. */
3309 struct point {int x, y;};
3310 static struct point const zero = {0,0};
3311 /* AIX XL C 1.02.0.0 rejects this.
3312 It does not let you subtract one const X* pointer from another in
3313 an arm of an if-expression whose if-part is not a constant
3315 const char *g = "string";
3316 ccp = &g + (g ? g-g : 0);
3317 /* HPUX 7.0 cc rejects these. */
3320 ccp = (char const *const *) p;
3321 { /* SCO 3.2v4 cc rejects this. */
3323 char const *s = 0 ? (char *) 0 : (char const *) 0;
3327 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3329 const int *foo = &x[0];
3332 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3333 typedef const int *iptr;
3337 { /* AIX XL C 1.02.0.0 rejects this saying
3338 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3339 struct s { int j; const int *ap[3]; };
3340 struct s *b; b->j = 5;
3342 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_c_werror_flag"
3361 || test ! -s conftest.err'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; } &&
3367 { ac_try='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3383 echo "${ECHO_T}$ac_cv_c_const" >&6
3384 if test $ac_cv_c_const = no; then
3386 cat >>confdefs.h <<\_ACEOF
3392 echo "$as_me:$LINENO: checking for inline" >&5
3393 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3394 if test "${ac_cv_c_inline+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 for ac_kw in inline __inline__ __inline; do
3399 cat >conftest.$ac_ext <<_ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3407 static $ac_kw foo_t static_foo () {return 0; }
3408 $ac_kw foo_t foo () {return 0; }
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -z "$ac_c_werror_flag"
3422 || test ! -s conftest.err'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 ac_cv_c_inline=$ac_kw; break
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3444 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3445 echo "${ECHO_T}$ac_cv_c_inline" >&6
3448 case $ac_cv_c_inline in
3451 case $ac_cv_c_inline in
3453 *) ac_val=$ac_cv_c_inline;;
3455 cat >>confdefs.h <<_ACEOF
3457 #define inline $ac_val
3463 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3473 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3474 inttypes.h stdint.h unistd.h
3476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3477 echo "$as_me:$LINENO: checking for $ac_header" >&5
3478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 $ac_includes_default
3490 #include <$ac_header>
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 eval "$as_ac_Header=yes"
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 eval "$as_ac_Header=no"
3521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3526 cat >>confdefs.h <<_ACEOF
3527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3535 echo "$as_me:$LINENO: checking for off_t" >&5
3536 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3537 if test "${ac_cv_type_off_t+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 $ac_includes_default
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3562 grep -v '^ *+' conftest.er1 >conftest.err
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 ac_cv_type_off_t=yes
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3590 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3591 if test $ac_cv_type_off_t = yes; then
3595 cat >>confdefs.h <<_ACEOF
3601 echo "$as_me:$LINENO: checking for size_t" >&5
3602 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3603 if test "${ac_cv_type_size_t+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 $ac_includes_default
3618 if (sizeof (size_t))
3624 rm -f conftest.$ac_objext
3625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>conftest.er1
3628 grep -v '^ *+' conftest.er1 >conftest.err
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -z "$ac_c_werror_flag"
3634 || test ! -s conftest.err'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_cv_type_size_t=yes
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 ac_cv_type_size_t=no
3653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3656 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3657 if test $ac_cv_type_size_t = yes; then
3661 cat >>confdefs.h <<_ACEOF
3662 #define size_t unsigned
3667 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3668 # for constant arguments. Useless!
3669 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3670 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3671 if test "${ac_cv_working_alloca_h+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3684 char *p = (char *) alloca (2 * sizeof (int));
3689 rm -f conftest.$ac_objext conftest$ac_exeext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3691 (eval $ac_link) 2>conftest.er1
3693 grep -v '^ *+' conftest.er1 >conftest.err
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest$ac_exeext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_working_alloca_h=yes
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_cv_working_alloca_h=no
3718 rm -f conftest.err conftest.$ac_objext \
3719 conftest$ac_exeext conftest.$ac_ext
3721 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3722 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3723 if test $ac_cv_working_alloca_h = yes; then
3725 cat >>confdefs.h <<\_ACEOF
3726 #define HAVE_ALLOCA_H 1
3731 echo "$as_me:$LINENO: checking for alloca" >&5
3732 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3733 if test "${ac_cv_func_alloca_works+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3743 # define alloca __builtin_alloca
3746 # include <malloc.h>
3747 # define alloca _alloca
3750 # include <alloca.h>
3755 # ifndef alloca /* predefined by HP cc +Olibcalls */
3766 char *p = (char *) alloca (1);
3771 rm -f conftest.$ac_objext conftest$ac_exeext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773 (eval $ac_link) 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try='test -z "$ac_c_werror_flag"
3781 || test ! -s conftest.err'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest$ac_exeext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_cv_func_alloca_works=yes
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 ac_cv_func_alloca_works=no
3800 rm -f conftest.err conftest.$ac_objext \
3801 conftest$ac_exeext conftest.$ac_ext
3803 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3804 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3806 if test $ac_cv_func_alloca_works = yes; then
3808 cat >>confdefs.h <<\_ACEOF
3809 #define HAVE_ALLOCA 1
3813 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3814 # that cause trouble. Some versions do not even contain alloca or
3815 # contain a buggy version. If you still want to use their alloca,
3816 # use ar to extract alloca.o from them instead of compiling alloca.c.
3818 ALLOCA=alloca.$ac_objext
3820 cat >>confdefs.h <<\_ACEOF
3825 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3826 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3827 if test "${ac_cv_os_cray+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 #if defined(CRAY) && ! defined(CRAY2)
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844 $EGREP "webecray" >/dev/null 2>&1; then
3852 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3853 echo "${ECHO_T}$ac_cv_os_cray" >&6
3854 if test $ac_cv_os_cray = yes; then
3855 for ac_func in _getb67 GETB67 getb67; do
3856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3857 echo "$as_me:$LINENO: checking for $ac_func" >&5
3858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3859 if eval "test \"\${$as_ac_var+set}\" = set"; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3870 #define $ac_func innocuous_$ac_func
3872 /* System header to define __stub macros and hopefully few prototypes,
3873 which can conflict with char $ac_func (); below.
3874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875 <limits.h> exists even on freestanding compilers. */
3878 # include <limits.h>
3880 # include <assert.h>
3885 /* Override any gcc2 internal prototype to avoid an error. */
3890 /* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3893 /* The GNU C library defines this for functions which it implements
3894 to always fail with ENOSYS. Some functions are actually named
3895 something starting with __ and the normal name is an alias. */
3896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3899 char (*f) () = $ac_func;
3908 return f != $ac_func;
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915 (eval $ac_link) 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -z "$ac_c_werror_flag"
3923 || test ! -s conftest.err'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; } &&
3929 { ac_try='test -s conftest$ac_exeext'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 eval "$as_ac_var=yes"
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 eval "$as_ac_var=no"
3942 rm -f conftest.err conftest.$ac_objext \
3943 conftest$ac_exeext conftest.$ac_ext
3945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3947 if test `eval echo '${'$as_ac_var'}'` = yes; then
3949 cat >>confdefs.h <<_ACEOF
3950 #define CRAY_STACKSEG_END $ac_func
3959 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3960 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3961 if test "${ac_cv_c_stack_direction+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test "$cross_compiling" = yes; then
3965 ac_cv_c_stack_direction=0
3967 cat >conftest.$ac_ext <<_ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3974 find_stack_direction ()
3976 static char *addr = 0;
3981 return find_stack_direction ();
3984 return (&dummy > addr) ? 1 : -1;
3990 exit (find_stack_direction () < 0);
3993 rm -f conftest$ac_exeext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3995 (eval $ac_link) 2>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_cv_c_stack_direction=1
4006 echo "$as_me: program exited with status $ac_status" >&5
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4011 ac_cv_c_stack_direction=-1
4013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4016 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4017 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4019 cat >>confdefs.h <<_ACEOF
4020 #define STACK_DIRECTION $ac_cv_c_stack_direction
4028 for ac_header in stdlib.h unistd.h
4030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4032 echo "$as_me:$LINENO: checking for $ac_header" >&5
4033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4040 # Is the header compilable?
4041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4043 cat >conftest.$ac_ext <<_ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049 $ac_includes_default
4050 #include <$ac_header>
4052 rm -f conftest.$ac_objext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag"
4062 || test ! -s conftest.err'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_header_compiler=yes
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 ac_header_compiler=no
4081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4083 echo "${ECHO_T}$ac_header_compiler" >&6
4085 # Is the header present?
4086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4094 #include <$ac_header>
4096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null; then
4104 if test -s conftest.err; then
4105 ac_cpp_err=$ac_c_preproc_warn_flag
4106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4113 if test -z "$ac_cpp_err"; then
4114 ac_header_preproc=yes
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4119 ac_header_preproc=no
4121 rm -f conftest.err conftest.$ac_ext
4122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4123 echo "${ECHO_T}$ac_header_preproc" >&6
4125 # So? What about this header?
4126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4132 ac_header_preproc=yes
4135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4149 ## ------------------------------------------ ##
4150 ## Report this to the AC_PACKAGE_NAME lists. ##
4151 ## ------------------------------------------ ##
4154 sed "s/^/$as_me: WARNING: /" >&2
4157 echo "$as_me:$LINENO: checking for $ac_header" >&5
4158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 eval "$as_ac_Header=\$ac_header_preproc"
4164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4169 cat >>confdefs.h <<_ACEOF
4170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4178 for ac_func in getpagesize
4180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4181 echo "$as_me:$LINENO: checking for $ac_func" >&5
4182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4183 if eval "test \"\${$as_ac_var+set}\" = set"; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4194 #define $ac_func innocuous_$ac_func
4196 /* System header to define __stub macros and hopefully few prototypes,
4197 which can conflict with char $ac_func (); below.
4198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 <limits.h> exists even on freestanding compilers. */
4202 # include <limits.h>
4204 # include <assert.h>
4209 /* Override any gcc2 internal prototype to avoid an error. */
4214 /* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4217 /* The GNU C library defines this for functions which it implements
4218 to always fail with ENOSYS. Some functions are actually named
4219 something starting with __ and the normal name is an alias. */
4220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4223 char (*f) () = $ac_func;
4232 return f != $ac_func;
4237 rm -f conftest.$ac_objext conftest$ac_exeext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4239 (eval $ac_link) 2>conftest.er1
4241 grep -v '^ *+' conftest.er1 >conftest.err
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -z "$ac_c_werror_flag"
4247 || test ! -s conftest.err'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try='test -s conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 eval "$as_ac_var=yes"
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 eval "$as_ac_var=no"
4266 rm -f conftest.err conftest.$ac_objext \
4267 conftest$ac_exeext conftest.$ac_ext
4269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4271 if test `eval echo '${'$as_ac_var'}'` = yes; then
4272 cat >>confdefs.h <<_ACEOF
4273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4279 echo "$as_me:$LINENO: checking for working mmap" >&5
4280 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4281 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 if test "$cross_compiling" = yes; then
4285 ac_cv_func_mmap_fixed_mapped=no
4287 cat >conftest.$ac_ext <<_ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 $ac_includes_default
4294 /* malloc might have been renamed as rpl_malloc. */
4297 /* Thanks to Mike Haertel and Jim Avera for this test.
4298 Here is a matrix of mmap possibilities:
4299 mmap private not fixed
4300 mmap private fixed at somewhere currently unmapped
4301 mmap private fixed at somewhere already mapped
4302 mmap shared not fixed
4303 mmap shared fixed at somewhere currently unmapped
4304 mmap shared fixed at somewhere already mapped
4305 For private mappings, we should verify that changes cannot be read()
4306 back from the file, nor mmap's back from the file at a different
4307 address. (There have been systems where private was not correctly
4308 implemented like the infamous i386 svr4.0, and systems where the
4309 VM page cache was not coherent with the file system buffer cache
4310 like early versions of FreeBSD and possibly contemporary NetBSD.)
4311 For shared mappings, we should conversely verify that changes get
4312 propagated back to all the places they're supposed to be.
4314 Grep wants private fixed already mapped.
4315 The main things grep needs to know about mmap are:
4316 * does it exist and is it safe to write into the mmap'd area
4317 * how to use it (BSD variants) */
4320 #include <sys/mman.h>
4322 #if !STDC_HEADERS && !HAVE_STDLIB_H
4326 /* This mess was copied from the GNU getpagesize.h. */
4327 #if !HAVE_GETPAGESIZE
4328 /* Assume that all systems that can run configure have sys/param.h. */
4329 # if !HAVE_SYS_PARAM_H
4330 # define HAVE_SYS_PARAM_H 1
4333 # ifdef _SC_PAGESIZE
4334 # define getpagesize() sysconf(_SC_PAGESIZE)
4335 # else /* no _SC_PAGESIZE */
4336 # if HAVE_SYS_PARAM_H
4337 # include <sys/param.h>
4338 # ifdef EXEC_PAGESIZE
4339 # define getpagesize() EXEC_PAGESIZE
4340 # else /* no EXEC_PAGESIZE */
4342 # define getpagesize() NBPG * CLSIZE
4345 # endif /* no CLSIZE */
4346 # else /* no NBPG */
4348 # define getpagesize() NBPC
4349 # else /* no NBPC */
4351 # define getpagesize() PAGESIZE
4352 # endif /* PAGESIZE */
4353 # endif /* no NBPC */
4354 # endif /* no NBPG */
4355 # endif /* no EXEC_PAGESIZE */
4356 # else /* no HAVE_SYS_PARAM_H */
4357 # define getpagesize() 8192 /* punt totally */
4358 # endif /* no HAVE_SYS_PARAM_H */
4359 # endif /* no _SC_PAGESIZE */
4361 #endif /* no HAVE_GETPAGESIZE */
4366 char *data, *data2, *data3;
4370 pagesize = getpagesize ();
4372 /* First, make a file with some known garbage in it. */
4373 data = (char *) malloc (pagesize);
4376 for (i = 0; i < pagesize; ++i)
4377 *(data + i) = rand ();
4379 fd = creat ("conftest.mmap", 0600);
4382 if (write (fd, data, pagesize) != pagesize)
4386 /* Next, try to mmap the file at a fixed address which already has
4387 something else allocated at it. If we can, also make sure that
4388 we see the same garbage. */
4389 fd = open ("conftest.mmap", O_RDWR);
4392 data2 = (char *) malloc (2 * pagesize);
4395 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4396 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4397 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4399 for (i = 0; i < pagesize; ++i)
4400 if (*(data + i) != *(data2 + i))
4403 /* Finally, make sure that changes to the mapped area do not
4404 percolate back to the file as seen by read(). (This is a bug on
4405 some variants of i386 svr4.0.) */
4406 for (i = 0; i < pagesize; ++i)
4407 *(data2 + i) = *(data2 + i) + 1;
4408 data3 = (char *) malloc (pagesize);
4411 if (read (fd, data3, pagesize) != pagesize)
4413 for (i = 0; i < pagesize; ++i)
4414 if (*(data + i) != *(data3 + i))
4420 rm -f conftest$ac_exeext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4422 (eval $ac_link) 2>&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_func_mmap_fixed_mapped=yes
4433 echo "$as_me: program exited with status $ac_status" >&5
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_cv_func_mmap_fixed_mapped=no
4440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4444 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4445 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4447 cat >>confdefs.h <<\_ACEOF
4464 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4465 unistd.h values.h sys/param.h
4467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4469 echo "$as_me:$LINENO: checking for $ac_header" >&5
4470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4477 # Is the header compilable?
4478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 $ac_includes_default
4487 #include <$ac_header>
4489 rm -f conftest.$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try='test -z "$ac_c_werror_flag"
4499 || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_header_compiler=yes
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 ac_header_compiler=no
4518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4520 echo "${ECHO_T}$ac_header_compiler" >&6
4522 # Is the header present?
4523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4525 cat >conftest.$ac_ext <<_ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #include <$ac_header>
4533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4536 grep -v '^ *+' conftest.er1 >conftest.err
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } >/dev/null; then
4541 if test -s conftest.err; then
4542 ac_cpp_err=$ac_c_preproc_warn_flag
4543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4550 if test -z "$ac_cpp_err"; then
4551 ac_header_preproc=yes
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 ac_header_preproc=no
4558 rm -f conftest.err conftest.$ac_ext
4559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4560 echo "${ECHO_T}$ac_header_preproc" >&6
4562 # So? What about this header?
4563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4569 ac_header_preproc=yes
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4586 ## ------------------------------------------ ##
4587 ## Report this to the AC_PACKAGE_NAME lists. ##
4588 ## ------------------------------------------ ##
4591 sed "s/^/$as_me: WARNING: /" >&2
4594 echo "$as_me:$LINENO: checking for $ac_header" >&5
4595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 eval "$as_ac_Header=\$ac_header_preproc"
4601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4606 cat >>confdefs.h <<_ACEOF
4607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4624 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4625 __argz_count __argz_stringify __argz_next
4627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4628 echo "$as_me:$LINENO: checking for $ac_func" >&5
4629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4630 if eval "test \"\${$as_ac_var+set}\" = set"; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4641 #define $ac_func innocuous_$ac_func
4643 /* System header to define __stub macros and hopefully few prototypes,
4644 which can conflict with char $ac_func (); below.
4645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4646 <limits.h> exists even on freestanding compilers. */
4649 # include <limits.h>
4651 # include <assert.h>
4656 /* Override any gcc2 internal prototype to avoid an error. */
4661 /* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4664 /* The GNU C library defines this for functions which it implements
4665 to always fail with ENOSYS. Some functions are actually named
4666 something starting with __ and the normal name is an alias. */
4667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4670 char (*f) () = $ac_func;
4679 return f != $ac_func;
4684 rm -f conftest.$ac_objext conftest$ac_exeext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4686 (eval $ac_link) 2>conftest.er1
4688 grep -v '^ *+' conftest.er1 >conftest.err
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try='test -s conftest$ac_exeext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 eval "$as_ac_var=yes"
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4711 eval "$as_ac_var=no"
4713 rm -f conftest.err conftest.$ac_objext \
4714 conftest$ac_exeext conftest.$ac_ext
4716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4718 if test `eval echo '${'$as_ac_var'}'` = yes; then
4719 cat >>confdefs.h <<_ACEOF
4720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4727 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4729 for ac_func in stpcpy
4731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4732 echo "$as_me:$LINENO: checking for $ac_func" >&5
4733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4734 if eval "test \"\${$as_ac_var+set}\" = set"; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4745 #define $ac_func innocuous_$ac_func
4747 /* System header to define __stub macros and hopefully few prototypes,
4748 which can conflict with char $ac_func (); below.
4749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 <limits.h> exists even on freestanding compilers. */
4753 # include <limits.h>
4755 # include <assert.h>
4760 /* Override any gcc2 internal prototype to avoid an error. */
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4774 char (*f) () = $ac_func;
4783 return f != $ac_func;
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 eval "$as_ac_var=yes"
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 eval "$as_ac_var=no"
4817 rm -f conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4821 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4822 if test `eval echo '${'$as_ac_var'}'` = yes; then
4823 cat >>confdefs.h <<_ACEOF
4824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4831 if test "${ac_cv_func_stpcpy}" = "yes"; then
4833 cat >>confdefs.h <<\_ACEOF
4834 #define HAVE_STPCPY 1
4839 if test $ac_cv_header_locale_h = yes; then
4840 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4841 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4842 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862 (eval $ac_link) 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -z "$ac_c_werror_flag"
4870 || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest$ac_exeext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 am_cv_val_LC_MESSAGES=yes
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 am_cv_val_LC_MESSAGES=no
4889 rm -f conftest.err conftest.$ac_objext \
4890 conftest$ac_exeext conftest.$ac_ext
4892 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4893 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4894 if test $am_cv_val_LC_MESSAGES = yes; then
4896 cat >>confdefs.h <<\_ACEOF
4897 #define HAVE_LC_MESSAGES 1
4902 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4903 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4904 # Check whether --enable-nls or --disable-nls was given.
4905 if test "${enable_nls+set}" = set; then
4906 enableval="$enable_nls"
4911 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4912 echo "${ECHO_T}$USE_NLS" >&6
4915 USE_INCLUDED_LIBINTL=no
4917 if test "$USE_NLS" = "yes"; then
4918 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4919 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4921 # Check whether --with-included-gettext or --without-included-gettext was given.
4922 if test "${with_included_gettext+set}" = set; then
4923 withval="$with_included_gettext"
4924 nls_cv_force_use_gnu_gettext=$withval
4926 nls_cv_force_use_gnu_gettext=no
4928 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4929 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4931 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4932 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4934 nls_cv_header_libgt=
4937 if test "${ac_cv_header_libintl_h+set}" = set; then
4938 echo "$as_me:$LINENO: checking for libintl.h" >&5
4939 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4940 if test "${ac_cv_header_libintl_h+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4944 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4946 # Is the header compilable?
4947 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4948 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4949 cat >conftest.$ac_ext <<_ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 $ac_includes_default
4956 #include <libintl.h>
4958 rm -f conftest.$ac_objext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960 (eval $ac_compile) 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -z "$ac_c_werror_flag"
4968 || test ! -s conftest.err'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try='test -s conftest.$ac_objext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_header_compiler=yes
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 ac_header_compiler=no
4987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4989 echo "${ECHO_T}$ac_header_compiler" >&6
4991 # Is the header present?
4992 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4993 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4994 cat >conftest.$ac_ext <<_ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 #include <libintl.h>
5002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005 grep -v '^ *+' conftest.er1 >conftest.err
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } >/dev/null; then
5010 if test -s conftest.err; then
5011 ac_cpp_err=$ac_c_preproc_warn_flag
5012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5019 if test -z "$ac_cpp_err"; then
5020 ac_header_preproc=yes
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 ac_header_preproc=no
5027 rm -f conftest.err conftest.$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5029 echo "${ECHO_T}$ac_header_preproc" >&6
5031 # So? What about this header?
5032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5034 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5035 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5036 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5037 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5038 ac_header_preproc=yes
5041 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5042 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5043 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5044 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5045 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5046 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5047 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5048 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5049 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5050 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5051 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5052 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5055 ## ------------------------------------------ ##
5056 ## Report this to the AC_PACKAGE_NAME lists. ##
5057 ## ------------------------------------------ ##
5060 sed "s/^/$as_me: WARNING: /" >&2
5063 echo "$as_me:$LINENO: checking for libintl.h" >&5
5064 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5065 if test "${ac_cv_header_libintl_h+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 ac_cv_header_libintl_h=$ac_header_preproc
5070 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5071 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5074 if test $ac_cv_header_libintl_h = yes; then
5075 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5076 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5077 if test "${gt_cv_func_gettext_libc+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 #include <libintl.h>
5090 return (int) gettext ("")
5095 rm -f conftest.$ac_objext conftest$ac_exeext
5096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5097 (eval $ac_link) 2>conftest.er1
5099 grep -v '^ *+' conftest.er1 >conftest.err
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5104 { ac_try='test -z "$ac_c_werror_flag"
5105 || test ! -s conftest.err'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; } &&
5111 { ac_try='test -s conftest$ac_exeext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 gt_cv_func_gettext_libc=yes
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 gt_cv_func_gettext_libc=no
5124 rm -f conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext conftest.$ac_ext
5127 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5128 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5130 if test "$gt_cv_func_gettext_libc" != "yes"; then
5131 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5132 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5133 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 ac_check_lib_save_LIBS=$LIBS
5138 cat >conftest.$ac_ext <<_ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5145 /* Override any gcc2 internal prototype to avoid an error. */
5149 /* We use char because int might match the return type of a gcc2
5150 builtin and then its argument prototype would still apply. */
5151 char bindtextdomain ();
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162 (eval $ac_link) 2>conftest.er1
5164 grep -v '^ *+' conftest.er1 >conftest.err
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try='test -z "$ac_c_werror_flag"
5170 || test ! -s conftest.err'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; } &&
5176 { ac_try='test -s conftest$ac_exeext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_cv_lib_intl_bindtextdomain=yes
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5187 ac_cv_lib_intl_bindtextdomain=no
5189 rm -f conftest.err conftest.$ac_objext \
5190 conftest$ac_exeext conftest.$ac_ext
5191 LIBS=$ac_check_lib_save_LIBS
5193 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5194 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5195 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5196 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5197 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5198 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 cat >conftest.$ac_ext <<_ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5211 return (int) gettext ("")
5216 rm -f conftest.$ac_objext conftest$ac_exeext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5218 (eval $ac_link) 2>conftest.er1
5220 grep -v '^ *+' conftest.er1 >conftest.err
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -z "$ac_c_werror_flag"
5226 || test ! -s conftest.err'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try='test -s conftest$ac_exeext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 gt_cv_func_gettext_libintl=yes
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 gt_cv_func_gettext_libintl=no
5245 rm -f conftest.err conftest.$ac_objext \
5246 conftest$ac_exeext conftest.$ac_ext
5248 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5249 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5254 if test "$gt_cv_func_gettext_libc" = "yes" \
5255 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5257 cat >>confdefs.h <<\_ACEOF
5258 #define HAVE_GETTEXT 1
5261 # Extract the first word of "msgfmt", so it can be a program name with args.
5262 set dummy msgfmt; ac_word=$2
5263 echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5265 if test "${ac_cv_path_MSGFMT+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5274 for ac_dir in $PATH; do
5275 test -z "$ac_dir" && ac_dir=.
5276 if test -f $ac_dir/$ac_word; then
5277 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5278 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5284 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5288 MSGFMT="$ac_cv_path_MSGFMT"
5289 if test -n "$MSGFMT"; then
5290 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5291 echo "${ECHO_T}$MSGFMT" >&6
5293 echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6
5296 if test "$MSGFMT" != "no"; then
5298 for ac_func in dcgettext
5300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5301 echo "$as_me:$LINENO: checking for $ac_func" >&5
5302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5303 if eval "test \"\${$as_ac_var+set}\" = set"; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 cat >conftest.$ac_ext <<_ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5314 #define $ac_func innocuous_$ac_func
5316 /* System header to define __stub macros and hopefully few prototypes,
5317 which can conflict with char $ac_func (); below.
5318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5319 <limits.h> exists even on freestanding compilers. */
5322 # include <limits.h>
5324 # include <assert.h>
5329 /* Override any gcc2 internal prototype to avoid an error. */
5334 /* We use char because int might match the return type of a gcc2
5335 builtin and then its argument prototype would still apply. */
5337 /* The GNU C library defines this for functions which it implements
5338 to always fail with ENOSYS. Some functions are actually named
5339 something starting with __ and the normal name is an alias. */
5340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5343 char (*f) () = $ac_func;
5352 return f != $ac_func;
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5359 (eval $ac_link) 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag"
5367 || test ! -s conftest.err'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 eval "$as_ac_var=yes"
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 eval "$as_ac_var=no"
5386 rm -f conftest.err conftest.$ac_objext \
5387 conftest$ac_exeext conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5391 if test `eval echo '${'$as_ac_var'}'` = yes; then
5392 cat >>confdefs.h <<_ACEOF
5393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5399 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5400 set dummy gmsgfmt; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5429 GMSGFMT=$ac_cv_path_GMSGFMT
5431 if test -n "$GMSGFMT"; then
5432 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5433 echo "${ECHO_T}$GMSGFMT" >&6
5435 echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6
5439 # Extract the first word of "xgettext", so it can be a program name with args.
5440 set dummy xgettext; ac_word=$2
5441 echo "$as_me:$LINENO: checking for $ac_word" >&5
5442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5443 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5452 for ac_dir in $PATH; do
5453 test -z "$ac_dir" && ac_dir=.
5454 if test -f $ac_dir/$ac_word; then
5455 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5456 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5462 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5466 XGETTEXT="$ac_cv_path_XGETTEXT"
5467 if test -n "$XGETTEXT"; then
5468 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5469 echo "${ECHO_T}$XGETTEXT" >&6
5471 echo "$as_me:$LINENO: result: no" >&5
5472 echo "${ECHO_T}no" >&6
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5485 extern int _nl_msg_cat_cntr;
5486 return _nl_msg_cat_cntr
5491 rm -f conftest.$ac_objext conftest$ac_exeext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5493 (eval $ac_link) 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_c_werror_flag"
5501 || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try='test -s conftest$ac_exeext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5516 echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5522 rm -f conftest.err conftest.$ac_objext \
5523 conftest$ac_exeext conftest.$ac_ext
5533 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5534 # Neither gettext nor catgets in included in the C library.
5535 # Fall back on GNU gettext library (assuming it is present).
5536 nls_cv_use_gnu_gettext=yes
5540 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5541 INTLOBJS="\$(GETTOBJS)"
5542 # Extract the first word of "msgfmt", so it can be a program name with args.
5543 set dummy msgfmt; ac_word=$2
5544 echo "$as_me:$LINENO: checking for $ac_word" >&5
5545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546 if test "${ac_cv_path_MSGFMT+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5555 for ac_dir in $PATH; do
5556 test -z "$ac_dir" && ac_dir=.
5557 if test -f $ac_dir/$ac_word; then
5558 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5559 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5565 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5569 MSGFMT="$ac_cv_path_MSGFMT"
5570 if test -n "$MSGFMT"; then
5571 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5572 echo "${ECHO_T}$MSGFMT" >&6
5574 echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6
5578 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5579 set dummy gmsgfmt; ac_word=$2
5580 echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5582 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5608 GMSGFMT=$ac_cv_path_GMSGFMT
5610 if test -n "$GMSGFMT"; then
5611 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5612 echo "${ECHO_T}$GMSGFMT" >&6
5614 echo "$as_me:$LINENO: result: no" >&5
5615 echo "${ECHO_T}no" >&6
5618 # Extract the first word of "xgettext", so it can be a program name with args.
5619 set dummy xgettext; ac_word=$2
5620 echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5622 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5631 for ac_dir in $PATH; do
5632 test -z "$ac_dir" && ac_dir=.
5633 if test -f $ac_dir/$ac_word; then
5634 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5635 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5641 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5645 XGETTEXT="$ac_cv_path_XGETTEXT"
5646 if test -n "$XGETTEXT"; then
5647 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5648 echo "${ECHO_T}$XGETTEXT" >&6
5650 echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6
5655 USE_INCLUDED_LIBINTL=yes
5659 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5661 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5662 nls_cv_header_intl=libintl.h
5663 nls_cv_header_libgt=libgettext.h
5666 if test "$XGETTEXT" != ":"; then
5667 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5670 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5671 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5676 # We need to process the po/ directory.
5680 nls_cv_header_intl=libintl.h
5681 nls_cv_header_libgt=libgettext.h
5684 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5685 # because some of the sources are only built for this goal.
5686 if test "$PACKAGE" = gettext; then
5688 USE_INCLUDED_LIBINTL=yes
5691 for lang in $ALL_LINGUAS; do
5692 GMOFILES="$GMOFILES $lang.gmo"
5693 POFILES="$POFILES $lang.po"
5707 if test "x$CATOBJEXT" != "x"; then
5709 cat >>confdefs.h <<\_ACEOF
5710 #define ENABLE_NLS 1
5716 if test "x$CATOBJEXT" != "x"; then
5717 if test "x$ALL_LINGUAS" = "x"; then
5720 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5721 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5723 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5724 case "$ALL_LINGUAS" in
5725 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5728 LINGUAS=$NEW_LINGUAS
5729 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5730 echo "${ECHO_T}$LINGUAS" >&6
5733 if test -n "$LINGUAS"; then
5734 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5738 if test $ac_cv_header_locale_h = yes; then
5739 INCLUDE_LOCALE_H="#include <locale.h>"
5742 /* The system does not provide the header <locale.h>. Take care yourself. */"
5746 if test -f $srcdir/po2tbl.sed.in; then
5747 if test "$CATOBJEXT" = ".cat"; then
5748 if test "${ac_cv_header_linux_version_h+set}" = set; then
5749 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5750 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5751 if test "${ac_cv_header_linux_version_h+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5755 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5757 # Is the header compilable?
5758 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5759 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5767 #include <linux/version.h>
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>conftest.er1
5773 grep -v '^ *+' conftest.er1 >conftest.err
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -z "$ac_c_werror_flag"
5779 || test ! -s conftest.err'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_header_compiler=yes
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_header_compiler=no
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5800 echo "${ECHO_T}$ac_header_compiler" >&6
5802 # Is the header present?
5803 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5804 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <linux/version.h>
5813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5816 grep -v '^ *+' conftest.er1 >conftest.err
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } >/dev/null; then
5821 if test -s conftest.err; then
5822 ac_cpp_err=$ac_c_preproc_warn_flag
5823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5830 if test -z "$ac_cpp_err"; then
5831 ac_header_preproc=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5836 ac_header_preproc=no
5838 rm -f conftest.err conftest.$ac_ext
5839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5840 echo "${ECHO_T}$ac_header_preproc" >&6
5842 # So? What about this header?
5843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5845 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5846 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5847 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5848 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5849 ac_header_preproc=yes
5852 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5853 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5854 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5855 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5856 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5857 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5858 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5859 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5861 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5863 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5866 ## ------------------------------------------ ##
5867 ## Report this to the AC_PACKAGE_NAME lists. ##
5868 ## ------------------------------------------ ##
5871 sed "s/^/$as_me: WARNING: /" >&2
5874 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5875 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5876 if test "${ac_cv_header_linux_version_h+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_cv_header_linux_version_h=$ac_header_preproc
5881 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5882 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5885 if test $ac_cv_header_linux_version_h = yes; then
5893 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5895 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5896 $srcdir/po2tbl.sed.in > po2tbl.sed
5899 if test "$PACKAGE" = "gettext"; then
5909 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5915 if test -f $srcdir/po/POTFILES.in; then
5916 test -d po || mkdir po
5917 if test "x$srcdir" != "x."; then
5918 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5919 posrcprefix="$srcdir/"
5921 posrcprefix="../$srcdir/"
5927 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5928 < $srcdir/po/POTFILES.in > po/POTFILES
5932 # Check for common headers.
5933 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5934 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5940 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5944 echo "$as_me:$LINENO: checking for $ac_header" >&5
5945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5952 # Is the header compilable?
5953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 $ac_includes_default
5962 #include <$ac_header>
5964 rm -f conftest.$ac_objext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5966 (eval $ac_compile) 2>conftest.er1
5968 grep -v '^ *+' conftest.er1 >conftest.err
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try='test -z "$ac_c_werror_flag"
5974 || test ! -s conftest.err'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; } &&
5980 { ac_try='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 ac_header_compiler=yes
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_header_compiler=no
5993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5995 echo "${ECHO_T}$ac_header_compiler" >&6
5997 # Is the header present?
5998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6000 cat >conftest.$ac_ext <<_ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 #include <$ac_header>
6008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } >/dev/null; then
6016 if test -s conftest.err; then
6017 ac_cpp_err=$ac_c_preproc_warn_flag
6018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6025 if test -z "$ac_cpp_err"; then
6026 ac_header_preproc=yes
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 ac_header_preproc=no
6033 rm -f conftest.err conftest.$ac_ext
6034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6035 echo "${ECHO_T}$ac_header_preproc" >&6
6037 # So? What about this header?
6038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6044 ac_header_preproc=yes
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6061 ## ------------------------------------------ ##
6062 ## Report this to the AC_PACKAGE_NAME lists. ##
6063 ## ------------------------------------------ ##
6066 sed "s/^/$as_me: WARNING: /" >&2
6069 echo "$as_me:$LINENO: checking for $ac_header" >&5
6070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 eval "$as_ac_Header=\$ac_header_preproc"
6076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6081 cat >>confdefs.h <<_ACEOF
6082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6091 for ac_header in sys/time.h sys/resource.h
6093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6095 echo "$as_me:$LINENO: checking for $ac_header" >&5
6096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6103 # Is the header compilable?
6104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 $ac_includes_default
6113 #include <$ac_header>
6115 rm -f conftest.$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6119 grep -v '^ *+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_header_compiler=yes
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 ac_header_compiler=no
6144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6146 echo "${ECHO_T}$ac_header_compiler" >&6
6148 # Is the header present?
6149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6151 cat >conftest.$ac_ext <<_ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #include <$ac_header>
6159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6162 grep -v '^ *+' conftest.er1 >conftest.err
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } >/dev/null; then
6167 if test -s conftest.err; then
6168 ac_cpp_err=$ac_c_preproc_warn_flag
6169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6176 if test -z "$ac_cpp_err"; then
6177 ac_header_preproc=yes
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 ac_header_preproc=no
6184 rm -f conftest.err conftest.$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6186 echo "${ECHO_T}$ac_header_preproc" >&6
6188 # So? What about this header?
6189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6195 ac_header_preproc=yes
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6212 ## ------------------------------------------ ##
6213 ## Report this to the AC_PACKAGE_NAME lists. ##
6214 ## ------------------------------------------ ##
6217 sed "s/^/$as_me: WARNING: /" >&2
6220 echo "$as_me:$LINENO: checking for $ac_header" >&5
6221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 eval "$as_ac_Header=\$ac_header_preproc"
6227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6232 cat >>confdefs.h <<_ACEOF
6233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6242 for ac_header in fcntl.h fpu_control.h
6244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6246 echo "$as_me:$LINENO: checking for $ac_header" >&5
6247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6254 # Is the header compilable?
6255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 $ac_includes_default
6264 #include <$ac_header>
6266 rm -f conftest.$ac_objext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268 (eval $ac_compile) 2>conftest.er1
6270 grep -v '^ *+' conftest.er1 >conftest.err
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try='test -z "$ac_c_werror_flag"
6276 || test ! -s conftest.err'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; } &&
6282 { ac_try='test -s conftest.$ac_objext'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 ac_header_compiler=yes
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6293 ac_header_compiler=no
6295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6297 echo "${ECHO_T}$ac_header_compiler" >&6
6299 # Is the header present?
6300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 #include <$ac_header>
6310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6313 grep -v '^ *+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } >/dev/null; then
6318 if test -s conftest.err; then
6319 ac_cpp_err=$ac_c_preproc_warn_flag
6320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6327 if test -z "$ac_cpp_err"; then
6328 ac_header_preproc=yes
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 ac_header_preproc=no
6335 rm -f conftest.err conftest.$ac_ext
6336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6337 echo "${ECHO_T}$ac_header_preproc" >&6
6339 # So? What about this header?
6340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6346 ac_header_preproc=yes
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6363 ## ------------------------------------------ ##
6364 ## Report this to the AC_PACKAGE_NAME lists. ##
6365 ## ------------------------------------------ ##
6368 sed "s/^/$as_me: WARNING: /" >&2
6371 echo "$as_me:$LINENO: checking for $ac_header" >&5
6372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 eval "$as_ac_Header=\$ac_header_preproc"
6378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6383 cat >>confdefs.h <<_ACEOF
6384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6394 for ac_header in dlfcn.h errno.h sys/stat.h
6396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6398 echo "$as_me:$LINENO: checking for $ac_header" >&5
6399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6406 # Is the header compilable?
6407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6409 cat >conftest.$ac_ext <<_ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 $ac_includes_default
6416 #include <$ac_header>
6418 rm -f conftest.$ac_objext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420 (eval $ac_compile) 2>conftest.er1
6422 grep -v '^ *+' conftest.er1 >conftest.err
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_c_werror_flag"
6428 || test ! -s conftest.err'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; } &&
6434 { ac_try='test -s conftest.$ac_objext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 ac_header_compiler=yes
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 ac_header_compiler=no
6447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6449 echo "${ECHO_T}$ac_header_compiler" >&6
6451 # Is the header present?
6452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6454 cat >conftest.$ac_ext <<_ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 #include <$ac_header>
6462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } >/dev/null; then
6470 if test -s conftest.err; then
6471 ac_cpp_err=$ac_c_preproc_warn_flag
6472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6479 if test -z "$ac_cpp_err"; then
6480 ac_header_preproc=yes
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 ac_header_preproc=no
6487 rm -f conftest.err conftest.$ac_ext
6488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6489 echo "${ECHO_T}$ac_header_preproc" >&6
6491 # So? What about this header?
6492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6498 ac_header_preproc=yes
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6515 ## ------------------------------------------ ##
6516 ## Report this to the AC_PACKAGE_NAME lists. ##
6517 ## ------------------------------------------ ##
6520 sed "s/^/$as_me: WARNING: /" >&2
6523 echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 eval "$as_ac_Header=\$ac_header_preproc"
6530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6535 cat >>confdefs.h <<_ACEOF
6536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 for ac_func in getrusage time sigaction __setfpucw
6549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6550 echo "$as_me:$LINENO: checking for $ac_func" >&5
6551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6552 if eval "test \"\${$as_ac_var+set}\" = set"; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 cat >conftest.$ac_ext <<_ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6563 #define $ac_func innocuous_$ac_func
6565 /* System header to define __stub macros and hopefully few prototypes,
6566 which can conflict with char $ac_func (); below.
6567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6568 <limits.h> exists even on freestanding compilers. */
6571 # include <limits.h>
6573 # include <assert.h>
6578 /* Override any gcc2 internal prototype to avoid an error. */
6583 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6586 /* The GNU C library defines this for functions which it implements
6587 to always fail with ENOSYS. Some functions are actually named
6588 something starting with __ and the normal name is an alias. */
6589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6592 char (*f) () = $ac_func;
6601 return f != $ac_func;
6606 rm -f conftest.$ac_objext conftest$ac_exeext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608 (eval $ac_link) 2>conftest.er1
6610 grep -v '^ *+' conftest.er1 >conftest.err
6612 cat conftest.err >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -z "$ac_c_werror_flag"
6616 || test ! -s conftest.err'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; } &&
6622 { ac_try='test -s conftest$ac_exeext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 eval "$as_ac_var=yes"
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 eval "$as_ac_var=no"
6635 rm -f conftest.err conftest.$ac_objext \
6636 conftest$ac_exeext conftest.$ac_ext
6638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6640 if test `eval echo '${'$as_ac_var'}'` = yes; then
6641 cat >>confdefs.h <<_ACEOF
6642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6649 # Check for socket libraries
6651 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6652 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6653 if test "${ac_cv_lib_socket_bind+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 ac_check_lib_save_LIBS=$LIBS
6657 LIBS="-lsocket $LIBS"
6658 cat >conftest.$ac_ext <<_ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6665 /* Override any gcc2 internal prototype to avoid an error. */
6669 /* We use char because int might match the return type of a gcc2
6670 builtin and then its argument prototype would still apply. */
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6682 (eval $ac_link) 2>conftest.er1
6684 grep -v '^ *+' conftest.er1 >conftest.err
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -z "$ac_c_werror_flag"
6690 || test ! -s conftest.err'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; } &&
6696 { ac_try='test -s conftest$ac_exeext'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; }; then
6702 ac_cv_lib_socket_bind=yes
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6707 ac_cv_lib_socket_bind=no
6709 rm -f conftest.err conftest.$ac_objext \
6710 conftest$ac_exeext conftest.$ac_ext
6711 LIBS=$ac_check_lib_save_LIBS
6713 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6714 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6715 if test $ac_cv_lib_socket_bind = yes; then
6716 cat >>confdefs.h <<_ACEOF
6717 #define HAVE_LIBSOCKET 1
6720 LIBS="-lsocket $LIBS"
6725 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6726 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6727 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 ac_check_lib_save_LIBS=$LIBS
6732 cat >conftest.$ac_ext <<_ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6739 /* Override any gcc2 internal prototype to avoid an error. */
6743 /* We use char because int might match the return type of a gcc2
6744 builtin and then its argument prototype would still apply. */
6745 char gethostbyname ();
6754 rm -f conftest.$ac_objext conftest$ac_exeext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6756 (eval $ac_link) 2>conftest.er1
6758 grep -v '^ *+' conftest.er1 >conftest.err
6760 cat conftest.err >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -z "$ac_c_werror_flag"
6764 || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try='test -s conftest$ac_exeext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_cv_lib_nsl_gethostbyname=yes
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6781 ac_cv_lib_nsl_gethostbyname=no
6783 rm -f conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6787 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6788 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6789 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6790 cat >>confdefs.h <<_ACEOF
6791 #define HAVE_LIBNSL 1
6799 . ${srcdir}/../../bfd/configure.host
6803 USE_MAINTAINER_MODE=no
6804 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6805 if test "${enable_maintainer_mode+set}" = set; then
6806 enableval="$enable_maintainer_mode"
6807 case "${enableval}" in
6808 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6810 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6811 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6812 { (exit 1); exit 1; }; }; MAINT="#" ;;
6814 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6815 echo "Setting maintainer mode" 6>&1
6822 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6823 if test "${enable_sim_bswap+set}" = set; then
6824 enableval="$enable_sim_bswap"
6825 case "${enableval}" in
6826 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6827 no) sim_bswap="-DWITH_BSWAP=0";;
6828 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6829 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6830 { (exit 1); exit 1; }; }; sim_bswap="";;
6832 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6833 echo "Setting bswap flags = $sim_bswap" 6>&1
6840 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6841 if test "${enable_sim_cflags+set}" = set; then
6842 enableval="$enable_sim_cflags"
6843 case "${enableval}" in
6844 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6845 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6846 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6847 { (exit 1); exit 1; }; }; sim_cflags="";;
6849 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6851 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6852 echo "Setting sim cflags = $sim_cflags" 6>&1
6859 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6860 if test "${enable_sim_debug+set}" = set; then
6861 enableval="$enable_sim_debug"
6862 case "${enableval}" in
6863 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6864 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6865 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6867 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6868 echo "Setting sim debug = $sim_debug" 6>&1
6875 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6876 if test "${enable_sim_stdio+set}" = set; then
6877 enableval="$enable_sim_stdio"
6878 case "${enableval}" in
6879 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6880 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6881 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6882 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6883 { (exit 1); exit 1; }; }; sim_stdio="";;
6885 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6886 echo "Setting stdio flags = $sim_stdio" 6>&1
6893 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6894 if test "${enable_sim_trace+set}" = set; then
6895 enableval="$enable_sim_trace"
6896 case "${enableval}" in
6897 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6898 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6900 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6903 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6904 if test x"$sim_trace" = x; then
6905 sim_trace="-DWITH_TRACE='(TRACE_$x"
6907 sim_trace="${sim_trace}|TRACE_$x"
6910 sim_trace="$sim_trace)'" ;;
6912 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6913 echo "Setting sim trace = $sim_trace" 6>&1
6920 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6921 if test "${enable_sim_profile+set}" = set; then
6922 enableval="$enable_sim_profile"
6923 case "${enableval}" in
6924 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6925 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6927 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6930 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6931 if test x"$sim_profile" = x; then
6932 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6934 sim_profile="${sim_profile}|PROFILE_$x"
6937 sim_profile="$sim_profile)'" ;;
6939 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6940 echo "Setting sim profile = $sim_profile" 6>&1
6943 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6947 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6948 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6949 if test "${ac_cv_type_signal+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 cat >conftest.$ac_ext <<_ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 #include <sys/types.h>
6964 extern "C" void (*signal (int, void (*)(int)))(int);
6966 void (*signal ()) ();
6977 rm -f conftest.$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6981 grep -v '^ *+' conftest.er1 >conftest.err
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_cv_type_signal=void
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_cv_type_signal=int
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7008 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7009 echo "${ECHO_T}$ac_cv_type_signal" >&6
7011 cat >>confdefs.h <<_ACEOF
7012 #define RETSIGTYPE $ac_cv_type_signal
7022 sim_link_links=tconfig.h
7023 if test -f ${srcdir}/tconfig.in
7025 sim_link_files=tconfig.in
7027 sim_link_files=../common/tconfig.in
7030 # targ-vals.def points to the libc macro description file.
7032 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
7034 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
7035 sim_link_links="${sim_link_links} targ-vals.def"
7039 # NOTE: Don't add -Wall or -Wunused, they both include
7040 # -Wunused-parameter which reports bogus warnings.
7041 # NOTE: If you add to this list, remember to update
7042 # gdb/doc/gdbint.texinfo.
7043 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7044 -Wformat -Wparentheses -Wpointer-arith"
7045 # GCC supports -Wuninitialized only with -O or -On, n != 0.
7046 if test x${CFLAGS+set} = xset; then
7050 build_warnings="${build_warnings} -Wuninitialized"
7054 build_warnings="${build_warnings} -Wuninitialized"
7056 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7057 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7058 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7059 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7060 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7061 # -Woverloaded-virtual -Winline -Werror"
7062 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7063 if test "${enable_build_warnings+set}" = set; then
7064 enableval="$enable_build_warnings"
7065 case "${enableval}" in
7067 no) build_warnings="-w";;
7068 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7069 build_warnings="${build_warnings} ${t}";;
7070 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7071 build_warnings="${t} ${build_warnings}";;
7072 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7074 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7075 echo "Setting compiler warning flags = $build_warnings" 6>&1
7077 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7078 if test "${enable_sim_build_warnings+set}" = set; then
7079 enableval="$enable_sim_build_warnings"
7080 case "${enableval}" in
7082 no) build_warnings="-w";;
7083 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7084 build_warnings="${build_warnings} ${t}";;
7085 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7086 build_warnings="${t} ${build_warnings}";;
7087 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7089 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7090 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7094 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7096 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7097 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7098 # Separate out the -Werror flag as some files just cannot be
7099 # compiled with it enabled.
7100 for w in ${build_warnings}; do
7102 -Werr*) WERROR_CFLAGS=-Werror ;;
7103 *) # Check that GCC accepts it
7104 saved_CFLAGS="$CFLAGS"
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7121 rm -f conftest.$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>conftest.er1
7125 grep -v '^ *+' conftest.er1 >conftest.err
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -z "$ac_c_werror_flag"
7131 || test ! -s conftest.err'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; } &&
7137 { ac_try='test -s conftest.$ac_objext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 WARN_CFLAGS="${WARN_CFLAGS} $w"
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150 CFLAGS="$saved_CFLAGS"
7153 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7154 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7159 for ac_header in unistd.h
7161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7163 echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7171 # Is the header compilable?
7172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7174 cat >conftest.$ac_ext <<_ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 $ac_includes_default
7181 #include <$ac_header>
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1 >conftest.err
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag"
7193 || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest.$ac_objext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_header_compiler=yes
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_header_compiler=no
7212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7214 echo "${ECHO_T}$ac_header_compiler" >&6
7216 # Is the header present?
7217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7225 #include <$ac_header>
7227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7230 grep -v '^ *+' conftest.er1 >conftest.err
7232 cat conftest.err >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } >/dev/null; then
7235 if test -s conftest.err; then
7236 ac_cpp_err=$ac_c_preproc_warn_flag
7237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7244 if test -z "$ac_cpp_err"; then
7245 ac_header_preproc=yes
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7250 ac_header_preproc=no
7252 rm -f conftest.err conftest.$ac_ext
7253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7254 echo "${ECHO_T}$ac_header_preproc" >&6
7256 # So? What about this header?
7257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7263 ac_header_preproc=yes
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7280 ## ------------------------------------------ ##
7281 ## Report this to the AC_PACKAGE_NAME lists. ##
7282 ## ------------------------------------------ ##
7285 sed "s/^/$as_me: WARNING: /" >&2
7288 echo "$as_me:$LINENO: checking for $ac_header" >&5
7289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 eval "$as_ac_Header=\$ac_header_preproc"
7295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7300 cat >>confdefs.h <<_ACEOF
7301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7311 ac_sources="$sim_link_files"
7312 ac_dests="$sim_link_links"
7313 while test -n "$ac_sources"; do
7314 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7315 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7316 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7318 ac_config_links="$ac_config_links $ac_config_links_1"
7321 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7322 cgen_breaks="break cgen_rtx_error";
7325 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
7327 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
7329 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
7331 ac_config_commands="$ac_config_commands Makefile"
7333 ac_config_commands="$ac_config_commands stamp-h"
7335 cat >confcache <<\_ACEOF
7336 # This file is a shell script that caches the results of configure
7337 # tests run on this system so they can be shared between configure
7338 # scripts and configure runs, see configure's option --config-cache.
7339 # It is not useful on other systems. If it contains results you don't
7340 # want to keep, you may remove or edit it.
7342 # config.status only pays attention to the cache file if you give it
7343 # the --recheck option to rerun configure.
7345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7351 # The following way of writing the cache mishandles newlines in values,
7352 # but we know of no workaround that is simple, portable, and efficient.
7353 # So, don't put newlines in cache variables' values.
7354 # Ultrix sh set writes to stderr and can't be redirected directly,
7355 # and sets the high bit in the cache file unless we assign to the vars.
7358 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7360 # `set' does not quote correctly, so add quotes (double-quote
7361 # substitution turns \\\\ into \\, and sed turns \\ into \).
7364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7367 # `set' quotes correctly as required by POSIX, so do not add quotes.
7369 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7376 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7378 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7380 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7381 if test -w $cache_file; then
7382 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7383 cat confcache >$cache_file
7385 echo "not updating unwritable cache $cache_file"
7390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7391 # Let make expand exec_prefix.
7392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7396 # trailing colons and then remove the whole line if VPATH becomes empty
7397 # (actually we leave an empty line to preserve line numbers).
7398 if test "x$srcdir" = x.; then
7399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7400 s/:*\$(srcdir):*/:/;
7401 s/:*\${srcdir}:*/:/;
7403 s/^\([^=]*=[ ]*\):*/\1/;
7409 DEFS=-DHAVE_CONFIG_H
7413 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7414 # 1. Remove the extension, and $U if already installed.
7415 ac_i=`echo "$ac_i" |
7416 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7418 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7419 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7423 LTLIBOBJS=$ac_ltlibobjs
7427 : ${CONFIG_STATUS=./config.status}
7428 ac_clean_files_save=$ac_clean_files
7429 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7430 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7431 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7432 cat >$CONFIG_STATUS <<_ACEOF
7434 # Generated by $as_me.
7435 # Run this file to recreate the current configuration.
7436 # Compiler output produced by configure, useful for debugging
7437 # configure, is in config.log if it exists.
7442 SHELL=\${CONFIG_SHELL-$SHELL}
7445 cat >>$CONFIG_STATUS <<\_ACEOF
7446 ## --------------------- ##
7447 ## M4sh Initialization. ##
7448 ## --------------------- ##
7450 # Be Bourne compatible
7451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7454 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7455 # is contrary to our usage. Disable this feature.
7456 alias -g '${1+"$@"}'='"$@"'
7457 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7460 DUALCASE=1; export DUALCASE # for MKS sh
7462 # Support unset when possible.
7463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7470 # Work around bugs in pre-3.0 UWIN ksh.
7471 $as_unset ENV MAIL MAILPATH
7478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7480 LC_TELEPHONE LC_TIME
7482 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7483 eval $as_var=C; export $as_var
7489 # Required to use basename.
7490 if expr a : '\(a\)' >/dev/null 2>&1; then
7496 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7497 as_basename=basename
7503 # Name of the executable.
7504 as_me=`$as_basename "$0" ||
7505 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7506 X"$0" : 'X\(//\)$' \| \
7507 X"$0" : 'X\(/\)$' \| \
7508 . : '\(.\)' 2>/dev/null ||
7510 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7511 /^X\/\(\/\/\)$/{ s//\1/; q; }
7512 /^X\/\(\/\).*/{ s//\1/; q; }
7516 # PATH needs CR, and LINENO needs CR and PATH.
7517 # Avoid depending upon Character Ranges.
7518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7521 as_cr_digits='0123456789'
7522 as_cr_alnum=$as_cr_Letters$as_cr_digits
7524 # The user is always right.
7525 if test "${PATH_SEPARATOR+set}" != set; then
7526 echo "#! /bin/sh" >conf$$.sh
7527 echo "exit 0" >>conf$$.sh
7529 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7540 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7541 test "x$as_lineno_1" != "x$as_lineno_2" &&
7542 test "x$as_lineno_3" = "x$as_lineno_2" || {
7543 # Find who we are. Look in the path if we contain no path at all
7546 *[\\/]* ) as_myself=$0 ;;
7547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7557 # We did not find ourselves, most probably we were run as `sh COMMAND'
7558 # in which case we are not to be found in the path.
7559 if test "x$as_myself" = x; then
7562 if test ! -f "$as_myself"; then
7563 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7564 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7565 { (exit 1); exit 1; }; }
7567 case $CONFIG_SHELL in
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7573 test -z "$as_dir" && as_dir=.
7574 for as_base in sh bash ksh sh5; do
7577 if ("$as_dir/$as_base" -c '
7580 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7581 test "x$as_lineno_1" != "x$as_lineno_2" &&
7582 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7583 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7584 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7585 CONFIG_SHELL=$as_dir/$as_base
7587 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7595 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7596 # uniformly replaced by the line number. The first 'sed' inserts a
7597 # line-number line before each line; the second 'sed' does the real
7598 # work. The second script uses 'N' to pair each line-number line
7599 # with the numbered line, and appends trailing '-' during
7600 # substitution so that $LINENO is not a special case at line end.
7601 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7602 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7603 sed '=' <$as_myself |
7608 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7611 s,^['$as_cr_digits']*\n,,
7613 chmod +x $as_me.lineno ||
7614 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7615 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7616 { (exit 1); exit 1; }; }
7618 # Don't try to exec as it changes $[0], causing all sort of problems
7619 # (the dirname of $[0] is not the place where we might find the
7620 # original and so on. Autoconf is especially sensible to this).
7622 # Exit status is that of the last command.
7627 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7628 *c*,-n*) ECHO_N= ECHO_C='
7630 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7631 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7634 if expr a : '\(a\)' >/dev/null 2>&1; then
7640 rm -f conf$$ conf$$.exe conf$$.file
7642 if ln -s conf$$.file conf$$ 2>/dev/null; then
7643 # We could just check for DJGPP; but this test a) works b) is more generic
7644 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7645 if test -f conf$$.exe; then
7646 # Don't use ln at all; we don't have any links
7651 elif ln conf$$.file conf$$ 2>/dev/null; then
7656 rm -f conf$$ conf$$.exe conf$$.file
7658 if mkdir -p . 2>/dev/null; then
7661 test -d ./-p && rmdir ./-p
7665 as_executable_p="test -f"
7667 # Sed expression to map a string onto a valid CPP name.
7668 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7670 # Sed expression to map a string onto a valid variable name.
7671 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7675 # We need space, tab and new line, in precisely that order.
7685 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7686 # report actual input values of CONFIG_FILES etc. instead of their
7687 # values after options handling. Logging --version etc. is OK.
7691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7692 ## Running $as_me. ##
7697 This file was extended by $as_me, which was
7698 generated by GNU Autoconf 2.59. Invocation command line was
7700 CONFIG_FILES = $CONFIG_FILES
7701 CONFIG_HEADERS = $CONFIG_HEADERS
7702 CONFIG_LINKS = $CONFIG_LINKS
7703 CONFIG_COMMANDS = $CONFIG_COMMANDS
7707 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7711 # Files that config.status was made for.
7712 if test -n "$ac_config_files"; then
7713 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7716 if test -n "$ac_config_headers"; then
7717 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7720 if test -n "$ac_config_links"; then
7721 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7724 if test -n "$ac_config_commands"; then
7725 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7728 cat >>$CONFIG_STATUS <<\_ACEOF
7731 \`$as_me' instantiates files from templates according to the
7732 current configuration.
7734 Usage: $0 [OPTIONS] [FILE]...
7736 -h, --help print this help, then exit
7737 -V, --version print version number, then exit
7738 -q, --quiet do not print progress messages
7739 -d, --debug don't remove temporary files
7740 --recheck update $as_me by reconfiguring in the same conditions
7741 --file=FILE[:TEMPLATE]
7742 instantiate the configuration file FILE
7743 --header=FILE[:TEMPLATE]
7744 instantiate the configuration header FILE
7746 Configuration files:
7749 Configuration headers:
7752 Configuration links:
7755 Configuration commands:
7761 cat >>$CONFIG_STATUS <<_ACEOF
7764 configured by $0, generated by GNU Autoconf 2.59,
7765 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7767 Copyright (C) 2003 Free Software Foundation, Inc.
7768 This config.status script is free software; the Free Software Foundation
7769 gives unlimited permission to copy, distribute and modify it."
7774 cat >>$CONFIG_STATUS <<\_ACEOF
7775 # If no file are specified by the user, then we need to provide default
7776 # value. By we need to know if files were specified by the user.
7782 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7783 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7791 *) # This is not an option, so the user has probably given explicit
7794 ac_need_defaults=false;;
7798 # Handling of the options.
7800 cat >>$CONFIG_STATUS <<\_ACEOF
7801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7803 --version | --vers* | -V )
7804 echo "$ac_cs_version"; exit 0 ;;
7806 # Conflict between --help and --header
7807 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7808 Try \`$0 --help' for more information." >&5
7809 echo "$as_me: error: ambiguous option: $1
7810 Try \`$0 --help' for more information." >&2;}
7811 { (exit 1); exit 1; }; };;
7812 --help | --hel | -h )
7813 echo "$ac_cs_usage"; exit 0 ;;
7814 --debug | --d* | -d )
7816 --file | --fil | --fi | --f )
7818 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7819 ac_need_defaults=false;;
7820 --header | --heade | --head | --hea )
7822 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7823 ac_need_defaults=false;;
7824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7825 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7829 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7830 Try \`$0 --help' for more information." >&5
7831 echo "$as_me: error: unrecognized option: $1
7832 Try \`$0 --help' for more information." >&2;}
7833 { (exit 1); exit 1; }; } ;;
7835 *) ac_config_targets="$ac_config_targets $1" ;;
7841 ac_configure_extra_args=
7843 if $ac_cs_silent; then
7845 ac_configure_extra_args="$ac_configure_extra_args --silent"
7849 cat >>$CONFIG_STATUS <<_ACEOF
7850 if \$ac_cs_recheck; then
7851 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7852 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7861 cat >>$CONFIG_STATUS <<\_ACEOF
7862 for ac_config_target in $ac_config_targets
7864 case "$ac_config_target" in
7865 # Handling of arguments.
7866 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
7867 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
7868 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
7869 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
7870 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
7871 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
7872 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7873 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7874 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7875 { (exit 1); exit 1; }; };;
7879 # If the user did not use the arguments to specify the items to instantiate,
7880 # then the envvar interface is used. Set only those that are not.
7881 # We use the long form for the default assignment because of an extremely
7882 # bizarre bug on SunOS 4.1.3.
7883 if $ac_need_defaults; then
7884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7885 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7886 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7887 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7890 # Have a temporary directory for convenience. Make it in the build tree
7891 # simply because there is no reason to put it here, and in addition,
7892 # creating and moving files from /tmp can sometimes cause problems.
7893 # Create a temporary directory, and hook for its removal unless debugging.
7896 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7897 trap '{ (exit 1); exit 1; }' 1 2 13 15
7900 # Create a (secure) tmp directory for tmp files.
7903 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7904 test -n "$tmp" && test -d "$tmp"
7907 tmp=./confstat$$-$RANDOM
7908 (umask 077 && mkdir $tmp)
7911 echo "$me: cannot create a temporary directory in ." >&2
7912 { (exit 1); exit 1; }
7917 cat >>$CONFIG_STATUS <<_ACEOF
7920 # CONFIG_FILES section.
7923 # No need to generate the scripts if there are no CONFIG_FILES.
7924 # This happens for instance when ./config.status config.h
7925 if test -n "\$CONFIG_FILES"; then
7926 # Protect against being on the right side of a sed subst in config.status.
7927 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7928 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7929 s,@SHELL@,$SHELL,;t t
7930 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7931 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7932 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7933 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7934 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7935 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7936 s,@exec_prefix@,$exec_prefix,;t t
7937 s,@prefix@,$prefix,;t t
7938 s,@program_transform_name@,$program_transform_name,;t t
7939 s,@bindir@,$bindir,;t t
7940 s,@sbindir@,$sbindir,;t t
7941 s,@libexecdir@,$libexecdir,;t t
7942 s,@datadir@,$datadir,;t t
7943 s,@sysconfdir@,$sysconfdir,;t t
7944 s,@sharedstatedir@,$sharedstatedir,;t t
7945 s,@localstatedir@,$localstatedir,;t t
7946 s,@libdir@,$libdir,;t t
7947 s,@includedir@,$includedir,;t t
7948 s,@oldincludedir@,$oldincludedir,;t t
7949 s,@infodir@,$infodir,;t t
7950 s,@mandir@,$mandir,;t t
7951 s,@build_alias@,$build_alias,;t t
7952 s,@host_alias@,$host_alias,;t t
7953 s,@target_alias@,$target_alias,;t t
7955 s,@ECHO_C@,$ECHO_C,;t t
7956 s,@ECHO_N@,$ECHO_N,;t t
7957 s,@ECHO_T@,$ECHO_T,;t t
7959 s,@sim_environment@,$sim_environment,;t t
7960 s,@sim_alignment@,$sim_alignment,;t t
7961 s,@sim_assert@,$sim_assert,;t t
7962 s,@sim_bitsize@,$sim_bitsize,;t t
7963 s,@sim_endian@,$sim_endian,;t t
7964 s,@sim_hostendian@,$sim_hostendian,;t t
7965 s,@sim_float@,$sim_float,;t t
7966 s,@sim_scache@,$sim_scache,;t t
7967 s,@sim_default_model@,$sim_default_model,;t t
7968 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7969 s,@sim_hw_objs@,$sim_hw_objs,;t t
7970 s,@sim_hw@,$sim_hw,;t t
7971 s,@sim_inline@,$sim_inline,;t t
7972 s,@sim_packages@,$sim_packages,;t t
7973 s,@sim_regparm@,$sim_regparm,;t t
7974 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7975 s,@sim_smp@,$sim_smp,;t t
7976 s,@sim_stdcall@,$sim_stdcall,;t t
7977 s,@sim_xor_endian@,$sim_xor_endian,;t t
7978 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7979 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7980 s,@build@,$build,;t t
7981 s,@build_cpu@,$build_cpu,;t t
7982 s,@build_vendor@,$build_vendor,;t t
7983 s,@build_os@,$build_os,;t t
7985 s,@host_cpu@,$host_cpu,;t t
7986 s,@host_vendor@,$host_vendor,;t t
7987 s,@host_os@,$host_os,;t t
7988 s,@target@,$target,;t t
7989 s,@target_cpu@,$target_cpu,;t t
7990 s,@target_vendor@,$target_vendor,;t t
7991 s,@target_os@,$target_os,;t t
7993 s,@CFLAGS@,$CFLAGS,;t t
7994 s,@LDFLAGS@,$LDFLAGS,;t t
7995 s,@CPPFLAGS@,$CPPFLAGS,;t t
7996 s,@ac_ct_CC@,$ac_ct_CC,;t t
7997 s,@EXEEXT@,$EXEEXT,;t t
7998 s,@OBJEXT@,$OBJEXT,;t t
7999 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8000 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8001 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8002 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8003 s,@HDEFINES@,$HDEFINES,;t t
8005 s,@RANLIB@,$RANLIB,;t t
8006 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8007 s,@SET_MAKE@,$SET_MAKE,;t t
8009 s,@EGREP@,$EGREP,;t t
8010 s,@ALLOCA@,$ALLOCA,;t t
8011 s,@USE_NLS@,$USE_NLS,;t t
8012 s,@MSGFMT@,$MSGFMT,;t t
8013 s,@GMSGFMT@,$GMSGFMT,;t t
8014 s,@XGETTEXT@,$XGETTEXT,;t t
8015 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8016 s,@CATALOGS@,$CATALOGS,;t t
8017 s,@CATOBJEXT@,$CATOBJEXT,;t t
8018 s,@DATADIRNAME@,$DATADIRNAME,;t t
8019 s,@GMOFILES@,$GMOFILES,;t t
8020 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8021 s,@INTLDEPS@,$INTLDEPS,;t t
8022 s,@INTLLIBS@,$INTLLIBS,;t t
8023 s,@INTLOBJS@,$INTLOBJS,;t t
8024 s,@POFILES@,$POFILES,;t t
8025 s,@POSUB@,$POSUB,;t t
8026 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8027 s,@GT_NO@,$GT_NO,;t t
8028 s,@GT_YES@,$GT_YES,;t t
8029 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8031 s,@MAINT@,$MAINT,;t t
8032 s,@sim_bswap@,$sim_bswap,;t t
8033 s,@sim_cflags@,$sim_cflags,;t t
8034 s,@sim_debug@,$sim_debug,;t t
8035 s,@sim_stdio@,$sim_stdio,;t t
8036 s,@sim_trace@,$sim_trace,;t t
8037 s,@sim_profile@,$sim_profile,;t t
8038 s,@cgen_breaks@,$cgen_breaks,;t t
8039 s,@LIBOBJS@,$LIBOBJS,;t t
8040 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8045 cat >>$CONFIG_STATUS <<\_ACEOF
8046 # Split the substitutions into bite-sized pieces for seds with
8047 # small command number limits, like on Digital OSF/1 and HP-UX.
8049 ac_sed_frag=1 # Number of current file.
8050 ac_beg=1 # First line for current file.
8051 ac_end=$ac_max_sed_lines # Line after last line for current file.
8054 while $ac_more_lines; do
8055 if test $ac_beg -gt 1; then
8056 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8058 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8060 if test ! -s $tmp/subs.frag; then
8063 # The purpose of the label and of the branching condition is to
8064 # speed up the sed processing (if there are no `@' at all, there
8065 # is no need to browse any of the substitutions).
8066 # These are the two extra sed commands mentioned above.
8068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8069 if test -z "$ac_sed_cmds"; then
8070 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8072 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8074 ac_sed_frag=`expr $ac_sed_frag + 1`
8076 ac_end=`expr $ac_end + $ac_max_sed_lines`
8079 if test -z "$ac_sed_cmds"; then
8082 fi # test -n "$CONFIG_FILES"
8085 cat >>$CONFIG_STATUS <<\_ACEOF
8086 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8089 - | *:- | *:-:* ) # input from stdin
8091 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8093 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8094 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8095 * ) ac_file_in=$ac_file.in ;;
8098 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8099 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8101 X"$ac_file" : 'X\(//\)[^/]' \| \
8102 X"$ac_file" : 'X\(//\)$' \| \
8103 X"$ac_file" : 'X\(/\)' \| \
8104 . : '\(.\)' 2>/dev/null ||
8106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8108 /^X\(\/\/\)$/{ s//\1/; q; }
8109 /^X\(\/\).*/{ s//\1/; q; }
8111 { if $as_mkdir_p; then
8116 while test ! -d "$as_dir"; do
8117 as_dirs="$as_dir $as_dirs"
8118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8120 X"$as_dir" : 'X\(//\)[^/]' \| \
8121 X"$as_dir" : 'X\(//\)$' \| \
8122 X"$as_dir" : 'X\(/\)' \| \
8123 . : '\(.\)' 2>/dev/null ||
8125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8127 /^X\(\/\/\)$/{ s//\1/; q; }
8128 /^X\(\/\).*/{ s//\1/; q; }
8131 test ! -n "$as_dirs" || mkdir $as_dirs
8132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8134 { (exit 1); exit 1; }; }; }
8138 if test "$ac_dir" != .; then
8139 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8140 # A "../" for each directory in $ac_dir_suffix.
8141 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8143 ac_dir_suffix= ac_top_builddir=
8147 .) # No --srcdir option. We are building in place.
8149 if test -z "$ac_top_builddir"; then
8152 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8154 [\\/]* | ?:[\\/]* ) # Absolute path.
8155 ac_srcdir=$srcdir$ac_dir_suffix;
8156 ac_top_srcdir=$srcdir ;;
8158 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8159 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8162 # Do not use `cd foo && pwd` to compute absolute paths, because
8163 # the directories may not exist.
8165 .) ac_abs_builddir="$ac_dir";;
8168 .) ac_abs_builddir=`pwd`;;
8169 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8170 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8173 case $ac_abs_builddir in
8174 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8176 case ${ac_top_builddir}. in
8177 .) ac_abs_top_builddir=$ac_abs_builddir;;
8178 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8179 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8182 case $ac_abs_builddir in
8183 .) ac_abs_srcdir=$ac_srcdir;;
8186 .) ac_abs_srcdir=$ac_abs_builddir;;
8187 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8188 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8191 case $ac_abs_builddir in
8192 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8194 case $ac_top_srcdir in
8195 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8196 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8197 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8203 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8204 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8207 if test x"$ac_file" != x-; then
8208 { echo "$as_me:$LINENO: creating $ac_file" >&5
8209 echo "$as_me: creating $ac_file" >&6;}
8212 # Let's still pretend it is `configure' which instantiates (i.e., don't
8213 # use $as_me), people would be surprised to read:
8214 # /* config.h. Generated by config.status. */
8215 if test x"$ac_file" = x-; then
8218 configure_input="$ac_file. "
8220 configure_input=$configure_input"Generated from `echo $ac_file_in |
8221 sed 's,.*/,,'` by configure."
8223 # First look for the input files in the build tree, otherwise in the
8225 ac_file_inputs=`IFS=:
8226 for f in $ac_file_in; do
8228 -) echo $tmp/stdin ;;
8230 # Absolute (can't be DOS-style, as IFS=:)
8231 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8232 echo "$as_me: error: cannot find input file: $f" >&2;}
8233 { (exit 1); exit 1; }; }
8236 if test -f "$f"; then
8239 elif test -f "$srcdir/$f"; then
8244 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8245 echo "$as_me: error: cannot find input file: $f" >&2;}
8246 { (exit 1); exit 1; }; }
8249 done` || { (exit 1); exit 1; }
8251 cat >>$CONFIG_STATUS <<_ACEOF
8255 cat >>$CONFIG_STATUS <<\_ACEOF
8257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8258 s,@configure_input@,$configure_input,;t t
8259 s,@srcdir@,$ac_srcdir,;t t
8260 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8261 s,@top_srcdir@,$ac_top_srcdir,;t t
8262 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8263 s,@builddir@,$ac_builddir,;t t
8264 s,@abs_builddir@,$ac_abs_builddir,;t t
8265 s,@top_builddir@,$ac_top_builddir,;t t
8266 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8267 s,@INSTALL@,$ac_INSTALL,;t t
8268 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8270 if test x"$ac_file" != x-; then
8271 mv $tmp/out $ac_file
8279 cat >>$CONFIG_STATUS <<\_ACEOF
8282 # CONFIG_HEADER section.
8285 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8286 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8288 # ac_d sets the value in "#define NAME VALUE" lines.
8289 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8290 ac_dB='[ ].*$,\1#\2'
8293 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8294 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8295 ac_uB='$,\1#\2define\3'
8299 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8300 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8302 - | *:- | *:-:* ) # input from stdin
8304 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8306 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8307 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8308 * ) ac_file_in=$ac_file.in ;;
8311 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8312 echo "$as_me: creating $ac_file" >&6;}
8314 # First look for the input files in the build tree, otherwise in the
8316 ac_file_inputs=`IFS=:
8317 for f in $ac_file_in; do
8319 -) echo $tmp/stdin ;;
8321 # Absolute (can't be DOS-style, as IFS=:)
8322 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8323 echo "$as_me: error: cannot find input file: $f" >&2;}
8324 { (exit 1); exit 1; }; }
8325 # Do quote $f, to prevent DOS paths from being IFS'd.
8328 if test -f "$f"; then
8331 elif test -f "$srcdir/$f"; then
8336 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8337 echo "$as_me: error: cannot find input file: $f" >&2;}
8338 { (exit 1); exit 1; }; }
8341 done` || { (exit 1); exit 1; }
8342 # Remove the trailing spaces.
8343 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8347 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8348 # `conftest.undefs', that substitutes the proper values into
8349 # config.h.in to produce config.h. The first handles `#define'
8350 # templates, and the second `#undef' templates.
8351 # And first: Protect against being on the right side of a sed subst in
8352 # config.status. Protect against being in an unquoted here document
8354 rm -f conftest.defines conftest.undefs
8355 # Using a here document instead of a string reduces the quoting nightmare.
8356 # Putting comments in sed scripts is not portable.
8358 # `end' is used to avoid that the second main sed command (meant for
8359 # 0-ary CPP macros) applies to n-ary macro definitions.
8360 # See the Autoconf documentation for `clear'.
8361 cat >confdef2sed.sed <<\_ACEOF
8366 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8368 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8371 # If some macros were called several times there might be several times
8372 # the same #defines, which is useless. Nevertheless, we may not want to
8373 # sort them, since we want the *last* AC-DEFINE to be honored.
8374 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8375 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8376 rm -f confdef2sed.sed
8378 # This sed command replaces #undef with comments. This is necessary, for
8379 # example, in the case of _POSIX_SOURCE, which is predefined and required
8380 # on some systems where configure will not decide to define it.
8381 cat >>conftest.undefs <<\_ACEOF
8382 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8385 # Break up conftest.defines because some shells have a limit on the size
8386 # of here documents, and old seds have small limits too (100 cmds).
8387 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8388 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8389 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8390 echo ' :' >>$CONFIG_STATUS
8392 while grep . conftest.defines >/dev/null
8394 # Write a limited-size here document to $tmp/defines.sed.
8395 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8396 # Speed up: don't consider the non `#define' lines.
8397 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8398 # Work around the forget-to-reset-the-flag bug.
8399 echo 't clr' >>$CONFIG_STATUS
8400 echo ': clr' >>$CONFIG_STATUS
8401 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8403 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8407 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8408 rm -f conftest.defines
8409 mv conftest.tail conftest.defines
8411 rm -f conftest.defines
8412 echo ' fi # grep' >>$CONFIG_STATUS
8413 echo >>$CONFIG_STATUS
8415 # Break up conftest.undefs because some shells have a limit on the size
8416 # of here documents, and old seds have small limits too (100 cmds).
8417 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8419 while grep . conftest.undefs >/dev/null
8421 # Write a limited-size here document to $tmp/undefs.sed.
8422 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8423 # Speed up: don't consider the non `#undef'
8424 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8425 # Work around the forget-to-reset-the-flag bug.
8426 echo 't clr' >>$CONFIG_STATUS
8427 echo ': clr' >>$CONFIG_STATUS
8428 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8430 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8434 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8435 rm -f conftest.undefs
8436 mv conftest.tail conftest.undefs
8438 rm -f conftest.undefs
8440 cat >>$CONFIG_STATUS <<\_ACEOF
8441 # Let's still pretend it is `configure' which instantiates (i.e., don't
8442 # use $as_me), people would be surprised to read:
8443 # /* config.h. Generated by config.status. */
8444 if test x"$ac_file" = x-; then
8445 echo "/* Generated by configure. */" >$tmp/config.h
8447 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8449 cat $tmp/in >>$tmp/config.h
8451 if test x"$ac_file" != x-; then
8452 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8453 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8454 echo "$as_me: $ac_file is unchanged" >&6;}
8456 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8458 X"$ac_file" : 'X\(//\)[^/]' \| \
8459 X"$ac_file" : 'X\(//\)$' \| \
8460 X"$ac_file" : 'X\(/\)' \| \
8461 . : '\(.\)' 2>/dev/null ||
8463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8465 /^X\(\/\/\)$/{ s//\1/; q; }
8466 /^X\(\/\).*/{ s//\1/; q; }
8468 { if $as_mkdir_p; then
8473 while test ! -d "$as_dir"; do
8474 as_dirs="$as_dir $as_dirs"
8475 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8477 X"$as_dir" : 'X\(//\)[^/]' \| \
8478 X"$as_dir" : 'X\(//\)$' \| \
8479 X"$as_dir" : 'X\(/\)' \| \
8480 . : '\(.\)' 2>/dev/null ||
8482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8484 /^X\(\/\/\)$/{ s//\1/; q; }
8485 /^X\(\/\).*/{ s//\1/; q; }
8488 test ! -n "$as_dirs" || mkdir $as_dirs
8489 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8490 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8491 { (exit 1); exit 1; }; }; }
8494 mv $tmp/config.h $ac_file
8502 cat >>$CONFIG_STATUS <<\_ACEOF
8505 # CONFIG_LINKS section.
8508 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8509 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8510 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8512 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8513 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8515 if test ! -r $srcdir/$ac_source; then
8516 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8517 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8518 { (exit 1); exit 1; }; }
8522 # Make relative symlinks.
8523 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8524 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8525 X"$ac_dest" : 'X\(//\)[^/]' \| \
8526 X"$ac_dest" : 'X\(//\)$' \| \
8527 X"$ac_dest" : 'X\(/\)' \| \
8528 . : '\(.\)' 2>/dev/null ||
8530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8532 /^X\(\/\/\)$/{ s//\1/; q; }
8533 /^X\(\/\).*/{ s//\1/; q; }
8535 { if $as_mkdir_p; then
8536 mkdir -p "$ac_dest_dir"
8538 as_dir="$ac_dest_dir"
8540 while test ! -d "$as_dir"; do
8541 as_dirs="$as_dir $as_dirs"
8542 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8544 X"$as_dir" : 'X\(//\)[^/]' \| \
8545 X"$as_dir" : 'X\(//\)$' \| \
8546 X"$as_dir" : 'X\(/\)' \| \
8547 . : '\(.\)' 2>/dev/null ||
8549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8551 /^X\(\/\/\)$/{ s//\1/; q; }
8552 /^X\(\/\).*/{ s//\1/; q; }
8555 test ! -n "$as_dirs" || mkdir $as_dirs
8556 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8557 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8558 { (exit 1); exit 1; }; }; }
8562 if test "$ac_dest_dir" != .; then
8563 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8564 # A "../" for each directory in $ac_dir_suffix.
8565 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8567 ac_dir_suffix= ac_top_builddir=
8571 .) # No --srcdir option. We are building in place.
8573 if test -z "$ac_top_builddir"; then
8576 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8578 [\\/]* | ?:[\\/]* ) # Absolute path.
8579 ac_srcdir=$srcdir$ac_dir_suffix;
8580 ac_top_srcdir=$srcdir ;;
8582 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8583 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8586 # Do not use `cd foo && pwd` to compute absolute paths, because
8587 # the directories may not exist.
8589 .) ac_abs_builddir="$ac_dest_dir";;
8591 case "$ac_dest_dir" in
8592 .) ac_abs_builddir=`pwd`;;
8593 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8594 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8597 case $ac_abs_builddir in
8598 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8600 case ${ac_top_builddir}. in
8601 .) ac_abs_top_builddir=$ac_abs_builddir;;
8602 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8603 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8606 case $ac_abs_builddir in
8607 .) ac_abs_srcdir=$ac_srcdir;;
8610 .) ac_abs_srcdir=$ac_abs_builddir;;
8611 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8612 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8615 case $ac_abs_builddir in
8616 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8618 case $ac_top_srcdir in
8619 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8620 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8621 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8627 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8628 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8631 # Try a symlink, then a hard link, then a copy.
8632 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8633 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8634 cp -p $srcdir/$ac_source $ac_dest ||
8635 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8636 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8637 { (exit 1); exit 1; }; }
8640 cat >>$CONFIG_STATUS <<\_ACEOF
8643 # CONFIG_COMMANDS section.
8645 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8646 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8647 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8648 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8649 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8650 X"$ac_dest" : 'X\(//\)[^/]' \| \
8651 X"$ac_dest" : 'X\(//\)$' \| \
8652 X"$ac_dest" : 'X\(/\)' \| \
8653 . : '\(.\)' 2>/dev/null ||
8655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8657 /^X\(\/\/\)$/{ s//\1/; q; }
8658 /^X\(\/\).*/{ s//\1/; q; }
8660 { if $as_mkdir_p; then
8665 while test ! -d "$as_dir"; do
8666 as_dirs="$as_dir $as_dirs"
8667 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8669 X"$as_dir" : 'X\(//\)[^/]' \| \
8670 X"$as_dir" : 'X\(//\)$' \| \
8671 X"$as_dir" : 'X\(/\)' \| \
8672 . : '\(.\)' 2>/dev/null ||
8674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8676 /^X\(\/\/\)$/{ s//\1/; q; }
8677 /^X\(\/\).*/{ s//\1/; q; }
8680 test ! -n "$as_dirs" || mkdir $as_dirs
8681 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8682 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8683 { (exit 1); exit 1; }; }; }
8687 if test "$ac_dir" != .; then
8688 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8689 # A "../" for each directory in $ac_dir_suffix.
8690 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8692 ac_dir_suffix= ac_top_builddir=
8696 .) # No --srcdir option. We are building in place.
8698 if test -z "$ac_top_builddir"; then
8701 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8703 [\\/]* | ?:[\\/]* ) # Absolute path.
8704 ac_srcdir=$srcdir$ac_dir_suffix;
8705 ac_top_srcdir=$srcdir ;;
8707 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8708 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8711 # Do not use `cd foo && pwd` to compute absolute paths, because
8712 # the directories may not exist.
8714 .) ac_abs_builddir="$ac_dir";;
8717 .) ac_abs_builddir=`pwd`;;
8718 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8719 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8722 case $ac_abs_builddir in
8723 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8725 case ${ac_top_builddir}. in
8726 .) ac_abs_top_builddir=$ac_abs_builddir;;
8727 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8728 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8731 case $ac_abs_builddir in
8732 .) ac_abs_srcdir=$ac_srcdir;;
8735 .) ac_abs_srcdir=$ac_abs_builddir;;
8736 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8737 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8740 case $ac_abs_builddir in
8741 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8743 case $ac_top_srcdir in
8744 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8745 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8746 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8751 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8752 echo "$as_me: executing $ac_dest commands" >&6;}
8754 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8755 rm -f Makesim1.tmp Makesim2.tmp Makefile
8756 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
8757 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
8758 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8759 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8760 <Makefile.sim >Makefile
8761 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8763 stamp-h ) echo > stamp-h ;;
8768 cat >>$CONFIG_STATUS <<\_ACEOF
8770 { (exit 0); exit 0; }
8772 chmod +x $CONFIG_STATUS
8773 ac_clean_files=$ac_clean_files_save
8776 # configure is writing to config.log, and then calls config.status.
8777 # config.status does its own redirection, appending to config.log.
8778 # Unfortunately, on DOS this fails, as config.log is still kept open
8779 # by configure, so config.status won't be able to write to it; its
8780 # output is simply discarded. So we exec the FD to /dev/null,
8781 # effectively closing config.log, so it can be properly (re)opened and
8782 # appended to by config.status. When coming back to configure, we
8783 # need to make the FD available again.
8784 if test "$no_create" != yes; then
8786 ac_config_status_args=
8787 test "$silent" = yes &&
8788 ac_config_status_args="$ac_config_status_args --quiet"
8790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8792 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8793 # would make configure fail if this is the last instruction.
8794 $ac_cs_success || { (exit 1); exit 1; }