2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-build-warnings Enable build-time compiler warnings if gcc is used
862 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-included-gettext use the GNU gettext library included here
869 Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
884 if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
891 if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 ac_dir_suffix= ac_top_builddir=
900 .) # No --srcdir option. We are building in place.
902 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
918 .) ac_abs_builddir="$ac_dir";;
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_must_keep_next=false
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 -* ) ac_must_keep_next=true ;;
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1106 # The following way of writing the cache mishandles newlines in values,
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1129 for ac_var in $ac_subst_vars
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -n "$ac_subst_files"; then
1143 for ac_var in $ac_subst_files
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -s confdefs.h; then
1158 sed "/^$/d" confdefs.h | sort
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 # Predefined preprocessor variables.
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1241 # Check that the precious variables saved in the cache have kept the same
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 # Make sure we can run config.sub.
1318 $ac_config_sub sun4 >/dev/null 2>&1 ||
1319 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1320 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1321 { (exit 1); exit 1; }; }
1323 echo "$as_me:$LINENO: checking build system type" >&5
1324 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1325 if test "${ac_cv_build+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 ac_cv_build_alias=$build_alias
1329 test -z "$ac_cv_build_alias" &&
1330 ac_cv_build_alias=`$ac_config_guess`
1331 test -z "$ac_cv_build_alias" &&
1332 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1333 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1334 { (exit 1); exit 1; }; }
1335 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1336 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1337 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1338 { (exit 1); exit 1; }; }
1341 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1342 echo "${ECHO_T}$ac_cv_build" >&6
1344 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1345 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1346 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1349 echo "$as_me:$LINENO: checking host system type" >&5
1350 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1351 if test "${ac_cv_host+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 ac_cv_host_alias=$host_alias
1355 test -z "$ac_cv_host_alias" &&
1356 ac_cv_host_alias=$ac_cv_build_alias
1357 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1358 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1359 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1360 { (exit 1); exit 1; }; }
1363 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1364 echo "${ECHO_T}$ac_cv_host" >&6
1366 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1371 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1372 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1373 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1374 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1377 cat >conftest.make <<\_ACEOF
1379 @echo 'ac_maketemp="$(MAKE)"'
1381 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1382 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1383 if test -n "$ac_maketemp"; then
1384 eval ac_cv_prog_make_${ac_make}_set=yes
1386 eval ac_cv_prog_make_${ac_make}_set=no
1390 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1391 echo "$as_me:$LINENO: result: yes" >&5
1392 echo "${ECHO_T}yes" >&6
1395 echo "$as_me:$LINENO: result: no" >&5
1396 echo "${ECHO_T}no" >&6
1397 SET_MAKE="MAKE=${MAKE-make}"
1401 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1402 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1403 if test "${ac_cv_search_strerror+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 ac_func_search_save_LIBS=$LIBS
1407 ac_cv_search_strerror=no
1408 cat >conftest.$ac_ext <<_ACEOF
1411 cat confdefs.h >>conftest.$ac_ext
1412 cat >>conftest.$ac_ext <<_ACEOF
1413 /* end confdefs.h. */
1415 /* Override any gcc2 internal prototype to avoid an error. */
1419 /* We use char because int might match the return type of a gcc2
1420 builtin and then its argument prototype would still apply. */
1430 rm -f conftest.$ac_objext conftest$ac_exeext
1431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1432 (eval $ac_link) 2>conftest.er1
1434 grep -v '^ *+' conftest.er1 >conftest.err
1436 cat conftest.err >&5
1437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1438 (exit $ac_status); } &&
1439 { ac_try='test -z "$ac_c_werror_flag"
1440 || test ! -s conftest.err'
1441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1445 (exit $ac_status); }; } &&
1446 { ac_try='test -s conftest$ac_exeext'
1447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1451 (exit $ac_status); }; }; then
1452 ac_cv_search_strerror="none required"
1454 echo "$as_me: failed program was:" >&5
1455 sed 's/^/| /' conftest.$ac_ext >&5
1458 rm -f conftest.err conftest.$ac_objext \
1459 conftest$ac_exeext conftest.$ac_ext
1460 if test "$ac_cv_search_strerror" = no; then
1461 for ac_lib in cposix; do
1462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1463 cat >conftest.$ac_ext <<_ACEOF
1466 cat confdefs.h >>conftest.$ac_ext
1467 cat >>conftest.$ac_ext <<_ACEOF
1468 /* end confdefs.h. */
1470 /* Override any gcc2 internal prototype to avoid an error. */
1474 /* We use char because int might match the return type of a gcc2
1475 builtin and then its argument prototype would still apply. */
1485 rm -f conftest.$ac_objext conftest$ac_exeext
1486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1487 (eval $ac_link) 2>conftest.er1
1489 grep -v '^ *+' conftest.er1 >conftest.err
1491 cat conftest.err >&5
1492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1493 (exit $ac_status); } &&
1494 { ac_try='test -z "$ac_c_werror_flag"
1495 || test ! -s conftest.err'
1496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1500 (exit $ac_status); }; } &&
1501 { ac_try='test -s conftest$ac_exeext'
1502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1506 (exit $ac_status); }; }; then
1507 ac_cv_search_strerror="-l$ac_lib"
1510 echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1514 rm -f conftest.err conftest.$ac_objext \
1515 conftest$ac_exeext conftest.$ac_ext
1518 LIBS=$ac_func_search_save_LIBS
1520 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1521 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1522 if test "$ac_cv_search_strerror" != no; then
1523 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1528 ac_cpp='$CPP $CPPFLAGS'
1529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1532 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1533 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1534 # On Suns, sometimes $CPP names a directory.
1535 if test -n "$CPP" && test -d "$CPP"; then
1538 if test -z "$CPP"; then
1539 if test "${ac_cv_prog_CPP+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 # Double quotes because CPP needs to be expanded
1543 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1546 for ac_c_preproc_warn_flag in '' yes
1548 # Use a header file that comes with gcc, so configuring glibc
1549 # with a fresh cross-compiler works.
1550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1551 # <limits.h> exists even on freestanding compilers.
1552 # On the NeXT, cc -E runs the code through the compiler's parser,
1553 # not just through cpp. "Syntax error" is here to catch this case.
1554 cat >conftest.$ac_ext <<_ACEOF
1557 cat confdefs.h >>conftest.$ac_ext
1558 cat >>conftest.$ac_ext <<_ACEOF
1559 /* end confdefs.h. */
1561 # include <limits.h>
1563 # include <assert.h>
1567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1570 grep -v '^ *+' conftest.er1 >conftest.err
1572 cat conftest.err >&5
1573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1574 (exit $ac_status); } >/dev/null; then
1575 if test -s conftest.err; then
1576 ac_cpp_err=$ac_c_preproc_warn_flag
1577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1584 if test -z "$ac_cpp_err"; then
1587 echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 # Broken: fails on valid input.
1593 rm -f conftest.err conftest.$ac_ext
1595 # OK, works on sane cases. Now check whether non-existent headers
1596 # can be detected and how.
1597 cat >conftest.$ac_ext <<_ACEOF
1600 cat confdefs.h >>conftest.$ac_ext
1601 cat >>conftest.$ac_ext <<_ACEOF
1602 /* end confdefs.h. */
1603 #include <ac_nonexistent.h>
1605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1608 grep -v '^ *+' conftest.er1 >conftest.err
1610 cat conftest.err >&5
1611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1612 (exit $ac_status); } >/dev/null; then
1613 if test -s conftest.err; then
1614 ac_cpp_err=$ac_c_preproc_warn_flag
1615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1622 if test -z "$ac_cpp_err"; then
1623 # Broken: success on invalid input.
1626 echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1629 # Passes both tests.
1633 rm -f conftest.err conftest.$ac_ext
1636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1637 rm -f conftest.err conftest.$ac_ext
1638 if $ac_preproc_ok; then
1650 echo "$as_me:$LINENO: result: $CPP" >&5
1651 echo "${ECHO_T}$CPP" >&6
1653 for ac_c_preproc_warn_flag in '' yes
1655 # Use a header file that comes with gcc, so configuring glibc
1656 # with a fresh cross-compiler works.
1657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1658 # <limits.h> exists even on freestanding compilers.
1659 # On the NeXT, cc -E runs the code through the compiler's parser,
1660 # not just through cpp. "Syntax error" is here to catch this case.
1661 cat >conftest.$ac_ext <<_ACEOF
1664 cat confdefs.h >>conftest.$ac_ext
1665 cat >>conftest.$ac_ext <<_ACEOF
1666 /* end confdefs.h. */
1668 # include <limits.h>
1670 # include <assert.h>
1674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1677 grep -v '^ *+' conftest.er1 >conftest.err
1679 cat conftest.err >&5
1680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1681 (exit $ac_status); } >/dev/null; then
1682 if test -s conftest.err; then
1683 ac_cpp_err=$ac_c_preproc_warn_flag
1684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1691 if test -z "$ac_cpp_err"; then
1694 echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1697 # Broken: fails on valid input.
1700 rm -f conftest.err conftest.$ac_ext
1702 # OK, works on sane cases. Now check whether non-existent headers
1703 # can be detected and how.
1704 cat >conftest.$ac_ext <<_ACEOF
1707 cat confdefs.h >>conftest.$ac_ext
1708 cat >>conftest.$ac_ext <<_ACEOF
1709 /* end confdefs.h. */
1710 #include <ac_nonexistent.h>
1712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1715 grep -v '^ *+' conftest.er1 >conftest.err
1717 cat conftest.err >&5
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); } >/dev/null; then
1720 if test -s conftest.err; then
1721 ac_cpp_err=$ac_c_preproc_warn_flag
1722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1729 if test -z "$ac_cpp_err"; then
1730 # Broken: success on invalid input.
1733 echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1736 # Passes both tests.
1740 rm -f conftest.err conftest.$ac_ext
1743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1744 rm -f conftest.err conftest.$ac_ext
1745 if $ac_preproc_ok; then
1748 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1749 See \`config.log' for more details." >&5
1750 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1751 See \`config.log' for more details." >&2;}
1752 { (exit 1); exit 1; }; }
1756 ac_cpp='$CPP $CPPFLAGS'
1757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1762 echo "$as_me:$LINENO: checking for egrep" >&5
1763 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1764 if test "${ac_cv_prog_egrep+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1768 then ac_cv_prog_egrep='grep -E'
1769 else ac_cv_prog_egrep='egrep'
1772 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1773 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1774 EGREP=$ac_cv_prog_egrep
1777 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1779 if test "${ac_cv_header_stdc+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 cat >conftest.$ac_ext <<_ACEOF
1785 cat confdefs.h >>conftest.$ac_ext
1786 cat >>conftest.$ac_ext <<_ACEOF
1787 /* end confdefs.h. */
1801 rm -f conftest.$ac_objext
1802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1803 (eval $ac_compile) 2>conftest.er1
1805 grep -v '^ *+' conftest.er1 >conftest.err
1807 cat conftest.err >&5
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); } &&
1810 { ac_try='test -z "$ac_c_werror_flag"
1811 || test ! -s conftest.err'
1812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816 (exit $ac_status); }; } &&
1817 { ac_try='test -s conftest.$ac_objext'
1818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; }; then
1823 ac_cv_header_stdc=yes
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 ac_cv_header_stdc=no
1830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1832 if test $ac_cv_header_stdc = yes; then
1833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1834 cat >conftest.$ac_ext <<_ACEOF
1837 cat confdefs.h >>conftest.$ac_ext
1838 cat >>conftest.$ac_ext <<_ACEOF
1839 /* end confdefs.h. */
1843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1844 $EGREP "memchr" >/dev/null 2>&1; then
1847 ac_cv_header_stdc=no
1853 if test $ac_cv_header_stdc = yes; then
1854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1855 cat >conftest.$ac_ext <<_ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h. */
1864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1865 $EGREP "free" >/dev/null 2>&1; then
1868 ac_cv_header_stdc=no
1874 if test $ac_cv_header_stdc = yes; then
1875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1876 if test "$cross_compiling" = yes; then
1879 cat >conftest.$ac_ext <<_ACEOF
1882 cat confdefs.h >>conftest.$ac_ext
1883 cat >>conftest.$ac_ext <<_ACEOF
1884 /* end confdefs.h. */
1886 #if ((' ' & 0x0FF) == 0x020)
1887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1890 # define ISLOWER(c) \
1891 (('a' <= (c) && (c) <= 'i') \
1892 || ('j' <= (c) && (c) <= 'r') \
1893 || ('s' <= (c) && (c) <= 'z'))
1894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1902 for (i = 0; i < 256; i++)
1903 if (XOR (islower (i), ISLOWER (i))
1904 || toupper (i) != TOUPPER (i))
1909 rm -f conftest$ac_exeext
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }; }; then
1922 echo "$as_me: program exited with status $ac_status" >&5
1923 echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_cv_header_stdc=no
1929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1933 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1934 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1935 if test $ac_cv_header_stdc = yes; then
1937 cat >>confdefs.h <<\_ACEOF
1938 #define STDC_HEADERS 1
1943 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1944 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1945 if test "${ac_cv_c_const+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 cat >conftest.$ac_ext <<_ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1958 /* FIXME: Include the comments suggested by Paul. */
1960 /* Ultrix mips cc rejects this. */
1961 typedef int charset[2];
1963 /* SunOS 4.1.1 cc rejects this. */
1964 char const *const *ccp;
1966 /* NEC SVR4.0.2 mips cc rejects this. */
1967 struct point {int x, y;};
1968 static struct point const zero = {0,0};
1969 /* AIX XL C 1.02.0.0 rejects this.
1970 It does not let you subtract one const X* pointer from another in
1971 an arm of an if-expression whose if-part is not a constant
1973 const char *g = "string";
1974 ccp = &g + (g ? g-g : 0);
1975 /* HPUX 7.0 cc rejects these. */
1978 ccp = (char const *const *) p;
1979 { /* SCO 3.2v4 cc rejects this. */
1981 char const *s = 0 ? (char *) 0 : (char const *) 0;
1985 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1987 const int *foo = &x[0];
1990 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1991 typedef const int *iptr;
1995 { /* AIX XL C 1.02.0.0 rejects this saying
1996 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1997 struct s { int j; const int *ap[3]; };
1998 struct s *b; b->j = 5;
2000 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>conftest.er1
2013 grep -v '^ *+' conftest.er1 >conftest.err
2015 cat conftest.err >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
2018 { ac_try='test -z "$ac_c_werror_flag"
2019 || test ! -s conftest.err'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; } &&
2025 { ac_try='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2033 echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2040 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2041 echo "${ECHO_T}$ac_cv_c_const" >&6
2042 if test $ac_cv_c_const = no; then
2044 cat >>confdefs.h <<\_ACEOF
2050 echo "$as_me:$LINENO: checking for inline" >&5
2051 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2052 if test "${ac_cv_c_inline+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 for ac_kw in inline __inline__ __inline; do
2057 cat >conftest.$ac_ext <<_ACEOF
2060 cat confdefs.h >>conftest.$ac_ext
2061 cat >>conftest.$ac_ext <<_ACEOF
2062 /* end confdefs.h. */
2065 static $ac_kw foo_t static_foo () {return 0; }
2066 $ac_kw foo_t foo () {return 0; }
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072 (eval $ac_compile) 2>conftest.er1
2074 grep -v '^ *+' conftest.er1 >conftest.err
2076 cat conftest.err >&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); } &&
2079 { ac_try='test -z "$ac_c_werror_flag"
2080 || test ! -s conftest.err'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2092 ac_cv_c_inline=$ac_kw; break
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2102 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2103 echo "${ECHO_T}$ac_cv_c_inline" >&6
2106 case $ac_cv_c_inline in
2109 case $ac_cv_c_inline in
2111 *) ac_val=$ac_cv_c_inline;;
2113 cat >>confdefs.h <<_ACEOF
2115 #define inline $ac_val
2121 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2132 inttypes.h stdint.h unistd.h
2134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2135 echo "$as_me:$LINENO: checking for $ac_header" >&5
2136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 cat >conftest.$ac_ext <<_ACEOF
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h. */
2146 $ac_includes_default
2148 #include <$ac_header>
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2154 grep -v '^ *+' conftest.er1 >conftest.err
2156 cat conftest.err >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2172 eval "$as_ac_Header=yes"
2174 echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2177 eval "$as_ac_Header=no"
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2184 cat >>confdefs.h <<_ACEOF
2185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2193 echo "$as_me:$LINENO: checking for off_t" >&5
2194 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2195 if test "${ac_cv_type_off_t+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 cat >conftest.$ac_ext <<_ACEOF
2201 cat confdefs.h >>conftest.$ac_ext
2202 cat >>conftest.$ac_ext <<_ACEOF
2203 /* end confdefs.h. */
2204 $ac_includes_default
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2220 grep -v '^ *+' conftest.er1 >conftest.err
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag"
2226 || test ! -s conftest.err'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 ac_cv_type_off_t=yes
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2247 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2248 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2249 if test $ac_cv_type_off_t = yes; then
2253 cat >>confdefs.h <<_ACEOF
2259 echo "$as_me:$LINENO: checking for size_t" >&5
2260 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2261 if test "${ac_cv_type_size_t+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 cat >conftest.$ac_ext <<_ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2270 $ac_includes_default
2276 if (sizeof (size_t))
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>conftest.er1
2286 grep -v '^ *+' conftest.er1 >conftest.err
2288 cat conftest.err >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -z "$ac_c_werror_flag"
2292 || test ! -s conftest.err'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2304 ac_cv_type_size_t=yes
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2309 ac_cv_type_size_t=no
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2314 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2315 if test $ac_cv_type_size_t = yes; then
2319 cat >>confdefs.h <<_ACEOF
2320 #define size_t unsigned
2325 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2326 # for constant arguments. Useless!
2327 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2328 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2329 if test "${ac_cv_working_alloca_h+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.$ac_ext <<_ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2342 char *p = (char *) alloca (2 * sizeof (int));
2347 rm -f conftest.$ac_objext conftest$ac_exeext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2349 (eval $ac_link) 2>conftest.er1
2351 grep -v '^ *+' conftest.er1 >conftest.err
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
2356 { ac_try='test -z "$ac_c_werror_flag"
2357 || test ! -s conftest.err'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest$ac_exeext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 ac_cv_working_alloca_h=yes
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2374 ac_cv_working_alloca_h=no
2376 rm -f conftest.err conftest.$ac_objext \
2377 conftest$ac_exeext conftest.$ac_ext
2379 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2380 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2381 if test $ac_cv_working_alloca_h = yes; then
2383 cat >>confdefs.h <<\_ACEOF
2384 #define HAVE_ALLOCA_H 1
2389 echo "$as_me:$LINENO: checking for alloca" >&5
2390 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2391 if test "${ac_cv_func_alloca_works+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 cat >conftest.$ac_ext <<_ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2401 # define alloca __builtin_alloca
2404 # include <malloc.h>
2405 # define alloca _alloca
2408 # include <alloca.h>
2413 # ifndef alloca /* predefined by HP cc +Olibcalls */
2424 char *p = (char *) alloca (1);
2429 rm -f conftest.$ac_objext conftest$ac_exeext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431 (eval $ac_link) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1 >conftest.err
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest$ac_exeext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 ac_cv_func_alloca_works=yes
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2456 ac_cv_func_alloca_works=no
2458 rm -f conftest.err conftest.$ac_objext \
2459 conftest$ac_exeext conftest.$ac_ext
2461 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2462 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2464 if test $ac_cv_func_alloca_works = yes; then
2466 cat >>confdefs.h <<\_ACEOF
2467 #define HAVE_ALLOCA 1
2471 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2472 # that cause trouble. Some versions do not even contain alloca or
2473 # contain a buggy version. If you still want to use their alloca,
2474 # use ar to extract alloca.o from them instead of compiling alloca.c.
2476 ALLOCA=alloca.$ac_objext
2478 cat >>confdefs.h <<\_ACEOF
2483 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2484 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2485 if test "${ac_cv_os_cray+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494 #if defined(CRAY) && ! defined(CRAY2)
2501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2502 $EGREP "webecray" >/dev/null 2>&1; then
2510 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2511 echo "${ECHO_T}$ac_cv_os_cray" >&6
2512 if test $ac_cv_os_cray = yes; then
2513 for ac_func in _getb67 GETB67 getb67; do
2514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2515 echo "$as_me:$LINENO: checking for $ac_func" >&5
2516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2517 if eval "test \"\${$as_ac_var+set}\" = set"; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2528 #define $ac_func innocuous_$ac_func
2530 /* System header to define __stub macros and hopefully few prototypes,
2531 which can conflict with char $ac_func (); below.
2532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2533 <limits.h> exists even on freestanding compilers. */
2536 # include <limits.h>
2538 # include <assert.h>
2543 /* Override any gcc2 internal prototype to avoid an error. */
2548 /* We use char because int might match the return type of a gcc2
2549 builtin and then its argument prototype would still apply. */
2551 /* The GNU C library defines this for functions which it implements
2552 to always fail with ENOSYS. Some functions are actually named
2553 something starting with __ and the normal name is an alias. */
2554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2557 char (*f) () = $ac_func;
2566 return f != $ac_func;
2571 rm -f conftest.$ac_objext conftest$ac_exeext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2573 (eval $ac_link) 2>conftest.er1
2575 grep -v '^ *+' conftest.er1 >conftest.err
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -z "$ac_c_werror_flag"
2581 || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest$ac_exeext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 eval "$as_ac_var=yes"
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2598 eval "$as_ac_var=no"
2600 rm -f conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2605 if test `eval echo '${'$as_ac_var'}'` = yes; then
2607 cat >>confdefs.h <<_ACEOF
2608 #define CRAY_STACKSEG_END $ac_func
2617 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2618 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2619 if test "${ac_cv_c_stack_direction+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 if test "$cross_compiling" = yes; then
2623 ac_cv_c_stack_direction=0
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2632 find_stack_direction ()
2634 static char *addr = 0;
2639 return find_stack_direction ();
2642 return (&dummy > addr) ? 1 : -1;
2648 exit (find_stack_direction () < 0);
2651 rm -f conftest$ac_exeext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 ac_cv_c_stack_direction=1
2664 echo "$as_me: program exited with status $ac_status" >&5
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2669 ac_cv_c_stack_direction=-1
2671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2674 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2675 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2677 cat >>confdefs.h <<_ACEOF
2678 #define STACK_DIRECTION $ac_cv_c_stack_direction
2686 for ac_header in stdlib.h unistd.h
2688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2690 echo "$as_me:$LINENO: checking for $ac_header" >&5
2691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2698 # Is the header compilable?
2699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2701 cat >conftest.$ac_ext <<_ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2707 $ac_includes_default
2708 #include <$ac_header>
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>conftest.er1
2714 grep -v '^ *+' conftest.er1 >conftest.err
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_c_werror_flag"
2720 || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_header_compiler=yes
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2737 ac_header_compiler=no
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2741 echo "${ECHO_T}$ac_header_compiler" >&6
2743 # Is the header present?
2744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2752 #include <$ac_header>
2754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2757 grep -v '^ *+' conftest.er1 >conftest.err
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } >/dev/null; then
2762 if test -s conftest.err; then
2763 ac_cpp_err=$ac_c_preproc_warn_flag
2764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2771 if test -z "$ac_cpp_err"; then
2772 ac_header_preproc=yes
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2777 ac_header_preproc=no
2779 rm -f conftest.err conftest.$ac_ext
2780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2781 echo "${ECHO_T}$ac_header_preproc" >&6
2783 # So? What about this header?
2784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2790 ac_header_preproc=yes
2793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2807 ## ------------------------------------------ ##
2808 ## Report this to the AC_PACKAGE_NAME lists. ##
2809 ## ------------------------------------------ ##
2812 sed "s/^/$as_me: WARNING: /" >&2
2815 echo "$as_me:$LINENO: checking for $ac_header" >&5
2816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 eval "$as_ac_Header=\$ac_header_preproc"
2822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2827 cat >>confdefs.h <<_ACEOF
2828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2836 for ac_func in getpagesize
2838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2839 echo "$as_me:$LINENO: checking for $ac_func" >&5
2840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2841 if eval "test \"\${$as_ac_var+set}\" = set"; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 cat >conftest.$ac_ext <<_ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2852 #define $ac_func innocuous_$ac_func
2854 /* System header to define __stub macros and hopefully few prototypes,
2855 which can conflict with char $ac_func (); below.
2856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2857 <limits.h> exists even on freestanding compilers. */
2860 # include <limits.h>
2862 # include <assert.h>
2867 /* Override any gcc2 internal prototype to avoid an error. */
2872 /* We use char because int might match the return type of a gcc2
2873 builtin and then its argument prototype would still apply. */
2875 /* The GNU C library defines this for functions which it implements
2876 to always fail with ENOSYS. Some functions are actually named
2877 something starting with __ and the normal name is an alias. */
2878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2881 char (*f) () = $ac_func;
2890 return f != $ac_func;
2895 rm -f conftest.$ac_objext conftest$ac_exeext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2897 (eval $ac_link) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -z "$ac_c_werror_flag"
2905 || test ! -s conftest.err'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; } &&
2911 { ac_try='test -s conftest$ac_exeext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 eval "$as_ac_var=yes"
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 eval "$as_ac_var=no"
2924 rm -f conftest.err conftest.$ac_objext \
2925 conftest$ac_exeext conftest.$ac_ext
2927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2929 if test `eval echo '${'$as_ac_var'}'` = yes; then
2930 cat >>confdefs.h <<_ACEOF
2931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2937 echo "$as_me:$LINENO: checking for working mmap" >&5
2938 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2939 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 if test "$cross_compiling" = yes; then
2943 ac_cv_func_mmap_fixed_mapped=no
2945 cat >conftest.$ac_ext <<_ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951 $ac_includes_default
2952 /* malloc might have been renamed as rpl_malloc. */
2955 /* Thanks to Mike Haertel and Jim Avera for this test.
2956 Here is a matrix of mmap possibilities:
2957 mmap private not fixed
2958 mmap private fixed at somewhere currently unmapped
2959 mmap private fixed at somewhere already mapped
2960 mmap shared not fixed
2961 mmap shared fixed at somewhere currently unmapped
2962 mmap shared fixed at somewhere already mapped
2963 For private mappings, we should verify that changes cannot be read()
2964 back from the file, nor mmap's back from the file at a different
2965 address. (There have been systems where private was not correctly
2966 implemented like the infamous i386 svr4.0, and systems where the
2967 VM page cache was not coherent with the file system buffer cache
2968 like early versions of FreeBSD and possibly contemporary NetBSD.)
2969 For shared mappings, we should conversely verify that changes get
2970 propagated back to all the places they're supposed to be.
2972 Grep wants private fixed already mapped.
2973 The main things grep needs to know about mmap are:
2974 * does it exist and is it safe to write into the mmap'd area
2975 * how to use it (BSD variants) */
2978 #include <sys/mman.h>
2980 #if !STDC_HEADERS && !HAVE_STDLIB_H
2984 /* This mess was copied from the GNU getpagesize.h. */
2985 #if !HAVE_GETPAGESIZE
2986 /* Assume that all systems that can run configure have sys/param.h. */
2987 # if !HAVE_SYS_PARAM_H
2988 # define HAVE_SYS_PARAM_H 1
2991 # ifdef _SC_PAGESIZE
2992 # define getpagesize() sysconf(_SC_PAGESIZE)
2993 # else /* no _SC_PAGESIZE */
2994 # if HAVE_SYS_PARAM_H
2995 # include <sys/param.h>
2996 # ifdef EXEC_PAGESIZE
2997 # define getpagesize() EXEC_PAGESIZE
2998 # else /* no EXEC_PAGESIZE */
3000 # define getpagesize() NBPG * CLSIZE
3003 # endif /* no CLSIZE */
3004 # else /* no NBPG */
3006 # define getpagesize() NBPC
3007 # else /* no NBPC */
3009 # define getpagesize() PAGESIZE
3010 # endif /* PAGESIZE */
3011 # endif /* no NBPC */
3012 # endif /* no NBPG */
3013 # endif /* no EXEC_PAGESIZE */
3014 # else /* no HAVE_SYS_PARAM_H */
3015 # define getpagesize() 8192 /* punt totally */
3016 # endif /* no HAVE_SYS_PARAM_H */
3017 # endif /* no _SC_PAGESIZE */
3019 #endif /* no HAVE_GETPAGESIZE */
3024 char *data, *data2, *data3;
3028 pagesize = getpagesize ();
3030 /* First, make a file with some known garbage in it. */
3031 data = (char *) malloc (pagesize);
3034 for (i = 0; i < pagesize; ++i)
3035 *(data + i) = rand ();
3037 fd = creat ("conftest.mmap", 0600);
3040 if (write (fd, data, pagesize) != pagesize)
3044 /* Next, try to mmap the file at a fixed address which already has
3045 something else allocated at it. If we can, also make sure that
3046 we see the same garbage. */
3047 fd = open ("conftest.mmap", O_RDWR);
3050 data2 = (char *) malloc (2 * pagesize);
3053 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3054 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3055 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3057 for (i = 0; i < pagesize; ++i)
3058 if (*(data + i) != *(data2 + i))
3061 /* Finally, make sure that changes to the mapped area do not
3062 percolate back to the file as seen by read(). (This is a bug on
3063 some variants of i386 svr4.0.) */
3064 for (i = 0; i < pagesize; ++i)
3065 *(data2 + i) = *(data2 + i) + 1;
3066 data3 = (char *) malloc (pagesize);
3069 if (read (fd, data3, pagesize) != pagesize)
3071 for (i = 0; i < pagesize; ++i)
3072 if (*(data + i) != *(data3 + i))
3078 rm -f conftest$ac_exeext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3080 (eval $ac_link) 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 ac_cv_func_mmap_fixed_mapped=yes
3091 echo "$as_me: program exited with status $ac_status" >&5
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3096 ac_cv_func_mmap_fixed_mapped=no
3098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3101 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3102 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3103 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3105 cat >>confdefs.h <<\_ACEOF
3113 # autoconf.info says this should be called right after AC_INIT.
3114 ac_config_headers="$ac_config_headers config.h:config.in"
3118 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
3119 if test -f $ac_dir/install-sh; then
3121 ac_install_sh="$ac_aux_dir/install-sh -c"
3123 elif test -f $ac_dir/install.sh; then
3125 ac_install_sh="$ac_aux_dir/install.sh -c"
3127 elif test -f $ac_dir/shtool; then
3129 ac_install_sh="$ac_aux_dir/shtool install -c"
3133 if test -z "$ac_aux_dir"; then
3134 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5
3135 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;}
3136 { (exit 1); exit 1; }; }
3138 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3139 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3140 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3142 echo "$as_me:$LINENO: checking target system type" >&5
3143 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3144 if test "${ac_cv_target+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 ac_cv_target_alias=$target_alias
3148 test "x$ac_cv_target_alias" = "x" &&
3149 ac_cv_target_alias=$ac_cv_host_alias
3150 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3151 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3152 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3153 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3157 echo "${ECHO_T}$ac_cv_target" >&6
3158 target=$ac_cv_target
3159 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3160 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3161 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3164 # The aliases save the names the user supplied, while $host etc.
3165 # will get canonicalized.
3166 test -n "$target_alias" &&
3167 test "$program_prefix$program_suffix$program_transform_name" = \
3169 program_prefix=${target_alias}-
3170 test "$program_prefix" != NONE &&
3171 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3172 # Use a double $ so make ignores it.
3173 test "$program_suffix" != NONE &&
3174 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3175 # Double any \ or $. echo might interpret backslashes.
3176 # By default was `s,x,x', remove it if useless.
3177 cat <<\_ACEOF >conftest.sed
3178 s/[\\$]/&&/g;s/;s,x,x,$//
3180 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 if test -n "$ac_tool_prefix"; then
3189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_CC+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 if test -n "$CC"; then
3197 ac_cv_prog_CC="$CC" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 if test -n "$CC"; then
3217 echo "$as_me:$LINENO: result: $CC" >&5
3218 echo "${ECHO_T}$CC" >&6
3220 echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3225 if test -z "$ac_cv_prog_CC"; then
3227 # Extract the first word of "gcc", so it can be a program name with args.
3228 set dummy gcc; ac_word=$2
3229 echo "$as_me:$LINENO: checking for $ac_word" >&5
3230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 if test -n "$ac_ct_CC"; then
3235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_ac_ct_CC="gcc"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254 if test -n "$ac_ct_CC"; then
3255 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3256 echo "${ECHO_T}$ac_ct_CC" >&6
3258 echo "$as_me:$LINENO: result: no" >&5
3259 echo "${ECHO_T}no" >&6
3267 if test -z "$CC"; then
3268 if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}cc; ac_word=$2
3271 echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3273 if test "${ac_cv_prog_CC+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_CC="${ac_tool_prefix}cc"
3287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 if test -n "$CC"; then
3297 echo "$as_me:$LINENO: result: $CC" >&5
3298 echo "${ECHO_T}$CC" >&6
3300 echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6
3305 if test -z "$ac_cv_prog_CC"; then
3307 # Extract the first word of "cc", so it can be a program name with args.
3308 set dummy cc; ac_word=$2
3309 echo "$as_me:$LINENO: checking for $ac_word" >&5
3310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 if test -n "$ac_ct_CC"; then
3315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_ac_ct_CC="cc"
3325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3334 if test -n "$ac_ct_CC"; then
3335 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3336 echo "${ECHO_T}$ac_ct_CC" >&6
3338 echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6
3348 if test -z "$CC"; then
3349 # Extract the first word of "cc", so it can be a program name with args.
3350 set dummy cc; ac_word=$2
3351 echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3353 if test "${ac_cv_prog_CC+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3368 ac_prog_rejected=yes
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 if test $ac_prog_rejected = yes; then
3379 # We found a bogon in the path, so make sure we never use it.
3380 set dummy $ac_cv_prog_CC
3382 if test $# != 0; then
3383 # We chose a different compiler from the bogus one.
3384 # However, it has the same basename, so the bogon will be chosen
3385 # first if we set CC to just the basename; use the full file name.
3387 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3393 if test -n "$CC"; then
3394 echo "$as_me:$LINENO: result: $CC" >&5
3395 echo "${ECHO_T}$CC" >&6
3397 echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3402 if test -z "$CC"; then
3403 if test -n "$ac_tool_prefix"; then
3406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3408 echo "$as_me:$LINENO: checking for $ac_word" >&5
3409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3410 if test "${ac_cv_prog_CC+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -n "$CC"; then
3414 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 if test -n "$CC"; then
3434 echo "$as_me:$LINENO: result: $CC" >&5
3435 echo "${ECHO_T}$CC" >&6
3437 echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3441 test -n "$CC" && break
3444 if test -z "$CC"; then
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 if test -n "$ac_ct_CC"; then
3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_ac_ct_CC="$ac_prog"
3466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475 if test -n "$ac_ct_CC"; then
3476 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3477 echo "${ECHO_T}$ac_ct_CC" >&6
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3483 test -n "$ac_ct_CC" && break
3492 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3493 See \`config.log' for more details." >&5
3494 echo "$as_me: error: no acceptable C compiler found in \$PATH
3495 See \`config.log' for more details." >&2;}
3496 { (exit 1); exit 1; }; }
3498 # Provide some information about the compiler.
3499 echo "$as_me:$LINENO:" \
3500 "checking for C compiler version" >&5
3501 ac_compiler=`set X $ac_compile; echo $2`
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3503 (eval $ac_compiler --version </dev/null >&5) 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3508 (eval $ac_compiler -v </dev/null >&5) 2>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }
3512 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3513 (eval $ac_compiler -V </dev/null >&5) 2>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3533 ac_clean_files_save=$ac_clean_files
3534 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3535 # Try to create an executable without -o first, disregard a.out.
3536 # It will help us diagnose broken compilers, and finding out an intuition
3538 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3539 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3540 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3541 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3542 (eval $ac_link_default) 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; then
3546 # Find the output, starting from the most likely. This scheme is
3547 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3550 # Be careful to initialize this variable, since it used to be cached.
3551 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3553 # b.out is created by i960 compilers.
3554 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3556 test -f "$ac_file" || continue
3558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3561 # This is the source file.
3564 # We found the default executable, but exeext='' is most
3568 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569 # FIXME: I believe we export ac_cv_exeext for Libtool,
3570 # but it would be cool to find out if it's true. Does anybody
3571 # maintain Libtool? --akim.
3579 echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3583 See \`config.log' for more details." >&5
3584 echo "$as_me: error: C compiler cannot create executables
3585 See \`config.log' for more details." >&2;}
3586 { (exit 77); exit 77; }; }
3589 ac_exeext=$ac_cv_exeext
3590 echo "$as_me:$LINENO: result: $ac_file" >&5
3591 echo "${ECHO_T}$ac_file" >&6
3593 # Check the compiler produces executables we can run. If not, either
3594 # the compiler is broken, or we cross compile.
3595 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3596 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3597 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3598 # If not cross compiling, check that we can run a simple program.
3599 if test "$cross_compiling" != yes; then
3600 if { ac_try='./$ac_file'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3608 if test "$cross_compiling" = maybe; then
3611 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3612 If you meant to cross compile, use \`--host'.
3613 See \`config.log' for more details." >&5
3614 echo "$as_me: error: cannot run C compiled programs.
3615 If you meant to cross compile, use \`--host'.
3616 See \`config.log' for more details." >&2;}
3617 { (exit 1); exit 1; }; }
3621 echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6
3624 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3625 ac_clean_files=$ac_clean_files_save
3626 # Check the compiler produces executables we can run. If not, either
3627 # the compiler is broken, or we cross compile.
3628 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3629 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3630 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3631 echo "${ECHO_T}$cross_compiling" >&6
3633 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3634 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3636 (eval $ac_link) 2>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; then
3640 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3642 # work properly (i.e., refer to `conftest.exe'), while it won't with
3644 for ac_file in conftest.exe conftest conftest.*; do
3645 test -f "$ac_file" || continue
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3656 See \`config.log' for more details." >&5
3657 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3658 See \`config.log' for more details." >&2;}
3659 { (exit 1); exit 1; }; }
3662 rm -f conftest$ac_cv_exeext
3663 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3664 echo "${ECHO_T}$ac_cv_exeext" >&6
3666 rm -f conftest.$ac_ext
3667 EXEEXT=$ac_cv_exeext
3669 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3670 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3671 if test "${ac_cv_objext+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3689 rm -f conftest.o conftest.obj
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; then
3695 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3707 See \`config.log' for more details." >&5
3708 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3709 See \`config.log' for more details." >&2;}
3710 { (exit 1); exit 1; }; }
3713 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3715 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3716 echo "${ECHO_T}$ac_cv_objext" >&6
3717 OBJEXT=$ac_cv_objext
3719 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3720 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3721 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 cat >conftest.$ac_ext <<_ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3742 rm -f conftest.$ac_objext
3743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744 (eval $ac_compile) 2>conftest.er1
3746 grep -v '^ *+' conftest.er1 >conftest.err
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try='test -z "$ac_c_werror_flag"
3752 || test ! -s conftest.err'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; } &&
3758 { ac_try='test -s conftest.$ac_objext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3775 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3777 GCC=`test $ac_compiler_gnu = yes && echo yes`
3778 ac_test_CFLAGS=${CFLAGS+set}
3779 ac_save_CFLAGS=$CFLAGS
3781 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3782 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3783 if test "${ac_cv_prog_cc_g+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 cat >conftest.$ac_ext <<_ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3805 grep -v '^ *+' conftest.er1 >conftest.err
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3832 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3833 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3834 if test "$ac_test_CFLAGS" = set; then
3835 CFLAGS=$ac_save_CFLAGS
3836 elif test $ac_cv_prog_cc_g = yes; then
3837 if test "$GCC" = yes; then
3843 if test "$GCC" = yes; then
3849 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3850 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3851 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 ac_cv_prog_cc_stdc=no
3856 cat >conftest.$ac_ext <<_ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3864 #include <sys/types.h>
3865 #include <sys/stat.h>
3866 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3867 struct buf { int x; };
3868 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3869 static char *e (p, i)
3875 static char *f (char * (*g) (char **, int), char **p, ...)
3880 s = g (p, va_arg (v,int));
3885 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3886 function prototypes and stuff, but not '\xHH' hex character constants.
3887 These don't provoke an error unfortunately, instead are silently treated
3888 as 'x'. The following induces an error, until -std1 is added to get
3889 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3890 array size at least. It's necessary to write '\x00'==0 to get something
3891 that's true only with -std1. */
3892 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3894 int test (int i, double x);
3895 struct s1 {int (*f) (int a);};
3896 struct s2 {int (*f) (double a);};
3897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3903 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3908 # Don't try gcc -ansi; that turns off useful extensions and
3909 # breaks some systems' header files.
3910 # AIX -qlanglvl=ansi
3911 # Ultrix and OSF/1 -std1
3912 # HP-UX 10.20 and later -Ae
3913 # HP-UX older versions -Aa -D_HPUX_SOURCE
3914 # SVR4 -Xc -D__EXTENSIONS__
3915 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917 CC="$ac_save_CC $ac_arg"
3918 rm -f conftest.$ac_objext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920 (eval $ac_compile) 2>conftest.er1
3922 grep -v '^ *+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try='test -s conftest.$ac_objext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_prog_cc_stdc=$ac_arg
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3947 rm -f conftest.err conftest.$ac_objext
3949 rm -f conftest.$ac_ext conftest.$ac_objext
3954 case "x$ac_cv_prog_cc_stdc" in
3956 echo "$as_me:$LINENO: result: none needed" >&5
3957 echo "${ECHO_T}none needed" >&6 ;;
3959 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3960 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3961 CC="$CC $ac_cv_prog_cc_stdc" ;;
3964 # Some people use a C++ compiler to compile C. Since we use `exit',
3965 # in C++ we need to declare it. In case someone uses the same compiler
3966 # for both compiling C and C++ we need to have the C++ compiler decide
3967 # the declaration of exit, since it's the most demanding environment.
3968 cat >conftest.$ac_ext <<_ACEOF
3973 rm -f conftest.$ac_objext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>conftest.er1
3977 grep -v '^ *+' conftest.er1 >conftest.err
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } &&
3982 { ac_try='test -z "$ac_c_werror_flag"
3983 || test ! -s conftest.err'
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; } &&
3989 { ac_try='test -s conftest.$ac_objext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 for ac_declaration in \
3997 'extern "C" void std::exit (int) throw (); using std::exit;' \
3998 'extern "C" void std::exit (int); using std::exit;' \
3999 'extern "C" void exit (int) throw ();' \
4000 'extern "C" void exit (int);' \
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4019 rm -f conftest.$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
4023 grep -v '^ *+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try='test -z "$ac_c_werror_flag"
4029 || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4068 grep -v '^ *+' conftest.er1 >conftest.err
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 if test -n "$ac_declaration"; then
4096 echo '#ifdef __cplusplus' >>confdefs.h
4097 echo $ac_declaration >>confdefs.h
4098 echo '#endif' >>confdefs.h
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4108 ac_cpp='$CPP $CPPFLAGS'
4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113 # Find a good install program. We prefer a C program (faster),
4114 # so one script is as good as another. But avoid the broken or
4115 # incompatible versions:
4116 # SysV /etc/install, /usr/sbin/install
4117 # SunOS /usr/etc/install
4118 # IRIX /sbin/install
4120 # AmigaOS /C/install, which installs bootblocks on floppy discs
4121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4124 # OS/2's system install, which has a completely different semantic
4125 # ./install, which can be erroneously created by make from ./install.sh.
4126 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4127 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4128 if test -z "$INSTALL"; then
4129 if test "${ac_cv_path_install+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 # Account for people who put trailing slashes in PATH elements.
4139 ./ | .// | /cC/* | \
4140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4144 # OSF1 and SCO ODT 3.0 have their own names for install.
4145 # Don't use installbsd from OSF since it installs stuff as root
4147 for ac_prog in ginstall scoinst install; do
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4150 if test $ac_prog = install &&
4151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4152 # AIX install. It has an incompatible calling convention.
4154 elif test $ac_prog = install &&
4155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4156 # program-specific install script used by HP pwplus--don't use.
4159 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4171 if test "${ac_cv_path_install+set}" = set; then
4172 INSTALL=$ac_cv_path_install
4174 # As a last resort, use the slow shell script. We don't cache a
4175 # path for INSTALL within a source directory, because that will
4176 # break other packages using the cache if that directory is
4177 # removed, or if the path is relative.
4178 INSTALL=$ac_install_sh
4181 echo "$as_me:$LINENO: result: $INSTALL" >&5
4182 echo "${ECHO_T}$INSTALL" >&6
4184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4185 # It thinks the first close brace ends the variable substitution.
4186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4193 # Put a plausible default for CC_FOR_BUILD in Makefile.
4194 if test "x$cross_compiling" = "xno"; then
4195 CC_FOR_BUILD='$(CC)'
4205 if test -n "$ac_tool_prefix"; then
4206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4208 echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4210 if test "${ac_cv_prog_RANLIB+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 if test -n "$RANLIB"; then
4214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 RANLIB=$ac_cv_prog_RANLIB
4233 if test -n "$RANLIB"; then
4234 echo "$as_me:$LINENO: result: $RANLIB" >&5
4235 echo "${ECHO_T}$RANLIB" >&6
4237 echo "$as_me:$LINENO: result: no" >&5
4238 echo "${ECHO_T}no" >&6
4242 if test -z "$ac_cv_prog_RANLIB"; then
4243 ac_ct_RANLIB=$RANLIB
4244 # Extract the first word of "ranlib", so it can be a program name with args.
4245 set dummy ranlib; ac_word=$2
4246 echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4248 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 if test -n "$ac_ct_RANLIB"; then
4252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_ac_ct_RANLIB="ranlib"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4272 if test -n "$ac_ct_RANLIB"; then
4273 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4274 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4276 echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4280 RANLIB=$ac_ct_RANLIB
4282 RANLIB="$ac_cv_prog_RANLIB"
4297 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4298 unistd.h values.h sys/param.h
4300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4302 echo "$as_me:$LINENO: checking for $ac_header" >&5
4303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4310 # Is the header compilable?
4311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 $ac_includes_default
4320 #include <$ac_header>
4322 rm -f conftest.$ac_objext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>conftest.er1
4326 grep -v '^ *+' conftest.er1 >conftest.err
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -z "$ac_c_werror_flag"
4332 || test ! -s conftest.err'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; } &&
4338 { ac_try='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_header_compiler=yes
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 ac_header_compiler=no
4351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4353 echo "${ECHO_T}$ac_header_compiler" >&6
4355 # Is the header present?
4356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4358 cat >conftest.$ac_ext <<_ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 #include <$ac_header>
4366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } >/dev/null; then
4374 if test -s conftest.err; then
4375 ac_cpp_err=$ac_c_preproc_warn_flag
4376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4383 if test -z "$ac_cpp_err"; then
4384 ac_header_preproc=yes
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 ac_header_preproc=no
4391 rm -f conftest.err conftest.$ac_ext
4392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4393 echo "${ECHO_T}$ac_header_preproc" >&6
4395 # So? What about this header?
4396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4402 ac_header_preproc=yes
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4419 ## ------------------------------------------ ##
4420 ## Report this to the AC_PACKAGE_NAME lists. ##
4421 ## ------------------------------------------ ##
4424 sed "s/^/$as_me: WARNING: /" >&2
4427 echo "$as_me:$LINENO: checking for $ac_header" >&5
4428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 eval "$as_ac_Header=\$ac_header_preproc"
4434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4439 cat >>confdefs.h <<_ACEOF
4440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4457 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4458 __argz_count __argz_stringify __argz_next
4460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4461 echo "$as_me:$LINENO: checking for $ac_func" >&5
4462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4463 if eval "test \"\${$as_ac_var+set}\" = set"; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 cat >conftest.$ac_ext <<_ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4474 #define $ac_func innocuous_$ac_func
4476 /* System header to define __stub macros and hopefully few prototypes,
4477 which can conflict with char $ac_func (); below.
4478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4479 <limits.h> exists even on freestanding compilers. */
4482 # include <limits.h>
4484 # include <assert.h>
4489 /* Override any gcc2 internal prototype to avoid an error. */
4494 /* We use char because int might match the return type of a gcc2
4495 builtin and then its argument prototype would still apply. */
4497 /* The GNU C library defines this for functions which it implements
4498 to always fail with ENOSYS. Some functions are actually named
4499 something starting with __ and the normal name is an alias. */
4500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4503 char (*f) () = $ac_func;
4512 return f != $ac_func;
4517 rm -f conftest.$ac_objext conftest$ac_exeext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519 (eval $ac_link) 2>conftest.er1
4521 grep -v '^ *+' conftest.er1 >conftest.err
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try='test -z "$ac_c_werror_flag"
4527 || test ! -s conftest.err'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest$ac_exeext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 eval "$as_ac_var=yes"
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4544 eval "$as_ac_var=no"
4546 rm -f conftest.err conftest.$ac_objext \
4547 conftest$ac_exeext conftest.$ac_ext
4549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4551 if test `eval echo '${'$as_ac_var'}'` = yes; then
4552 cat >>confdefs.h <<_ACEOF
4553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4560 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4562 for ac_func in stpcpy
4564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4565 echo "$as_me:$LINENO: checking for $ac_func" >&5
4566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4567 if eval "test \"\${$as_ac_var+set}\" = set"; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 cat >conftest.$ac_ext <<_ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4578 #define $ac_func innocuous_$ac_func
4580 /* System header to define __stub macros and hopefully few prototypes,
4581 which can conflict with char $ac_func (); below.
4582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583 <limits.h> exists even on freestanding compilers. */
4586 # include <limits.h>
4588 # include <assert.h>
4593 /* Override any gcc2 internal prototype to avoid an error. */
4598 /* We use char because int might match the return type of a gcc2
4599 builtin and then its argument prototype would still apply. */
4601 /* The GNU C library defines this for functions which it implements
4602 to always fail with ENOSYS. Some functions are actually named
4603 something starting with __ and the normal name is an alias. */
4604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4607 char (*f) () = $ac_func;
4616 return f != $ac_func;
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>conftest.er1
4625 grep -v '^ *+' conftest.er1 >conftest.err
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -z "$ac_c_werror_flag"
4631 || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest$ac_exeext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 eval "$as_ac_var=yes"
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4648 eval "$as_ac_var=no"
4650 rm -f conftest.err conftest.$ac_objext \
4651 conftest$ac_exeext conftest.$ac_ext
4653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4655 if test `eval echo '${'$as_ac_var'}'` = yes; then
4656 cat >>confdefs.h <<_ACEOF
4657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4664 if test "${ac_cv_func_stpcpy}" = "yes"; then
4665 cat >>confdefs.h <<\_ACEOF
4666 #define HAVE_STPCPY 1
4671 if test $ac_cv_header_locale_h = yes; then
4672 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4673 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4674 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 cat >conftest.$ac_ext <<_ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4692 rm -f conftest.$ac_objext conftest$ac_exeext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4694 (eval $ac_link) 2>conftest.er1
4696 grep -v '^ *+' conftest.er1 >conftest.err
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest$ac_exeext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 am_cv_val_LC_MESSAGES=yes
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 am_cv_val_LC_MESSAGES=no
4721 rm -f conftest.err conftest.$ac_objext \
4722 conftest$ac_exeext conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4725 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4726 if test $am_cv_val_LC_MESSAGES = yes; then
4727 cat >>confdefs.h <<\_ACEOF
4728 #define HAVE_LC_MESSAGES 1
4733 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4734 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4735 # Check whether --enable-nls or --disable-nls was given.
4736 if test "${enable_nls+set}" = set; then
4737 enableval="$enable_nls"
4742 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4743 echo "${ECHO_T}$USE_NLS" >&6
4746 USE_INCLUDED_LIBINTL=no
4748 if test "$USE_NLS" = "yes"; then
4749 cat >>confdefs.h <<\_ACEOF
4750 #define ENABLE_NLS 1
4753 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4754 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4756 # Check whether --with-included-gettext or --without-included-gettext was given.
4757 if test "${with_included_gettext+set}" = set; then
4758 withval="$with_included_gettext"
4759 nls_cv_force_use_gnu_gettext=$withval
4761 nls_cv_force_use_gnu_gettext=no
4763 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4764 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4766 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4767 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4769 nls_cv_header_libgt=
4772 if test "${ac_cv_header_libintl_h+set}" = set; then
4773 echo "$as_me:$LINENO: checking for libintl.h" >&5
4774 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4775 if test "${ac_cv_header_libintl_h+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4779 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4781 # Is the header compilable?
4782 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4783 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4784 cat >conftest.$ac_ext <<_ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 $ac_includes_default
4791 #include <libintl.h>
4793 rm -f conftest.$ac_objext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795 (eval $ac_compile) 2>conftest.er1
4797 grep -v '^ *+' conftest.er1 >conftest.err
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -z "$ac_c_werror_flag"
4803 || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_header_compiler=yes
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 ac_header_compiler=no
4822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4824 echo "${ECHO_T}$ac_header_compiler" >&6
4826 # Is the header present?
4827 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4828 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4829 cat >conftest.$ac_ext <<_ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 #include <libintl.h>
4837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4840 grep -v '^ *+' conftest.er1 >conftest.err
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } >/dev/null; then
4845 if test -s conftest.err; then
4846 ac_cpp_err=$ac_c_preproc_warn_flag
4847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4854 if test -z "$ac_cpp_err"; then
4855 ac_header_preproc=yes
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 ac_header_preproc=no
4862 rm -f conftest.err conftest.$ac_ext
4863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4864 echo "${ECHO_T}$ac_header_preproc" >&6
4866 # So? What about this header?
4867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4869 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4870 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4871 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4872 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4873 ac_header_preproc=yes
4876 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4877 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4879 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4881 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4883 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4885 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4887 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4890 ## ------------------------------------------ ##
4891 ## Report this to the AC_PACKAGE_NAME lists. ##
4892 ## ------------------------------------------ ##
4895 sed "s/^/$as_me: WARNING: /" >&2
4898 echo "$as_me:$LINENO: checking for libintl.h" >&5
4899 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4900 if test "${ac_cv_header_libintl_h+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 ac_cv_header_libintl_h=$ac_header_preproc
4905 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4906 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4909 if test $ac_cv_header_libintl_h = yes; then
4910 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4911 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4912 if test "${gt_cv_func_gettext_libc+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 cat >conftest.$ac_ext <<_ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #include <libintl.h>
4925 return (int) gettext ("")
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 gt_cv_func_gettext_libc=yes
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 gt_cv_func_gettext_libc=no
4959 rm -f conftest.err conftest.$ac_objext \
4960 conftest$ac_exeext conftest.$ac_ext
4962 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4963 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4965 if test "$gt_cv_func_gettext_libc" != "yes"; then
4966 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4967 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4968 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 ac_check_lib_save_LIBS=$LIBS
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4980 /* Override any gcc2 internal prototype to avoid an error. */
4984 /* We use char because int might match the return type of a gcc2
4985 builtin and then its argument prototype would still apply. */
4986 char bindtextdomain ();
4995 rm -f conftest.$ac_objext conftest$ac_exeext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4997 (eval $ac_link) 2>conftest.er1
4999 grep -v '^ *+' conftest.er1 >conftest.err
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try='test -z "$ac_c_werror_flag"
5005 || test ! -s conftest.err'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; } &&
5011 { ac_try='test -s conftest$ac_exeext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 ac_cv_lib_intl_bindtextdomain=yes
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 ac_cv_lib_intl_bindtextdomain=no
5024 rm -f conftest.err conftest.$ac_objext \
5025 conftest$ac_exeext conftest.$ac_ext
5026 LIBS=$ac_check_lib_save_LIBS
5028 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5029 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5030 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5031 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5032 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5033 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5046 return (int) gettext ("")
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag"
5061 || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest$ac_exeext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 gt_cv_func_gettext_libintl=yes
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 gt_cv_func_gettext_libintl=no
5080 rm -f conftest.err conftest.$ac_objext \
5081 conftest$ac_exeext conftest.$ac_ext
5083 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5084 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5089 if test "$gt_cv_func_gettext_libc" = "yes" \
5090 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5091 cat >>confdefs.h <<\_ACEOF
5092 #define HAVE_GETTEXT 1
5095 # Extract the first word of "msgfmt", so it can be a program name with args.
5096 set dummy msgfmt; ac_word=$2
5097 echo "$as_me:$LINENO: checking for $ac_word" >&5
5098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5099 if test "${ac_cv_path_MSGFMT+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5108 for ac_dir in $PATH; do
5109 test -z "$ac_dir" && ac_dir=.
5110 if test -f $ac_dir/$ac_word; then
5111 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5112 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5118 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5122 MSGFMT="$ac_cv_path_MSGFMT"
5123 if test -n "$MSGFMT"; then
5124 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5125 echo "${ECHO_T}$MSGFMT" >&6
5127 echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6
5130 if test "$MSGFMT" != "no"; then
5132 for ac_func in dcgettext
5134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5135 echo "$as_me:$LINENO: checking for $ac_func" >&5
5136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_var+set}\" = set"; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5148 #define $ac_func innocuous_$ac_func
5150 /* System header to define __stub macros and hopefully few prototypes,
5151 which can conflict with char $ac_func (); below.
5152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5153 <limits.h> exists even on freestanding compilers. */
5156 # include <limits.h>
5158 # include <assert.h>
5163 /* Override any gcc2 internal prototype to avoid an error. */
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5171 /* The GNU C library defines this for functions which it implements
5172 to always fail with ENOSYS. Some functions are actually named
5173 something starting with __ and the normal name is an alias. */
5174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5177 char (*f) () = $ac_func;
5186 return f != $ac_func;
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>conftest.er1
5195 grep -v '^ *+' conftest.er1 >conftest.err
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
5200 { ac_try='test -z "$ac_c_werror_flag"
5201 || test ! -s conftest.err'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; } &&
5207 { ac_try='test -s conftest$ac_exeext'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 eval "$as_ac_var=yes"
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 eval "$as_ac_var=no"
5220 rm -f conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5225 if test `eval echo '${'$as_ac_var'}'` = yes; then
5226 cat >>confdefs.h <<_ACEOF
5227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5233 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5234 set dummy gmsgfmt; ac_word=$2
5235 echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5263 GMSGFMT=$ac_cv_path_GMSGFMT
5265 if test -n "$GMSGFMT"; then
5266 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5267 echo "${ECHO_T}$GMSGFMT" >&6
5269 echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5273 # Extract the first word of "xgettext", so it can be a program name with args.
5274 set dummy xgettext; ac_word=$2
5275 echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5277 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5286 for ac_dir in $PATH; do
5287 test -z "$ac_dir" && ac_dir=.
5288 if test -f $ac_dir/$ac_word; then
5289 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5290 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5296 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5300 XGETTEXT="$ac_cv_path_XGETTEXT"
5301 if test -n "$XGETTEXT"; then
5302 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5303 echo "${ECHO_T}$XGETTEXT" >&6
5305 echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6
5309 cat >conftest.$ac_ext <<_ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5319 extern int _nl_msg_cat_cntr;
5320 return _nl_msg_cat_cntr
5325 rm -f conftest.$ac_objext conftest$ac_exeext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag"
5335 || test ! -s conftest.err'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5356 rm -f conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5367 if test "$CATOBJEXT" = "NONE"; then
5368 nls_cv_use_gnu_gettext=yes
5372 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5373 INTLOBJS="\$(GETTOBJS)"
5374 # Extract the first word of "msgfmt", so it can be a program name with args.
5375 set dummy msgfmt; ac_word=$2
5376 echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378 if test "${ac_cv_path_MSGFMT+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5387 for ac_dir in $PATH; do
5388 test -z "$ac_dir" && ac_dir=.
5389 if test -f $ac_dir/$ac_word; then
5390 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5391 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5397 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5401 MSGFMT="$ac_cv_path_MSGFMT"
5402 if test -n "$MSGFMT"; then
5403 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5404 echo "${ECHO_T}$MSGFMT" >&6
5406 echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6
5410 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5411 set dummy gmsgfmt; ac_word=$2
5412 echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5414 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5440 GMSGFMT=$ac_cv_path_GMSGFMT
5442 if test -n "$GMSGFMT"; then
5443 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5444 echo "${ECHO_T}$GMSGFMT" >&6
5446 echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6
5450 # Extract the first word of "xgettext", so it can be a program name with args.
5451 set dummy xgettext; ac_word=$2
5452 echo "$as_me:$LINENO: checking for $ac_word" >&5
5453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5454 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5463 for ac_dir in $PATH; do
5464 test -z "$ac_dir" && ac_dir=.
5465 if test -f $ac_dir/$ac_word; then
5466 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5467 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5473 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5477 XGETTEXT="$ac_cv_path_XGETTEXT"
5478 if test -n "$XGETTEXT"; then
5479 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5480 echo "${ECHO_T}$XGETTEXT" >&6
5482 echo "$as_me:$LINENO: result: no" >&5
5483 echo "${ECHO_T}no" >&6
5487 USE_INCLUDED_LIBINTL=yes
5491 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5493 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5494 nls_cv_header_intl=libintl.h
5495 nls_cv_header_libgt=libgettext.h
5498 if test "$XGETTEXT" != ":"; then
5499 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5502 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5503 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5508 # We need to process the po/ directory.
5512 nls_cv_header_intl=libintl.h
5513 nls_cv_header_libgt=libgettext.h
5516 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5517 # because some of the sources are only built for this goal.
5518 if test "$PACKAGE" = gettext; then
5520 USE_INCLUDED_LIBINTL=yes
5523 for lang in $ALL_LINGUAS; do
5524 GMOFILES="$GMOFILES $lang.gmo"
5525 POFILES="$POFILES $lang.po"
5541 if test "x$CATOBJEXT" != "x"; then
5542 if test "x$ALL_LINGUAS" = "x"; then
5545 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5546 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5548 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5549 case "$ALL_LINGUAS" in
5550 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5553 LINGUAS=$NEW_LINGUAS
5554 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5555 echo "${ECHO_T}$LINGUAS" >&6
5558 if test -n "$LINGUAS"; then
5559 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5563 if test $ac_cv_header_locale_h = yes; then
5564 INCLUDE_LOCALE_H="#include <locale.h>"
5567 /* The system does not provide the header <locale.h>. Take care yourself. */"
5571 if test -f $srcdir/po2tbl.sed.in; then
5572 if test "$CATOBJEXT" = ".cat"; then
5573 if test "${ac_cv_header_linux_version_h+set}" = set; then
5574 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5575 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5576 if test "${ac_cv_header_linux_version_h+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5580 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5582 # Is the header compilable?
5583 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5584 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5585 cat >conftest.$ac_ext <<_ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 $ac_includes_default
5592 #include <linux/version.h>
5594 rm -f conftest.$ac_objext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_header_compiler=yes
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ac_header_compiler=no
5623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5625 echo "${ECHO_T}$ac_header_compiler" >&6
5627 # Is the header present?
5628 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5629 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5630 cat >conftest.$ac_ext <<_ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 #include <linux/version.h>
5638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } >/dev/null; then
5646 if test -s conftest.err; then
5647 ac_cpp_err=$ac_c_preproc_warn_flag
5648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5655 if test -z "$ac_cpp_err"; then
5656 ac_header_preproc=yes
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5661 ac_header_preproc=no
5663 rm -f conftest.err conftest.$ac_ext
5664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5665 echo "${ECHO_T}$ac_header_preproc" >&6
5667 # So? What about this header?
5668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5670 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5671 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5672 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5673 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5674 ac_header_preproc=yes
5677 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5678 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5679 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5680 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5681 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5682 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5683 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5684 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5685 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5686 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5687 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5688 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5691 ## ------------------------------------------ ##
5692 ## Report this to the AC_PACKAGE_NAME lists. ##
5693 ## ------------------------------------------ ##
5696 sed "s/^/$as_me: WARNING: /" >&2
5699 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5700 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5701 if test "${ac_cv_header_linux_version_h+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 ac_cv_header_linux_version_h=$ac_header_preproc
5706 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5707 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5710 if test $ac_cv_header_linux_version_h = yes; then
5718 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5720 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5721 $srcdir/po2tbl.sed.in > po2tbl.sed
5724 if test "$PACKAGE" = "gettext"; then
5734 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5740 if test -d $srcdir/po; then
5741 test -d po || mkdir po
5742 if test "x$srcdir" != "x."; then
5743 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5744 posrcprefix="$srcdir/"
5746 posrcprefix="../$srcdir/"
5752 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5753 < $srcdir/po/POTFILES.in > po/POTFILES
5757 # Check for common headers.
5758 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5759 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5765 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5769 echo "$as_me:$LINENO: checking for $ac_header" >&5
5770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5777 # Is the header compilable?
5778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 $ac_includes_default
5787 #include <$ac_header>
5789 rm -f conftest.$ac_objext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5791 (eval $ac_compile) 2>conftest.er1
5793 grep -v '^ *+' conftest.er1 >conftest.err
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try='test -z "$ac_c_werror_flag"
5799 || test ! -s conftest.err'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; } &&
5805 { ac_try='test -s conftest.$ac_objext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_header_compiler=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_header_compiler=no
5818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5820 echo "${ECHO_T}$ac_header_compiler" >&6
5822 # Is the header present?
5823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5825 cat >conftest.$ac_ext <<_ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #include <$ac_header>
5833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } >/dev/null; then
5841 if test -s conftest.err; then
5842 ac_cpp_err=$ac_c_preproc_warn_flag
5843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5850 if test -z "$ac_cpp_err"; then
5851 ac_header_preproc=yes
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5856 ac_header_preproc=no
5858 rm -f conftest.err conftest.$ac_ext
5859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5860 echo "${ECHO_T}$ac_header_preproc" >&6
5862 # So? What about this header?
5863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5869 ac_header_preproc=yes
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5886 ## ------------------------------------------ ##
5887 ## Report this to the AC_PACKAGE_NAME lists. ##
5888 ## ------------------------------------------ ##
5891 sed "s/^/$as_me: WARNING: /" >&2
5894 echo "$as_me:$LINENO: checking for $ac_header" >&5
5895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 eval "$as_ac_Header=\$ac_header_preproc"
5901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5906 cat >>confdefs.h <<_ACEOF
5907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5916 for ac_header in sys/time.h sys/resource.h
5918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5920 echo "$as_me:$LINENO: checking for $ac_header" >&5
5921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5928 # Is the header compilable?
5929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5931 cat >conftest.$ac_ext <<_ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 $ac_includes_default
5938 #include <$ac_header>
5940 rm -f conftest.$ac_objext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>conftest.er1
5944 grep -v '^ *+' conftest.er1 >conftest.err
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try='test -z "$ac_c_werror_flag"
5950 || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest.$ac_objext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 ac_header_compiler=yes
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_header_compiler=no
5969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5971 echo "${ECHO_T}$ac_header_compiler" >&6
5973 # Is the header present?
5974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <$ac_header>
5984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } >/dev/null; then
5992 if test -s conftest.err; then
5993 ac_cpp_err=$ac_c_preproc_warn_flag
5994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6001 if test -z "$ac_cpp_err"; then
6002 ac_header_preproc=yes
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_header_preproc=no
6009 rm -f conftest.err conftest.$ac_ext
6010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6011 echo "${ECHO_T}$ac_header_preproc" >&6
6013 # So? What about this header?
6014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6020 ac_header_preproc=yes
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6037 ## ------------------------------------------ ##
6038 ## Report this to the AC_PACKAGE_NAME lists. ##
6039 ## ------------------------------------------ ##
6042 sed "s/^/$as_me: WARNING: /" >&2
6045 echo "$as_me:$LINENO: checking for $ac_header" >&5
6046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 eval "$as_ac_Header=\$ac_header_preproc"
6052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6057 cat >>confdefs.h <<_ACEOF
6058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6067 for ac_header in fcntl.h fpu_control.h
6069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071 echo "$as_me:$LINENO: checking for $ac_header" >&5
6072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6079 # Is the header compilable?
6080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 $ac_includes_default
6089 #include <$ac_header>
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag"
6101 || test ! -s conftest.err'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_header_compiler=yes
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 ac_header_compiler=no
6120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6122 echo "${ECHO_T}$ac_header_compiler" >&6
6124 # Is the header present?
6125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <$ac_header>
6135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6138 grep -v '^ *+' conftest.er1 >conftest.err
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev/null; then
6143 if test -s conftest.err; then
6144 ac_cpp_err=$ac_c_preproc_warn_flag
6145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6152 if test -z "$ac_cpp_err"; then
6153 ac_header_preproc=yes
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ac_header_preproc=no
6160 rm -f conftest.err conftest.$ac_ext
6161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6162 echo "${ECHO_T}$ac_header_preproc" >&6
6164 # So? What about this header?
6165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6171 ac_header_preproc=yes
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6188 ## ------------------------------------------ ##
6189 ## Report this to the AC_PACKAGE_NAME lists. ##
6190 ## ------------------------------------------ ##
6193 sed "s/^/$as_me: WARNING: /" >&2
6196 echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 eval "$as_ac_Header=\$ac_header_preproc"
6203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6208 cat >>confdefs.h <<_ACEOF
6209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6219 for ac_header in dlfcn.h errno.h sys/stat.h
6221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6223 echo "$as_me:$LINENO: checking for $ac_header" >&5
6224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6231 # Is the header compilable?
6232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6241 #include <$ac_header>
6243 rm -f conftest.$ac_objext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245 (eval $ac_compile) 2>conftest.er1
6247 grep -v '^ *+' conftest.er1 >conftest.err
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try='test -z "$ac_c_werror_flag"
6253 || test ! -s conftest.err'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; } &&
6259 { ac_try='test -s conftest.$ac_objext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_header_compiler=yes
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 ac_header_compiler=no
6272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6274 echo "${ECHO_T}$ac_header_compiler" >&6
6276 # Is the header present?
6277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6279 cat >conftest.$ac_ext <<_ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 #include <$ac_header>
6287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } >/dev/null; then
6295 if test -s conftest.err; then
6296 ac_cpp_err=$ac_c_preproc_warn_flag
6297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6304 if test -z "$ac_cpp_err"; then
6305 ac_header_preproc=yes
6307 echo "$as_me: failed program was:" >&5
6308 sed 's/^/| /' conftest.$ac_ext >&5
6310 ac_header_preproc=no
6312 rm -f conftest.err conftest.$ac_ext
6313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6314 echo "${ECHO_T}$ac_header_preproc" >&6
6316 # So? What about this header?
6317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6323 ac_header_preproc=yes
6326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6340 ## ------------------------------------------ ##
6341 ## Report this to the AC_PACKAGE_NAME lists. ##
6342 ## ------------------------------------------ ##
6345 sed "s/^/$as_me: WARNING: /" >&2
6348 echo "$as_me:$LINENO: checking for $ac_header" >&5
6349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 eval "$as_ac_Header=\$ac_header_preproc"
6355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6360 cat >>confdefs.h <<_ACEOF
6361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6372 for ac_func in getrusage time sigaction __setfpucw
6374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6375 echo "$as_me:$LINENO: checking for $ac_func" >&5
6376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6377 if eval "test \"\${$as_ac_var+set}\" = set"; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 cat >conftest.$ac_ext <<_ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6388 #define $ac_func innocuous_$ac_func
6390 /* System header to define __stub macros and hopefully few prototypes,
6391 which can conflict with char $ac_func (); below.
6392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6393 <limits.h> exists even on freestanding compilers. */
6396 # include <limits.h>
6398 # include <assert.h>
6403 /* Override any gcc2 internal prototype to avoid an error. */
6408 /* We use char because int might match the return type of a gcc2
6409 builtin and then its argument prototype would still apply. */
6411 /* The GNU C library defines this for functions which it implements
6412 to always fail with ENOSYS. Some functions are actually named
6413 something starting with __ and the normal name is an alias. */
6414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6417 char (*f) () = $ac_func;
6426 return f != $ac_func;
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433 (eval $ac_link) 2>conftest.er1
6435 grep -v '^ *+' conftest.er1 >conftest.err
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_c_werror_flag"
6441 || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 eval "$as_ac_var=yes"
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 eval "$as_ac_var=no"
6460 rm -f conftest.err conftest.$ac_objext \
6461 conftest$ac_exeext conftest.$ac_ext
6463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6465 if test `eval echo '${'$as_ac_var'}'` = yes; then
6466 cat >>confdefs.h <<_ACEOF
6467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6474 # Check for socket libraries
6476 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6477 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6478 if test "${ac_cv_lib_socket_bind+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 ac_check_lib_save_LIBS=$LIBS
6482 LIBS="-lsocket $LIBS"
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6490 /* Override any gcc2 internal prototype to avoid an error. */
6494 /* We use char because int might match the return type of a gcc2
6495 builtin and then its argument prototype would still apply. */
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6507 (eval $ac_link) 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_c_werror_flag"
6515 || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest$ac_exeext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 ac_cv_lib_socket_bind=yes
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 ac_cv_lib_socket_bind=no
6534 rm -f conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6536 LIBS=$ac_check_lib_save_LIBS
6538 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6539 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6540 if test $ac_cv_lib_socket_bind = yes; then
6541 cat >>confdefs.h <<_ACEOF
6542 #define HAVE_LIBSOCKET 1
6545 LIBS="-lsocket $LIBS"
6550 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6551 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6552 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 ac_check_lib_save_LIBS=$LIBS
6557 cat >conftest.$ac_ext <<_ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6564 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6570 char gethostbyname ();
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>conftest.er1
6583 grep -v '^ *+' conftest.er1 >conftest.err
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest$ac_exeext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 ac_cv_lib_nsl_gethostbyname=yes
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_cv_lib_nsl_gethostbyname=no
6608 rm -f conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610 LIBS=$ac_check_lib_save_LIBS
6612 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6613 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6614 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6615 cat >>confdefs.h <<_ACEOF
6616 #define HAVE_LIBNSL 1
6624 . ${srcdir}/../../bfd/configure.host
6628 USE_MAINTAINER_MODE=no
6629 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6630 if test "${enable_maintainer_mode+set}" = set; then
6631 enableval="$enable_maintainer_mode"
6632 case "${enableval}" in
6633 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6635 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6636 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6637 { (exit 1); exit 1; }; }; MAINT="#" ;;
6639 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6640 echo "Setting maintainer mode" 6>&1
6647 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6648 if test "${enable_sim_bswap+set}" = set; then
6649 enableval="$enable_sim_bswap"
6650 case "${enableval}" in
6651 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6652 no) sim_bswap="-DWITH_BSWAP=0";;
6653 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6654 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6655 { (exit 1); exit 1; }; }; sim_bswap="";;
6657 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6658 echo "Setting bswap flags = $sim_bswap" 6>&1
6665 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6666 if test "${enable_sim_cflags+set}" = set; then
6667 enableval="$enable_sim_cflags"
6668 case "${enableval}" in
6669 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6670 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6671 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6672 { (exit 1); exit 1; }; }; sim_cflags="";;
6674 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6676 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6677 echo "Setting sim cflags = $sim_cflags" 6>&1
6684 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6685 if test "${enable_sim_debug+set}" = set; then
6686 enableval="$enable_sim_debug"
6687 case "${enableval}" in
6688 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6689 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6690 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6692 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6693 echo "Setting sim debug = $sim_debug" 6>&1
6700 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6701 if test "${enable_sim_stdio+set}" = set; then
6702 enableval="$enable_sim_stdio"
6703 case "${enableval}" in
6704 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6705 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6706 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6707 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6708 { (exit 1); exit 1; }; }; sim_stdio="";;
6710 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6711 echo "Setting stdio flags = $sim_stdio" 6>&1
6718 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6719 if test "${enable_sim_trace+set}" = set; then
6720 enableval="$enable_sim_trace"
6721 case "${enableval}" in
6722 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6723 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6725 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6728 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6729 if test x"$sim_trace" = x; then
6730 sim_trace="-DWITH_TRACE='(TRACE_$x"
6732 sim_trace="${sim_trace}|TRACE_$x"
6735 sim_trace="$sim_trace)'" ;;
6737 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6738 echo "Setting sim trace = $sim_trace" 6>&1
6745 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6746 if test "${enable_sim_profile+set}" = set; then
6747 enableval="$enable_sim_profile"
6748 case "${enableval}" in
6749 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6750 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6752 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6755 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6756 if test x"$sim_profile" = x; then
6757 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6759 sim_profile="${sim_profile}|PROFILE_$x"
6762 sim_profile="$sim_profile)'" ;;
6764 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6765 echo "Setting sim profile = $sim_profile" 6>&1
6768 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6772 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6773 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6774 if test "${ac_cv_type_signal+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 cat >conftest.$ac_ext <<_ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 #include <sys/types.h>
6789 extern "C" void (*signal (int, void (*)(int)))(int);
6791 void (*signal ()) ();
6802 rm -f conftest.$ac_objext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 (eval $ac_compile) 2>conftest.er1
6806 grep -v '^ *+' conftest.er1 >conftest.err
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
6818 { ac_try='test -s conftest.$ac_objext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 ac_cv_type_signal=void
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 ac_cv_type_signal=int
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6833 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6834 echo "${ECHO_T}$ac_cv_type_signal" >&6
6836 cat >>confdefs.h <<_ACEOF
6837 #define RETSIGTYPE $ac_cv_type_signal
6847 sim_link_links=tconfig.h
6848 if test -f ${srcdir}/tconfig.in
6850 sim_link_files=tconfig.in
6852 sim_link_files=../common/tconfig.in
6855 # targ-vals.def points to the libc macro description file.
6857 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6859 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6860 sim_link_links="${sim_link_links} targ-vals.def"
6865 # NOTE: Don't add -Wall or -Wunused, they both include
6866 # -Wunused-parameter which reports bogus warnings.
6867 # NOTE: If you add to this list, remember to update
6868 # gdb/doc/gdbint.texinfo.
6869 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
6870 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
6871 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
6872 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
6873 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
6874 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
6875 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
6876 # -Woverloaded-virtual -Winline -Werror"
6877 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6878 if test "${enable_build_warnings+set}" = set; then
6879 enableval="$enable_build_warnings"
6880 case "${enableval}" in
6882 no) build_warnings="-w";;
6883 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6884 build_warnings="${build_warnings} ${t}";;
6885 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6886 build_warnings="${t} ${build_warnings}";;
6887 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6889 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
6890 echo "Setting compiler warning flags = $build_warnings" 6>&1
6892 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
6893 if test "${enable_sim_build_warnings+set}" = set; then
6894 enableval="$enable_sim_build_warnings"
6895 case "${enableval}" in
6897 no) build_warnings="-w";;
6898 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6899 build_warnings="${build_warnings} ${t}";;
6900 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6901 build_warnings="${t} ${build_warnings}";;
6902 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6904 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
6905 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6909 if test "x${build_warnings}" != x -a "x$GCC" = xyes
6911 echo "$as_me:$LINENO: checking compiler warning flags" >&5
6912 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
6913 # Separate out the -Werror flag as some files just cannot be
6914 # compiled with it enabled.
6915 for w in ${build_warnings}; do
6917 -Werr*) WERROR_CFLAGS=-Werror ;;
6918 *) # Check that GCC accepts it
6919 saved_CFLAGS="$CFLAGS"
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6936 rm -f conftest.$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>conftest.er1
6940 grep -v '^ *+' conftest.er1 >conftest.err
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_c_werror_flag"
6946 || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest.$ac_objext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 WARN_CFLAGS="${WARN_CFLAGS} $w"
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6965 CFLAGS="$saved_CFLAGS"
6968 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
6969 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
6974 for ac_header in unistd.h
6976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6978 echo "$as_me:$LINENO: checking for $ac_header" >&5
6979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6986 # Is the header compilable?
6987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 $ac_includes_default
6996 #include <$ac_header>
6998 rm -f conftest.$ac_objext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000 (eval $ac_compile) 2>conftest.er1
7002 grep -v '^ *+' conftest.er1 >conftest.err
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -z "$ac_c_werror_flag"
7008 || test ! -s conftest.err'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; } &&
7014 { ac_try='test -s conftest.$ac_objext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 ac_header_compiler=yes
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 ac_header_compiler=no
7027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7029 echo "${ECHO_T}$ac_header_compiler" >&6
7031 # Is the header present?
7032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7034 cat >conftest.$ac_ext <<_ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 #include <$ac_header>
7042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7045 grep -v '^ *+' conftest.er1 >conftest.err
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } >/dev/null; then
7050 if test -s conftest.err; then
7051 ac_cpp_err=$ac_c_preproc_warn_flag
7052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7059 if test -z "$ac_cpp_err"; then
7060 ac_header_preproc=yes
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_header_preproc=no
7067 rm -f conftest.err conftest.$ac_ext
7068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7069 echo "${ECHO_T}$ac_header_preproc" >&6
7071 # So? What about this header?
7072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7078 ac_header_preproc=yes
7081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7095 ## ------------------------------------------ ##
7096 ## Report this to the AC_PACKAGE_NAME lists. ##
7097 ## ------------------------------------------ ##
7100 sed "s/^/$as_me: WARNING: /" >&2
7103 echo "$as_me:$LINENO: checking for $ac_header" >&5
7104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 eval "$as_ac_Header=\$ac_header_preproc"
7110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7115 cat >>confdefs.h <<_ACEOF
7116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7126 ac_sources="$sim_link_files"
7127 ac_dests="$sim_link_links"
7128 while test -n "$ac_sources"; do
7129 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7130 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7131 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7133 ac_config_links="$ac_config_links $ac_config_links_1"
7136 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7137 cgen_breaks="break cgen_rtx_error";
7140 ac_config_files="$ac_config_files Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"
7141 ac_config_commands="$ac_config_commands default"
7142 cat >confcache <<\_ACEOF
7143 # This file is a shell script that caches the results of configure
7144 # tests run on this system so they can be shared between configure
7145 # scripts and configure runs, see configure's option --config-cache.
7146 # It is not useful on other systems. If it contains results you don't
7147 # want to keep, you may remove or edit it.
7149 # config.status only pays attention to the cache file if you give it
7150 # the --recheck option to rerun configure.
7152 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7158 # The following way of writing the cache mishandles newlines in values,
7159 # but we know of no workaround that is simple, portable, and efficient.
7160 # So, don't put newlines in cache variables' values.
7161 # Ultrix sh set writes to stderr and can't be redirected directly,
7162 # and sets the high bit in the cache file unless we assign to the vars.
7165 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7167 # `set' does not quote correctly, so add quotes (double-quote
7168 # substitution turns \\\\ into \\, and sed turns \\ into \).
7171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7174 # `set' quotes correctly as required by POSIX, so do not add quotes.
7176 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7185 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7187 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7188 if test -w $cache_file; then
7189 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7190 cat confcache >$cache_file
7192 echo "not updating unwritable cache $cache_file"
7197 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7198 # Let make expand exec_prefix.
7199 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7201 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7202 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7203 # trailing colons and then remove the whole line if VPATH becomes empty
7204 # (actually we leave an empty line to preserve line numbers).
7205 if test "x$srcdir" = x.; then
7206 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7207 s/:*\$(srcdir):*/:/;
7208 s/:*\${srcdir}:*/:/;
7210 s/^\([^=]*=[ ]*\):*/\1/;
7216 DEFS=-DHAVE_CONFIG_H
7220 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7221 # 1. Remove the extension, and $U if already installed.
7222 ac_i=`echo "$ac_i" |
7223 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7225 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7226 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7230 LTLIBOBJS=$ac_ltlibobjs
7234 : ${CONFIG_STATUS=./config.status}
7235 ac_clean_files_save=$ac_clean_files
7236 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7237 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7238 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7239 cat >$CONFIG_STATUS <<_ACEOF
7241 # Generated by $as_me.
7242 # Run this file to recreate the current configuration.
7243 # Compiler output produced by configure, useful for debugging
7244 # configure, is in config.log if it exists.
7249 SHELL=\${CONFIG_SHELL-$SHELL}
7252 cat >>$CONFIG_STATUS <<\_ACEOF
7253 ## --------------------- ##
7254 ## M4sh Initialization. ##
7255 ## --------------------- ##
7257 # Be Bourne compatible
7258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7261 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7262 # is contrary to our usage. Disable this feature.
7263 alias -g '${1+"$@"}'='"$@"'
7264 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7267 DUALCASE=1; export DUALCASE # for MKS sh
7269 # Support unset when possible.
7270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7277 # Work around bugs in pre-3.0 UWIN ksh.
7278 $as_unset ENV MAIL MAILPATH
7285 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7286 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7287 LC_TELEPHONE LC_TIME
7289 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7290 eval $as_var=C; export $as_var
7296 # Required to use basename.
7297 if expr a : '\(a\)' >/dev/null 2>&1; then
7303 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7304 as_basename=basename
7310 # Name of the executable.
7311 as_me=`$as_basename "$0" ||
7312 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7313 X"$0" : 'X\(//\)$' \| \
7314 X"$0" : 'X\(/\)$' \| \
7315 . : '\(.\)' 2>/dev/null ||
7317 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7318 /^X\/\(\/\/\)$/{ s//\1/; q; }
7319 /^X\/\(\/\).*/{ s//\1/; q; }
7323 # PATH needs CR, and LINENO needs CR and PATH.
7324 # Avoid depending upon Character Ranges.
7325 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7326 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7327 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7328 as_cr_digits='0123456789'
7329 as_cr_alnum=$as_cr_Letters$as_cr_digits
7331 # The user is always right.
7332 if test "${PATH_SEPARATOR+set}" != set; then
7333 echo "#! /bin/sh" >conf$$.sh
7334 echo "exit 0" >>conf$$.sh
7336 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7347 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7348 test "x$as_lineno_1" != "x$as_lineno_2" &&
7349 test "x$as_lineno_3" = "x$as_lineno_2" || {
7350 # Find who we are. Look in the path if we contain no path at all
7353 *[\\/]* ) as_myself=$0 ;;
7354 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7364 # We did not find ourselves, most probably we were run as `sh COMMAND'
7365 # in which case we are not to be found in the path.
7366 if test "x$as_myself" = x; then
7369 if test ! -f "$as_myself"; then
7370 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7371 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7372 { (exit 1); exit 1; }; }
7374 case $CONFIG_SHELL in
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7380 test -z "$as_dir" && as_dir=.
7381 for as_base in sh bash ksh sh5; do
7384 if ("$as_dir/$as_base" -c '
7387 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7388 test "x$as_lineno_1" != "x$as_lineno_2" &&
7389 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7390 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7391 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7392 CONFIG_SHELL=$as_dir/$as_base
7394 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7402 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7403 # uniformly replaced by the line number. The first 'sed' inserts a
7404 # line-number line before each line; the second 'sed' does the real
7405 # work. The second script uses 'N' to pair each line-number line
7406 # with the numbered line, and appends trailing '-' during
7407 # substitution so that $LINENO is not a special case at line end.
7408 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7409 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7410 sed '=' <$as_myself |
7415 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7418 s,^['$as_cr_digits']*\n,,
7420 chmod +x $as_me.lineno ||
7421 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7422 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7423 { (exit 1); exit 1; }; }
7425 # Don't try to exec as it changes $[0], causing all sort of problems
7426 # (the dirname of $[0] is not the place where we might find the
7427 # original and so on. Autoconf is especially sensible to this).
7429 # Exit status is that of the last command.
7434 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7435 *c*,-n*) ECHO_N= ECHO_C='
7437 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7438 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7441 if expr a : '\(a\)' >/dev/null 2>&1; then
7447 rm -f conf$$ conf$$.exe conf$$.file
7449 if ln -s conf$$.file conf$$ 2>/dev/null; then
7450 # We could just check for DJGPP; but this test a) works b) is more generic
7451 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7452 if test -f conf$$.exe; then
7453 # Don't use ln at all; we don't have any links
7458 elif ln conf$$.file conf$$ 2>/dev/null; then
7463 rm -f conf$$ conf$$.exe conf$$.file
7465 if mkdir -p . 2>/dev/null; then
7468 test -d ./-p && rmdir ./-p
7472 as_executable_p="test -f"
7474 # Sed expression to map a string onto a valid CPP name.
7475 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7477 # Sed expression to map a string onto a valid variable name.
7478 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7482 # We need space, tab and new line, in precisely that order.
7492 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7493 # report actual input values of CONFIG_FILES etc. instead of their
7494 # values after options handling. Logging --version etc. is OK.
7498 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7499 ## Running $as_me. ##
7504 This file was extended by $as_me, which was
7505 generated by GNU Autoconf 2.59. Invocation command line was
7507 CONFIG_FILES = $CONFIG_FILES
7508 CONFIG_HEADERS = $CONFIG_HEADERS
7509 CONFIG_LINKS = $CONFIG_LINKS
7510 CONFIG_COMMANDS = $CONFIG_COMMANDS
7514 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7518 # Files that config.status was made for.
7519 if test -n "$ac_config_files"; then
7520 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7523 if test -n "$ac_config_headers"; then
7524 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7527 if test -n "$ac_config_links"; then
7528 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7531 if test -n "$ac_config_commands"; then
7532 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7535 cat >>$CONFIG_STATUS <<\_ACEOF
7538 \`$as_me' instantiates files from templates according to the
7539 current configuration.
7541 Usage: $0 [OPTIONS] [FILE]...
7543 -h, --help print this help, then exit
7544 -V, --version print version number, then exit
7545 -q, --quiet do not print progress messages
7546 -d, --debug don't remove temporary files
7547 --recheck update $as_me by reconfiguring in the same conditions
7548 --file=FILE[:TEMPLATE]
7549 instantiate the configuration file FILE
7550 --header=FILE[:TEMPLATE]
7551 instantiate the configuration header FILE
7553 Configuration files:
7556 Configuration headers:
7559 Configuration links:
7562 Configuration commands:
7565 Report bugs to <bug-autoconf@gnu.org>."
7568 cat >>$CONFIG_STATUS <<_ACEOF
7571 configured by $0, generated by GNU Autoconf 2.59,
7572 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7574 Copyright (C) 2003 Free Software Foundation, Inc.
7575 This config.status script is free software; the Free Software Foundation
7576 gives unlimited permission to copy, distribute and modify it."
7581 cat >>$CONFIG_STATUS <<\_ACEOF
7582 # If no file are specified by the user, then we need to provide default
7583 # value. By we need to know if files were specified by the user.
7589 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7590 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7598 *) # This is not an option, so the user has probably given explicit
7601 ac_need_defaults=false;;
7605 # Handling of the options.
7607 cat >>$CONFIG_STATUS <<\_ACEOF
7608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7610 --version | --vers* | -V )
7611 echo "$ac_cs_version"; exit 0 ;;
7613 # Conflict between --help and --header
7614 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7615 Try \`$0 --help' for more information." >&5
7616 echo "$as_me: error: ambiguous option: $1
7617 Try \`$0 --help' for more information." >&2;}
7618 { (exit 1); exit 1; }; };;
7619 --help | --hel | -h )
7620 echo "$ac_cs_usage"; exit 0 ;;
7621 --debug | --d* | -d )
7623 --file | --fil | --fi | --f )
7625 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7626 ac_need_defaults=false;;
7627 --header | --heade | --head | --hea )
7629 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7630 ac_need_defaults=false;;
7631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7636 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7637 Try \`$0 --help' for more information." >&5
7638 echo "$as_me: error: unrecognized option: $1
7639 Try \`$0 --help' for more information." >&2;}
7640 { (exit 1); exit 1; }; } ;;
7642 *) ac_config_targets="$ac_config_targets $1" ;;
7648 ac_configure_extra_args=
7650 if $ac_cs_silent; then
7652 ac_configure_extra_args="$ac_configure_extra_args --silent"
7656 cat >>$CONFIG_STATUS <<_ACEOF
7657 if \$ac_cs_recheck; then
7658 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7659 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7668 cat >>$CONFIG_STATUS <<\_ACEOF
7669 for ac_config_target in $ac_config_targets
7671 case "$ac_config_target" in
7672 # Handling of arguments.
7673 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
7674 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
7675 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
7676 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
7677 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7678 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7679 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7680 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7681 { (exit 1); exit 1; }; };;
7685 # If the user did not use the arguments to specify the items to instantiate,
7686 # then the envvar interface is used. Set only those that are not.
7687 # We use the long form for the default assignment because of an extremely
7688 # bizarre bug on SunOS 4.1.3.
7689 if $ac_need_defaults; then
7690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7692 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7693 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7696 # Have a temporary directory for convenience. Make it in the build tree
7697 # simply because there is no reason to put it here, and in addition,
7698 # creating and moving files from /tmp can sometimes cause problems.
7699 # Create a temporary directory, and hook for its removal unless debugging.
7702 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7703 trap '{ (exit 1); exit 1; }' 1 2 13 15
7706 # Create a (secure) tmp directory for tmp files.
7709 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7710 test -n "$tmp" && test -d "$tmp"
7713 tmp=./confstat$$-$RANDOM
7714 (umask 077 && mkdir $tmp)
7717 echo "$me: cannot create a temporary directory in ." >&2
7718 { (exit 1); exit 1; }
7723 cat >>$CONFIG_STATUS <<_ACEOF
7726 # CONFIG_FILES section.
7729 # No need to generate the scripts if there are no CONFIG_FILES.
7730 # This happens for instance when ./config.status config.h
7731 if test -n "\$CONFIG_FILES"; then
7732 # Protect against being on the right side of a sed subst in config.status.
7733 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7734 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7735 s,@sim_environment@,$sim_environment,;t t
7736 s,@sim_alignment@,$sim_alignment,;t t
7737 s,@sim_assert@,$sim_assert,;t t
7738 s,@sim_bitsize@,$sim_bitsize,;t t
7739 s,@sim_endian@,$sim_endian,;t t
7740 s,@sim_hostendian@,$sim_hostendian,;t t
7741 s,@sim_float@,$sim_float,;t t
7742 s,@sim_scache@,$sim_scache,;t t
7743 s,@sim_default_model@,$sim_default_model,;t t
7744 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7745 s,@sim_hw_objs@,$sim_hw_objs,;t t
7746 s,@sim_hw@,$sim_hw,;t t
7747 s,@sim_inline@,$sim_inline,;t t
7748 s,@sim_packages@,$sim_packages,;t t
7749 s,@sim_regparm@,$sim_regparm,;t t
7750 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7751 s,@sim_smp@,$sim_smp,;t t
7752 s,@sim_stdcall@,$sim_stdcall,;t t
7753 s,@sim_xor_endian@,$sim_xor_endian,;t t
7754 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7755 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7756 s,@SHELL@,$SHELL,;t t
7757 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7758 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7759 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7760 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7761 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7762 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7763 s,@exec_prefix@,$exec_prefix,;t t
7764 s,@prefix@,$prefix,;t t
7765 s,@program_transform_name@,$program_transform_name,;t t
7766 s,@bindir@,$bindir,;t t
7767 s,@sbindir@,$sbindir,;t t
7768 s,@libexecdir@,$libexecdir,;t t
7769 s,@datadir@,$datadir,;t t
7770 s,@sysconfdir@,$sysconfdir,;t t
7771 s,@sharedstatedir@,$sharedstatedir,;t t
7772 s,@localstatedir@,$localstatedir,;t t
7773 s,@libdir@,$libdir,;t t
7774 s,@includedir@,$includedir,;t t
7775 s,@oldincludedir@,$oldincludedir,;t t
7776 s,@infodir@,$infodir,;t t
7777 s,@mandir@,$mandir,;t t
7778 s,@build_alias@,$build_alias,;t t
7779 s,@host_alias@,$host_alias,;t t
7780 s,@target_alias@,$target_alias,;t t
7782 s,@ECHO_C@,$ECHO_C,;t t
7783 s,@ECHO_N@,$ECHO_N,;t t
7784 s,@ECHO_T@,$ECHO_T,;t t
7786 s,@build@,$build,;t t
7787 s,@build_cpu@,$build_cpu,;t t
7788 s,@build_vendor@,$build_vendor,;t t
7789 s,@build_os@,$build_os,;t t
7791 s,@host_cpu@,$host_cpu,;t t
7792 s,@host_vendor@,$host_vendor,;t t
7793 s,@host_os@,$host_os,;t t
7794 s,@target@,$target,;t t
7795 s,@target_cpu@,$target_cpu,;t t
7796 s,@target_vendor@,$target_vendor,;t t
7797 s,@target_os@,$target_os,;t t
7799 s,@CFLAGS@,$CFLAGS,;t t
7800 s,@LDFLAGS@,$LDFLAGS,;t t
7801 s,@CPPFLAGS@,$CPPFLAGS,;t t
7802 s,@ac_ct_CC@,$ac_ct_CC,;t t
7803 s,@EXEEXT@,$EXEEXT,;t t
7804 s,@OBJEXT@,$OBJEXT,;t t
7805 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7806 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7807 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7808 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7809 s,@HDEFINES@,$HDEFINES,;t t
7811 s,@RANLIB@,$RANLIB,;t t
7812 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7813 s,@SET_MAKE@,$SET_MAKE,;t t
7815 s,@EGREP@,$EGREP,;t t
7816 s,@ALLOCA@,$ALLOCA,;t t
7817 s,@USE_NLS@,$USE_NLS,;t t
7818 s,@MSGFMT@,$MSGFMT,;t t
7819 s,@GMSGFMT@,$GMSGFMT,;t t
7820 s,@XGETTEXT@,$XGETTEXT,;t t
7821 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7822 s,@CATALOGS@,$CATALOGS,;t t
7823 s,@CATOBJEXT@,$CATOBJEXT,;t t
7824 s,@DATADIRNAME@,$DATADIRNAME,;t t
7825 s,@GMOFILES@,$GMOFILES,;t t
7826 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7827 s,@INTLDEPS@,$INTLDEPS,;t t
7828 s,@INTLLIBS@,$INTLLIBS,;t t
7829 s,@INTLOBJS@,$INTLOBJS,;t t
7830 s,@POFILES@,$POFILES,;t t
7831 s,@POSUB@,$POSUB,;t t
7832 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
7833 s,@GT_NO@,$GT_NO,;t t
7834 s,@GT_YES@,$GT_YES,;t t
7835 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7837 s,@MAINT@,$MAINT,;t t
7838 s,@sim_bswap@,$sim_bswap,;t t
7839 s,@sim_cflags@,$sim_cflags,;t t
7840 s,@sim_debug@,$sim_debug,;t t
7841 s,@sim_stdio@,$sim_stdio,;t t
7842 s,@sim_trace@,$sim_trace,;t t
7843 s,@sim_profile@,$sim_profile,;t t
7844 s,@cgen_breaks@,$cgen_breaks,;t t
7845 s,@LIBOBJS@,$LIBOBJS,;t t
7846 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7851 cat >>$CONFIG_STATUS <<\_ACEOF
7852 # Split the substitutions into bite-sized pieces for seds with
7853 # small command number limits, like on Digital OSF/1 and HP-UX.
7855 ac_sed_frag=1 # Number of current file.
7856 ac_beg=1 # First line for current file.
7857 ac_end=$ac_max_sed_lines # Line after last line for current file.
7860 while $ac_more_lines; do
7861 if test $ac_beg -gt 1; then
7862 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7864 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7866 if test ! -s $tmp/subs.frag; then
7869 # The purpose of the label and of the branching condition is to
7870 # speed up the sed processing (if there are no `@' at all, there
7871 # is no need to browse any of the substitutions).
7872 # These are the two extra sed commands mentioned above.
7874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7875 if test -z "$ac_sed_cmds"; then
7876 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7878 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7880 ac_sed_frag=`expr $ac_sed_frag + 1`
7882 ac_end=`expr $ac_end + $ac_max_sed_lines`
7885 if test -z "$ac_sed_cmds"; then
7888 fi # test -n "$CONFIG_FILES"
7891 cat >>$CONFIG_STATUS <<\_ACEOF
7892 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7893 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7895 - | *:- | *:-:* ) # input from stdin
7897 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7899 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7901 * ) ac_file_in=$ac_file.in ;;
7904 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7905 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7907 X"$ac_file" : 'X\(//\)[^/]' \| \
7908 X"$ac_file" : 'X\(//\)$' \| \
7909 X"$ac_file" : 'X\(/\)' \| \
7910 . : '\(.\)' 2>/dev/null ||
7912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7914 /^X\(\/\/\)$/{ s//\1/; q; }
7915 /^X\(\/\).*/{ s//\1/; q; }
7917 { if $as_mkdir_p; then
7922 while test ! -d "$as_dir"; do
7923 as_dirs="$as_dir $as_dirs"
7924 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7926 X"$as_dir" : 'X\(//\)[^/]' \| \
7927 X"$as_dir" : 'X\(//\)$' \| \
7928 X"$as_dir" : 'X\(/\)' \| \
7929 . : '\(.\)' 2>/dev/null ||
7931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7933 /^X\(\/\/\)$/{ s//\1/; q; }
7934 /^X\(\/\).*/{ s//\1/; q; }
7937 test ! -n "$as_dirs" || mkdir $as_dirs
7938 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7939 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7940 { (exit 1); exit 1; }; }; }
7944 if test "$ac_dir" != .; then
7945 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7946 # A "../" for each directory in $ac_dir_suffix.
7947 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7949 ac_dir_suffix= ac_top_builddir=
7953 .) # No --srcdir option. We are building in place.
7955 if test -z "$ac_top_builddir"; then
7958 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7960 [\\/]* | ?:[\\/]* ) # Absolute path.
7961 ac_srcdir=$srcdir$ac_dir_suffix;
7962 ac_top_srcdir=$srcdir ;;
7964 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7965 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7968 # Do not use `cd foo && pwd` to compute absolute paths, because
7969 # the directories may not exist.
7971 .) ac_abs_builddir="$ac_dir";;
7974 .) ac_abs_builddir=`pwd`;;
7975 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7976 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7979 case $ac_abs_builddir in
7980 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7982 case ${ac_top_builddir}. in
7983 .) ac_abs_top_builddir=$ac_abs_builddir;;
7984 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7985 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7988 case $ac_abs_builddir in
7989 .) ac_abs_srcdir=$ac_srcdir;;
7992 .) ac_abs_srcdir=$ac_abs_builddir;;
7993 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7994 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7997 case $ac_abs_builddir in
7998 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8000 case $ac_top_srcdir in
8001 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8002 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8003 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8010 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8013 if test x"$ac_file" != x-; then
8014 { echo "$as_me:$LINENO: creating $ac_file" >&5
8015 echo "$as_me: creating $ac_file" >&6;}
8018 # Let's still pretend it is `configure' which instantiates (i.e., don't
8019 # use $as_me), people would be surprised to read:
8020 # /* config.h. Generated by config.status. */
8021 if test x"$ac_file" = x-; then
8024 configure_input="$ac_file. "
8026 configure_input=$configure_input"Generated from `echo $ac_file_in |
8027 sed 's,.*/,,'` by configure."
8029 # First look for the input files in the build tree, otherwise in the
8031 ac_file_inputs=`IFS=:
8032 for f in $ac_file_in; do
8034 -) echo $tmp/stdin ;;
8036 # Absolute (can't be DOS-style, as IFS=:)
8037 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8038 echo "$as_me: error: cannot find input file: $f" >&2;}
8039 { (exit 1); exit 1; }; }
8042 if test -f "$f"; then
8045 elif test -f "$srcdir/$f"; then
8050 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8051 echo "$as_me: error: cannot find input file: $f" >&2;}
8052 { (exit 1); exit 1; }; }
8055 done` || { (exit 1); exit 1; }
8057 cat >>$CONFIG_STATUS <<_ACEOF
8061 cat >>$CONFIG_STATUS <<\_ACEOF
8063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8064 s,@configure_input@,$configure_input,;t t
8065 s,@srcdir@,$ac_srcdir,;t t
8066 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8067 s,@top_srcdir@,$ac_top_srcdir,;t t
8068 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8069 s,@builddir@,$ac_builddir,;t t
8070 s,@abs_builddir@,$ac_abs_builddir,;t t
8071 s,@top_builddir@,$ac_top_builddir,;t t
8072 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8073 s,@INSTALL@,$ac_INSTALL,;t t
8074 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8076 if test x"$ac_file" != x-; then
8077 mv $tmp/out $ac_file
8085 cat >>$CONFIG_STATUS <<\_ACEOF
8088 # CONFIG_HEADER section.
8091 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8092 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8094 # ac_d sets the value in "#define NAME VALUE" lines.
8095 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8096 ac_dB='[ ].*$,\1#\2'
8099 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8100 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8101 ac_uB='$,\1#\2define\3'
8105 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8108 - | *:- | *:-:* ) # input from stdin
8110 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8111 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8112 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8113 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8114 * ) ac_file_in=$ac_file.in ;;
8117 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8118 echo "$as_me: creating $ac_file" >&6;}
8120 # First look for the input files in the build tree, otherwise in the
8122 ac_file_inputs=`IFS=:
8123 for f in $ac_file_in; do
8125 -) echo $tmp/stdin ;;
8127 # Absolute (can't be DOS-style, as IFS=:)
8128 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8129 echo "$as_me: error: cannot find input file: $f" >&2;}
8130 { (exit 1); exit 1; }; }
8131 # Do quote $f, to prevent DOS paths from being IFS'd.
8134 if test -f "$f"; then
8137 elif test -f "$srcdir/$f"; then
8142 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8143 echo "$as_me: error: cannot find input file: $f" >&2;}
8144 { (exit 1); exit 1; }; }
8147 done` || { (exit 1); exit 1; }
8148 # Remove the trailing spaces.
8149 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8153 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8154 # `conftest.undefs', that substitutes the proper values into
8155 # config.h.in to produce config.h. The first handles `#define'
8156 # templates, and the second `#undef' templates.
8157 # And first: Protect against being on the right side of a sed subst in
8158 # config.status. Protect against being in an unquoted here document
8160 rm -f conftest.defines conftest.undefs
8161 # Using a here document instead of a string reduces the quoting nightmare.
8162 # Putting comments in sed scripts is not portable.
8164 # `end' is used to avoid that the second main sed command (meant for
8165 # 0-ary CPP macros) applies to n-ary macro definitions.
8166 # See the Autoconf documentation for `clear'.
8167 cat >confdef2sed.sed <<\_ACEOF
8172 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8174 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8177 # If some macros were called several times there might be several times
8178 # the same #defines, which is useless. Nevertheless, we may not want to
8179 # sort them, since we want the *last* AC-DEFINE to be honored.
8180 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8181 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8182 rm -f confdef2sed.sed
8184 # This sed command replaces #undef with comments. This is necessary, for
8185 # example, in the case of _POSIX_SOURCE, which is predefined and required
8186 # on some systems where configure will not decide to define it.
8187 cat >>conftest.undefs <<\_ACEOF
8188 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8191 # Break up conftest.defines because some shells have a limit on the size
8192 # of here documents, and old seds have small limits too (100 cmds).
8193 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8194 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8195 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8196 echo ' :' >>$CONFIG_STATUS
8198 while grep . conftest.defines >/dev/null
8200 # Write a limited-size here document to $tmp/defines.sed.
8201 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8202 # Speed up: don't consider the non `#define' lines.
8203 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8204 # Work around the forget-to-reset-the-flag bug.
8205 echo 't clr' >>$CONFIG_STATUS
8206 echo ': clr' >>$CONFIG_STATUS
8207 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8209 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8213 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8214 rm -f conftest.defines
8215 mv conftest.tail conftest.defines
8217 rm -f conftest.defines
8218 echo ' fi # grep' >>$CONFIG_STATUS
8219 echo >>$CONFIG_STATUS
8221 # Break up conftest.undefs because some shells have a limit on the size
8222 # of here documents, and old seds have small limits too (100 cmds).
8223 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8225 while grep . conftest.undefs >/dev/null
8227 # Write a limited-size here document to $tmp/undefs.sed.
8228 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8229 # Speed up: don't consider the non `#undef'
8230 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8231 # Work around the forget-to-reset-the-flag bug.
8232 echo 't clr' >>$CONFIG_STATUS
8233 echo ': clr' >>$CONFIG_STATUS
8234 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8236 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8240 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8241 rm -f conftest.undefs
8242 mv conftest.tail conftest.undefs
8244 rm -f conftest.undefs
8246 cat >>$CONFIG_STATUS <<\_ACEOF
8247 # Let's still pretend it is `configure' which instantiates (i.e., don't
8248 # use $as_me), people would be surprised to read:
8249 # /* config.h. Generated by config.status. */
8250 if test x"$ac_file" = x-; then
8251 echo "/* Generated by configure. */" >$tmp/config.h
8253 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8255 cat $tmp/in >>$tmp/config.h
8257 if test x"$ac_file" != x-; then
8258 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8259 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8260 echo "$as_me: $ac_file is unchanged" >&6;}
8262 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8263 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8264 X"$ac_file" : 'X\(//\)[^/]' \| \
8265 X"$ac_file" : 'X\(//\)$' \| \
8266 X"$ac_file" : 'X\(/\)' \| \
8267 . : '\(.\)' 2>/dev/null ||
8269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8271 /^X\(\/\/\)$/{ s//\1/; q; }
8272 /^X\(\/\).*/{ s//\1/; q; }
8274 { if $as_mkdir_p; then
8279 while test ! -d "$as_dir"; do
8280 as_dirs="$as_dir $as_dirs"
8281 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8283 X"$as_dir" : 'X\(//\)[^/]' \| \
8284 X"$as_dir" : 'X\(//\)$' \| \
8285 X"$as_dir" : 'X\(/\)' \| \
8286 . : '\(.\)' 2>/dev/null ||
8288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8290 /^X\(\/\/\)$/{ s//\1/; q; }
8291 /^X\(\/\).*/{ s//\1/; q; }
8294 test ! -n "$as_dirs" || mkdir $as_dirs
8295 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8296 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8297 { (exit 1); exit 1; }; }; }
8300 mv $tmp/config.h $ac_file
8308 cat >>$CONFIG_STATUS <<\_ACEOF
8311 # CONFIG_LINKS section.
8314 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8315 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8316 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8318 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8319 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8321 if test ! -r $srcdir/$ac_source; then
8322 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8323 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8324 { (exit 1); exit 1; }; }
8328 # Make relative symlinks.
8329 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8330 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8331 X"$ac_dest" : 'X\(//\)[^/]' \| \
8332 X"$ac_dest" : 'X\(//\)$' \| \
8333 X"$ac_dest" : 'X\(/\)' \| \
8334 . : '\(.\)' 2>/dev/null ||
8336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8338 /^X\(\/\/\)$/{ s//\1/; q; }
8339 /^X\(\/\).*/{ s//\1/; q; }
8341 { if $as_mkdir_p; then
8342 mkdir -p "$ac_dest_dir"
8344 as_dir="$ac_dest_dir"
8346 while test ! -d "$as_dir"; do
8347 as_dirs="$as_dir $as_dirs"
8348 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8350 X"$as_dir" : 'X\(//\)[^/]' \| \
8351 X"$as_dir" : 'X\(//\)$' \| \
8352 X"$as_dir" : 'X\(/\)' \| \
8353 . : '\(.\)' 2>/dev/null ||
8355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8357 /^X\(\/\/\)$/{ s//\1/; q; }
8358 /^X\(\/\).*/{ s//\1/; q; }
8361 test ! -n "$as_dirs" || mkdir $as_dirs
8362 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8363 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8364 { (exit 1); exit 1; }; }; }
8368 if test "$ac_dest_dir" != .; then
8369 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8370 # A "../" for each directory in $ac_dir_suffix.
8371 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8373 ac_dir_suffix= ac_top_builddir=
8377 .) # No --srcdir option. We are building in place.
8379 if test -z "$ac_top_builddir"; then
8382 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8384 [\\/]* | ?:[\\/]* ) # Absolute path.
8385 ac_srcdir=$srcdir$ac_dir_suffix;
8386 ac_top_srcdir=$srcdir ;;
8388 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8389 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8392 # Do not use `cd foo && pwd` to compute absolute paths, because
8393 # the directories may not exist.
8395 .) ac_abs_builddir="$ac_dest_dir";;
8397 case "$ac_dest_dir" in
8398 .) ac_abs_builddir=`pwd`;;
8399 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8400 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8403 case $ac_abs_builddir in
8404 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8406 case ${ac_top_builddir}. in
8407 .) ac_abs_top_builddir=$ac_abs_builddir;;
8408 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8409 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8412 case $ac_abs_builddir in
8413 .) ac_abs_srcdir=$ac_srcdir;;
8416 .) ac_abs_srcdir=$ac_abs_builddir;;
8417 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8418 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8421 case $ac_abs_builddir in
8422 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8424 case $ac_top_srcdir in
8425 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8426 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8427 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8433 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8434 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8437 # Try a symlink, then a hard link, then a copy.
8438 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8439 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8440 cp -p $srcdir/$ac_source $ac_dest ||
8441 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8442 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8443 { (exit 1); exit 1; }; }
8446 cat >>$CONFIG_STATUS <<\_ACEOF
8449 # CONFIG_COMMANDS section.
8451 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8452 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8453 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8454 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8455 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8456 X"$ac_dest" : 'X\(//\)[^/]' \| \
8457 X"$ac_dest" : 'X\(//\)$' \| \
8458 X"$ac_dest" : 'X\(/\)' \| \
8459 . : '\(.\)' 2>/dev/null ||
8461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8463 /^X\(\/\/\)$/{ s//\1/; q; }
8464 /^X\(\/\).*/{ s//\1/; q; }
8466 { if $as_mkdir_p; then
8471 while test ! -d "$as_dir"; do
8472 as_dirs="$as_dir $as_dirs"
8473 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8475 X"$as_dir" : 'X\(//\)[^/]' \| \
8476 X"$as_dir" : 'X\(//\)$' \| \
8477 X"$as_dir" : 'X\(/\)' \| \
8478 . : '\(.\)' 2>/dev/null ||
8480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8482 /^X\(\/\/\)$/{ s//\1/; q; }
8483 /^X\(\/\).*/{ s//\1/; q; }
8486 test ! -n "$as_dirs" || mkdir $as_dirs
8487 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8488 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8489 { (exit 1); exit 1; }; }; }
8493 if test "$ac_dir" != .; then
8494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8495 # A "../" for each directory in $ac_dir_suffix.
8496 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8498 ac_dir_suffix= ac_top_builddir=
8502 .) # No --srcdir option. We are building in place.
8504 if test -z "$ac_top_builddir"; then
8507 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8509 [\\/]* | ?:[\\/]* ) # Absolute path.
8510 ac_srcdir=$srcdir$ac_dir_suffix;
8511 ac_top_srcdir=$srcdir ;;
8513 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8514 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8517 # Do not use `cd foo && pwd` to compute absolute paths, because
8518 # the directories may not exist.
8520 .) ac_abs_builddir="$ac_dir";;
8523 .) ac_abs_builddir=`pwd`;;
8524 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8525 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8528 case $ac_abs_builddir in
8529 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8531 case ${ac_top_builddir}. in
8532 .) ac_abs_top_builddir=$ac_abs_builddir;;
8533 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8534 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8537 case $ac_abs_builddir in
8538 .) ac_abs_srcdir=$ac_srcdir;;
8541 .) ac_abs_srcdir=$ac_abs_builddir;;
8542 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8543 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8546 case $ac_abs_builddir in
8547 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8549 case $ac_top_srcdir in
8550 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8551 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8552 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8557 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8558 echo "$as_me: executing $ac_dest commands" >&6;}
8560 default ) case "x$CONFIG_FILES" in
8562 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8563 rm -f Makesim1.tmp Makesim2.tmp Makefile
8564 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
8565 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
8566 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8567 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8568 <Makefile.sim >Makefile
8569 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8572 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
8578 cat >>$CONFIG_STATUS <<\_ACEOF
8580 { (exit 0); exit 0; }
8582 chmod +x $CONFIG_STATUS
8583 ac_clean_files=$ac_clean_files_save
8586 # configure is writing to config.log, and then calls config.status.
8587 # config.status does its own redirection, appending to config.log.
8588 # Unfortunately, on DOS this fails, as config.log is still kept open
8589 # by configure, so config.status won't be able to write to it; its
8590 # output is simply discarded. So we exec the FD to /dev/null,
8591 # effectively closing config.log, so it can be properly (re)opened and
8592 # appended to by config.status. When coming back to configure, we
8593 # need to make the FD available again.
8594 if test "$no_create" != yes; then
8596 ac_config_status_args=
8597 test "$silent" = yes &&
8598 ac_config_status_args="$ac_config_status_args --quiet"
8600 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8602 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8603 # would make configure fail if this is the last instruction.
8604 $ac_cs_success || { (exit 1); exit 1; }