2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile COPRO 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
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --with-included-gettext use the GNU gettext library included here
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
882 if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
889 if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 ac_dir_suffix= ac_top_builddir=
898 .) # No --srcdir option. We are building in place.
900 if test -z "$ac_top_builddir"; then
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 # Do not use `cd foo && pwd` to compute absolute paths, because
914 # the directories may not exist.
916 .) ac_abs_builddir="$ac_dir";;
919 .) ac_abs_builddir=`pwd`;;
920 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
921 *) ac_abs_builddir=`pwd`/"$ac_dir";;
924 case $ac_abs_builddir in
925 .) ac_abs_top_builddir=${ac_top_builddir}.;;
927 case ${ac_top_builddir}. in
928 .) ac_abs_top_builddir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933 case $ac_abs_builddir in
934 .) ac_abs_srcdir=$ac_srcdir;;
937 .) ac_abs_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
939 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942 case $ac_abs_builddir in
943 .) ac_abs_top_srcdir=$ac_top_srcdir;;
945 case $ac_top_srcdir in
946 .) ac_abs_top_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
953 # Check for guested configure; otherwise get Cygnus style configure.
954 if test -f $ac_srcdir/configure.gnu; then
956 $SHELL $ac_srcdir/configure.gnu --help=recursive
957 elif test -f $ac_srcdir/configure; then
959 $SHELL $ac_srcdir/configure --help=recursive
960 elif test -f $ac_srcdir/configure.ac ||
961 test -f $ac_srcdir/configure.in; then
965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971 test -n "$ac_init_help" && exit 0
972 if $ac_init_version; then
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by $as_me, which was
987 generated by GNU Autoconf 2.59. Invocation command line was
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_must_keep_next=false
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 -* ) ac_must_keep_next=true ;;
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1104 # The following way of writing the cache mishandles newlines in values,
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -n "$ac_subst_files"; then
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -s confdefs.h; then
1156 sed "/^$/d" confdefs.h | sort
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1239 # Check that the precious variables saved in the cache have kept the same
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1317 if test -f $ac_dir/install-sh; then
1319 ac_install_sh="$ac_aux_dir/install-sh -c"
1321 elif test -f $ac_dir/install.sh; then
1323 ac_install_sh="$ac_aux_dir/install.sh -c"
1325 elif test -f $ac_dir/shtool; then
1327 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 if test -z "$ac_aux_dir"; then
1332 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1333 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1334 { (exit 1); exit 1; }; }
1336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1338 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1340 # Make sure we can run config.sub.
1341 $ac_config_sub sun4 >/dev/null 2>&1 ||
1342 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1343 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1344 { (exit 1); exit 1; }; }
1346 echo "$as_me:$LINENO: checking build system type" >&5
1347 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1348 if test "${ac_cv_build+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1351 ac_cv_build_alias=$build_alias
1352 test -z "$ac_cv_build_alias" &&
1353 ac_cv_build_alias=`$ac_config_guess`
1354 test -z "$ac_cv_build_alias" &&
1355 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1356 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1357 { (exit 1); exit 1; }; }
1358 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1359 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1360 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1361 { (exit 1); exit 1; }; }
1364 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1365 echo "${ECHO_T}$ac_cv_build" >&6
1367 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1368 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1369 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1372 echo "$as_me:$LINENO: checking host system type" >&5
1373 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1374 if test "${ac_cv_host+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1377 ac_cv_host_alias=$host_alias
1378 test -z "$ac_cv_host_alias" &&
1379 ac_cv_host_alias=$ac_cv_build_alias
1380 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1382 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1383 { (exit 1); exit 1; }; }
1386 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1387 echo "${ECHO_T}$ac_cv_host" >&6
1389 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1394 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1395 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1396 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1397 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 cat >conftest.make <<\_ACEOF
1402 @echo 'ac_maketemp="$(MAKE)"'
1404 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1405 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1406 if test -n "$ac_maketemp"; then
1407 eval ac_cv_prog_make_${ac_make}_set=yes
1409 eval ac_cv_prog_make_${ac_make}_set=no
1413 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1414 echo "$as_me:$LINENO: result: yes" >&5
1415 echo "${ECHO_T}yes" >&6
1418 echo "$as_me:$LINENO: result: no" >&5
1419 echo "${ECHO_T}no" >&6
1420 SET_MAKE="MAKE=${MAKE-make}"
1424 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1425 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1426 if test "${ac_cv_search_strerror+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 ac_func_search_save_LIBS=$LIBS
1430 ac_cv_search_strerror=no
1431 cat >conftest.$ac_ext <<_ACEOF
1434 cat confdefs.h >>conftest.$ac_ext
1435 cat >>conftest.$ac_ext <<_ACEOF
1436 /* end confdefs.h. */
1438 /* Override any gcc2 internal prototype to avoid an error. */
1442 /* We use char because int might match the return type of a gcc2
1443 builtin and then its argument prototype would still apply. */
1453 rm -f conftest.$ac_objext conftest$ac_exeext
1454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1455 (eval $ac_link) 2>conftest.er1
1457 grep -v '^ *+' conftest.er1 >conftest.err
1459 cat conftest.err >&5
1460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1461 (exit $ac_status); } &&
1462 { ac_try='test -z "$ac_c_werror_flag"
1463 || test ! -s conftest.err'
1464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1468 (exit $ac_status); }; } &&
1469 { ac_try='test -s conftest$ac_exeext'
1470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1474 (exit $ac_status); }; }; then
1475 ac_cv_search_strerror="none required"
1477 echo "$as_me: failed program was:" >&5
1478 sed 's/^/| /' conftest.$ac_ext >&5
1481 rm -f conftest.err conftest.$ac_objext \
1482 conftest$ac_exeext conftest.$ac_ext
1483 if test "$ac_cv_search_strerror" = no; then
1484 for ac_lib in cposix; do
1485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1486 cat >conftest.$ac_ext <<_ACEOF
1489 cat confdefs.h >>conftest.$ac_ext
1490 cat >>conftest.$ac_ext <<_ACEOF
1491 /* end confdefs.h. */
1493 /* Override any gcc2 internal prototype to avoid an error. */
1497 /* We use char because int might match the return type of a gcc2
1498 builtin and then its argument prototype would still apply. */
1508 rm -f conftest.$ac_objext conftest$ac_exeext
1509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1510 (eval $ac_link) 2>conftest.er1
1512 grep -v '^ *+' conftest.er1 >conftest.err
1514 cat conftest.err >&5
1515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1516 (exit $ac_status); } &&
1517 { ac_try='test -z "$ac_c_werror_flag"
1518 || test ! -s conftest.err'
1519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1523 (exit $ac_status); }; } &&
1524 { ac_try='test -s conftest$ac_exeext'
1525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1529 (exit $ac_status); }; }; then
1530 ac_cv_search_strerror="-l$ac_lib"
1533 echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1537 rm -f conftest.err conftest.$ac_objext \
1538 conftest$ac_exeext conftest.$ac_ext
1541 LIBS=$ac_func_search_save_LIBS
1543 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1544 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1545 if test "$ac_cv_search_strerror" != no; then
1546 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1551 ac_cpp='$CPP $CPPFLAGS'
1552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1556 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1557 # On Suns, sometimes $CPP names a directory.
1558 if test -n "$CPP" && test -d "$CPP"; then
1561 if test -z "$CPP"; then
1562 if test "${ac_cv_prog_CPP+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 # Double quotes because CPP needs to be expanded
1566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1569 for ac_c_preproc_warn_flag in '' yes
1571 # Use a header file that comes with gcc, so configuring glibc
1572 # with a fresh cross-compiler works.
1573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1574 # <limits.h> exists even on freestanding compilers.
1575 # On the NeXT, cc -E runs the code through the compiler's parser,
1576 # not just through cpp. "Syntax error" is here to catch this case.
1577 cat >conftest.$ac_ext <<_ACEOF
1580 cat confdefs.h >>conftest.$ac_ext
1581 cat >>conftest.$ac_ext <<_ACEOF
1582 /* end confdefs.h. */
1584 # include <limits.h>
1586 # include <assert.h>
1590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1593 grep -v '^ *+' conftest.er1 >conftest.err
1595 cat conftest.err >&5
1596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1597 (exit $ac_status); } >/dev/null; then
1598 if test -s conftest.err; then
1599 ac_cpp_err=$ac_c_preproc_warn_flag
1600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1607 if test -z "$ac_cpp_err"; then
1610 echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1613 # Broken: fails on valid input.
1616 rm -f conftest.err conftest.$ac_ext
1618 # OK, works on sane cases. Now check whether non-existent headers
1619 # can be detected and how.
1620 cat >conftest.$ac_ext <<_ACEOF
1623 cat confdefs.h >>conftest.$ac_ext
1624 cat >>conftest.$ac_ext <<_ACEOF
1625 /* end confdefs.h. */
1626 #include <ac_nonexistent.h>
1628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1631 grep -v '^ *+' conftest.er1 >conftest.err
1633 cat conftest.err >&5
1634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1635 (exit $ac_status); } >/dev/null; then
1636 if test -s conftest.err; then
1637 ac_cpp_err=$ac_c_preproc_warn_flag
1638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1645 if test -z "$ac_cpp_err"; then
1646 # Broken: success on invalid input.
1649 echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 # Passes both tests.
1656 rm -f conftest.err conftest.$ac_ext
1659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1660 rm -f conftest.err conftest.$ac_ext
1661 if $ac_preproc_ok; then
1673 echo "$as_me:$LINENO: result: $CPP" >&5
1674 echo "${ECHO_T}$CPP" >&6
1676 for ac_c_preproc_warn_flag in '' yes
1678 # Use a header file that comes with gcc, so configuring glibc
1679 # with a fresh cross-compiler works.
1680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1681 # <limits.h> exists even on freestanding compilers.
1682 # On the NeXT, cc -E runs the code through the compiler's parser,
1683 # not just through cpp. "Syntax error" is here to catch this case.
1684 cat >conftest.$ac_ext <<_ACEOF
1687 cat confdefs.h >>conftest.$ac_ext
1688 cat >>conftest.$ac_ext <<_ACEOF
1689 /* end confdefs.h. */
1691 # include <limits.h>
1693 # include <assert.h>
1697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1700 grep -v '^ *+' conftest.er1 >conftest.err
1702 cat conftest.err >&5
1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 (exit $ac_status); } >/dev/null; then
1705 if test -s conftest.err; then
1706 ac_cpp_err=$ac_c_preproc_warn_flag
1707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1714 if test -z "$ac_cpp_err"; then
1717 echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 # Broken: fails on valid input.
1723 rm -f conftest.err conftest.$ac_ext
1725 # OK, works on sane cases. Now check whether non-existent headers
1726 # can be detected and how.
1727 cat >conftest.$ac_ext <<_ACEOF
1730 cat confdefs.h >>conftest.$ac_ext
1731 cat >>conftest.$ac_ext <<_ACEOF
1732 /* end confdefs.h. */
1733 #include <ac_nonexistent.h>
1735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1738 grep -v '^ *+' conftest.er1 >conftest.err
1740 cat conftest.err >&5
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); } >/dev/null; then
1743 if test -s conftest.err; then
1744 ac_cpp_err=$ac_c_preproc_warn_flag
1745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1752 if test -z "$ac_cpp_err"; then
1753 # Broken: success on invalid input.
1756 echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 # Passes both tests.
1763 rm -f conftest.err conftest.$ac_ext
1766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1767 rm -f conftest.err conftest.$ac_ext
1768 if $ac_preproc_ok; then
1771 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1772 See \`config.log' for more details." >&5
1773 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1774 See \`config.log' for more details." >&2;}
1775 { (exit 1); exit 1; }; }
1779 ac_cpp='$CPP $CPPFLAGS'
1780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785 echo "$as_me:$LINENO: checking for egrep" >&5
1786 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1787 if test "${ac_cv_prog_egrep+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1791 then ac_cv_prog_egrep='grep -E'
1792 else ac_cv_prog_egrep='egrep'
1795 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1796 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1797 EGREP=$ac_cv_prog_egrep
1800 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1802 if test "${ac_cv_header_stdc+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 cat >conftest.$ac_ext <<_ACEOF
1808 cat confdefs.h >>conftest.$ac_ext
1809 cat >>conftest.$ac_ext <<_ACEOF
1810 /* end confdefs.h. */
1824 rm -f conftest.$ac_objext
1825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>conftest.er1
1828 grep -v '^ *+' conftest.er1 >conftest.err
1830 cat conftest.err >&5
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); } &&
1833 { ac_try='test -z "$ac_c_werror_flag"
1834 || test ! -s conftest.err'
1835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839 (exit $ac_status); }; } &&
1840 { ac_try='test -s conftest.$ac_objext'
1841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; }; then
1846 ac_cv_header_stdc=yes
1848 echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_cv_header_stdc=no
1853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1855 if test $ac_cv_header_stdc = yes; then
1856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1857 cat >conftest.$ac_ext <<_ACEOF
1860 cat confdefs.h >>conftest.$ac_ext
1861 cat >>conftest.$ac_ext <<_ACEOF
1862 /* end confdefs.h. */
1866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1867 $EGREP "memchr" >/dev/null 2>&1; then
1870 ac_cv_header_stdc=no
1876 if test $ac_cv_header_stdc = yes; then
1877 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1878 cat >conftest.$ac_ext <<_ACEOF
1881 cat confdefs.h >>conftest.$ac_ext
1882 cat >>conftest.$ac_ext <<_ACEOF
1883 /* end confdefs.h. */
1887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1888 $EGREP "free" >/dev/null 2>&1; then
1891 ac_cv_header_stdc=no
1897 if test $ac_cv_header_stdc = yes; then
1898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1899 if test "$cross_compiling" = yes; then
1902 cat >conftest.$ac_ext <<_ACEOF
1905 cat confdefs.h >>conftest.$ac_ext
1906 cat >>conftest.$ac_ext <<_ACEOF
1907 /* end confdefs.h. */
1909 #if ((' ' & 0x0FF) == 0x020)
1910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1913 # define ISLOWER(c) \
1914 (('a' <= (c) && (c) <= 'i') \
1915 || ('j' <= (c) && (c) <= 'r') \
1916 || ('s' <= (c) && (c) <= 'z'))
1917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1925 for (i = 0; i < 256; i++)
1926 if (XOR (islower (i), ISLOWER (i))
1927 || toupper (i) != TOUPPER (i))
1932 rm -f conftest$ac_exeext
1933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1934 (eval $ac_link) 2>&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1945 echo "$as_me: program exited with status $ac_status" >&5
1946 echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1950 ac_cv_header_stdc=no
1952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1956 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1957 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1958 if test $ac_cv_header_stdc = yes; then
1960 cat >>confdefs.h <<\_ACEOF
1961 #define STDC_HEADERS 1
1966 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1967 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1968 if test "${ac_cv_c_const+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 cat >conftest.$ac_ext <<_ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1981 /* FIXME: Include the comments suggested by Paul. */
1983 /* Ultrix mips cc rejects this. */
1984 typedef int charset[2];
1986 /* SunOS 4.1.1 cc rejects this. */
1987 char const *const *ccp;
1989 /* NEC SVR4.0.2 mips cc rejects this. */
1990 struct point {int x, y;};
1991 static struct point const zero = {0,0};
1992 /* AIX XL C 1.02.0.0 rejects this.
1993 It does not let you subtract one const X* pointer from another in
1994 an arm of an if-expression whose if-part is not a constant
1996 const char *g = "string";
1997 ccp = &g + (g ? g-g : 0);
1998 /* HPUX 7.0 cc rejects these. */
2001 ccp = (char const *const *) p;
2002 { /* SCO 3.2v4 cc rejects this. */
2004 char const *s = 0 ? (char *) 0 : (char const *) 0;
2008 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2010 const int *foo = &x[0];
2013 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2014 typedef const int *iptr;
2018 { /* AIX XL C 1.02.0.0 rejects this saying
2019 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2020 struct s { int j; const int *ap[3]; };
2021 struct s *b; b->j = 5;
2023 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2032 rm -f conftest.$ac_objext
2033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034 (eval $ac_compile) 2>conftest.er1
2036 grep -v '^ *+' conftest.er1 >conftest.err
2038 cat conftest.err >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -z "$ac_c_werror_flag"
2042 || test ! -s conftest.err'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; } &&
2048 { ac_try='test -s conftest.$ac_objext'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; }; then
2056 echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2063 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2064 echo "${ECHO_T}$ac_cv_c_const" >&6
2065 if test $ac_cv_c_const = no; then
2067 cat >>confdefs.h <<\_ACEOF
2073 echo "$as_me:$LINENO: checking for inline" >&5
2074 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2075 if test "${ac_cv_c_inline+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 for ac_kw in inline __inline__ __inline; do
2080 cat >conftest.$ac_ext <<_ACEOF
2083 cat confdefs.h >>conftest.$ac_ext
2084 cat >>conftest.$ac_ext <<_ACEOF
2085 /* end confdefs.h. */
2088 static $ac_kw foo_t static_foo () {return 0; }
2089 $ac_kw foo_t foo () {return 0; }
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>conftest.er1
2097 grep -v '^ *+' conftest.er1 >conftest.err
2099 cat conftest.err >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try='test -z "$ac_c_werror_flag"
2103 || test ! -s conftest.err'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 ac_cv_c_inline=$ac_kw; break
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2125 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2126 echo "${ECHO_T}$ac_cv_c_inline" >&6
2129 case $ac_cv_c_inline in
2132 case $ac_cv_c_inline in
2134 *) ac_val=$ac_cv_c_inline;;
2136 cat >>confdefs.h <<_ACEOF
2138 #define inline $ac_val
2144 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2154 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2155 inttypes.h stdint.h unistd.h
2157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2158 echo "$as_me:$LINENO: checking for $ac_header" >&5
2159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 cat >conftest.$ac_ext <<_ACEOF
2166 cat confdefs.h >>conftest.$ac_ext
2167 cat >>conftest.$ac_ext <<_ACEOF
2168 /* end confdefs.h. */
2169 $ac_includes_default
2171 #include <$ac_header>
2173 rm -f conftest.$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>conftest.er1
2177 grep -v '^ *+' conftest.er1 >conftest.err
2179 cat conftest.err >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); } &&
2182 { ac_try='test -z "$ac_c_werror_flag"
2183 || test ! -s conftest.err'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; } &&
2189 { ac_try='test -s conftest.$ac_objext'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2195 eval "$as_ac_Header=yes"
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2200 eval "$as_ac_Header=no"
2202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2207 cat >>confdefs.h <<_ACEOF
2208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2216 echo "$as_me:$LINENO: checking for off_t" >&5
2217 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2218 if test "${ac_cv_type_off_t+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 cat >conftest.$ac_ext <<_ACEOF
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h. */
2227 $ac_includes_default
2239 rm -f conftest.$ac_objext
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>conftest.er1
2243 grep -v '^ *+' conftest.er1 >conftest.err
2245 cat conftest.err >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try='test -z "$ac_c_werror_flag"
2249 || test ! -s conftest.err'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; } &&
2255 { ac_try='test -s conftest.$ac_objext'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2261 ac_cv_type_off_t=yes
2263 echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2271 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2272 if test $ac_cv_type_off_t = yes; then
2276 cat >>confdefs.h <<_ACEOF
2282 echo "$as_me:$LINENO: checking for size_t" >&5
2283 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2284 if test "${ac_cv_type_size_t+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 cat >conftest.$ac_ext <<_ACEOF
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2293 $ac_includes_default
2299 if (sizeof (size_t))
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 ac_cv_type_size_t=yes
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2332 ac_cv_type_size_t=no
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2337 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2338 if test $ac_cv_type_size_t = yes; then
2342 cat >>confdefs.h <<_ACEOF
2343 #define size_t unsigned
2348 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2349 # for constant arguments. Useless!
2350 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2351 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2352 if test "${ac_cv_working_alloca_h+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2365 char *p = (char *) alloca (2 * sizeof (int));
2370 rm -f conftest.$ac_objext conftest$ac_exeext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2372 (eval $ac_link) 2>conftest.er1
2374 grep -v '^ *+' conftest.er1 >conftest.err
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest$ac_exeext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 ac_cv_working_alloca_h=yes
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2397 ac_cv_working_alloca_h=no
2399 rm -f conftest.err conftest.$ac_objext \
2400 conftest$ac_exeext conftest.$ac_ext
2402 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2403 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2404 if test $ac_cv_working_alloca_h = yes; then
2406 cat >>confdefs.h <<\_ACEOF
2407 #define HAVE_ALLOCA_H 1
2412 echo "$as_me:$LINENO: checking for alloca" >&5
2413 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2414 if test "${ac_cv_func_alloca_works+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 cat >conftest.$ac_ext <<_ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2424 # define alloca __builtin_alloca
2427 # include <malloc.h>
2428 # define alloca _alloca
2431 # include <alloca.h>
2436 # ifndef alloca /* predefined by HP cc +Olibcalls */
2447 char *p = (char *) alloca (1);
2452 rm -f conftest.$ac_objext conftest$ac_exeext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2454 (eval $ac_link) 2>conftest.er1
2456 grep -v '^ *+' conftest.er1 >conftest.err
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag"
2462 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest$ac_exeext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_func_alloca_works=yes
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2479 ac_cv_func_alloca_works=no
2481 rm -f conftest.err conftest.$ac_objext \
2482 conftest$ac_exeext conftest.$ac_ext
2484 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2485 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2487 if test $ac_cv_func_alloca_works = yes; then
2489 cat >>confdefs.h <<\_ACEOF
2490 #define HAVE_ALLOCA 1
2494 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2495 # that cause trouble. Some versions do not even contain alloca or
2496 # contain a buggy version. If you still want to use their alloca,
2497 # use ar to extract alloca.o from them instead of compiling alloca.c.
2499 ALLOCA=alloca.$ac_objext
2501 cat >>confdefs.h <<\_ACEOF
2506 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2507 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2508 if test "${ac_cv_os_cray+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 cat >conftest.$ac_ext <<_ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2517 #if defined(CRAY) && ! defined(CRAY2)
2524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2525 $EGREP "webecray" >/dev/null 2>&1; then
2533 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2534 echo "${ECHO_T}$ac_cv_os_cray" >&6
2535 if test $ac_cv_os_cray = yes; then
2536 for ac_func in _getb67 GETB67 getb67; do
2537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2538 echo "$as_me:$LINENO: checking for $ac_func" >&5
2539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2540 if eval "test \"\${$as_ac_var+set}\" = set"; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2551 #define $ac_func innocuous_$ac_func
2553 /* System header to define __stub macros and hopefully few prototypes,
2554 which can conflict with char $ac_func (); below.
2555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2556 <limits.h> exists even on freestanding compilers. */
2559 # include <limits.h>
2561 # include <assert.h>
2566 /* Override any gcc2 internal prototype to avoid an error. */
2571 /* We use char because int might match the return type of a gcc2
2572 builtin and then its argument prototype would still apply. */
2574 /* The GNU C library defines this for functions which it implements
2575 to always fail with ENOSYS. Some functions are actually named
2576 something starting with __ and the normal name is an alias. */
2577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2580 char (*f) () = $ac_func;
2589 return f != $ac_func;
2594 rm -f conftest.$ac_objext conftest$ac_exeext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2596 (eval $ac_link) 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest$ac_exeext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 eval "$as_ac_var=yes"
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2621 eval "$as_ac_var=no"
2623 rm -f conftest.err conftest.$ac_objext \
2624 conftest$ac_exeext conftest.$ac_ext
2626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2628 if test `eval echo '${'$as_ac_var'}'` = yes; then
2630 cat >>confdefs.h <<_ACEOF
2631 #define CRAY_STACKSEG_END $ac_func
2640 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2641 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2642 if test "${ac_cv_c_stack_direction+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test "$cross_compiling" = yes; then
2646 ac_cv_c_stack_direction=0
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2655 find_stack_direction ()
2657 static char *addr = 0;
2662 return find_stack_direction ();
2665 return (&dummy > addr) ? 1 : -1;
2671 exit (find_stack_direction () < 0);
2674 rm -f conftest$ac_exeext
2675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2676 (eval $ac_link) 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2685 ac_cv_c_stack_direction=1
2687 echo "$as_me: program exited with status $ac_status" >&5
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2692 ac_cv_c_stack_direction=-1
2694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2697 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2698 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2700 cat >>confdefs.h <<_ACEOF
2701 #define STACK_DIRECTION $ac_cv_c_stack_direction
2709 for ac_header in stdlib.h unistd.h
2711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2713 echo "$as_me:$LINENO: checking for $ac_header" >&5
2714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2721 # Is the header compilable?
2722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730 $ac_includes_default
2731 #include <$ac_header>
2733 rm -f conftest.$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>conftest.er1
2737 grep -v '^ *+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_c_werror_flag"
2743 || test ! -s conftest.err'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; } &&
2749 { ac_try='test -s conftest.$ac_objext'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2755 ac_header_compiler=yes
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2760 ac_header_compiler=no
2762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2764 echo "${ECHO_T}$ac_header_compiler" >&6
2766 # Is the header present?
2767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2775 #include <$ac_header>
2777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } >/dev/null; then
2785 if test -s conftest.err; then
2786 ac_cpp_err=$ac_c_preproc_warn_flag
2787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2794 if test -z "$ac_cpp_err"; then
2795 ac_header_preproc=yes
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 ac_header_preproc=no
2802 rm -f conftest.err conftest.$ac_ext
2803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2804 echo "${ECHO_T}$ac_header_preproc" >&6
2806 # So? What about this header?
2807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2813 ac_header_preproc=yes
2816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2830 ## ------------------------------------------ ##
2831 ## Report this to the AC_PACKAGE_NAME lists. ##
2832 ## ------------------------------------------ ##
2835 sed "s/^/$as_me: WARNING: /" >&2
2838 echo "$as_me:$LINENO: checking for $ac_header" >&5
2839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 eval "$as_ac_Header=\$ac_header_preproc"
2845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2850 cat >>confdefs.h <<_ACEOF
2851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2859 for ac_func in getpagesize
2861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2862 echo "$as_me:$LINENO: checking for $ac_func" >&5
2863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2864 if eval "test \"\${$as_ac_var+set}\" = set"; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 cat >conftest.$ac_ext <<_ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2875 #define $ac_func innocuous_$ac_func
2877 /* System header to define __stub macros and hopefully few prototypes,
2878 which can conflict with char $ac_func (); below.
2879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2880 <limits.h> exists even on freestanding compilers. */
2883 # include <limits.h>
2885 # include <assert.h>
2890 /* Override any gcc2 internal prototype to avoid an error. */
2895 /* We use char because int might match the return type of a gcc2
2896 builtin and then its argument prototype would still apply. */
2898 /* The GNU C library defines this for functions which it implements
2899 to always fail with ENOSYS. Some functions are actually named
2900 something starting with __ and the normal name is an alias. */
2901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2904 char (*f) () = $ac_func;
2913 return f != $ac_func;
2918 rm -f conftest.$ac_objext conftest$ac_exeext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2920 (eval $ac_link) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1 >conftest.err
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest$ac_exeext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 eval "$as_ac_var=yes"
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 eval "$as_ac_var=no"
2947 rm -f conftest.err conftest.$ac_objext \
2948 conftest$ac_exeext conftest.$ac_ext
2950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2952 if test `eval echo '${'$as_ac_var'}'` = yes; then
2953 cat >>confdefs.h <<_ACEOF
2954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2960 echo "$as_me:$LINENO: checking for working mmap" >&5
2961 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2962 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 if test "$cross_compiling" = yes; then
2966 ac_cv_func_mmap_fixed_mapped=no
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 $ac_includes_default
2975 /* malloc might have been renamed as rpl_malloc. */
2978 /* Thanks to Mike Haertel and Jim Avera for this test.
2979 Here is a matrix of mmap possibilities:
2980 mmap private not fixed
2981 mmap private fixed at somewhere currently unmapped
2982 mmap private fixed at somewhere already mapped
2983 mmap shared not fixed
2984 mmap shared fixed at somewhere currently unmapped
2985 mmap shared fixed at somewhere already mapped
2986 For private mappings, we should verify that changes cannot be read()
2987 back from the file, nor mmap's back from the file at a different
2988 address. (There have been systems where private was not correctly
2989 implemented like the infamous i386 svr4.0, and systems where the
2990 VM page cache was not coherent with the file system buffer cache
2991 like early versions of FreeBSD and possibly contemporary NetBSD.)
2992 For shared mappings, we should conversely verify that changes get
2993 propagated back to all the places they're supposed to be.
2995 Grep wants private fixed already mapped.
2996 The main things grep needs to know about mmap are:
2997 * does it exist and is it safe to write into the mmap'd area
2998 * how to use it (BSD variants) */
3001 #include <sys/mman.h>
3003 #if !STDC_HEADERS && !HAVE_STDLIB_H
3007 /* This mess was copied from the GNU getpagesize.h. */
3008 #if !HAVE_GETPAGESIZE
3009 /* Assume that all systems that can run configure have sys/param.h. */
3010 # if !HAVE_SYS_PARAM_H
3011 # define HAVE_SYS_PARAM_H 1
3014 # ifdef _SC_PAGESIZE
3015 # define getpagesize() sysconf(_SC_PAGESIZE)
3016 # else /* no _SC_PAGESIZE */
3017 # if HAVE_SYS_PARAM_H
3018 # include <sys/param.h>
3019 # ifdef EXEC_PAGESIZE
3020 # define getpagesize() EXEC_PAGESIZE
3021 # else /* no EXEC_PAGESIZE */
3023 # define getpagesize() NBPG * CLSIZE
3026 # endif /* no CLSIZE */
3027 # else /* no NBPG */
3029 # define getpagesize() NBPC
3030 # else /* no NBPC */
3032 # define getpagesize() PAGESIZE
3033 # endif /* PAGESIZE */
3034 # endif /* no NBPC */
3035 # endif /* no NBPG */
3036 # endif /* no EXEC_PAGESIZE */
3037 # else /* no HAVE_SYS_PARAM_H */
3038 # define getpagesize() 8192 /* punt totally */
3039 # endif /* no HAVE_SYS_PARAM_H */
3040 # endif /* no _SC_PAGESIZE */
3042 #endif /* no HAVE_GETPAGESIZE */
3047 char *data, *data2, *data3;
3051 pagesize = getpagesize ();
3053 /* First, make a file with some known garbage in it. */
3054 data = (char *) malloc (pagesize);
3057 for (i = 0; i < pagesize; ++i)
3058 *(data + i) = rand ();
3060 fd = creat ("conftest.mmap", 0600);
3063 if (write (fd, data, pagesize) != pagesize)
3067 /* Next, try to mmap the file at a fixed address which already has
3068 something else allocated at it. If we can, also make sure that
3069 we see the same garbage. */
3070 fd = open ("conftest.mmap", O_RDWR);
3073 data2 = (char *) malloc (2 * pagesize);
3076 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3077 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3078 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3080 for (i = 0; i < pagesize; ++i)
3081 if (*(data + i) != *(data2 + i))
3084 /* Finally, make sure that changes to the mapped area do not
3085 percolate back to the file as seen by read(). (This is a bug on
3086 some variants of i386 svr4.0.) */
3087 for (i = 0; i < pagesize; ++i)
3088 *(data2 + i) = *(data2 + i) + 1;
3089 data3 = (char *) malloc (pagesize);
3092 if (read (fd, data3, pagesize) != pagesize)
3094 for (i = 0; i < pagesize; ++i)
3095 if (*(data + i) != *(data3 + i))
3101 rm -f conftest$ac_exeext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3103 (eval $ac_link) 2>&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 ac_cv_func_mmap_fixed_mapped=yes
3114 echo "$as_me: program exited with status $ac_status" >&5
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3119 ac_cv_func_mmap_fixed_mapped=no
3121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3124 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3125 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3126 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3128 cat >>confdefs.h <<\_ACEOF
3136 # autoconf.info says this should be called right after AC_INIT.
3137 ac_config_headers="$ac_config_headers config.h:config.in"
3139 echo "$as_me:$LINENO: checking target system type" >&5
3140 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3141 if test "${ac_cv_target+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 ac_cv_target_alias=$target_alias
3145 test "x$ac_cv_target_alias" = "x" &&
3146 ac_cv_target_alias=$ac_cv_host_alias
3147 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3148 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3149 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3150 { (exit 1); exit 1; }; }
3153 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3154 echo "${ECHO_T}$ac_cv_target" >&6
3155 target=$ac_cv_target
3156 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3157 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3158 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3161 # The aliases save the names the user supplied, while $host etc.
3162 # will get canonicalized.
3163 test -n "$target_alias" &&
3164 test "$program_prefix$program_suffix$program_transform_name" = \
3166 program_prefix=${target_alias}-
3167 test "$program_prefix" != NONE &&
3168 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3169 # Use a double $ so make ignores it.
3170 test "$program_suffix" != NONE &&
3171 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3172 # Double any \ or $. echo might interpret backslashes.
3173 # By default was `s,x,x', remove it if useless.
3174 cat <<\_ACEOF >conftest.sed
3175 s/[\\$]/&&/g;s/;s,x,x,$//
3177 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_CC+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 if test -n "$CC"; then
3214 echo "$as_me:$LINENO: result: $CC" >&5
3215 echo "${ECHO_T}$CC" >&6
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3222 if test -z "$ac_cv_prog_CC"; then
3224 # Extract the first word of "gcc", so it can be a program name with args.
3225 set dummy gcc; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 if test -n "$ac_ct_CC"; then
3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_ac_ct_CC="gcc"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3251 if test -n "$ac_ct_CC"; then
3252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3253 echo "${ECHO_T}$ac_ct_CC" >&6
3255 echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3264 if test -z "$CC"; then
3265 if test -n "$ac_tool_prefix"; then
3266 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3267 set dummy ${ac_tool_prefix}cc; ac_word=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_prog_CC+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_CC="${ac_tool_prefix}cc"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 if test -n "$CC"; then
3294 echo "$as_me:$LINENO: result: $CC" >&5
3295 echo "${ECHO_T}$CC" >&6
3297 echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6
3302 if test -z "$ac_cv_prog_CC"; then
3304 # Extract the first word of "cc", so it can be a program name with args.
3305 set dummy cc; ac_word=$2
3306 echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 if test -n "$ac_ct_CC"; then
3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_ac_ct_CC="cc"
3322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3331 if test -n "$ac_ct_CC"; then
3332 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3333 echo "${ECHO_T}$ac_ct_CC" >&6
3335 echo "$as_me:$LINENO: result: no" >&5
3336 echo "${ECHO_T}no" >&6
3345 if test -z "$CC"; then
3346 # Extract the first word of "cc", so it can be a program name with args.
3347 set dummy cc; ac_word=$2
3348 echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350 if test "${ac_cv_prog_CC+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3365 ac_prog_rejected=yes
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 if test $ac_prog_rejected = yes; then
3376 # We found a bogon in the path, so make sure we never use it.
3377 set dummy $ac_cv_prog_CC
3379 if test $# != 0; then
3380 # We chose a different compiler from the bogus one.
3381 # However, it has the same basename, so the bogon will be chosen
3382 # first if we set CC to just the basename; use the full file name.
3384 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3390 if test -n "$CC"; then
3391 echo "$as_me:$LINENO: result: $CC" >&5
3392 echo "${ECHO_T}$CC" >&6
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3399 if test -z "$CC"; then
3400 if test -n "$ac_tool_prefix"; then
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_CC+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 if test -n "$CC"; then
3431 echo "$as_me:$LINENO: result: $CC" >&5
3432 echo "${ECHO_T}$CC" >&6
3434 echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3438 test -n "$CC" && break
3441 if test -z "$CC"; then
3445 # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 if test -n "$ac_ct_CC"; then
3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_CC="$ac_prog"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 echo "${ECHO_T}$ac_ct_CC" >&6
3476 echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3480 test -n "$ac_ct_CC" && break
3489 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&5
3491 echo "$as_me: error: no acceptable C compiler found in \$PATH
3492 See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }
3495 # Provide some information about the compiler.
3496 echo "$as_me:$LINENO:" \
3497 "checking for C compiler version" >&5
3498 ac_compiler=`set X $ac_compile; echo $2`
3499 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3500 (eval $ac_compiler --version </dev/null >&5) 2>&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }
3504 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3505 (eval $ac_compiler -v </dev/null >&5) 2>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }
3509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3510 (eval $ac_compiler -V </dev/null >&5) 2>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }
3515 cat >conftest.$ac_ext <<_ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3530 ac_clean_files_save=$ac_clean_files
3531 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3532 # Try to create an executable without -o first, disregard a.out.
3533 # It will help us diagnose broken compilers, and finding out an intuition
3535 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3536 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3537 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3539 (eval $ac_link_default) 2>&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; then
3543 # Find the output, starting from the most likely. This scheme is
3544 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3547 # Be careful to initialize this variable, since it used to be cached.
3548 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3550 # b.out is created by i960 compilers.
3551 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3553 test -f "$ac_file" || continue
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3558 # This is the source file.
3561 # We found the default executable, but exeext='' is most
3565 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3566 # FIXME: I believe we export ac_cv_exeext for Libtool,
3567 # but it would be cool to find out if it's true. Does anybody
3568 # maintain Libtool? --akim.
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3580 See \`config.log' for more details." >&5
3581 echo "$as_me: error: C compiler cannot create executables
3582 See \`config.log' for more details." >&2;}
3583 { (exit 77); exit 77; }; }
3586 ac_exeext=$ac_cv_exeext
3587 echo "$as_me:$LINENO: result: $ac_file" >&5
3588 echo "${ECHO_T}$ac_file" >&6
3590 # Check the compiler produces executables we can run. If not, either
3591 # the compiler is broken, or we cross compile.
3592 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3593 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3594 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3595 # If not cross compiling, check that we can run a simple program.
3596 if test "$cross_compiling" != yes; then
3597 if { ac_try='./$ac_file'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3605 if test "$cross_compiling" = maybe; then
3608 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3609 If you meant to cross compile, use \`--host'.
3610 See \`config.log' for more details." >&5
3611 echo "$as_me: error: cannot run C compiled programs.
3612 If you meant to cross compile, use \`--host'.
3613 See \`config.log' for more details." >&2;}
3614 { (exit 1); exit 1; }; }
3618 echo "$as_me:$LINENO: result: yes" >&5
3619 echo "${ECHO_T}yes" >&6
3621 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3622 ac_clean_files=$ac_clean_files_save
3623 # Check the compiler produces executables we can run. If not, either
3624 # the compiler is broken, or we cross compile.
3625 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3626 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3627 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3628 echo "${ECHO_T}$cross_compiling" >&6
3630 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3631 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3633 (eval $ac_link) 2>&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; then
3637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3639 # work properly (i.e., refer to `conftest.exe'), while it won't with
3641 for ac_file in conftest.exe conftest conftest.*; do
3642 test -f "$ac_file" || continue
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3652 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3653 See \`config.log' for more details." >&5
3654 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3655 See \`config.log' for more details." >&2;}
3656 { (exit 1); exit 1; }; }
3659 rm -f conftest$ac_cv_exeext
3660 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3661 echo "${ECHO_T}$ac_cv_exeext" >&6
3663 rm -f conftest.$ac_ext
3664 EXEEXT=$ac_cv_exeext
3666 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3667 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3668 if test "${ac_cv_objext+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 cat >conftest.$ac_ext <<_ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3686 rm -f conftest.o conftest.obj
3687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688 (eval $ac_compile) 2>&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; then
3692 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3704 See \`config.log' for more details." >&5
3705 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3706 See \`config.log' for more details." >&2;}
3707 { (exit 1); exit 1; }; }
3710 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3712 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3713 echo "${ECHO_T}$ac_cv_objext" >&6
3714 OBJEXT=$ac_cv_objext
3716 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3717 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3718 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 cat >conftest.$ac_ext <<_ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>conftest.er1
3743 grep -v '^ *+' conftest.er1 >conftest.err
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -z "$ac_c_werror_flag"
3749 || test ! -s conftest.err'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; } &&
3755 { ac_try='test -s conftest.$ac_objext'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3772 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3773 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3774 GCC=`test $ac_compiler_gnu = yes && echo yes`
3775 ac_test_CFLAGS=${CFLAGS+set}
3776 ac_save_CFLAGS=$CFLAGS
3778 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3779 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3780 if test "${ac_cv_prog_cc_g+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3798 rm -f conftest.$ac_objext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800 (eval $ac_compile) 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag"
3808 || test ! -s conftest.err'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3830 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3831 if test "$ac_test_CFLAGS" = set; then
3832 CFLAGS=$ac_save_CFLAGS
3833 elif test $ac_cv_prog_cc_g = yes; then
3834 if test "$GCC" = yes; then
3840 if test "$GCC" = yes; then
3846 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3847 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3848 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 ac_cv_prog_cc_stdc=no
3853 cat >conftest.$ac_ext <<_ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3861 #include <sys/types.h>
3862 #include <sys/stat.h>
3863 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3864 struct buf { int x; };
3865 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3866 static char *e (p, i)
3872 static char *f (char * (*g) (char **, int), char **p, ...)
3877 s = g (p, va_arg (v,int));
3882 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3883 function prototypes and stuff, but not '\xHH' hex character constants.
3884 These don't provoke an error unfortunately, instead are silently treated
3885 as 'x'. The following induces an error, until -std1 is added to get
3886 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3887 array size at least. It's necessary to write '\x00'==0 to get something
3888 that's true only with -std1. */
3889 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3891 int test (int i, double x);
3892 struct s1 {int (*f) (int a);};
3893 struct s2 {int (*f) (double a);};
3894 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3900 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3905 # Don't try gcc -ansi; that turns off useful extensions and
3906 # breaks some systems' header files.
3907 # AIX -qlanglvl=ansi
3908 # Ultrix and OSF/1 -std1
3909 # HP-UX 10.20 and later -Ae
3910 # HP-UX older versions -Aa -D_HPUX_SOURCE
3911 # SVR4 -Xc -D__EXTENSIONS__
3912 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3914 CC="$ac_save_CC $ac_arg"
3915 rm -f conftest.$ac_objext
3916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3917 (eval $ac_compile) 2>conftest.er1
3919 grep -v '^ *+' conftest.er1 >conftest.err
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } &&
3924 { ac_try='test -z "$ac_c_werror_flag"
3925 || test ! -s conftest.err'
3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; } &&
3931 { ac_try='test -s conftest.$ac_objext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_prog_cc_stdc=$ac_arg
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3944 rm -f conftest.err conftest.$ac_objext
3946 rm -f conftest.$ac_ext conftest.$ac_objext
3951 case "x$ac_cv_prog_cc_stdc" in
3953 echo "$as_me:$LINENO: result: none needed" >&5
3954 echo "${ECHO_T}none needed" >&6 ;;
3956 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3957 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3958 CC="$CC $ac_cv_prog_cc_stdc" ;;
3961 # Some people use a C++ compiler to compile C. Since we use `exit',
3962 # in C++ we need to declare it. In case someone uses the same compiler
3963 # for both compiling C and C++ we need to have the C++ compiler decide
3964 # the declaration of exit, since it's the most demanding environment.
3965 cat >conftest.$ac_ext <<_ACEOF
3970 rm -f conftest.$ac_objext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>conftest.er1
3974 grep -v '^ *+' conftest.er1 >conftest.err
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -z "$ac_c_werror_flag"
3980 || test ! -s conftest.err'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; } &&
3986 { ac_try='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 for ac_declaration in \
3994 'extern "C" void std::exit (int) throw (); using std::exit;' \
3995 'extern "C" void std::exit (int); using std::exit;' \
3996 'extern "C" void exit (int) throw ();' \
3997 'extern "C" void exit (int);' \
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4061 rm -f conftest.$ac_objext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4063 (eval $ac_compile) 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag"
4071 || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4092 if test -n "$ac_declaration"; then
4093 echo '#ifdef __cplusplus' >>confdefs.h
4094 echo $ac_declaration >>confdefs.h
4095 echo '#endif' >>confdefs.h
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 # Find a good install program. We prefer a C program (faster),
4111 # so one script is as good as another. But avoid the broken or
4112 # incompatible versions:
4113 # SysV /etc/install, /usr/sbin/install
4114 # SunOS /usr/etc/install
4115 # IRIX /sbin/install
4117 # AmigaOS /C/install, which installs bootblocks on floppy discs
4118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4121 # OS/2's system install, which has a completely different semantic
4122 # ./install, which can be erroneously created by make from ./install.sh.
4123 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4124 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4125 if test -z "$INSTALL"; then
4126 if test "${ac_cv_path_install+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 # Account for people who put trailing slashes in PATH elements.
4136 ./ | .// | /cC/* | \
4137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4138 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4141 # OSF1 and SCO ODT 3.0 have their own names for install.
4142 # Don't use installbsd from OSF since it installs stuff as root
4144 for ac_prog in ginstall scoinst install; do
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4147 if test $ac_prog = install &&
4148 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4149 # AIX install. It has an incompatible calling convention.
4151 elif test $ac_prog = install &&
4152 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4153 # program-specific install script used by HP pwplus--don't use.
4156 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4168 if test "${ac_cv_path_install+set}" = set; then
4169 INSTALL=$ac_cv_path_install
4171 # As a last resort, use the slow shell script. We don't cache a
4172 # path for INSTALL within a source directory, because that will
4173 # break other packages using the cache if that directory is
4174 # removed, or if the path is relative.
4175 INSTALL=$ac_install_sh
4178 echo "$as_me:$LINENO: result: $INSTALL" >&5
4179 echo "${ECHO_T}$INSTALL" >&6
4181 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4182 # It thinks the first close brace ends the variable substitution.
4183 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4185 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4187 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4190 # Put a plausible default for CC_FOR_BUILD in Makefile.
4191 if test "x$cross_compiling" = "xno"; then
4192 CC_FOR_BUILD='$(CC)'
4202 if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4204 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_RANLIB+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$RANLIB"; then
4211 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 RANLIB=$ac_cv_prog_RANLIB
4230 if test -n "$RANLIB"; then
4231 echo "$as_me:$LINENO: result: $RANLIB" >&5
4232 echo "${ECHO_T}$RANLIB" >&6
4234 echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6
4239 if test -z "$ac_cv_prog_RANLIB"; then
4240 ac_ct_RANLIB=$RANLIB
4241 # Extract the first word of "ranlib", so it can be a program name with args.
4242 set dummy ranlib; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 if test -n "$ac_ct_RANLIB"; then
4249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_ac_ct_RANLIB="ranlib"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4269 if test -n "$ac_ct_RANLIB"; then
4270 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4271 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4273 echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4277 RANLIB=$ac_ct_RANLIB
4279 RANLIB="$ac_cv_prog_RANLIB"
4294 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4295 unistd.h values.h sys/param.h
4297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4299 echo "$as_me:$LINENO: checking for $ac_header" >&5
4300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4307 # Is the header compilable?
4308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4310 cat >conftest.$ac_ext <<_ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 $ac_includes_default
4317 #include <$ac_header>
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>conftest.er1
4323 grep -v '^ *+' conftest.er1 >conftest.err
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try='test -z "$ac_c_werror_flag"
4329 || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_header_compiler=yes
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 ac_header_compiler=no
4348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4350 echo "${ECHO_T}$ac_header_compiler" >&6
4352 # Is the header present?
4353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 #include <$ac_header>
4363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4366 grep -v '^ *+' conftest.er1 >conftest.err
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } >/dev/null; then
4371 if test -s conftest.err; then
4372 ac_cpp_err=$ac_c_preproc_warn_flag
4373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4380 if test -z "$ac_cpp_err"; then
4381 ac_header_preproc=yes
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_header_preproc=no
4388 rm -f conftest.err conftest.$ac_ext
4389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4390 echo "${ECHO_T}$ac_header_preproc" >&6
4392 # So? What about this header?
4393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4399 ac_header_preproc=yes
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4416 ## ------------------------------------------ ##
4417 ## Report this to the AC_PACKAGE_NAME lists. ##
4418 ## ------------------------------------------ ##
4421 sed "s/^/$as_me: WARNING: /" >&2
4424 echo "$as_me:$LINENO: checking for $ac_header" >&5
4425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 eval "$as_ac_Header=\$ac_header_preproc"
4431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4436 cat >>confdefs.h <<_ACEOF
4437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4455 __argz_count __argz_stringify __argz_next
4457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4458 echo "$as_me:$LINENO: checking for $ac_func" >&5
4459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4460 if eval "test \"\${$as_ac_var+set}\" = set"; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 cat >conftest.$ac_ext <<_ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4471 #define $ac_func innocuous_$ac_func
4473 /* System header to define __stub macros and hopefully few prototypes,
4474 which can conflict with char $ac_func (); below.
4475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476 <limits.h> exists even on freestanding compilers. */
4479 # include <limits.h>
4481 # include <assert.h>
4486 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4494 /* The GNU C library defines this for functions which it implements
4495 to always fail with ENOSYS. Some functions are actually named
4496 something starting with __ and the normal name is an alias. */
4497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4500 char (*f) () = $ac_func;
4509 return f != $ac_func;
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4516 (eval $ac_link) 2>conftest.er1
4518 grep -v '^ *+' conftest.er1 >conftest.err
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag"
4524 || test ! -s conftest.err'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; } &&
4530 { ac_try='test -s conftest$ac_exeext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 eval "$as_ac_var=yes"
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 eval "$as_ac_var=no"
4543 rm -f conftest.err conftest.$ac_objext \
4544 conftest$ac_exeext conftest.$ac_ext
4546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4548 if test `eval echo '${'$as_ac_var'}'` = yes; then
4549 cat >>confdefs.h <<_ACEOF
4550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4557 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4559 for ac_func in stpcpy
4561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4562 echo "$as_me:$LINENO: checking for $ac_func" >&5
4563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4564 if eval "test \"\${$as_ac_var+set}\" = set"; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 cat >conftest.$ac_ext <<_ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4575 #define $ac_func innocuous_$ac_func
4577 /* System header to define __stub macros and hopefully few prototypes,
4578 which can conflict with char $ac_func (); below.
4579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4580 <limits.h> exists even on freestanding compilers. */
4583 # include <limits.h>
4585 # include <assert.h>
4590 /* Override any gcc2 internal prototype to avoid an error. */
4595 /* We use char because int might match the return type of a gcc2
4596 builtin and then its argument prototype would still apply. */
4598 /* The GNU C library defines this for functions which it implements
4599 to always fail with ENOSYS. Some functions are actually named
4600 something starting with __ and the normal name is an alias. */
4601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4604 char (*f) () = $ac_func;
4613 return f != $ac_func;
4618 rm -f conftest.$ac_objext conftest$ac_exeext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4620 (eval $ac_link) 2>conftest.er1
4622 grep -v '^ *+' conftest.er1 >conftest.err
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -z "$ac_c_werror_flag"
4628 || test ! -s conftest.err'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; } &&
4634 { ac_try='test -s conftest$ac_exeext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 eval "$as_ac_var=yes"
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 eval "$as_ac_var=no"
4647 rm -f conftest.err conftest.$ac_objext \
4648 conftest$ac_exeext conftest.$ac_ext
4650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4652 if test `eval echo '${'$as_ac_var'}'` = yes; then
4653 cat >>confdefs.h <<_ACEOF
4654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4661 if test "${ac_cv_func_stpcpy}" = "yes"; then
4662 cat >>confdefs.h <<\_ACEOF
4663 #define HAVE_STPCPY 1
4668 if test $ac_cv_header_locale_h = yes; then
4669 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4670 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4671 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 cat >conftest.$ac_ext <<_ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4689 rm -f conftest.$ac_objext conftest$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691 (eval $ac_link) 2>conftest.er1
4693 grep -v '^ *+' conftest.er1 >conftest.err
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } &&
4698 { ac_try='test -z "$ac_c_werror_flag"
4699 || test ! -s conftest.err'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; } &&
4705 { ac_try='test -s conftest$ac_exeext'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 am_cv_val_LC_MESSAGES=yes
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4716 am_cv_val_LC_MESSAGES=no
4718 rm -f conftest.err conftest.$ac_objext \
4719 conftest$ac_exeext conftest.$ac_ext
4721 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4722 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4723 if test $am_cv_val_LC_MESSAGES = yes; then
4724 cat >>confdefs.h <<\_ACEOF
4725 #define HAVE_LC_MESSAGES 1
4730 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4731 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4732 # Check whether --enable-nls or --disable-nls was given.
4733 if test "${enable_nls+set}" = set; then
4734 enableval="$enable_nls"
4739 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4740 echo "${ECHO_T}$USE_NLS" >&6
4743 USE_INCLUDED_LIBINTL=no
4745 if test "$USE_NLS" = "yes"; then
4746 cat >>confdefs.h <<\_ACEOF
4747 #define ENABLE_NLS 1
4750 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4751 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4753 # Check whether --with-included-gettext or --without-included-gettext was given.
4754 if test "${with_included_gettext+set}" = set; then
4755 withval="$with_included_gettext"
4756 nls_cv_force_use_gnu_gettext=$withval
4758 nls_cv_force_use_gnu_gettext=no
4760 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4761 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4763 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4764 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4766 nls_cv_header_libgt=
4769 if test "${ac_cv_header_libintl_h+set}" = set; then
4770 echo "$as_me:$LINENO: checking for libintl.h" >&5
4771 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4772 if test "${ac_cv_header_libintl_h+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4776 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4778 # Is the header compilable?
4779 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4780 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4781 cat >conftest.$ac_ext <<_ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4787 $ac_includes_default
4788 #include <libintl.h>
4790 rm -f conftest.$ac_objext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792 (eval $ac_compile) 2>conftest.er1
4794 grep -v '^ *+' conftest.er1 >conftest.err
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -z "$ac_c_werror_flag"
4800 || test ! -s conftest.err'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; } &&
4806 { ac_try='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 ac_header_compiler=yes
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4817 ac_header_compiler=no
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4821 echo "${ECHO_T}$ac_header_compiler" >&6
4823 # Is the header present?
4824 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4825 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832 #include <libintl.h>
4834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4837 grep -v '^ *+' conftest.er1 >conftest.err
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } >/dev/null; then
4842 if test -s conftest.err; then
4843 ac_cpp_err=$ac_c_preproc_warn_flag
4844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4851 if test -z "$ac_cpp_err"; then
4852 ac_header_preproc=yes
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4857 ac_header_preproc=no
4859 rm -f conftest.err conftest.$ac_ext
4860 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4861 echo "${ECHO_T}$ac_header_preproc" >&6
4863 # So? What about this header?
4864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4866 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4867 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4869 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4870 ac_header_preproc=yes
4873 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4874 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4875 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4876 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4878 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4879 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4880 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4881 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4882 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4884 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4887 ## ------------------------------------------ ##
4888 ## Report this to the AC_PACKAGE_NAME lists. ##
4889 ## ------------------------------------------ ##
4892 sed "s/^/$as_me: WARNING: /" >&2
4895 echo "$as_me:$LINENO: checking for libintl.h" >&5
4896 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4897 if test "${ac_cv_header_libintl_h+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 ac_cv_header_libintl_h=$ac_header_preproc
4902 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4903 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4906 if test $ac_cv_header_libintl_h = yes; then
4907 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4908 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4909 if test "${gt_cv_func_gettext_libc+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <libintl.h>
4922 return (int) gettext ("")
4927 rm -f conftest.$ac_objext conftest$ac_exeext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4929 (eval $ac_link) 2>conftest.er1
4931 grep -v '^ *+' conftest.er1 >conftest.err
4933 cat conftest.err >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } &&
4936 { ac_try='test -z "$ac_c_werror_flag"
4937 || test ! -s conftest.err'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; } &&
4943 { ac_try='test -s conftest$ac_exeext'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4949 gt_cv_func_gettext_libc=yes
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 gt_cv_func_gettext_libc=no
4956 rm -f conftest.err conftest.$ac_objext \
4957 conftest$ac_exeext conftest.$ac_ext
4959 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4960 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4962 if test "$gt_cv_func_gettext_libc" != "yes"; then
4963 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4964 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4965 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 ac_check_lib_save_LIBS=$LIBS
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4977 /* Override any gcc2 internal prototype to avoid an error. */
4981 /* We use char because int might match the return type of a gcc2
4982 builtin and then its argument prototype would still apply. */
4983 char bindtextdomain ();
4992 rm -f conftest.$ac_objext conftest$ac_exeext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4994 (eval $ac_link) 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest$ac_exeext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 ac_cv_lib_intl_bindtextdomain=yes
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5019 ac_cv_lib_intl_bindtextdomain=no
5021 rm -f conftest.err conftest.$ac_objext \
5022 conftest$ac_exeext conftest.$ac_ext
5023 LIBS=$ac_check_lib_save_LIBS
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5026 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5027 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5028 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5029 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5030 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5043 return (int) gettext ("")
5048 rm -f conftest.$ac_objext conftest$ac_exeext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050 (eval $ac_link) 2>conftest.er1
5052 grep -v '^ *+' conftest.er1 >conftest.err
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } &&
5057 { ac_try='test -z "$ac_c_werror_flag"
5058 || test ! -s conftest.err'
5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; } &&
5064 { ac_try='test -s conftest$ac_exeext'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5070 gt_cv_func_gettext_libintl=yes
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 gt_cv_func_gettext_libintl=no
5077 rm -f conftest.err conftest.$ac_objext \
5078 conftest$ac_exeext conftest.$ac_ext
5080 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5081 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5086 if test "$gt_cv_func_gettext_libc" = "yes" \
5087 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5088 cat >>confdefs.h <<\_ACEOF
5089 #define HAVE_GETTEXT 1
5092 # Extract the first word of "msgfmt", so it can be a program name with args.
5093 set dummy msgfmt; ac_word=$2
5094 echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5096 if test "${ac_cv_path_MSGFMT+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5105 for ac_dir in $PATH; do
5106 test -z "$ac_dir" && ac_dir=.
5107 if test -f $ac_dir/$ac_word; then
5108 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5109 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5115 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5119 MSGFMT="$ac_cv_path_MSGFMT"
5120 if test -n "$MSGFMT"; then
5121 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5122 echo "${ECHO_T}$MSGFMT" >&6
5124 echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6
5127 if test "$MSGFMT" != "no"; then
5129 for ac_func in dcgettext
5131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5132 echo "$as_me:$LINENO: checking for $ac_func" >&5
5133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5134 if eval "test \"\${$as_ac_var+set}\" = set"; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5145 #define $ac_func innocuous_$ac_func
5147 /* System header to define __stub macros and hopefully few prototypes,
5148 which can conflict with char $ac_func (); below.
5149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5150 <limits.h> exists even on freestanding compilers. */
5153 # include <limits.h>
5155 # include <assert.h>
5160 /* Override any gcc2 internal prototype to avoid an error. */
5165 /* We use char because int might match the return type of a gcc2
5166 builtin and then its argument prototype would still apply. */
5168 /* The GNU C library defines this for functions which it implements
5169 to always fail with ENOSYS. Some functions are actually named
5170 something starting with __ and the normal name is an alias. */
5171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5174 char (*f) () = $ac_func;
5183 return f != $ac_func;
5188 rm -f conftest.$ac_objext conftest$ac_exeext
5189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5190 (eval $ac_link) 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
5197 { ac_try='test -z "$ac_c_werror_flag"
5198 || test ! -s conftest.err'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; } &&
5204 { ac_try='test -s conftest$ac_exeext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 eval "$as_ac_var=yes"
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 eval "$as_ac_var=no"
5217 rm -f conftest.err conftest.$ac_objext \
5218 conftest$ac_exeext conftest.$ac_ext
5220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5222 if test `eval echo '${'$as_ac_var'}'` = yes; then
5223 cat >>confdefs.h <<_ACEOF
5224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5230 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5231 set dummy gmsgfmt; ac_word=$2
5232 echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5260 GMSGFMT=$ac_cv_path_GMSGFMT
5262 if test -n "$GMSGFMT"; then
5263 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5264 echo "${ECHO_T}$GMSGFMT" >&6
5266 echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5270 # Extract the first word of "xgettext", so it can be a program name with args.
5271 set dummy xgettext; ac_word=$2
5272 echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5283 for ac_dir in $PATH; do
5284 test -z "$ac_dir" && ac_dir=.
5285 if test -f $ac_dir/$ac_word; then
5286 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5287 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5293 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5297 XGETTEXT="$ac_cv_path_XGETTEXT"
5298 if test -n "$XGETTEXT"; then
5299 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5300 echo "${ECHO_T}$XGETTEXT" >&6
5302 echo "$as_me:$LINENO: result: no" >&5
5303 echo "${ECHO_T}no" >&6
5306 cat >conftest.$ac_ext <<_ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5316 extern int _nl_msg_cat_cntr;
5317 return _nl_msg_cat_cntr
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5324 (eval $ac_link) 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try='test -z "$ac_c_werror_flag"
5332 || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest$ac_exeext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5353 rm -f conftest.err conftest.$ac_objext \
5354 conftest$ac_exeext conftest.$ac_ext
5364 if test "$CATOBJEXT" = "NONE"; then
5365 nls_cv_use_gnu_gettext=yes
5369 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5370 INTLOBJS="\$(GETTOBJS)"
5371 # Extract the first word of "msgfmt", so it can be a program name with args.
5372 set dummy msgfmt; ac_word=$2
5373 echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375 if test "${ac_cv_path_MSGFMT+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5384 for ac_dir in $PATH; do
5385 test -z "$ac_dir" && ac_dir=.
5386 if test -f $ac_dir/$ac_word; then
5387 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5388 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5394 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5398 MSGFMT="$ac_cv_path_MSGFMT"
5399 if test -n "$MSGFMT"; then
5400 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5401 echo "${ECHO_T}$MSGFMT" >&6
5403 echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5407 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5408 set dummy gmsgfmt; ac_word=$2
5409 echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5411 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5437 GMSGFMT=$ac_cv_path_GMSGFMT
5439 if test -n "$GMSGFMT"; then
5440 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5441 echo "${ECHO_T}$GMSGFMT" >&6
5443 echo "$as_me:$LINENO: result: no" >&5
5444 echo "${ECHO_T}no" >&6
5447 # Extract the first word of "xgettext", so it can be a program name with args.
5448 set dummy xgettext; ac_word=$2
5449 echo "$as_me:$LINENO: checking for $ac_word" >&5
5450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5451 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5460 for ac_dir in $PATH; do
5461 test -z "$ac_dir" && ac_dir=.
5462 if test -f $ac_dir/$ac_word; then
5463 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5464 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5470 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5474 XGETTEXT="$ac_cv_path_XGETTEXT"
5475 if test -n "$XGETTEXT"; then
5476 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5477 echo "${ECHO_T}$XGETTEXT" >&6
5479 echo "$as_me:$LINENO: result: no" >&5
5480 echo "${ECHO_T}no" >&6
5484 USE_INCLUDED_LIBINTL=yes
5488 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5490 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5491 nls_cv_header_intl=libintl.h
5492 nls_cv_header_libgt=libgettext.h
5495 if test "$XGETTEXT" != ":"; then
5496 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5499 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5500 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5505 # We need to process the po/ directory.
5509 nls_cv_header_intl=libintl.h
5510 nls_cv_header_libgt=libgettext.h
5513 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5514 # because some of the sources are only built for this goal.
5515 if test "$PACKAGE" = gettext; then
5517 USE_INCLUDED_LIBINTL=yes
5520 for lang in $ALL_LINGUAS; do
5521 GMOFILES="$GMOFILES $lang.gmo"
5522 POFILES="$POFILES $lang.po"
5538 if test "x$CATOBJEXT" != "x"; then
5539 if test "x$ALL_LINGUAS" = "x"; then
5542 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5543 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5545 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5546 case "$ALL_LINGUAS" in
5547 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5550 LINGUAS=$NEW_LINGUAS
5551 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5552 echo "${ECHO_T}$LINGUAS" >&6
5555 if test -n "$LINGUAS"; then
5556 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5560 if test $ac_cv_header_locale_h = yes; then
5561 INCLUDE_LOCALE_H="#include <locale.h>"
5564 /* The system does not provide the header <locale.h>. Take care yourself. */"
5568 if test -f $srcdir/po2tbl.sed.in; then
5569 if test "$CATOBJEXT" = ".cat"; then
5570 if test "${ac_cv_header_linux_version_h+set}" = set; then
5571 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5572 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5573 if test "${ac_cv_header_linux_version_h+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5577 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5579 # Is the header compilable?
5580 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5581 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 $ac_includes_default
5589 #include <linux/version.h>
5591 rm -f conftest.$ac_objext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>conftest.er1
5595 grep -v '^ *+' conftest.er1 >conftest.err
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -z "$ac_c_werror_flag"
5601 || test ! -s conftest.err'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; } &&
5607 { ac_try='test -s conftest.$ac_objext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_header_compiler=yes
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 ac_header_compiler=no
5620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5622 echo "${ECHO_T}$ac_header_compiler" >&6
5624 # Is the header present?
5625 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5626 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5627 cat >conftest.$ac_ext <<_ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 #include <linux/version.h>
5635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } >/dev/null; then
5643 if test -s conftest.err; then
5644 ac_cpp_err=$ac_c_preproc_warn_flag
5645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5652 if test -z "$ac_cpp_err"; then
5653 ac_header_preproc=yes
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 ac_header_preproc=no
5660 rm -f conftest.err conftest.$ac_ext
5661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5662 echo "${ECHO_T}$ac_header_preproc" >&6
5664 # So? What about this header?
5665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5667 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5668 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5670 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5671 ac_header_preproc=yes
5674 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5675 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5676 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5677 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5678 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5679 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5680 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5681 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5682 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5683 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5684 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5685 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5688 ## ------------------------------------------ ##
5689 ## Report this to the AC_PACKAGE_NAME lists. ##
5690 ## ------------------------------------------ ##
5693 sed "s/^/$as_me: WARNING: /" >&2
5696 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5697 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5698 if test "${ac_cv_header_linux_version_h+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 ac_cv_header_linux_version_h=$ac_header_preproc
5703 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5704 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5707 if test $ac_cv_header_linux_version_h = yes; then
5715 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5717 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5718 $srcdir/po2tbl.sed.in > po2tbl.sed
5721 if test "$PACKAGE" = "gettext"; then
5731 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5737 if test -d $srcdir/po; then
5738 test -d po || mkdir po
5739 if test "x$srcdir" != "x."; then
5740 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5741 posrcprefix="$srcdir/"
5743 posrcprefix="../$srcdir/"
5749 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5750 < $srcdir/po/POTFILES.in > po/POTFILES
5754 # Check for common headers.
5755 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5756 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5762 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5766 echo "$as_me:$LINENO: checking for $ac_header" >&5
5767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5774 # Is the header compilable?
5775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5777 cat >conftest.$ac_ext <<_ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 $ac_includes_default
5784 #include <$ac_header>
5786 rm -f conftest.$ac_objext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1 >conftest.err
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_header_compiler=yes
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 ac_header_compiler=no
5815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5817 echo "${ECHO_T}$ac_header_compiler" >&6
5819 # Is the header present?
5820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <$ac_header>
5830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5833 grep -v '^ *+' conftest.er1 >conftest.err
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } >/dev/null; then
5838 if test -s conftest.err; then
5839 ac_cpp_err=$ac_c_preproc_warn_flag
5840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5847 if test -z "$ac_cpp_err"; then
5848 ac_header_preproc=yes
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 ac_header_preproc=no
5855 rm -f conftest.err conftest.$ac_ext
5856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5857 echo "${ECHO_T}$ac_header_preproc" >&6
5859 # So? What about this header?
5860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5866 ac_header_preproc=yes
5869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5883 ## ------------------------------------------ ##
5884 ## Report this to the AC_PACKAGE_NAME lists. ##
5885 ## ------------------------------------------ ##
5888 sed "s/^/$as_me: WARNING: /" >&2
5891 echo "$as_me:$LINENO: checking for $ac_header" >&5
5892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 eval "$as_ac_Header=\$ac_header_preproc"
5898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5903 cat >>confdefs.h <<_ACEOF
5904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5913 for ac_header in sys/time.h sys/resource.h
5915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5917 echo "$as_me:$LINENO: checking for $ac_header" >&5
5918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5925 # Is the header compilable?
5926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5935 #include <$ac_header>
5937 rm -f conftest.$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>conftest.er1
5941 grep -v '^ *+' conftest.er1 >conftest.err
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag"
5947 || test ! -s conftest.err'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try='test -s conftest.$ac_objext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 ac_header_compiler=yes
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5964 ac_header_compiler=no
5966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5968 echo "${ECHO_T}$ac_header_compiler" >&6
5970 # Is the header present?
5971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #include <$ac_header>
5981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } >/dev/null; then
5989 if test -s conftest.err; then
5990 ac_cpp_err=$ac_c_preproc_warn_flag
5991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5998 if test -z "$ac_cpp_err"; then
5999 ac_header_preproc=yes
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6004 ac_header_preproc=no
6006 rm -f conftest.err conftest.$ac_ext
6007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6008 echo "${ECHO_T}$ac_header_preproc" >&6
6010 # So? What about this header?
6011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6017 ac_header_preproc=yes
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6034 ## ------------------------------------------ ##
6035 ## Report this to the AC_PACKAGE_NAME lists. ##
6036 ## ------------------------------------------ ##
6039 sed "s/^/$as_me: WARNING: /" >&2
6042 echo "$as_me:$LINENO: checking for $ac_header" >&5
6043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 eval "$as_ac_Header=\$ac_header_preproc"
6049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6054 cat >>confdefs.h <<_ACEOF
6055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064 for ac_header in fcntl.h fpu_control.h
6066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6068 echo "$as_me:$LINENO: checking for $ac_header" >&5
6069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6076 # Is the header compilable?
6077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6086 #include <$ac_header>
6088 rm -f conftest.$ac_objext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090 (eval $ac_compile) 2>conftest.er1
6092 grep -v '^ *+' conftest.er1 >conftest.err
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try='test -z "$ac_c_werror_flag"
6098 || test ! -s conftest.err'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; } &&
6104 { ac_try='test -s conftest.$ac_objext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_header_compiler=yes
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6115 ac_header_compiler=no
6117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6119 echo "${ECHO_T}$ac_header_compiler" >&6
6121 # Is the header present?
6122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6124 cat >conftest.$ac_ext <<_ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #include <$ac_header>
6132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6135 grep -v '^ *+' conftest.er1 >conftest.err
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } >/dev/null; then
6140 if test -s conftest.err; then
6141 ac_cpp_err=$ac_c_preproc_warn_flag
6142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6149 if test -z "$ac_cpp_err"; then
6150 ac_header_preproc=yes
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 ac_header_preproc=no
6157 rm -f conftest.err conftest.$ac_ext
6158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6159 echo "${ECHO_T}$ac_header_preproc" >&6
6161 # So? What about this header?
6162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6168 ac_header_preproc=yes
6171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6185 ## ------------------------------------------ ##
6186 ## Report this to the AC_PACKAGE_NAME lists. ##
6187 ## ------------------------------------------ ##
6190 sed "s/^/$as_me: WARNING: /" >&2
6193 echo "$as_me:$LINENO: checking for $ac_header" >&5
6194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 eval "$as_ac_Header=\$ac_header_preproc"
6200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6205 cat >>confdefs.h <<_ACEOF
6206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6216 for ac_header in dlfcn.h errno.h sys/stat.h
6218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6228 # Is the header compilable?
6229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6231 cat >conftest.$ac_ext <<_ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 $ac_includes_default
6238 #include <$ac_header>
6240 rm -f conftest.$ac_objext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6242 (eval $ac_compile) 2>conftest.er1
6244 grep -v '^ *+' conftest.er1 >conftest.err
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try='test -z "$ac_c_werror_flag"
6250 || test ! -s conftest.err'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; } &&
6256 { ac_try='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 ac_header_compiler=yes
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6267 ac_header_compiler=no
6269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6271 echo "${ECHO_T}$ac_header_compiler" >&6
6273 # Is the header present?
6274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 #include <$ac_header>
6284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6287 grep -v '^ *+' conftest.er1 >conftest.err
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } >/dev/null; then
6292 if test -s conftest.err; then
6293 ac_cpp_err=$ac_c_preproc_warn_flag
6294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6301 if test -z "$ac_cpp_err"; then
6302 ac_header_preproc=yes
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_header_preproc=no
6309 rm -f conftest.err conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6311 echo "${ECHO_T}$ac_header_preproc" >&6
6313 # So? What about this header?
6314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6320 ac_header_preproc=yes
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6337 ## ------------------------------------------ ##
6338 ## Report this to the AC_PACKAGE_NAME lists. ##
6339 ## ------------------------------------------ ##
6342 sed "s/^/$as_me: WARNING: /" >&2
6345 echo "$as_me:$LINENO: checking for $ac_header" >&5
6346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 eval "$as_ac_Header=\$ac_header_preproc"
6352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6357 cat >>confdefs.h <<_ACEOF
6358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6369 for ac_func in getrusage time sigaction __setfpucw
6371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6372 echo "$as_me:$LINENO: checking for $ac_func" >&5
6373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6374 if eval "test \"\${$as_ac_var+set}\" = set"; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 cat >conftest.$ac_ext <<_ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6385 #define $ac_func innocuous_$ac_func
6387 /* System header to define __stub macros and hopefully few prototypes,
6388 which can conflict with char $ac_func (); below.
6389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6390 <limits.h> exists even on freestanding compilers. */
6393 # include <limits.h>
6395 # include <assert.h>
6400 /* Override any gcc2 internal prototype to avoid an error. */
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6414 char (*f) () = $ac_func;
6423 return f != $ac_func;
6428 rm -f conftest.$ac_objext conftest$ac_exeext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 eval "$as_ac_var=yes"
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 eval "$as_ac_var=no"
6457 rm -f conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
6460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6462 if test `eval echo '${'$as_ac_var'}'` = yes; then
6463 cat >>confdefs.h <<_ACEOF
6464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6471 # Check for socket libraries
6473 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6474 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6475 if test "${ac_cv_lib_socket_bind+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 ac_check_lib_save_LIBS=$LIBS
6479 LIBS="-lsocket $LIBS"
6480 cat >conftest.$ac_ext <<_ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6487 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6502 rm -f conftest.$ac_objext conftest$ac_exeext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6504 (eval $ac_link) 2>conftest.er1
6506 grep -v '^ *+' conftest.er1 >conftest.err
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try='test -z "$ac_c_werror_flag"
6512 || test ! -s conftest.err'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try='test -s conftest$ac_exeext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_cv_lib_socket_bind=yes
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 ac_cv_lib_socket_bind=no
6531 rm -f conftest.err conftest.$ac_objext \
6532 conftest$ac_exeext conftest.$ac_ext
6533 LIBS=$ac_check_lib_save_LIBS
6535 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6536 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6537 if test $ac_cv_lib_socket_bind = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539 #define HAVE_LIBSOCKET 1
6542 LIBS="-lsocket $LIBS"
6547 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6548 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6549 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 ac_check_lib_save_LIBS=$LIBS
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6561 /* Override any gcc2 internal prototype to avoid an error. */
6565 /* We use char because int might match the return type of a gcc2
6566 builtin and then its argument prototype would still apply. */
6567 char gethostbyname ();
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578 (eval $ac_link) 2>conftest.er1
6580 grep -v '^ *+' conftest.er1 >conftest.err
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag"
6586 || test ! -s conftest.err'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest$ac_exeext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_lib_nsl_gethostbyname=yes
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 ac_cv_lib_nsl_gethostbyname=no
6605 rm -f conftest.err conftest.$ac_objext \
6606 conftest$ac_exeext conftest.$ac_ext
6607 LIBS=$ac_check_lib_save_LIBS
6609 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6610 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6611 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6612 cat >>confdefs.h <<_ACEOF
6613 #define HAVE_LIBNSL 1
6621 . ${srcdir}/../../bfd/configure.host
6625 USE_MAINTAINER_MODE=no
6626 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6627 if test "${enable_maintainer_mode+set}" = set; then
6628 enableval="$enable_maintainer_mode"
6629 case "${enableval}" in
6630 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6632 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6633 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6634 { (exit 1); exit 1; }; }; MAINT="#" ;;
6636 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6637 echo "Setting maintainer mode" 6>&1
6644 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6645 if test "${enable_sim_bswap+set}" = set; then
6646 enableval="$enable_sim_bswap"
6647 case "${enableval}" in
6648 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6649 no) sim_bswap="-DWITH_BSWAP=0";;
6650 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6651 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6652 { (exit 1); exit 1; }; }; sim_bswap="";;
6654 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6655 echo "Setting bswap flags = $sim_bswap" 6>&1
6662 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6663 if test "${enable_sim_cflags+set}" = set; then
6664 enableval="$enable_sim_cflags"
6665 case "${enableval}" in
6666 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6667 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6668 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6669 { (exit 1); exit 1; }; }; sim_cflags="";;
6671 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6673 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6674 echo "Setting sim cflags = $sim_cflags" 6>&1
6681 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6682 if test "${enable_sim_debug+set}" = set; then
6683 enableval="$enable_sim_debug"
6684 case "${enableval}" in
6685 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6686 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6687 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6689 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6690 echo "Setting sim debug = $sim_debug" 6>&1
6697 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6698 if test "${enable_sim_stdio+set}" = set; then
6699 enableval="$enable_sim_stdio"
6700 case "${enableval}" in
6701 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6702 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6703 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6704 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6705 { (exit 1); exit 1; }; }; sim_stdio="";;
6707 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6708 echo "Setting stdio flags = $sim_stdio" 6>&1
6715 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6716 if test "${enable_sim_trace+set}" = set; then
6717 enableval="$enable_sim_trace"
6718 case "${enableval}" in
6719 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6720 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6722 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6725 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6726 if test x"$sim_trace" = x; then
6727 sim_trace="-DWITH_TRACE='(TRACE_$x"
6729 sim_trace="${sim_trace}|TRACE_$x"
6732 sim_trace="$sim_trace)'" ;;
6734 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6735 echo "Setting sim trace = $sim_trace" 6>&1
6742 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6743 if test "${enable_sim_profile+set}" = set; then
6744 enableval="$enable_sim_profile"
6745 case "${enableval}" in
6746 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6747 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6749 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6752 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6753 if test x"$sim_profile" = x; then
6754 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6756 sim_profile="${sim_profile}|PROFILE_$x"
6759 sim_profile="$sim_profile)'" ;;
6761 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6762 echo "Setting sim profile = $sim_profile" 6>&1
6765 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6769 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6770 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6771 if test "${ac_cv_type_signal+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 cat >conftest.$ac_ext <<_ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 #include <sys/types.h>
6786 extern "C" void (*signal (int, void (*)(int)))(int);
6788 void (*signal ()) ();
6799 rm -f conftest.$ac_objext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 (eval $ac_compile) 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try='test -z "$ac_c_werror_flag"
6809 || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest.$ac_objext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 ac_cv_type_signal=void
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ac_cv_type_signal=int
6828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6831 echo "${ECHO_T}$ac_cv_type_signal" >&6
6833 cat >>confdefs.h <<_ACEOF
6834 #define RETSIGTYPE $ac_cv_type_signal
6844 sim_link_links=tconfig.h
6845 if test -f ${srcdir}/tconfig.in
6847 sim_link_files=tconfig.in
6849 sim_link_files=../common/tconfig.in
6852 # targ-vals.def points to the libc macro description file.
6854 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6856 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6857 sim_link_links="${sim_link_links} targ-vals.def"
6862 for ac_header in unistd.h
6864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6866 echo "$as_me:$LINENO: checking for $ac_header" >&5
6867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6874 # Is the header compilable?
6875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6877 cat >conftest.$ac_ext <<_ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 $ac_includes_default
6884 #include <$ac_header>
6886 rm -f conftest.$ac_objext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>conftest.er1
6890 grep -v '^ *+' conftest.er1 >conftest.err
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -z "$ac_c_werror_flag"
6896 || test ! -s conftest.err'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; } &&
6902 { ac_try='test -s conftest.$ac_objext'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 ac_header_compiler=yes
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6913 ac_header_compiler=no
6915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6917 echo "${ECHO_T}$ac_header_compiler" >&6
6919 # Is the header present?
6920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6922 cat >conftest.$ac_ext <<_ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 #include <$ac_header>
6930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6933 grep -v '^ *+' conftest.er1 >conftest.err
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } >/dev/null; then
6938 if test -s conftest.err; then
6939 ac_cpp_err=$ac_c_preproc_warn_flag
6940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6947 if test -z "$ac_cpp_err"; then
6948 ac_header_preproc=yes
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6953 ac_header_preproc=no
6955 rm -f conftest.err conftest.$ac_ext
6956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6957 echo "${ECHO_T}$ac_header_preproc" >&6
6959 # So? What about this header?
6960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6966 ac_header_preproc=yes
6969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6983 ## ------------------------------------------ ##
6984 ## Report this to the AC_PACKAGE_NAME lists. ##
6985 ## ------------------------------------------ ##
6988 sed "s/^/$as_me: WARNING: /" >&2
6991 echo "$as_me:$LINENO: checking for $ac_header" >&5
6992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 eval "$as_ac_Header=\$ac_header_preproc"
6998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7003 cat >>confdefs.h <<_ACEOF
7004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7012 COPRO="armcopro.o maverick.o iwmmxt.o"
7017 ac_sources="$sim_link_files"
7018 ac_dests="$sim_link_links"
7019 while test -n "$ac_sources"; do
7020 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7021 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7022 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7024 ac_config_links="$ac_config_links $ac_config_links_1"
7027 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7028 cgen_breaks="break cgen_rtx_error";
7031 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
7033 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
7035 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
7037 ac_config_commands="$ac_config_commands Makefile"
7039 ac_config_commands="$ac_config_commands stamp-h"
7041 cat >confcache <<\_ACEOF
7042 # This file is a shell script that caches the results of configure
7043 # tests run on this system so they can be shared between configure
7044 # scripts and configure runs, see configure's option --config-cache.
7045 # It is not useful on other systems. If it contains results you don't
7046 # want to keep, you may remove or edit it.
7048 # config.status only pays attention to the cache file if you give it
7049 # the --recheck option to rerun configure.
7051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7057 # The following way of writing the cache mishandles newlines in values,
7058 # but we know of no workaround that is simple, portable, and efficient.
7059 # So, don't put newlines in cache variables' values.
7060 # Ultrix sh set writes to stderr and can't be redirected directly,
7061 # and sets the high bit in the cache file unless we assign to the vars.
7064 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7066 # `set' does not quote correctly, so add quotes (double-quote
7067 # substitution turns \\\\ into \\, and sed turns \\ into \).
7070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7073 # `set' quotes correctly as required by POSIX, so do not add quotes.
7075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7084 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7086 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7087 if test -w $cache_file; then
7088 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7089 cat confcache >$cache_file
7091 echo "not updating unwritable cache $cache_file"
7096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7097 # Let make expand exec_prefix.
7098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7100 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7101 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7102 # trailing colons and then remove the whole line if VPATH becomes empty
7103 # (actually we leave an empty line to preserve line numbers).
7104 if test "x$srcdir" = x.; then
7105 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7106 s/:*\$(srcdir):*/:/;
7107 s/:*\${srcdir}:*/:/;
7109 s/^\([^=]*=[ ]*\):*/\1/;
7115 DEFS=-DHAVE_CONFIG_H
7119 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7120 # 1. Remove the extension, and $U if already installed.
7121 ac_i=`echo "$ac_i" |
7122 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7124 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7125 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7129 LTLIBOBJS=$ac_ltlibobjs
7133 : ${CONFIG_STATUS=./config.status}
7134 ac_clean_files_save=$ac_clean_files
7135 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7136 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7137 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7138 cat >$CONFIG_STATUS <<_ACEOF
7140 # Generated by $as_me.
7141 # Run this file to recreate the current configuration.
7142 # Compiler output produced by configure, useful for debugging
7143 # configure, is in config.log if it exists.
7148 SHELL=\${CONFIG_SHELL-$SHELL}
7151 cat >>$CONFIG_STATUS <<\_ACEOF
7152 ## --------------------- ##
7153 ## M4sh Initialization. ##
7154 ## --------------------- ##
7156 # Be Bourne compatible
7157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7160 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7161 # is contrary to our usage. Disable this feature.
7162 alias -g '${1+"$@"}'='"$@"'
7163 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7166 DUALCASE=1; export DUALCASE # for MKS sh
7168 # Support unset when possible.
7169 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7176 # Work around bugs in pre-3.0 UWIN ksh.
7177 $as_unset ENV MAIL MAILPATH
7184 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7185 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7186 LC_TELEPHONE LC_TIME
7188 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7189 eval $as_var=C; export $as_var
7195 # Required to use basename.
7196 if expr a : '\(a\)' >/dev/null 2>&1; then
7202 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7203 as_basename=basename
7209 # Name of the executable.
7210 as_me=`$as_basename "$0" ||
7211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7212 X"$0" : 'X\(//\)$' \| \
7213 X"$0" : 'X\(/\)$' \| \
7214 . : '\(.\)' 2>/dev/null ||
7216 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7217 /^X\/\(\/\/\)$/{ s//\1/; q; }
7218 /^X\/\(\/\).*/{ s//\1/; q; }
7222 # PATH needs CR, and LINENO needs CR and PATH.
7223 # Avoid depending upon Character Ranges.
7224 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7225 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7226 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7227 as_cr_digits='0123456789'
7228 as_cr_alnum=$as_cr_Letters$as_cr_digits
7230 # The user is always right.
7231 if test "${PATH_SEPARATOR+set}" != set; then
7232 echo "#! /bin/sh" >conf$$.sh
7233 echo "exit 0" >>conf$$.sh
7235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7246 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7247 test "x$as_lineno_1" != "x$as_lineno_2" &&
7248 test "x$as_lineno_3" = "x$as_lineno_2" || {
7249 # Find who we are. Look in the path if we contain no path at all
7252 *[\\/]* ) as_myself=$0 ;;
7253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7263 # We did not find ourselves, most probably we were run as `sh COMMAND'
7264 # in which case we are not to be found in the path.
7265 if test "x$as_myself" = x; then
7268 if test ! -f "$as_myself"; then
7269 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7270 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7271 { (exit 1); exit 1; }; }
7273 case $CONFIG_SHELL in
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7279 test -z "$as_dir" && as_dir=.
7280 for as_base in sh bash ksh sh5; do
7283 if ("$as_dir/$as_base" -c '
7286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7287 test "x$as_lineno_1" != "x$as_lineno_2" &&
7288 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7289 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7290 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7291 CONFIG_SHELL=$as_dir/$as_base
7293 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7302 # uniformly replaced by the line number. The first 'sed' inserts a
7303 # line-number line before each line; the second 'sed' does the real
7304 # work. The second script uses 'N' to pair each line-number line
7305 # with the numbered line, and appends trailing '-' during
7306 # substitution so that $LINENO is not a special case at line end.
7307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7309 sed '=' <$as_myself |
7314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7317 s,^['$as_cr_digits']*\n,,
7319 chmod +x $as_me.lineno ||
7320 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7321 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7322 { (exit 1); exit 1; }; }
7324 # Don't try to exec as it changes $[0], causing all sort of problems
7325 # (the dirname of $[0] is not the place where we might find the
7326 # original and so on. Autoconf is especially sensible to this).
7328 # Exit status is that of the last command.
7333 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7334 *c*,-n*) ECHO_N= ECHO_C='
7336 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7337 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7340 if expr a : '\(a\)' >/dev/null 2>&1; then
7346 rm -f conf$$ conf$$.exe conf$$.file
7348 if ln -s conf$$.file conf$$ 2>/dev/null; then
7349 # We could just check for DJGPP; but this test a) works b) is more generic
7350 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7351 if test -f conf$$.exe; then
7352 # Don't use ln at all; we don't have any links
7357 elif ln conf$$.file conf$$ 2>/dev/null; then
7362 rm -f conf$$ conf$$.exe conf$$.file
7364 if mkdir -p . 2>/dev/null; then
7367 test -d ./-p && rmdir ./-p
7371 as_executable_p="test -f"
7373 # Sed expression to map a string onto a valid CPP name.
7374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7376 # Sed expression to map a string onto a valid variable name.
7377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7381 # We need space, tab and new line, in precisely that order.
7391 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7392 # report actual input values of CONFIG_FILES etc. instead of their
7393 # values after options handling. Logging --version etc. is OK.
7397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7398 ## Running $as_me. ##
7403 This file was extended by $as_me, which was
7404 generated by GNU Autoconf 2.59. Invocation command line was
7406 CONFIG_FILES = $CONFIG_FILES
7407 CONFIG_HEADERS = $CONFIG_HEADERS
7408 CONFIG_LINKS = $CONFIG_LINKS
7409 CONFIG_COMMANDS = $CONFIG_COMMANDS
7413 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7417 # Files that config.status was made for.
7418 if test -n "$ac_config_files"; then
7419 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7422 if test -n "$ac_config_headers"; then
7423 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7426 if test -n "$ac_config_links"; then
7427 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7430 if test -n "$ac_config_commands"; then
7431 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7434 cat >>$CONFIG_STATUS <<\_ACEOF
7437 \`$as_me' instantiates files from templates according to the
7438 current configuration.
7440 Usage: $0 [OPTIONS] [FILE]...
7442 -h, --help print this help, then exit
7443 -V, --version print version number, then exit
7444 -q, --quiet do not print progress messages
7445 -d, --debug don't remove temporary files
7446 --recheck update $as_me by reconfiguring in the same conditions
7447 --file=FILE[:TEMPLATE]
7448 instantiate the configuration file FILE
7449 --header=FILE[:TEMPLATE]
7450 instantiate the configuration header FILE
7452 Configuration files:
7455 Configuration headers:
7458 Configuration links:
7461 Configuration commands:
7464 Report bugs to <bug-autoconf@gnu.org>."
7467 cat >>$CONFIG_STATUS <<_ACEOF
7470 configured by $0, generated by GNU Autoconf 2.59,
7471 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7473 Copyright (C) 2003 Free Software Foundation, Inc.
7474 This config.status script is free software; the Free Software Foundation
7475 gives unlimited permission to copy, distribute and modify it."
7480 cat >>$CONFIG_STATUS <<\_ACEOF
7481 # If no file are specified by the user, then we need to provide default
7482 # value. By we need to know if files were specified by the user.
7488 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7489 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7497 *) # This is not an option, so the user has probably given explicit
7500 ac_need_defaults=false;;
7504 # Handling of the options.
7506 cat >>$CONFIG_STATUS <<\_ACEOF
7507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7509 --version | --vers* | -V )
7510 echo "$ac_cs_version"; exit 0 ;;
7512 # Conflict between --help and --header
7513 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7514 Try \`$0 --help' for more information." >&5
7515 echo "$as_me: error: ambiguous option: $1
7516 Try \`$0 --help' for more information." >&2;}
7517 { (exit 1); exit 1; }; };;
7518 --help | --hel | -h )
7519 echo "$ac_cs_usage"; exit 0 ;;
7520 --debug | --d* | -d )
7522 --file | --fil | --fi | --f )
7524 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7525 ac_need_defaults=false;;
7526 --header | --heade | --head | --hea )
7528 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7529 ac_need_defaults=false;;
7530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7531 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7535 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7536 Try \`$0 --help' for more information." >&5
7537 echo "$as_me: error: unrecognized option: $1
7538 Try \`$0 --help' for more information." >&2;}
7539 { (exit 1); exit 1; }; } ;;
7541 *) ac_config_targets="$ac_config_targets $1" ;;
7547 ac_configure_extra_args=
7549 if $ac_cs_silent; then
7551 ac_configure_extra_args="$ac_configure_extra_args --silent"
7555 cat >>$CONFIG_STATUS <<_ACEOF
7556 if \$ac_cs_recheck; then
7557 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7558 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7567 cat >>$CONFIG_STATUS <<\_ACEOF
7568 for ac_config_target in $ac_config_targets
7570 case "$ac_config_target" in
7571 # Handling of arguments.
7572 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
7573 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
7574 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
7575 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
7576 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
7577 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
7578 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7579 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7580 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7581 { (exit 1); exit 1; }; };;
7585 # If the user did not use the arguments to specify the items to instantiate,
7586 # then the envvar interface is used. Set only those that are not.
7587 # We use the long form for the default assignment because of an extremely
7588 # bizarre bug on SunOS 4.1.3.
7589 if $ac_need_defaults; then
7590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7592 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7593 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7596 # Have a temporary directory for convenience. Make it in the build tree
7597 # simply because there is no reason to put it here, and in addition,
7598 # creating and moving files from /tmp can sometimes cause problems.
7599 # Create a temporary directory, and hook for its removal unless debugging.
7602 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7603 trap '{ (exit 1); exit 1; }' 1 2 13 15
7606 # Create a (secure) tmp directory for tmp files.
7609 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7610 test -n "$tmp" && test -d "$tmp"
7613 tmp=./confstat$$-$RANDOM
7614 (umask 077 && mkdir $tmp)
7617 echo "$me: cannot create a temporary directory in ." >&2
7618 { (exit 1); exit 1; }
7623 cat >>$CONFIG_STATUS <<_ACEOF
7626 # CONFIG_FILES section.
7629 # No need to generate the scripts if there are no CONFIG_FILES.
7630 # This happens for instance when ./config.status config.h
7631 if test -n "\$CONFIG_FILES"; then
7632 # Protect against being on the right side of a sed subst in config.status.
7633 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7634 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7635 s,@sim_environment@,$sim_environment,;t t
7636 s,@sim_alignment@,$sim_alignment,;t t
7637 s,@sim_assert@,$sim_assert,;t t
7638 s,@sim_bitsize@,$sim_bitsize,;t t
7639 s,@sim_endian@,$sim_endian,;t t
7640 s,@sim_hostendian@,$sim_hostendian,;t t
7641 s,@sim_float@,$sim_float,;t t
7642 s,@sim_scache@,$sim_scache,;t t
7643 s,@sim_default_model@,$sim_default_model,;t t
7644 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7645 s,@sim_hw_objs@,$sim_hw_objs,;t t
7646 s,@sim_hw@,$sim_hw,;t t
7647 s,@sim_inline@,$sim_inline,;t t
7648 s,@sim_packages@,$sim_packages,;t t
7649 s,@sim_regparm@,$sim_regparm,;t t
7650 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7651 s,@sim_smp@,$sim_smp,;t t
7652 s,@sim_stdcall@,$sim_stdcall,;t t
7653 s,@sim_xor_endian@,$sim_xor_endian,;t t
7654 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7655 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7656 s,@SHELL@,$SHELL,;t t
7657 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7658 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7659 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7660 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7661 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7662 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7663 s,@exec_prefix@,$exec_prefix,;t t
7664 s,@prefix@,$prefix,;t t
7665 s,@program_transform_name@,$program_transform_name,;t t
7666 s,@bindir@,$bindir,;t t
7667 s,@sbindir@,$sbindir,;t t
7668 s,@libexecdir@,$libexecdir,;t t
7669 s,@datadir@,$datadir,;t t
7670 s,@sysconfdir@,$sysconfdir,;t t
7671 s,@sharedstatedir@,$sharedstatedir,;t t
7672 s,@localstatedir@,$localstatedir,;t t
7673 s,@libdir@,$libdir,;t t
7674 s,@includedir@,$includedir,;t t
7675 s,@oldincludedir@,$oldincludedir,;t t
7676 s,@infodir@,$infodir,;t t
7677 s,@mandir@,$mandir,;t t
7678 s,@build_alias@,$build_alias,;t t
7679 s,@host_alias@,$host_alias,;t t
7680 s,@target_alias@,$target_alias,;t t
7682 s,@ECHO_C@,$ECHO_C,;t t
7683 s,@ECHO_N@,$ECHO_N,;t t
7684 s,@ECHO_T@,$ECHO_T,;t t
7686 s,@build@,$build,;t t
7687 s,@build_cpu@,$build_cpu,;t t
7688 s,@build_vendor@,$build_vendor,;t t
7689 s,@build_os@,$build_os,;t t
7691 s,@host_cpu@,$host_cpu,;t t
7692 s,@host_vendor@,$host_vendor,;t t
7693 s,@host_os@,$host_os,;t t
7694 s,@target@,$target,;t t
7695 s,@target_cpu@,$target_cpu,;t t
7696 s,@target_vendor@,$target_vendor,;t t
7697 s,@target_os@,$target_os,;t t
7699 s,@CFLAGS@,$CFLAGS,;t t
7700 s,@LDFLAGS@,$LDFLAGS,;t t
7701 s,@CPPFLAGS@,$CPPFLAGS,;t t
7702 s,@ac_ct_CC@,$ac_ct_CC,;t t
7703 s,@EXEEXT@,$EXEEXT,;t t
7704 s,@OBJEXT@,$OBJEXT,;t t
7705 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7706 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7707 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7708 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7709 s,@HDEFINES@,$HDEFINES,;t t
7711 s,@RANLIB@,$RANLIB,;t t
7712 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7713 s,@SET_MAKE@,$SET_MAKE,;t t
7715 s,@EGREP@,$EGREP,;t t
7716 s,@ALLOCA@,$ALLOCA,;t t
7717 s,@USE_NLS@,$USE_NLS,;t t
7718 s,@MSGFMT@,$MSGFMT,;t t
7719 s,@GMSGFMT@,$GMSGFMT,;t t
7720 s,@XGETTEXT@,$XGETTEXT,;t t
7721 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7722 s,@CATALOGS@,$CATALOGS,;t t
7723 s,@CATOBJEXT@,$CATOBJEXT,;t t
7724 s,@DATADIRNAME@,$DATADIRNAME,;t t
7725 s,@GMOFILES@,$GMOFILES,;t t
7726 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7727 s,@INTLDEPS@,$INTLDEPS,;t t
7728 s,@INTLLIBS@,$INTLLIBS,;t t
7729 s,@INTLOBJS@,$INTLOBJS,;t t
7730 s,@POFILES@,$POFILES,;t t
7731 s,@POSUB@,$POSUB,;t t
7732 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
7733 s,@GT_NO@,$GT_NO,;t t
7734 s,@GT_YES@,$GT_YES,;t t
7735 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7737 s,@MAINT@,$MAINT,;t t
7738 s,@sim_bswap@,$sim_bswap,;t t
7739 s,@sim_cflags@,$sim_cflags,;t t
7740 s,@sim_debug@,$sim_debug,;t t
7741 s,@sim_stdio@,$sim_stdio,;t t
7742 s,@sim_trace@,$sim_trace,;t t
7743 s,@sim_profile@,$sim_profile,;t t
7744 s,@COPRO@,$COPRO,;t t
7745 s,@cgen_breaks@,$cgen_breaks,;t t
7746 s,@LIBOBJS@,$LIBOBJS,;t t
7747 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7752 cat >>$CONFIG_STATUS <<\_ACEOF
7753 # Split the substitutions into bite-sized pieces for seds with
7754 # small command number limits, like on Digital OSF/1 and HP-UX.
7756 ac_sed_frag=1 # Number of current file.
7757 ac_beg=1 # First line for current file.
7758 ac_end=$ac_max_sed_lines # Line after last line for current file.
7761 while $ac_more_lines; do
7762 if test $ac_beg -gt 1; then
7763 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7765 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7767 if test ! -s $tmp/subs.frag; then
7770 # The purpose of the label and of the branching condition is to
7771 # speed up the sed processing (if there are no `@' at all, there
7772 # is no need to browse any of the substitutions).
7773 # These are the two extra sed commands mentioned above.
7775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7776 if test -z "$ac_sed_cmds"; then
7777 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7779 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7781 ac_sed_frag=`expr $ac_sed_frag + 1`
7783 ac_end=`expr $ac_end + $ac_max_sed_lines`
7786 if test -z "$ac_sed_cmds"; then
7789 fi # test -n "$CONFIG_FILES"
7792 cat >>$CONFIG_STATUS <<\_ACEOF
7793 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7794 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7796 - | *:- | *:-:* ) # input from stdin
7798 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7799 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7800 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7802 * ) ac_file_in=$ac_file.in ;;
7805 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7806 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7807 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7808 X"$ac_file" : 'X\(//\)[^/]' \| \
7809 X"$ac_file" : 'X\(//\)$' \| \
7810 X"$ac_file" : 'X\(/\)' \| \
7811 . : '\(.\)' 2>/dev/null ||
7813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7815 /^X\(\/\/\)$/{ s//\1/; q; }
7816 /^X\(\/\).*/{ s//\1/; q; }
7818 { if $as_mkdir_p; then
7823 while test ! -d "$as_dir"; do
7824 as_dirs="$as_dir $as_dirs"
7825 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7826 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7827 X"$as_dir" : 'X\(//\)[^/]' \| \
7828 X"$as_dir" : 'X\(//\)$' \| \
7829 X"$as_dir" : 'X\(/\)' \| \
7830 . : '\(.\)' 2>/dev/null ||
7832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7834 /^X\(\/\/\)$/{ s//\1/; q; }
7835 /^X\(\/\).*/{ s//\1/; q; }
7838 test ! -n "$as_dirs" || mkdir $as_dirs
7839 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7840 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7841 { (exit 1); exit 1; }; }; }
7845 if test "$ac_dir" != .; then
7846 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7847 # A "../" for each directory in $ac_dir_suffix.
7848 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7850 ac_dir_suffix= ac_top_builddir=
7854 .) # No --srcdir option. We are building in place.
7856 if test -z "$ac_top_builddir"; then
7859 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7861 [\\/]* | ?:[\\/]* ) # Absolute path.
7862 ac_srcdir=$srcdir$ac_dir_suffix;
7863 ac_top_srcdir=$srcdir ;;
7865 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7866 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7869 # Do not use `cd foo && pwd` to compute absolute paths, because
7870 # the directories may not exist.
7872 .) ac_abs_builddir="$ac_dir";;
7875 .) ac_abs_builddir=`pwd`;;
7876 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7877 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7880 case $ac_abs_builddir in
7881 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7883 case ${ac_top_builddir}. in
7884 .) ac_abs_top_builddir=$ac_abs_builddir;;
7885 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7886 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7889 case $ac_abs_builddir in
7890 .) ac_abs_srcdir=$ac_srcdir;;
7893 .) ac_abs_srcdir=$ac_abs_builddir;;
7894 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7895 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7898 case $ac_abs_builddir in
7899 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7901 case $ac_top_srcdir in
7902 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7903 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7904 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7911 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7914 if test x"$ac_file" != x-; then
7915 { echo "$as_me:$LINENO: creating $ac_file" >&5
7916 echo "$as_me: creating $ac_file" >&6;}
7919 # Let's still pretend it is `configure' which instantiates (i.e., don't
7920 # use $as_me), people would be surprised to read:
7921 # /* config.h. Generated by config.status. */
7922 if test x"$ac_file" = x-; then
7925 configure_input="$ac_file. "
7927 configure_input=$configure_input"Generated from `echo $ac_file_in |
7928 sed 's,.*/,,'` by configure."
7930 # First look for the input files in the build tree, otherwise in the
7932 ac_file_inputs=`IFS=:
7933 for f in $ac_file_in; do
7935 -) echo $tmp/stdin ;;
7937 # Absolute (can't be DOS-style, as IFS=:)
7938 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7939 echo "$as_me: error: cannot find input file: $f" >&2;}
7940 { (exit 1); exit 1; }; }
7943 if test -f "$f"; then
7946 elif test -f "$srcdir/$f"; then
7951 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7952 echo "$as_me: error: cannot find input file: $f" >&2;}
7953 { (exit 1); exit 1; }; }
7956 done` || { (exit 1); exit 1; }
7958 cat >>$CONFIG_STATUS <<_ACEOF
7962 cat >>$CONFIG_STATUS <<\_ACEOF
7964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7965 s,@configure_input@,$configure_input,;t t
7966 s,@srcdir@,$ac_srcdir,;t t
7967 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7968 s,@top_srcdir@,$ac_top_srcdir,;t t
7969 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7970 s,@builddir@,$ac_builddir,;t t
7971 s,@abs_builddir@,$ac_abs_builddir,;t t
7972 s,@top_builddir@,$ac_top_builddir,;t t
7973 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7974 s,@INSTALL@,$ac_INSTALL,;t t
7975 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7977 if test x"$ac_file" != x-; then
7978 mv $tmp/out $ac_file
7986 cat >>$CONFIG_STATUS <<\_ACEOF
7989 # CONFIG_HEADER section.
7992 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7993 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7995 # ac_d sets the value in "#define NAME VALUE" lines.
7996 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7997 ac_dB='[ ].*$,\1#\2'
8000 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8001 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8002 ac_uB='$,\1#\2define\3'
8006 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8007 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8009 - | *:- | *:-:* ) # input from stdin
8011 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8012 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8013 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8014 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8015 * ) ac_file_in=$ac_file.in ;;
8018 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8019 echo "$as_me: creating $ac_file" >&6;}
8021 # First look for the input files in the build tree, otherwise in the
8023 ac_file_inputs=`IFS=:
8024 for f in $ac_file_in; do
8026 -) echo $tmp/stdin ;;
8028 # Absolute (can't be DOS-style, as IFS=:)
8029 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8030 echo "$as_me: error: cannot find input file: $f" >&2;}
8031 { (exit 1); exit 1; }; }
8032 # Do quote $f, to prevent DOS paths from being IFS'd.
8035 if test -f "$f"; then
8038 elif test -f "$srcdir/$f"; then
8043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8044 echo "$as_me: error: cannot find input file: $f" >&2;}
8045 { (exit 1); exit 1; }; }
8048 done` || { (exit 1); exit 1; }
8049 # Remove the trailing spaces.
8050 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8054 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8055 # `conftest.undefs', that substitutes the proper values into
8056 # config.h.in to produce config.h. The first handles `#define'
8057 # templates, and the second `#undef' templates.
8058 # And first: Protect against being on the right side of a sed subst in
8059 # config.status. Protect against being in an unquoted here document
8061 rm -f conftest.defines conftest.undefs
8062 # Using a here document instead of a string reduces the quoting nightmare.
8063 # Putting comments in sed scripts is not portable.
8065 # `end' is used to avoid that the second main sed command (meant for
8066 # 0-ary CPP macros) applies to n-ary macro definitions.
8067 # See the Autoconf documentation for `clear'.
8068 cat >confdef2sed.sed <<\_ACEOF
8073 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8075 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8078 # If some macros were called several times there might be several times
8079 # the same #defines, which is useless. Nevertheless, we may not want to
8080 # sort them, since we want the *last* AC-DEFINE to be honored.
8081 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8082 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8083 rm -f confdef2sed.sed
8085 # This sed command replaces #undef with comments. This is necessary, for
8086 # example, in the case of _POSIX_SOURCE, which is predefined and required
8087 # on some systems where configure will not decide to define it.
8088 cat >>conftest.undefs <<\_ACEOF
8089 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8092 # Break up conftest.defines because some shells have a limit on the size
8093 # of here documents, and old seds have small limits too (100 cmds).
8094 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8095 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8096 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8097 echo ' :' >>$CONFIG_STATUS
8099 while grep . conftest.defines >/dev/null
8101 # Write a limited-size here document to $tmp/defines.sed.
8102 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8103 # Speed up: don't consider the non `#define' lines.
8104 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8105 # Work around the forget-to-reset-the-flag bug.
8106 echo 't clr' >>$CONFIG_STATUS
8107 echo ': clr' >>$CONFIG_STATUS
8108 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8110 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8114 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8115 rm -f conftest.defines
8116 mv conftest.tail conftest.defines
8118 rm -f conftest.defines
8119 echo ' fi # grep' >>$CONFIG_STATUS
8120 echo >>$CONFIG_STATUS
8122 # Break up conftest.undefs because some shells have a limit on the size
8123 # of here documents, and old seds have small limits too (100 cmds).
8124 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8126 while grep . conftest.undefs >/dev/null
8128 # Write a limited-size here document to $tmp/undefs.sed.
8129 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8130 # Speed up: don't consider the non `#undef'
8131 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8132 # Work around the forget-to-reset-the-flag bug.
8133 echo 't clr' >>$CONFIG_STATUS
8134 echo ': clr' >>$CONFIG_STATUS
8135 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8137 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8141 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8142 rm -f conftest.undefs
8143 mv conftest.tail conftest.undefs
8145 rm -f conftest.undefs
8147 cat >>$CONFIG_STATUS <<\_ACEOF
8148 # Let's still pretend it is `configure' which instantiates (i.e., don't
8149 # use $as_me), people would be surprised to read:
8150 # /* config.h. Generated by config.status. */
8151 if test x"$ac_file" = x-; then
8152 echo "/* Generated by configure. */" >$tmp/config.h
8154 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8156 cat $tmp/in >>$tmp/config.h
8158 if test x"$ac_file" != x-; then
8159 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8160 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8161 echo "$as_me: $ac_file is unchanged" >&6;}
8163 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8165 X"$ac_file" : 'X\(//\)[^/]' \| \
8166 X"$ac_file" : 'X\(//\)$' \| \
8167 X"$ac_file" : 'X\(/\)' \| \
8168 . : '\(.\)' 2>/dev/null ||
8170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8172 /^X\(\/\/\)$/{ s//\1/; q; }
8173 /^X\(\/\).*/{ s//\1/; q; }
8175 { if $as_mkdir_p; then
8180 while test ! -d "$as_dir"; do
8181 as_dirs="$as_dir $as_dirs"
8182 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8184 X"$as_dir" : 'X\(//\)[^/]' \| \
8185 X"$as_dir" : 'X\(//\)$' \| \
8186 X"$as_dir" : 'X\(/\)' \| \
8187 . : '\(.\)' 2>/dev/null ||
8189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8191 /^X\(\/\/\)$/{ s//\1/; q; }
8192 /^X\(\/\).*/{ s//\1/; q; }
8195 test ! -n "$as_dirs" || mkdir $as_dirs
8196 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8197 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8198 { (exit 1); exit 1; }; }; }
8201 mv $tmp/config.h $ac_file
8209 cat >>$CONFIG_STATUS <<\_ACEOF
8212 # CONFIG_LINKS section.
8215 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8216 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8217 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8219 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8220 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8222 if test ! -r $srcdir/$ac_source; then
8223 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8224 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8225 { (exit 1); exit 1; }; }
8229 # Make relative symlinks.
8230 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8231 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8232 X"$ac_dest" : 'X\(//\)[^/]' \| \
8233 X"$ac_dest" : 'X\(//\)$' \| \
8234 X"$ac_dest" : 'X\(/\)' \| \
8235 . : '\(.\)' 2>/dev/null ||
8237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8239 /^X\(\/\/\)$/{ s//\1/; q; }
8240 /^X\(\/\).*/{ s//\1/; q; }
8242 { if $as_mkdir_p; then
8243 mkdir -p "$ac_dest_dir"
8245 as_dir="$ac_dest_dir"
8247 while test ! -d "$as_dir"; do
8248 as_dirs="$as_dir $as_dirs"
8249 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8250 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8251 X"$as_dir" : 'X\(//\)[^/]' \| \
8252 X"$as_dir" : 'X\(//\)$' \| \
8253 X"$as_dir" : 'X\(/\)' \| \
8254 . : '\(.\)' 2>/dev/null ||
8256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8258 /^X\(\/\/\)$/{ s//\1/; q; }
8259 /^X\(\/\).*/{ s//\1/; q; }
8262 test ! -n "$as_dirs" || mkdir $as_dirs
8263 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8264 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8265 { (exit 1); exit 1; }; }; }
8269 if test "$ac_dest_dir" != .; then
8270 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8271 # A "../" for each directory in $ac_dir_suffix.
8272 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8274 ac_dir_suffix= ac_top_builddir=
8278 .) # No --srcdir option. We are building in place.
8280 if test -z "$ac_top_builddir"; then
8283 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8285 [\\/]* | ?:[\\/]* ) # Absolute path.
8286 ac_srcdir=$srcdir$ac_dir_suffix;
8287 ac_top_srcdir=$srcdir ;;
8289 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8290 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8293 # Do not use `cd foo && pwd` to compute absolute paths, because
8294 # the directories may not exist.
8296 .) ac_abs_builddir="$ac_dest_dir";;
8298 case "$ac_dest_dir" in
8299 .) ac_abs_builddir=`pwd`;;
8300 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8301 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8304 case $ac_abs_builddir in
8305 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8307 case ${ac_top_builddir}. in
8308 .) ac_abs_top_builddir=$ac_abs_builddir;;
8309 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8310 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8313 case $ac_abs_builddir in
8314 .) ac_abs_srcdir=$ac_srcdir;;
8317 .) ac_abs_srcdir=$ac_abs_builddir;;
8318 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8319 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8322 case $ac_abs_builddir in
8323 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8325 case $ac_top_srcdir in
8326 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8327 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8328 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8334 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8335 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8338 # Try a symlink, then a hard link, then a copy.
8339 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8340 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8341 cp -p $srcdir/$ac_source $ac_dest ||
8342 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8343 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8344 { (exit 1); exit 1; }; }
8347 cat >>$CONFIG_STATUS <<\_ACEOF
8350 # CONFIG_COMMANDS section.
8352 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8353 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8354 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8355 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8356 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8357 X"$ac_dest" : 'X\(//\)[^/]' \| \
8358 X"$ac_dest" : 'X\(//\)$' \| \
8359 X"$ac_dest" : 'X\(/\)' \| \
8360 . : '\(.\)' 2>/dev/null ||
8362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8364 /^X\(\/\/\)$/{ s//\1/; q; }
8365 /^X\(\/\).*/{ s//\1/; q; }
8367 { if $as_mkdir_p; then
8372 while test ! -d "$as_dir"; do
8373 as_dirs="$as_dir $as_dirs"
8374 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8376 X"$as_dir" : 'X\(//\)[^/]' \| \
8377 X"$as_dir" : 'X\(//\)$' \| \
8378 X"$as_dir" : 'X\(/\)' \| \
8379 . : '\(.\)' 2>/dev/null ||
8381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8383 /^X\(\/\/\)$/{ s//\1/; q; }
8384 /^X\(\/\).*/{ s//\1/; q; }
8387 test ! -n "$as_dirs" || mkdir $as_dirs
8388 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8389 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8390 { (exit 1); exit 1; }; }; }
8394 if test "$ac_dir" != .; then
8395 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8396 # A "../" for each directory in $ac_dir_suffix.
8397 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8399 ac_dir_suffix= ac_top_builddir=
8403 .) # No --srcdir option. We are building in place.
8405 if test -z "$ac_top_builddir"; then
8408 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8410 [\\/]* | ?:[\\/]* ) # Absolute path.
8411 ac_srcdir=$srcdir$ac_dir_suffix;
8412 ac_top_srcdir=$srcdir ;;
8414 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8415 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8418 # Do not use `cd foo && pwd` to compute absolute paths, because
8419 # the directories may not exist.
8421 .) ac_abs_builddir="$ac_dir";;
8424 .) ac_abs_builddir=`pwd`;;
8425 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8426 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8429 case $ac_abs_builddir in
8430 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8432 case ${ac_top_builddir}. in
8433 .) ac_abs_top_builddir=$ac_abs_builddir;;
8434 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8435 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8438 case $ac_abs_builddir in
8439 .) ac_abs_srcdir=$ac_srcdir;;
8442 .) ac_abs_srcdir=$ac_abs_builddir;;
8443 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8444 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8447 case $ac_abs_builddir in
8448 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8450 case $ac_top_srcdir in
8451 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8452 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8453 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8458 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8459 echo "$as_me: executing $ac_dest commands" >&6;}
8461 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8462 rm -f Makesim1.tmp Makesim2.tmp Makefile
8463 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
8464 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
8465 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8466 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8467 <Makefile.sim >Makefile
8468 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8470 stamp-h ) echo > stamp-h ;;
8475 cat >>$CONFIG_STATUS <<\_ACEOF
8477 { (exit 0); exit 0; }
8479 chmod +x $CONFIG_STATUS
8480 ac_clean_files=$ac_clean_files_save
8483 # configure is writing to config.log, and then calls config.status.
8484 # config.status does its own redirection, appending to config.log.
8485 # Unfortunately, on DOS this fails, as config.log is still kept open
8486 # by configure, so config.status won't be able to write to it; its
8487 # output is simply discarded. So we exec the FD to /dev/null,
8488 # effectively closing config.log, so it can be properly (re)opened and
8489 # appended to by config.status. When coming back to configure, we
8490 # need to make the FD available again.
8491 if test "$no_create" != yes; then
8493 ac_config_status_args=
8494 test "$silent" = yes &&
8495 ac_config_status_args="$ac_config_status_args --quiet"
8497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8500 # would make configure fail if this is the last instruction.
8501 $ac_cs_success || { (exit 1); exit 1; }