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 TERMCAP cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --with-included-gettext use the GNU gettext library included here
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
882 if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
889 if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 ac_dir_suffix= ac_top_builddir=
898 .) # No --srcdir option. We are building in place.
900 if test -z "$ac_top_builddir"; then
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 # Do not use `cd foo && pwd` to compute absolute paths, because
914 # the directories may not exist.
916 .) ac_abs_builddir="$ac_dir";;
919 .) ac_abs_builddir=`pwd`;;
920 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
921 *) ac_abs_builddir=`pwd`/"$ac_dir";;
924 case $ac_abs_builddir in
925 .) ac_abs_top_builddir=${ac_top_builddir}.;;
927 case ${ac_top_builddir}. in
928 .) ac_abs_top_builddir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933 case $ac_abs_builddir in
934 .) ac_abs_srcdir=$ac_srcdir;;
937 .) ac_abs_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
939 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942 case $ac_abs_builddir in
943 .) ac_abs_top_srcdir=$ac_top_srcdir;;
945 case $ac_top_srcdir in
946 .) ac_abs_top_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
953 # Check for guested configure; otherwise get Cygnus style configure.
954 if test -f $ac_srcdir/configure.gnu; then
956 $SHELL $ac_srcdir/configure.gnu --help=recursive
957 elif test -f $ac_srcdir/configure; then
959 $SHELL $ac_srcdir/configure --help=recursive
960 elif test -f $ac_srcdir/configure.ac ||
961 test -f $ac_srcdir/configure.in; then
965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971 test -n "$ac_init_help" && exit 0
972 if $ac_init_version; then
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by $as_me, which was
987 generated by GNU Autoconf 2.59. Invocation command line was
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_must_keep_next=false
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 -* ) ac_must_keep_next=true ;;
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1104 # The following way of writing the cache mishandles newlines in values,
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -n "$ac_subst_files"; then
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -s confdefs.h; then
1156 sed "/^$/d" confdefs.h | sort
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1239 # Check that the precious variables saved in the cache have kept the same
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315 # Make sure we can run config.sub.
1316 $ac_config_sub sun4 >/dev/null 2>&1 ||
1317 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1318 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1319 { (exit 1); exit 1; }; }
1321 echo "$as_me:$LINENO: checking build system type" >&5
1322 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1323 if test "${ac_cv_build+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 ac_cv_build_alias=$build_alias
1327 test -z "$ac_cv_build_alias" &&
1328 ac_cv_build_alias=`$ac_config_guess`
1329 test -z "$ac_cv_build_alias" &&
1330 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1331 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1332 { (exit 1); exit 1; }; }
1333 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1335 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1336 { (exit 1); exit 1; }; }
1339 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1340 echo "${ECHO_T}$ac_cv_build" >&6
1342 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1343 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1344 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1347 echo "$as_me:$LINENO: checking host system type" >&5
1348 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1349 if test "${ac_cv_host+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 ac_cv_host_alias=$host_alias
1353 test -z "$ac_cv_host_alias" &&
1354 ac_cv_host_alias=$ac_cv_build_alias
1355 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1356 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1357 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1358 { (exit 1); exit 1; }; }
1361 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1362 echo "${ECHO_T}$ac_cv_host" >&6
1364 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1365 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1366 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1369 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1370 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1371 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1372 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 cat >conftest.make <<\_ACEOF
1377 @echo 'ac_maketemp="$(MAKE)"'
1379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1380 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1381 if test -n "$ac_maketemp"; then
1382 eval ac_cv_prog_make_${ac_make}_set=yes
1384 eval ac_cv_prog_make_${ac_make}_set=no
1388 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1389 echo "$as_me:$LINENO: result: yes" >&5
1390 echo "${ECHO_T}yes" >&6
1393 echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1395 SET_MAKE="MAKE=${MAKE-make}"
1399 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1400 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1401 if test "${ac_cv_search_strerror+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 ac_func_search_save_LIBS=$LIBS
1405 ac_cv_search_strerror=no
1406 cat >conftest.$ac_ext <<_ACEOF
1409 cat confdefs.h >>conftest.$ac_ext
1410 cat >>conftest.$ac_ext <<_ACEOF
1411 /* end confdefs.h. */
1413 /* Override any gcc2 internal prototype to avoid an error. */
1417 /* We use char because int might match the return type of a gcc2
1418 builtin and then its argument prototype would still apply. */
1428 rm -f conftest.$ac_objext conftest$ac_exeext
1429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1430 (eval $ac_link) 2>conftest.er1
1432 grep -v '^ *+' conftest.er1 >conftest.err
1434 cat conftest.err >&5
1435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1436 (exit $ac_status); } &&
1437 { ac_try='test -z "$ac_c_werror_flag"
1438 || test ! -s conftest.err'
1439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1443 (exit $ac_status); }; } &&
1444 { ac_try='test -s conftest$ac_exeext'
1445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1449 (exit $ac_status); }; }; then
1450 ac_cv_search_strerror="none required"
1452 echo "$as_me: failed program was:" >&5
1453 sed 's/^/| /' conftest.$ac_ext >&5
1456 rm -f conftest.err conftest.$ac_objext \
1457 conftest$ac_exeext conftest.$ac_ext
1458 if test "$ac_cv_search_strerror" = no; then
1459 for ac_lib in cposix; do
1460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1461 cat >conftest.$ac_ext <<_ACEOF
1464 cat confdefs.h >>conftest.$ac_ext
1465 cat >>conftest.$ac_ext <<_ACEOF
1466 /* end confdefs.h. */
1468 /* Override any gcc2 internal prototype to avoid an error. */
1472 /* We use char because int might match the return type of a gcc2
1473 builtin and then its argument prototype would still apply. */
1483 rm -f conftest.$ac_objext conftest$ac_exeext
1484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1485 (eval $ac_link) 2>conftest.er1
1487 grep -v '^ *+' conftest.er1 >conftest.err
1489 cat conftest.err >&5
1490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1491 (exit $ac_status); } &&
1492 { ac_try='test -z "$ac_c_werror_flag"
1493 || test ! -s conftest.err'
1494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1498 (exit $ac_status); }; } &&
1499 { ac_try='test -s conftest$ac_exeext'
1500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1504 (exit $ac_status); }; }; then
1505 ac_cv_search_strerror="-l$ac_lib"
1508 echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1512 rm -f conftest.err conftest.$ac_objext \
1513 conftest$ac_exeext conftest.$ac_ext
1516 LIBS=$ac_func_search_save_LIBS
1518 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1519 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1520 if test "$ac_cv_search_strerror" != no; then
1521 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1526 ac_cpp='$CPP $CPPFLAGS'
1527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1530 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1532 # On Suns, sometimes $CPP names a directory.
1533 if test -n "$CPP" && test -d "$CPP"; then
1536 if test -z "$CPP"; then
1537 if test "${ac_cv_prog_CPP+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 # Double quotes because CPP needs to be expanded
1541 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1544 for ac_c_preproc_warn_flag in '' yes
1546 # Use a header file that comes with gcc, so configuring glibc
1547 # with a fresh cross-compiler works.
1548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1549 # <limits.h> exists even on freestanding compilers.
1550 # On the NeXT, cc -E runs the code through the compiler's parser,
1551 # not just through cpp. "Syntax error" is here to catch this case.
1552 cat >conftest.$ac_ext <<_ACEOF
1555 cat confdefs.h >>conftest.$ac_ext
1556 cat >>conftest.$ac_ext <<_ACEOF
1557 /* end confdefs.h. */
1559 # include <limits.h>
1561 # include <assert.h>
1565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1568 grep -v '^ *+' conftest.er1 >conftest.err
1570 cat conftest.err >&5
1571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1572 (exit $ac_status); } >/dev/null; then
1573 if test -s conftest.err; then
1574 ac_cpp_err=$ac_c_preproc_warn_flag
1575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1582 if test -z "$ac_cpp_err"; then
1585 echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1588 # Broken: fails on valid input.
1591 rm -f conftest.err conftest.$ac_ext
1593 # OK, works on sane cases. Now check whether non-existent headers
1594 # can be detected and how.
1595 cat >conftest.$ac_ext <<_ACEOF
1598 cat confdefs.h >>conftest.$ac_ext
1599 cat >>conftest.$ac_ext <<_ACEOF
1600 /* end confdefs.h. */
1601 #include <ac_nonexistent.h>
1603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1606 grep -v '^ *+' conftest.er1 >conftest.err
1608 cat conftest.err >&5
1609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1610 (exit $ac_status); } >/dev/null; then
1611 if test -s conftest.err; then
1612 ac_cpp_err=$ac_c_preproc_warn_flag
1613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1620 if test -z "$ac_cpp_err"; then
1621 # Broken: success on invalid input.
1624 echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1627 # Passes both tests.
1631 rm -f conftest.err conftest.$ac_ext
1634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1635 rm -f conftest.err conftest.$ac_ext
1636 if $ac_preproc_ok; then
1648 echo "$as_me:$LINENO: result: $CPP" >&5
1649 echo "${ECHO_T}$CPP" >&6
1651 for ac_c_preproc_warn_flag in '' yes
1653 # Use a header file that comes with gcc, so configuring glibc
1654 # with a fresh cross-compiler works.
1655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1656 # <limits.h> exists even on freestanding compilers.
1657 # On the NeXT, cc -E runs the code through the compiler's parser,
1658 # not just through cpp. "Syntax error" is here to catch this case.
1659 cat >conftest.$ac_ext <<_ACEOF
1662 cat confdefs.h >>conftest.$ac_ext
1663 cat >>conftest.$ac_ext <<_ACEOF
1664 /* end confdefs.h. */
1666 # include <limits.h>
1668 # include <assert.h>
1672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1675 grep -v '^ *+' conftest.er1 >conftest.err
1677 cat conftest.err >&5
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); } >/dev/null; then
1680 if test -s conftest.err; then
1681 ac_cpp_err=$ac_c_preproc_warn_flag
1682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1689 if test -z "$ac_cpp_err"; then
1692 echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1695 # Broken: fails on valid input.
1698 rm -f conftest.err conftest.$ac_ext
1700 # OK, works on sane cases. Now check whether non-existent headers
1701 # can be detected and how.
1702 cat >conftest.$ac_ext <<_ACEOF
1705 cat confdefs.h >>conftest.$ac_ext
1706 cat >>conftest.$ac_ext <<_ACEOF
1707 /* end confdefs.h. */
1708 #include <ac_nonexistent.h>
1710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1713 grep -v '^ *+' conftest.er1 >conftest.err
1715 cat conftest.err >&5
1716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717 (exit $ac_status); } >/dev/null; then
1718 if test -s conftest.err; then
1719 ac_cpp_err=$ac_c_preproc_warn_flag
1720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1727 if test -z "$ac_cpp_err"; then
1728 # Broken: success on invalid input.
1731 echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1734 # Passes both tests.
1738 rm -f conftest.err conftest.$ac_ext
1741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1742 rm -f conftest.err conftest.$ac_ext
1743 if $ac_preproc_ok; then
1746 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1747 See \`config.log' for more details." >&5
1748 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1749 See \`config.log' for more details." >&2;}
1750 { (exit 1); exit 1; }; }
1754 ac_cpp='$CPP $CPPFLAGS'
1755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760 echo "$as_me:$LINENO: checking for egrep" >&5
1761 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1762 if test "${ac_cv_prog_egrep+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1766 then ac_cv_prog_egrep='grep -E'
1767 else ac_cv_prog_egrep='egrep'
1770 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1771 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1772 EGREP=$ac_cv_prog_egrep
1775 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1776 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1777 if test "${ac_cv_header_stdc+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 cat >conftest.$ac_ext <<_ACEOF
1783 cat confdefs.h >>conftest.$ac_ext
1784 cat >>conftest.$ac_ext <<_ACEOF
1785 /* end confdefs.h. */
1799 rm -f conftest.$ac_objext
1800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1801 (eval $ac_compile) 2>conftest.er1
1803 grep -v '^ *+' conftest.er1 >conftest.err
1805 cat conftest.err >&5
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); } &&
1808 { ac_try='test -z "$ac_c_werror_flag"
1809 || test ! -s conftest.err'
1810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }; } &&
1815 { ac_try='test -s conftest.$ac_objext'
1816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1821 ac_cv_header_stdc=yes
1823 echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_cv_header_stdc=no
1828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1830 if test $ac_cv_header_stdc = yes; then
1831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1832 cat >conftest.$ac_ext <<_ACEOF
1835 cat confdefs.h >>conftest.$ac_ext
1836 cat >>conftest.$ac_ext <<_ACEOF
1837 /* end confdefs.h. */
1841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1842 $EGREP "memchr" >/dev/null 2>&1; then
1845 ac_cv_header_stdc=no
1851 if test $ac_cv_header_stdc = yes; then
1852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1853 cat >conftest.$ac_ext <<_ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h. */
1862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1863 $EGREP "free" >/dev/null 2>&1; then
1866 ac_cv_header_stdc=no
1872 if test $ac_cv_header_stdc = yes; then
1873 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1874 if test "$cross_compiling" = yes; then
1877 cat >conftest.$ac_ext <<_ACEOF
1880 cat confdefs.h >>conftest.$ac_ext
1881 cat >>conftest.$ac_ext <<_ACEOF
1882 /* end confdefs.h. */
1884 #if ((' ' & 0x0FF) == 0x020)
1885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1888 # define ISLOWER(c) \
1889 (('a' <= (c) && (c) <= 'i') \
1890 || ('j' <= (c) && (c) <= 'r') \
1891 || ('s' <= (c) && (c) <= 'z'))
1892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1900 for (i = 0; i < 256; i++)
1901 if (XOR (islower (i), ISLOWER (i))
1902 || toupper (i) != TOUPPER (i))
1907 rm -f conftest$ac_exeext
1908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1909 (eval $ac_link) 2>&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }; }; then
1920 echo "$as_me: program exited with status $ac_status" >&5
1921 echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_cv_header_stdc=no
1927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1931 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1932 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1933 if test $ac_cv_header_stdc = yes; then
1935 cat >>confdefs.h <<\_ACEOF
1936 #define STDC_HEADERS 1
1941 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1942 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1943 if test "${ac_cv_c_const+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 cat >conftest.$ac_ext <<_ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1956 /* FIXME: Include the comments suggested by Paul. */
1958 /* Ultrix mips cc rejects this. */
1959 typedef int charset[2];
1961 /* SunOS 4.1.1 cc rejects this. */
1962 char const *const *ccp;
1964 /* NEC SVR4.0.2 mips cc rejects this. */
1965 struct point {int x, y;};
1966 static struct point const zero = {0,0};
1967 /* AIX XL C 1.02.0.0 rejects this.
1968 It does not let you subtract one const X* pointer from another in
1969 an arm of an if-expression whose if-part is not a constant
1971 const char *g = "string";
1972 ccp = &g + (g ? g-g : 0);
1973 /* HPUX 7.0 cc rejects these. */
1976 ccp = (char const *const *) p;
1977 { /* SCO 3.2v4 cc rejects this. */
1979 char const *s = 0 ? (char *) 0 : (char const *) 0;
1983 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1985 const int *foo = &x[0];
1988 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1989 typedef const int *iptr;
1993 { /* AIX XL C 1.02.0.0 rejects this saying
1994 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1995 struct s { int j; const int *ap[3]; };
1996 struct s *b; b->j = 5;
1998 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2007 rm -f conftest.$ac_objext
2008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2009 (eval $ac_compile) 2>conftest.er1
2011 grep -v '^ *+' conftest.er1 >conftest.err
2013 cat conftest.err >&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); } &&
2016 { ac_try='test -z "$ac_c_werror_flag"
2017 || test ! -s conftest.err'
2018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; } &&
2023 { ac_try='test -s conftest.$ac_objext'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; }; then
2031 echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2038 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2039 echo "${ECHO_T}$ac_cv_c_const" >&6
2040 if test $ac_cv_c_const = no; then
2042 cat >>confdefs.h <<\_ACEOF
2048 echo "$as_me:$LINENO: checking for inline" >&5
2049 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2050 if test "${ac_cv_c_inline+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 for ac_kw in inline __inline__ __inline; do
2055 cat >conftest.$ac_ext <<_ACEOF
2058 cat confdefs.h >>conftest.$ac_ext
2059 cat >>conftest.$ac_ext <<_ACEOF
2060 /* end confdefs.h. */
2063 static $ac_kw foo_t static_foo () {return 0; }
2064 $ac_kw foo_t foo () {return 0; }
2068 rm -f conftest.$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>conftest.er1
2072 grep -v '^ *+' conftest.er1 >conftest.err
2074 cat conftest.err >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -z "$ac_c_werror_flag"
2078 || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 ac_cv_c_inline=$ac_kw; break
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2100 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2101 echo "${ECHO_T}$ac_cv_c_inline" >&6
2104 case $ac_cv_c_inline in
2107 case $ac_cv_c_inline in
2109 *) ac_val=$ac_cv_c_inline;;
2111 cat >>confdefs.h <<_ACEOF
2113 #define inline $ac_val
2119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2130 inttypes.h stdint.h unistd.h
2132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2133 echo "$as_me:$LINENO: checking for $ac_header" >&5
2134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 cat >conftest.$ac_ext <<_ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2144 $ac_includes_default
2146 #include <$ac_header>
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>conftest.er1
2152 grep -v '^ *+' conftest.er1 >conftest.err
2154 cat conftest.err >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -z "$ac_c_werror_flag"
2158 || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2170 eval "$as_ac_Header=yes"
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2175 eval "$as_ac_Header=no"
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2182 cat >>confdefs.h <<_ACEOF
2183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2191 echo "$as_me:$LINENO: checking for off_t" >&5
2192 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2193 if test "${ac_cv_type_off_t+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 cat >conftest.$ac_ext <<_ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2202 $ac_includes_default
2214 rm -f conftest.$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>conftest.er1
2218 grep -v '^ *+' conftest.er1 >conftest.err
2220 cat conftest.err >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 ac_cv_type_off_t=yes
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2245 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2246 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2247 if test $ac_cv_type_off_t = yes; then
2251 cat >>confdefs.h <<_ACEOF
2257 echo "$as_me:$LINENO: checking for size_t" >&5
2258 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2259 if test "${ac_cv_type_size_t+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 cat >conftest.$ac_ext <<_ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2268 $ac_includes_default
2274 if (sizeof (size_t))
2280 rm -f conftest.$ac_objext
2281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282 (eval $ac_compile) 2>conftest.er1
2284 grep -v '^ *+' conftest.er1 >conftest.err
2286 cat conftest.err >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -z "$ac_c_werror_flag"
2290 || test ! -s conftest.err'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 ac_cv_type_size_t=yes
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 ac_cv_type_size_t=no
2309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2311 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2312 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2313 if test $ac_cv_type_size_t = yes; then
2317 cat >>confdefs.h <<_ACEOF
2318 #define size_t unsigned
2323 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2324 # for constant arguments. Useless!
2325 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2326 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2327 if test "${ac_cv_working_alloca_h+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 cat >conftest.$ac_ext <<_ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2340 char *p = (char *) alloca (2 * sizeof (int));
2345 rm -f conftest.$ac_objext conftest$ac_exeext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2347 (eval $ac_link) 2>conftest.er1
2349 grep -v '^ *+' conftest.er1 >conftest.err
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -z "$ac_c_werror_flag"
2355 || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest$ac_exeext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_cv_working_alloca_h=yes
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 ac_cv_working_alloca_h=no
2374 rm -f conftest.err conftest.$ac_objext \
2375 conftest$ac_exeext conftest.$ac_ext
2377 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2378 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2379 if test $ac_cv_working_alloca_h = yes; then
2381 cat >>confdefs.h <<\_ACEOF
2382 #define HAVE_ALLOCA_H 1
2387 echo "$as_me:$LINENO: checking for alloca" >&5
2388 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2389 if test "${ac_cv_func_alloca_works+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 cat >conftest.$ac_ext <<_ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2399 # define alloca __builtin_alloca
2402 # include <malloc.h>
2403 # define alloca _alloca
2406 # include <alloca.h>
2411 # ifndef alloca /* predefined by HP cc +Olibcalls */
2422 char *p = (char *) alloca (1);
2427 rm -f conftest.$ac_objext conftest$ac_exeext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429 (eval $ac_link) 2>conftest.er1
2431 grep -v '^ *+' conftest.er1 >conftest.err
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_c_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest$ac_exeext'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2449 ac_cv_func_alloca_works=yes
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2454 ac_cv_func_alloca_works=no
2456 rm -f conftest.err conftest.$ac_objext \
2457 conftest$ac_exeext conftest.$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2460 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2462 if test $ac_cv_func_alloca_works = yes; then
2464 cat >>confdefs.h <<\_ACEOF
2465 #define HAVE_ALLOCA 1
2469 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2470 # that cause trouble. Some versions do not even contain alloca or
2471 # contain a buggy version. If you still want to use their alloca,
2472 # use ar to extract alloca.o from them instead of compiling alloca.c.
2474 ALLOCA=alloca.$ac_objext
2476 cat >>confdefs.h <<\_ACEOF
2481 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2482 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2483 if test "${ac_cv_os_cray+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2492 #if defined(CRAY) && ! defined(CRAY2)
2499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2500 $EGREP "webecray" >/dev/null 2>&1; then
2508 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2509 echo "${ECHO_T}$ac_cv_os_cray" >&6
2510 if test $ac_cv_os_cray = yes; then
2511 for ac_func in _getb67 GETB67 getb67; do
2512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2513 echo "$as_me:$LINENO: checking for $ac_func" >&5
2514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2515 if eval "test \"\${$as_ac_var+set}\" = set"; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 cat >conftest.$ac_ext <<_ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2526 #define $ac_func innocuous_$ac_func
2528 /* System header to define __stub macros and hopefully few prototypes,
2529 which can conflict with char $ac_func (); below.
2530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2531 <limits.h> exists even on freestanding compilers. */
2534 # include <limits.h>
2536 # include <assert.h>
2541 /* Override any gcc2 internal prototype to avoid an error. */
2546 /* We use char because int might match the return type of a gcc2
2547 builtin and then its argument prototype would still apply. */
2549 /* The GNU C library defines this for functions which it implements
2550 to always fail with ENOSYS. Some functions are actually named
2551 something starting with __ and the normal name is an alias. */
2552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2555 char (*f) () = $ac_func;
2564 return f != $ac_func;
2569 rm -f conftest.$ac_objext conftest$ac_exeext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2571 (eval $ac_link) 2>conftest.er1
2573 grep -v '^ *+' conftest.er1 >conftest.err
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag"
2579 || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest$ac_exeext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 eval "$as_ac_var=yes"
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 eval "$as_ac_var=no"
2598 rm -f conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2603 if test `eval echo '${'$as_ac_var'}'` = yes; then
2605 cat >>confdefs.h <<_ACEOF
2606 #define CRAY_STACKSEG_END $ac_func
2615 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2616 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2617 if test "${ac_cv_c_stack_direction+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 if test "$cross_compiling" = yes; then
2621 ac_cv_c_stack_direction=0
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2630 find_stack_direction ()
2632 static char *addr = 0;
2637 return find_stack_direction ();
2640 return (&dummy > addr) ? 1 : -1;
2646 exit (find_stack_direction () < 0);
2649 rm -f conftest$ac_exeext
2650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2651 (eval $ac_link) 2>&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 ac_cv_c_stack_direction=1
2662 echo "$as_me: program exited with status $ac_status" >&5
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2667 ac_cv_c_stack_direction=-1
2669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2672 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2673 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2675 cat >>confdefs.h <<_ACEOF
2676 #define STACK_DIRECTION $ac_cv_c_stack_direction
2684 for ac_header in stdlib.h unistd.h
2686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2688 echo "$as_me:$LINENO: checking for $ac_header" >&5
2689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2696 # Is the header compilable?
2697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2705 $ac_includes_default
2706 #include <$ac_header>
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_c_werror_flag"
2718 || test ! -s conftest.err'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2730 ac_header_compiler=yes
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2735 ac_header_compiler=no
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2739 echo "${ECHO_T}$ac_header_compiler" >&6
2741 # Is the header present?
2742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2744 cat >conftest.$ac_ext <<_ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2750 #include <$ac_header>
2752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2755 grep -v '^ *+' conftest.er1 >conftest.err
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } >/dev/null; then
2760 if test -s conftest.err; then
2761 ac_cpp_err=$ac_c_preproc_warn_flag
2762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2769 if test -z "$ac_cpp_err"; then
2770 ac_header_preproc=yes
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 ac_header_preproc=no
2777 rm -f conftest.err conftest.$ac_ext
2778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2779 echo "${ECHO_T}$ac_header_preproc" >&6
2781 # So? What about this header?
2782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2788 ac_header_preproc=yes
2791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2805 ## ------------------------------------------ ##
2806 ## Report this to the AC_PACKAGE_NAME lists. ##
2807 ## ------------------------------------------ ##
2810 sed "s/^/$as_me: WARNING: /" >&2
2813 echo "$as_me:$LINENO: checking for $ac_header" >&5
2814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 eval "$as_ac_Header=\$ac_header_preproc"
2820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2825 cat >>confdefs.h <<_ACEOF
2826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2834 for ac_func in getpagesize
2836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2837 echo "$as_me:$LINENO: checking for $ac_func" >&5
2838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2839 if eval "test \"\${$as_ac_var+set}\" = set"; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 cat >conftest.$ac_ext <<_ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2850 #define $ac_func innocuous_$ac_func
2852 /* System header to define __stub macros and hopefully few prototypes,
2853 which can conflict with char $ac_func (); below.
2854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2855 <limits.h> exists even on freestanding compilers. */
2858 # include <limits.h>
2860 # include <assert.h>
2865 /* Override any gcc2 internal prototype to avoid an error. */
2870 /* We use char because int might match the return type of a gcc2
2871 builtin and then its argument prototype would still apply. */
2873 /* The GNU C library defines this for functions which it implements
2874 to always fail with ENOSYS. Some functions are actually named
2875 something starting with __ and the normal name is an alias. */
2876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2879 char (*f) () = $ac_func;
2888 return f != $ac_func;
2893 rm -f conftest.$ac_objext conftest$ac_exeext
2894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2895 (eval $ac_link) 2>conftest.er1
2897 grep -v '^ *+' conftest.er1 >conftest.err
2899 cat conftest.err >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } &&
2902 { ac_try='test -z "$ac_c_werror_flag"
2903 || test ! -s conftest.err'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; } &&
2909 { ac_try='test -s conftest$ac_exeext'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2915 eval "$as_ac_var=yes"
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2920 eval "$as_ac_var=no"
2922 rm -f conftest.err conftest.$ac_objext \
2923 conftest$ac_exeext conftest.$ac_ext
2925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2927 if test `eval echo '${'$as_ac_var'}'` = yes; then
2928 cat >>confdefs.h <<_ACEOF
2929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2935 echo "$as_me:$LINENO: checking for working mmap" >&5
2936 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2937 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 if test "$cross_compiling" = yes; then
2941 ac_cv_func_mmap_fixed_mapped=no
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 $ac_includes_default
2950 /* malloc might have been renamed as rpl_malloc. */
2953 /* Thanks to Mike Haertel and Jim Avera for this test.
2954 Here is a matrix of mmap possibilities:
2955 mmap private not fixed
2956 mmap private fixed at somewhere currently unmapped
2957 mmap private fixed at somewhere already mapped
2958 mmap shared not fixed
2959 mmap shared fixed at somewhere currently unmapped
2960 mmap shared fixed at somewhere already mapped
2961 For private mappings, we should verify that changes cannot be read()
2962 back from the file, nor mmap's back from the file at a different
2963 address. (There have been systems where private was not correctly
2964 implemented like the infamous i386 svr4.0, and systems where the
2965 VM page cache was not coherent with the file system buffer cache
2966 like early versions of FreeBSD and possibly contemporary NetBSD.)
2967 For shared mappings, we should conversely verify that changes get
2968 propagated back to all the places they're supposed to be.
2970 Grep wants private fixed already mapped.
2971 The main things grep needs to know about mmap are:
2972 * does it exist and is it safe to write into the mmap'd area
2973 * how to use it (BSD variants) */
2976 #include <sys/mman.h>
2978 #if !STDC_HEADERS && !HAVE_STDLIB_H
2982 /* This mess was copied from the GNU getpagesize.h. */
2983 #if !HAVE_GETPAGESIZE
2984 /* Assume that all systems that can run configure have sys/param.h. */
2985 # if !HAVE_SYS_PARAM_H
2986 # define HAVE_SYS_PARAM_H 1
2989 # ifdef _SC_PAGESIZE
2990 # define getpagesize() sysconf(_SC_PAGESIZE)
2991 # else /* no _SC_PAGESIZE */
2992 # if HAVE_SYS_PARAM_H
2993 # include <sys/param.h>
2994 # ifdef EXEC_PAGESIZE
2995 # define getpagesize() EXEC_PAGESIZE
2996 # else /* no EXEC_PAGESIZE */
2998 # define getpagesize() NBPG * CLSIZE
3001 # endif /* no CLSIZE */
3002 # else /* no NBPG */
3004 # define getpagesize() NBPC
3005 # else /* no NBPC */
3007 # define getpagesize() PAGESIZE
3008 # endif /* PAGESIZE */
3009 # endif /* no NBPC */
3010 # endif /* no NBPG */
3011 # endif /* no EXEC_PAGESIZE */
3012 # else /* no HAVE_SYS_PARAM_H */
3013 # define getpagesize() 8192 /* punt totally */
3014 # endif /* no HAVE_SYS_PARAM_H */
3015 # endif /* no _SC_PAGESIZE */
3017 #endif /* no HAVE_GETPAGESIZE */
3022 char *data, *data2, *data3;
3026 pagesize = getpagesize ();
3028 /* First, make a file with some known garbage in it. */
3029 data = (char *) malloc (pagesize);
3032 for (i = 0; i < pagesize; ++i)
3033 *(data + i) = rand ();
3035 fd = creat ("conftest.mmap", 0600);
3038 if (write (fd, data, pagesize) != pagesize)
3042 /* Next, try to mmap the file at a fixed address which already has
3043 something else allocated at it. If we can, also make sure that
3044 we see the same garbage. */
3045 fd = open ("conftest.mmap", O_RDWR);
3048 data2 = (char *) malloc (2 * pagesize);
3051 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3052 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3053 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3055 for (i = 0; i < pagesize; ++i)
3056 if (*(data + i) != *(data2 + i))
3059 /* Finally, make sure that changes to the mapped area do not
3060 percolate back to the file as seen by read(). (This is a bug on
3061 some variants of i386 svr4.0.) */
3062 for (i = 0; i < pagesize; ++i)
3063 *(data2 + i) = *(data2 + i) + 1;
3064 data3 = (char *) malloc (pagesize);
3067 if (read (fd, data3, pagesize) != pagesize)
3069 for (i = 0; i < pagesize; ++i)
3070 if (*(data + i) != *(data3 + i))
3076 rm -f conftest$ac_exeext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078 (eval $ac_link) 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 ac_cv_func_mmap_fixed_mapped=yes
3089 echo "$as_me: program exited with status $ac_status" >&5
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3094 ac_cv_func_mmap_fixed_mapped=no
3096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3099 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3100 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3101 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3103 cat >>confdefs.h <<\_ACEOF
3111 # autoconf.info says this should be called right after AC_INIT.
3112 ac_config_headers="$ac_config_headers config.h:config.in"
3116 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
3117 if test -f $ac_dir/install-sh; then
3119 ac_install_sh="$ac_aux_dir/install-sh -c"
3121 elif test -f $ac_dir/install.sh; then
3123 ac_install_sh="$ac_aux_dir/install.sh -c"
3125 elif test -f $ac_dir/shtool; then
3127 ac_install_sh="$ac_aux_dir/shtool install -c"
3131 if test -z "$ac_aux_dir"; then
3132 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5
3133 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;}
3134 { (exit 1); exit 1; }; }
3136 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3137 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3138 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3140 echo "$as_me:$LINENO: checking target system type" >&5
3141 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3142 if test "${ac_cv_target+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 ac_cv_target_alias=$target_alias
3146 test "x$ac_cv_target_alias" = "x" &&
3147 ac_cv_target_alias=$ac_cv_host_alias
3148 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3149 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3150 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3151 { (exit 1); exit 1; }; }
3154 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3155 echo "${ECHO_T}$ac_cv_target" >&6
3156 target=$ac_cv_target
3157 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3158 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3159 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3162 # The aliases save the names the user supplied, while $host etc.
3163 # will get canonicalized.
3164 test -n "$target_alias" &&
3165 test "$program_prefix$program_suffix$program_transform_name" = \
3167 program_prefix=${target_alias}-
3168 test "$program_prefix" != NONE &&
3169 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3170 # Use a double $ so make ignores it.
3171 test "$program_suffix" != NONE &&
3172 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3173 # Double any \ or $. echo might interpret backslashes.
3174 # By default was `s,x,x', remove it if useless.
3175 cat <<\_ACEOF >conftest.sed
3176 s/[\\$]/&&/g;s/;s,x,x,$//
3178 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186 if test -n "$ac_tool_prefix"; then
3187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_CC+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 if test -n "$CC"; then
3215 echo "$as_me:$LINENO: result: $CC" >&5
3216 echo "${ECHO_T}$CC" >&6
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3223 if test -z "$ac_cv_prog_CC"; then
3225 # Extract the first word of "gcc", so it can be a program name with args.
3226 set dummy gcc; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_ac_ct_CC="gcc"
3243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252 if test -n "$ac_ct_CC"; then
3253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3254 echo "${ECHO_T}$ac_ct_CC" >&6
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3265 if test -z "$CC"; then
3266 if test -n "$ac_tool_prefix"; then
3267 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3268 set dummy ${ac_tool_prefix}cc; ac_word=$2
3269 echo "$as_me:$LINENO: checking for $ac_word" >&5
3270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3271 if test "${ac_cv_prog_CC+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 if test -n "$CC"; then
3275 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_CC="${ac_tool_prefix}cc"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test -n "$CC"; then
3295 echo "$as_me:$LINENO: result: $CC" >&5
3296 echo "${ECHO_T}$CC" >&6
3298 echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6
3303 if test -z "$ac_cv_prog_CC"; then
3305 # Extract the first word of "cc", so it can be a program name with args.
3306 set dummy cc; ac_word=$2
3307 echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 if test -n "$ac_ct_CC"; then
3313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_ac_ct_CC="cc"
3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332 if test -n "$ac_ct_CC"; then
3333 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3334 echo "${ECHO_T}$ac_ct_CC" >&6
3336 echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6
3346 if test -z "$CC"; then
3347 # Extract the first word of "cc", so it can be a program name with args.
3348 set dummy cc; ac_word=$2
3349 echo "$as_me:$LINENO: checking for $ac_word" >&5
3350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3351 if test "${ac_cv_prog_CC+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3366 ac_prog_rejected=yes
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 if test $ac_prog_rejected = yes; then
3377 # We found a bogon in the path, so make sure we never use it.
3378 set dummy $ac_cv_prog_CC
3380 if test $# != 0; then
3381 # We chose a different compiler from the bogus one.
3382 # However, it has the same basename, so the bogon will be chosen
3383 # first if we set CC to just the basename; use the full file name.
3385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3391 if test -n "$CC"; then
3392 echo "$as_me:$LINENO: result: $CC" >&5
3393 echo "${ECHO_T}$CC" >&6
3395 echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3400 if test -z "$CC"; then
3401 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3406 echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408 if test "${ac_cv_prog_CC+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 if test -n "$CC"; then
3432 echo "$as_me:$LINENO: result: $CC" >&5
3433 echo "${ECHO_T}$CC" >&6
3435 echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3439 test -n "$CC" && break
3442 if test -z "$CC"; then
3446 # Extract the first word of "$ac_prog", so it can be a program name with args.
3447 set dummy $ac_prog; ac_word=$2
3448 echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 if test -n "$ac_ct_CC"; then
3454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463 ac_cv_prog_ac_ct_CC="$ac_prog"
3464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3473 if test -n "$ac_ct_CC"; then
3474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3475 echo "${ECHO_T}$ac_ct_CC" >&6
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3481 test -n "$ac_ct_CC" && break
3490 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3491 See \`config.log' for more details." >&5
3492 echo "$as_me: error: no acceptable C compiler found in \$PATH
3493 See \`config.log' for more details." >&2;}
3494 { (exit 1); exit 1; }; }
3496 # Provide some information about the compiler.
3497 echo "$as_me:$LINENO:" \
3498 "checking for C compiler version" >&5
3499 ac_compiler=`set X $ac_compile; echo $2`
3500 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3501 (eval $ac_compiler --version </dev/null >&5) 2>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }
3505 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3506 (eval $ac_compiler -v </dev/null >&5) 2>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }
3510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3511 (eval $ac_compiler -V </dev/null >&5) 2>&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }
3516 cat >conftest.$ac_ext <<_ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3531 ac_clean_files_save=$ac_clean_files
3532 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3533 # Try to create an executable without -o first, disregard a.out.
3534 # It will help us diagnose broken compilers, and finding out an intuition
3536 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3537 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3538 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3539 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3540 (eval $ac_link_default) 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; then
3544 # Find the output, starting from the most likely. This scheme is
3545 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3548 # Be careful to initialize this variable, since it used to be cached.
3549 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3551 # b.out is created by i960 compilers.
3552 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3554 test -f "$ac_file" || continue
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3559 # This is the source file.
3562 # We found the default executable, but exeext='' is most
3566 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3567 # FIXME: I believe we export ac_cv_exeext for Libtool,
3568 # but it would be cool to find out if it's true. Does anybody
3569 # maintain Libtool? --akim.
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&5
3582 echo "$as_me: error: C compiler cannot create executables
3583 See \`config.log' for more details." >&2;}
3584 { (exit 77); exit 77; }; }
3587 ac_exeext=$ac_cv_exeext
3588 echo "$as_me:$LINENO: result: $ac_file" >&5
3589 echo "${ECHO_T}$ac_file" >&6
3591 # Check the compiler produces executables we can run. If not, either
3592 # the compiler is broken, or we cross compile.
3593 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3596 # If not cross compiling, check that we can run a simple program.
3597 if test "$cross_compiling" != yes; then
3598 if { ac_try='./$ac_file'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3606 if test "$cross_compiling" = maybe; then
3609 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3610 If you meant to cross compile, use \`--host'.
3611 See \`config.log' for more details." >&5
3612 echo "$as_me: error: cannot run C compiled programs.
3613 If you meant to cross compile, use \`--host'.
3614 See \`config.log' for more details." >&2;}
3615 { (exit 1); exit 1; }; }
3619 echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6
3622 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3623 ac_clean_files=$ac_clean_files_save
3624 # Check the compiler produces executables we can run. If not, either
3625 # the compiler is broken, or we cross compile.
3626 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3627 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3628 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3629 echo "${ECHO_T}$cross_compiling" >&6
3631 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3632 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3634 (eval $ac_link) 2>&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; then
3638 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3639 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3640 # work properly (i.e., refer to `conftest.exe'), while it won't with
3642 for ac_file in conftest.exe conftest conftest.*; do
3643 test -f "$ac_file" || continue
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3646 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3653 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3654 See \`config.log' for more details." >&5
3655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3656 See \`config.log' for more details." >&2;}
3657 { (exit 1); exit 1; }; }
3660 rm -f conftest$ac_cv_exeext
3661 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3662 echo "${ECHO_T}$ac_cv_exeext" >&6
3664 rm -f conftest.$ac_ext
3665 EXEEXT=$ac_cv_exeext
3667 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3669 if test "${ac_cv_objext+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 cat >conftest.$ac_ext <<_ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3687 rm -f conftest.o conftest.obj
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; then
3693 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3696 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3704 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3705 See \`config.log' for more details." >&5
3706 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3707 See \`config.log' for more details." >&2;}
3708 { (exit 1); exit 1; }; }
3711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3713 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3714 echo "${ECHO_T}$ac_cv_objext" >&6
3715 OBJEXT=$ac_cv_objext
3717 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3718 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3719 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 cat >conftest.$ac_ext <<_ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3740 rm -f conftest.$ac_objext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742 (eval $ac_compile) 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -z "$ac_c_werror_flag"
3750 || test ! -s conftest.err'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; } &&
3756 { ac_try='test -s conftest.$ac_objext'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3773 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3775 GCC=`test $ac_compiler_gnu = yes && echo yes`
3776 ac_test_CFLAGS=${CFLAGS+set}
3777 ac_save_CFLAGS=$CFLAGS
3779 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3781 if test "${ac_cv_prog_cc_g+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 cat >conftest.$ac_ext <<_ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3799 rm -f conftest.$ac_objext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801 (eval $ac_compile) 2>conftest.er1
3803 grep -v '^ *+' conftest.er1 >conftest.err
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest.$ac_objext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3831 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3832 if test "$ac_test_CFLAGS" = set; then
3833 CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835 if test "$GCC" = yes; then
3841 if test "$GCC" = yes; then
3847 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 ac_cv_prog_cc_stdc=no
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3862 #include <sys/types.h>
3863 #include <sys/stat.h>
3864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3865 struct buf { int x; };
3866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3867 static char *e (p, i)
3873 static char *f (char * (*g) (char **, int), char **p, ...)
3878 s = g (p, va_arg (v,int));
3883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3884 function prototypes and stuff, but not '\xHH' hex character constants.
3885 These don't provoke an error unfortunately, instead are silently treated
3886 as 'x'. The following induces an error, until -std1 is added to get
3887 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3888 array size at least. It's necessary to write '\x00'==0 to get something
3889 that's true only with -std1. */
3890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3892 int test (int i, double x);
3893 struct s1 {int (*f) (int a);};
3894 struct s2 {int (*f) (double a);};
3895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3906 # Don't try gcc -ansi; that turns off useful extensions and
3907 # breaks some systems' header files.
3908 # AIX -qlanglvl=ansi
3909 # Ultrix and OSF/1 -std1
3910 # HP-UX 10.20 and later -Ae
3911 # HP-UX older versions -Aa -D_HPUX_SOURCE
3912 # SVR4 -Xc -D__EXTENSIONS__
3913 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3915 CC="$ac_save_CC $ac_arg"
3916 rm -f conftest.$ac_objext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918 (eval $ac_compile) 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } &&
3925 { ac_try='test -z "$ac_c_werror_flag"
3926 || test ! -s conftest.err'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try='test -s conftest.$ac_objext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_prog_cc_stdc=$ac_arg
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3945 rm -f conftest.err conftest.$ac_objext
3947 rm -f conftest.$ac_ext conftest.$ac_objext
3952 case "x$ac_cv_prog_cc_stdc" in
3954 echo "$as_me:$LINENO: result: none needed" >&5
3955 echo "${ECHO_T}none needed" >&6 ;;
3957 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3958 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3959 CC="$CC $ac_cv_prog_cc_stdc" ;;
3962 # Some people use a C++ compiler to compile C. Since we use `exit',
3963 # in C++ we need to declare it. In case someone uses the same compiler
3964 # for both compiling C and C++ we need to have the C++ compiler decide
3965 # the declaration of exit, since it's the most demanding environment.
3966 cat >conftest.$ac_ext <<_ACEOF
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>conftest.er1
3975 grep -v '^ *+' conftest.er1 >conftest.err
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } &&
3980 { ac_try='test -z "$ac_c_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 for ac_declaration in \
3995 'extern "C" void std::exit (int) throw (); using std::exit;' \
3996 'extern "C" void std::exit (int); using std::exit;' \
3997 'extern "C" void exit (int) throw ();' \
3998 'extern "C" void exit (int);' \
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_c_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 if test -n "$ac_declaration"; then
4094 echo '#ifdef __cplusplus' >>confdefs.h
4095 echo $ac_declaration >>confdefs.h
4096 echo '#endif' >>confdefs.h
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 # Find a good install program. We prefer a C program (faster),
4112 # so one script is as good as another. But avoid the broken or
4113 # incompatible versions:
4114 # SysV /etc/install, /usr/sbin/install
4115 # SunOS /usr/etc/install
4116 # IRIX /sbin/install
4118 # AmigaOS /C/install, which installs bootblocks on floppy discs
4119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4122 # OS/2's system install, which has a completely different semantic
4123 # ./install, which can be erroneously created by make from ./install.sh.
4124 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4125 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4126 if test -z "$INSTALL"; then
4127 if test "${ac_cv_path_install+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir=.
4135 # Account for people who put trailing slashes in PATH elements.
4137 ./ | .// | /cC/* | \
4138 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4139 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4142 # OSF1 and SCO ODT 3.0 have their own names for install.
4143 # Don't use installbsd from OSF since it installs stuff as root
4145 for ac_prog in ginstall scoinst install; do
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4148 if test $ac_prog = install &&
4149 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4150 # AIX install. It has an incompatible calling convention.
4152 elif test $ac_prog = install &&
4153 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4154 # program-specific install script used by HP pwplus--don't use.
4157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4169 if test "${ac_cv_path_install+set}" = set; then
4170 INSTALL=$ac_cv_path_install
4172 # As a last resort, use the slow shell script. We don't cache a
4173 # path for INSTALL within a source directory, because that will
4174 # break other packages using the cache if that directory is
4175 # removed, or if the path is relative.
4176 INSTALL=$ac_install_sh
4179 echo "$as_me:$LINENO: result: $INSTALL" >&5
4180 echo "${ECHO_T}$INSTALL" >&6
4182 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4183 # It thinks the first close brace ends the variable substitution.
4184 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4186 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4191 # Put a plausible default for CC_FOR_BUILD in Makefile.
4192 if test "x$cross_compiling" = "xno"; then
4193 CC_FOR_BUILD='$(CC)'
4203 if test -n "$ac_tool_prefix"; then
4204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4205 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_prog_RANLIB+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 if test -n "$RANLIB"; then
4212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 RANLIB=$ac_cv_prog_RANLIB
4231 if test -n "$RANLIB"; then
4232 echo "$as_me:$LINENO: result: $RANLIB" >&5
4233 echo "${ECHO_T}$RANLIB" >&6
4235 echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4240 if test -z "$ac_cv_prog_RANLIB"; then
4241 ac_ct_RANLIB=$RANLIB
4242 # Extract the first word of "ranlib", so it can be a program name with args.
4243 set dummy ranlib; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if test -n "$ac_ct_RANLIB"; then
4250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_ac_ct_RANLIB="ranlib"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4269 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4270 if test -n "$ac_ct_RANLIB"; then
4271 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4272 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4278 RANLIB=$ac_ct_RANLIB
4280 RANLIB="$ac_cv_prog_RANLIB"
4295 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4296 unistd.h values.h sys/param.h
4298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4300 echo "$as_me:$LINENO: checking for $ac_header" >&5
4301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4308 # Is the header compilable?
4309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 $ac_includes_default
4318 #include <$ac_header>
4320 rm -f conftest.$ac_objext
4321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4322 (eval $ac_compile) 2>conftest.er1
4324 grep -v '^ *+' conftest.er1 >conftest.err
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -z "$ac_c_werror_flag"
4330 || test ! -s conftest.err'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; } &&
4336 { ac_try='test -s conftest.$ac_objext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 ac_header_compiler=yes
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4347 ac_header_compiler=no
4349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4351 echo "${ECHO_T}$ac_header_compiler" >&6
4353 # Is the header present?
4354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <$ac_header>
4364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4367 grep -v '^ *+' conftest.er1 >conftest.err
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } >/dev/null; then
4372 if test -s conftest.err; then
4373 ac_cpp_err=$ac_c_preproc_warn_flag
4374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4381 if test -z "$ac_cpp_err"; then
4382 ac_header_preproc=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_header_preproc=no
4389 rm -f conftest.err conftest.$ac_ext
4390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4391 echo "${ECHO_T}$ac_header_preproc" >&6
4393 # So? What about this header?
4394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4400 ac_header_preproc=yes
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4417 ## ------------------------------------------ ##
4418 ## Report this to the AC_PACKAGE_NAME lists. ##
4419 ## ------------------------------------------ ##
4422 sed "s/^/$as_me: WARNING: /" >&2
4425 echo "$as_me:$LINENO: checking for $ac_header" >&5
4426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 eval "$as_ac_Header=\$ac_header_preproc"
4432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4437 cat >>confdefs.h <<_ACEOF
4438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4455 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4456 __argz_count __argz_stringify __argz_next
4458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4459 echo "$as_me:$LINENO: checking for $ac_func" >&5
4460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4461 if eval "test \"\${$as_ac_var+set}\" = set"; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 cat >conftest.$ac_ext <<_ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4472 #define $ac_func innocuous_$ac_func
4474 /* System header to define __stub macros and hopefully few prototypes,
4475 which can conflict with char $ac_func (); below.
4476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4477 <limits.h> exists even on freestanding compilers. */
4480 # include <limits.h>
4482 # include <assert.h>
4487 /* Override any gcc2 internal prototype to avoid an error. */
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4495 /* The GNU C library defines this for functions which it implements
4496 to always fail with ENOSYS. Some functions are actually named
4497 something starting with __ and the normal name is an alias. */
4498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4501 char (*f) () = $ac_func;
4510 return f != $ac_func;
4515 rm -f conftest.$ac_objext conftest$ac_exeext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4517 (eval $ac_link) 2>conftest.er1
4519 grep -v '^ *+' conftest.er1 >conftest.err
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest$ac_exeext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 eval "$as_ac_var=yes"
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 eval "$as_ac_var=no"
4544 rm -f conftest.err conftest.$ac_objext \
4545 conftest$ac_exeext conftest.$ac_ext
4547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4549 if test `eval echo '${'$as_ac_var'}'` = yes; then
4550 cat >>confdefs.h <<_ACEOF
4551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4558 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4560 for ac_func in stpcpy
4562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4563 echo "$as_me:$LINENO: checking for $ac_func" >&5
4564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4565 if eval "test \"\${$as_ac_var+set}\" = set"; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4576 #define $ac_func innocuous_$ac_func
4578 /* System header to define __stub macros and hopefully few prototypes,
4579 which can conflict with char $ac_func (); below.
4580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581 <limits.h> exists even on freestanding compilers. */
4584 # include <limits.h>
4586 # include <assert.h>
4591 /* Override any gcc2 internal prototype to avoid an error. */
4596 /* We use char because int might match the return type of a gcc2
4597 builtin and then its argument prototype would still apply. */
4599 /* The GNU C library defines this for functions which it implements
4600 to always fail with ENOSYS. Some functions are actually named
4601 something starting with __ and the normal name is an alias. */
4602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4605 char (*f) () = $ac_func;
4614 return f != $ac_func;
4619 rm -f conftest.$ac_objext conftest$ac_exeext
4620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4621 (eval $ac_link) 2>conftest.er1
4623 grep -v '^ *+' conftest.er1 >conftest.err
4625 cat conftest.err >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } &&
4628 { ac_try='test -z "$ac_c_werror_flag"
4629 || test ! -s conftest.err'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; } &&
4635 { ac_try='test -s conftest$ac_exeext'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 eval "$as_ac_var=yes"
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 eval "$as_ac_var=no"
4648 rm -f conftest.err conftest.$ac_objext \
4649 conftest$ac_exeext conftest.$ac_ext
4651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4653 if test `eval echo '${'$as_ac_var'}'` = yes; then
4654 cat >>confdefs.h <<_ACEOF
4655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4662 if test "${ac_cv_func_stpcpy}" = "yes"; then
4663 cat >>confdefs.h <<\_ACEOF
4664 #define HAVE_STPCPY 1
4669 if test $ac_cv_header_locale_h = yes; then
4670 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4671 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4672 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 cat >conftest.$ac_ext <<_ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4690 rm -f conftest.$ac_objext conftest$ac_exeext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>conftest.er1
4694 grep -v '^ *+' conftest.er1 >conftest.err
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 am_cv_val_LC_MESSAGES=yes
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 am_cv_val_LC_MESSAGES=no
4719 rm -f conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
4722 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4723 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4724 if test $am_cv_val_LC_MESSAGES = yes; then
4725 cat >>confdefs.h <<\_ACEOF
4726 #define HAVE_LC_MESSAGES 1
4731 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4732 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4733 # Check whether --enable-nls or --disable-nls was given.
4734 if test "${enable_nls+set}" = set; then
4735 enableval="$enable_nls"
4740 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4741 echo "${ECHO_T}$USE_NLS" >&6
4744 USE_INCLUDED_LIBINTL=no
4746 if test "$USE_NLS" = "yes"; then
4747 cat >>confdefs.h <<\_ACEOF
4748 #define ENABLE_NLS 1
4751 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4752 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4754 # Check whether --with-included-gettext or --without-included-gettext was given.
4755 if test "${with_included_gettext+set}" = set; then
4756 withval="$with_included_gettext"
4757 nls_cv_force_use_gnu_gettext=$withval
4759 nls_cv_force_use_gnu_gettext=no
4761 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4762 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4764 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4765 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4767 nls_cv_header_libgt=
4770 if test "${ac_cv_header_libintl_h+set}" = set; then
4771 echo "$as_me:$LINENO: checking for libintl.h" >&5
4772 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4773 if test "${ac_cv_header_libintl_h+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4777 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4779 # Is the header compilable?
4780 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4781 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4782 cat >conftest.$ac_ext <<_ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788 $ac_includes_default
4789 #include <libintl.h>
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4795 grep -v '^ *+' conftest.er1 >conftest.err
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_c_werror_flag"
4801 || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 ac_header_compiler=yes
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 ac_header_compiler=no
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4822 echo "${ECHO_T}$ac_header_compiler" >&6
4824 # Is the header present?
4825 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4826 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4827 cat >conftest.$ac_ext <<_ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 #include <libintl.h>
4835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4838 grep -v '^ *+' conftest.er1 >conftest.err
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } >/dev/null; then
4843 if test -s conftest.err; then
4844 ac_cpp_err=$ac_c_preproc_warn_flag
4845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4852 if test -z "$ac_cpp_err"; then
4853 ac_header_preproc=yes
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 ac_header_preproc=no
4860 rm -f conftest.err conftest.$ac_ext
4861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4862 echo "${ECHO_T}$ac_header_preproc" >&6
4864 # So? What about this header?
4865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4867 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4868 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4869 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4870 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4871 ac_header_preproc=yes
4874 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4875 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4876 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4877 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4879 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4881 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4883 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4885 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4888 ## ------------------------------------------ ##
4889 ## Report this to the AC_PACKAGE_NAME lists. ##
4890 ## ------------------------------------------ ##
4893 sed "s/^/$as_me: WARNING: /" >&2
4896 echo "$as_me:$LINENO: checking for libintl.h" >&5
4897 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4898 if test "${ac_cv_header_libintl_h+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 ac_cv_header_libintl_h=$ac_header_preproc
4903 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4904 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4907 if test $ac_cv_header_libintl_h = yes; then
4908 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4909 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4910 if test "${gt_cv_func_gettext_libc+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 cat >conftest.$ac_ext <<_ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <libintl.h>
4923 return (int) gettext ("")
4928 rm -f conftest.$ac_objext conftest$ac_exeext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4930 (eval $ac_link) 2>conftest.er1
4932 grep -v '^ *+' conftest.er1 >conftest.err
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } &&
4937 { ac_try='test -z "$ac_c_werror_flag"
4938 || test ! -s conftest.err'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; } &&
4944 { ac_try='test -s conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 gt_cv_func_gettext_libc=yes
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 gt_cv_func_gettext_libc=no
4957 rm -f conftest.err conftest.$ac_objext \
4958 conftest$ac_exeext conftest.$ac_ext
4960 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4961 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4963 if test "$gt_cv_func_gettext_libc" != "yes"; then
4964 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4965 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4966 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 ac_check_lib_save_LIBS=$LIBS
4971 cat >conftest.$ac_ext <<_ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4978 /* Override any gcc2 internal prototype to avoid an error. */
4982 /* We use char because int might match the return type of a gcc2
4983 builtin and then its argument prototype would still apply. */
4984 char bindtextdomain ();
4993 rm -f conftest.$ac_objext conftest$ac_exeext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4995 (eval $ac_link) 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -z "$ac_c_werror_flag"
5003 || test ! -s conftest.err'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try='test -s conftest$ac_exeext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 ac_cv_lib_intl_bindtextdomain=yes
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5020 ac_cv_lib_intl_bindtextdomain=no
5022 rm -f conftest.err conftest.$ac_objext \
5023 conftest$ac_exeext conftest.$ac_ext
5024 LIBS=$ac_check_lib_save_LIBS
5026 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5027 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5028 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5029 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5030 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5031 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 cat >conftest.$ac_ext <<_ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5044 return (int) gettext ("")
5049 rm -f conftest.$ac_objext conftest$ac_exeext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5051 (eval $ac_link) 2>conftest.er1
5053 grep -v '^ *+' conftest.er1 >conftest.err
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -z "$ac_c_werror_flag"
5059 || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest$ac_exeext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 gt_cv_func_gettext_libintl=yes
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 gt_cv_func_gettext_libintl=no
5078 rm -f conftest.err conftest.$ac_objext \
5079 conftest$ac_exeext conftest.$ac_ext
5081 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5082 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5087 if test "$gt_cv_func_gettext_libc" = "yes" \
5088 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5089 cat >>confdefs.h <<\_ACEOF
5090 #define HAVE_GETTEXT 1
5093 # Extract the first word of "msgfmt", so it can be a program name with args.
5094 set dummy msgfmt; ac_word=$2
5095 echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097 if test "${ac_cv_path_MSGFMT+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5106 for ac_dir in $PATH; do
5107 test -z "$ac_dir" && ac_dir=.
5108 if test -f $ac_dir/$ac_word; then
5109 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5110 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5116 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5120 MSGFMT="$ac_cv_path_MSGFMT"
5121 if test -n "$MSGFMT"; then
5122 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5123 echo "${ECHO_T}$MSGFMT" >&6
5125 echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5128 if test "$MSGFMT" != "no"; then
5130 for ac_func in dcgettext
5132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5133 echo "$as_me:$LINENO: checking for $ac_func" >&5
5134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5135 if eval "test \"\${$as_ac_var+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 cat >conftest.$ac_ext <<_ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5146 #define $ac_func innocuous_$ac_func
5148 /* System header to define __stub macros and hopefully few prototypes,
5149 which can conflict with char $ac_func (); below.
5150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5151 <limits.h> exists even on freestanding compilers. */
5154 # include <limits.h>
5156 # include <assert.h>
5161 /* Override any gcc2 internal prototype to avoid an error. */
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5169 /* The GNU C library defines this for functions which it implements
5170 to always fail with ENOSYS. Some functions are actually named
5171 something starting with __ and the normal name is an alias. */
5172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5175 char (*f) () = $ac_func;
5184 return f != $ac_func;
5189 rm -f conftest.$ac_objext conftest$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191 (eval $ac_link) 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try='test -z "$ac_c_werror_flag"
5199 || test ! -s conftest.err'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; } &&
5205 { ac_try='test -s conftest$ac_exeext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 eval "$as_ac_var=yes"
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 eval "$as_ac_var=no"
5218 rm -f conftest.err conftest.$ac_objext \
5219 conftest$ac_exeext conftest.$ac_ext
5221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5223 if test `eval echo '${'$as_ac_var'}'` = yes; then
5224 cat >>confdefs.h <<_ACEOF
5225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5231 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5232 set dummy gmsgfmt; ac_word=$2
5233 echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5261 GMSGFMT=$ac_cv_path_GMSGFMT
5263 if test -n "$GMSGFMT"; then
5264 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5265 echo "${ECHO_T}$GMSGFMT" >&6
5267 echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5271 # Extract the first word of "xgettext", so it can be a program name with args.
5272 set dummy xgettext; ac_word=$2
5273 echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5284 for ac_dir in $PATH; do
5285 test -z "$ac_dir" && ac_dir=.
5286 if test -f $ac_dir/$ac_word; then
5287 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5288 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5294 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5298 XGETTEXT="$ac_cv_path_XGETTEXT"
5299 if test -n "$XGETTEXT"; then
5300 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5301 echo "${ECHO_T}$XGETTEXT" >&6
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5317 extern int _nl_msg_cat_cntr;
5318 return _nl_msg_cat_cntr
5323 rm -f conftest.$ac_objext conftest$ac_exeext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5325 (eval $ac_link) 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -z "$ac_c_werror_flag"
5333 || test ! -s conftest.err'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; } &&
5339 { ac_try='test -s conftest$ac_exeext'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5354 rm -f conftest.err conftest.$ac_objext \
5355 conftest$ac_exeext conftest.$ac_ext
5365 if test "$CATOBJEXT" = "NONE"; then
5366 nls_cv_use_gnu_gettext=yes
5370 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5371 INTLOBJS="\$(GETTOBJS)"
5372 # Extract the first word of "msgfmt", so it can be a program name with args.
5373 set dummy msgfmt; ac_word=$2
5374 echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5376 if test "${ac_cv_path_MSGFMT+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5385 for ac_dir in $PATH; do
5386 test -z "$ac_dir" && ac_dir=.
5387 if test -f $ac_dir/$ac_word; then
5388 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5389 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5395 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5399 MSGFMT="$ac_cv_path_MSGFMT"
5400 if test -n "$MSGFMT"; then
5401 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5402 echo "${ECHO_T}$MSGFMT" >&6
5404 echo "$as_me:$LINENO: result: no" >&5
5405 echo "${ECHO_T}no" >&6
5408 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5409 set dummy gmsgfmt; ac_word=$2
5410 echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5412 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5438 GMSGFMT=$ac_cv_path_GMSGFMT
5440 if test -n "$GMSGFMT"; then
5441 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5442 echo "${ECHO_T}$GMSGFMT" >&6
5444 echo "$as_me:$LINENO: result: no" >&5
5445 echo "${ECHO_T}no" >&6
5448 # Extract the first word of "xgettext", so it can be a program name with args.
5449 set dummy xgettext; ac_word=$2
5450 echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5452 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5461 for ac_dir in $PATH; do
5462 test -z "$ac_dir" && ac_dir=.
5463 if test -f $ac_dir/$ac_word; then
5464 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5465 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5471 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5475 XGETTEXT="$ac_cv_path_XGETTEXT"
5476 if test -n "$XGETTEXT"; then
5477 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5478 echo "${ECHO_T}$XGETTEXT" >&6
5480 echo "$as_me:$LINENO: result: no" >&5
5481 echo "${ECHO_T}no" >&6
5485 USE_INCLUDED_LIBINTL=yes
5489 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5491 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5492 nls_cv_header_intl=libintl.h
5493 nls_cv_header_libgt=libgettext.h
5496 if test "$XGETTEXT" != ":"; then
5497 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5500 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5501 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5506 # We need to process the po/ directory.
5510 nls_cv_header_intl=libintl.h
5511 nls_cv_header_libgt=libgettext.h
5514 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5515 # because some of the sources are only built for this goal.
5516 if test "$PACKAGE" = gettext; then
5518 USE_INCLUDED_LIBINTL=yes
5521 for lang in $ALL_LINGUAS; do
5522 GMOFILES="$GMOFILES $lang.gmo"
5523 POFILES="$POFILES $lang.po"
5539 if test "x$CATOBJEXT" != "x"; then
5540 if test "x$ALL_LINGUAS" = "x"; then
5543 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5544 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5546 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5547 case "$ALL_LINGUAS" in
5548 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5551 LINGUAS=$NEW_LINGUAS
5552 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5553 echo "${ECHO_T}$LINGUAS" >&6
5556 if test -n "$LINGUAS"; then
5557 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5561 if test $ac_cv_header_locale_h = yes; then
5562 INCLUDE_LOCALE_H="#include <locale.h>"
5565 /* The system does not provide the header <locale.h>. Take care yourself. */"
5569 if test -f $srcdir/po2tbl.sed.in; then
5570 if test "$CATOBJEXT" = ".cat"; then
5571 if test "${ac_cv_header_linux_version_h+set}" = set; then
5572 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5573 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5574 if test "${ac_cv_header_linux_version_h+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5578 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5580 # Is the header compilable?
5581 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5582 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 $ac_includes_default
5590 #include <linux/version.h>
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } &&
5601 { ac_try='test -z "$ac_c_werror_flag"
5602 || test ! -s conftest.err'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; } &&
5608 { ac_try='test -s conftest.$ac_objext'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_header_compiler=yes
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 ac_header_compiler=no
5621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5623 echo "${ECHO_T}$ac_header_compiler" >&6
5625 # Is the header present?
5626 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5627 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5628 cat >conftest.$ac_ext <<_ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #include <linux/version.h>
5636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5639 grep -v '^ *+' conftest.er1 >conftest.err
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } >/dev/null; then
5644 if test -s conftest.err; then
5645 ac_cpp_err=$ac_c_preproc_warn_flag
5646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5653 if test -z "$ac_cpp_err"; then
5654 ac_header_preproc=yes
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5659 ac_header_preproc=no
5661 rm -f conftest.err conftest.$ac_ext
5662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5663 echo "${ECHO_T}$ac_header_preproc" >&6
5665 # So? What about this header?
5666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5668 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5669 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5670 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5671 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5672 ac_header_preproc=yes
5675 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5676 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5677 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5678 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5679 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5680 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5681 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5682 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5683 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5684 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5685 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5686 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5689 ## ------------------------------------------ ##
5690 ## Report this to the AC_PACKAGE_NAME lists. ##
5691 ## ------------------------------------------ ##
5694 sed "s/^/$as_me: WARNING: /" >&2
5697 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5698 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5699 if test "${ac_cv_header_linux_version_h+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 ac_cv_header_linux_version_h=$ac_header_preproc
5704 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5705 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5708 if test $ac_cv_header_linux_version_h = yes; then
5716 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5718 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5719 $srcdir/po2tbl.sed.in > po2tbl.sed
5722 if test "$PACKAGE" = "gettext"; then
5732 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5738 if test -d $srcdir/po; then
5739 test -d po || mkdir po
5740 if test "x$srcdir" != "x."; then
5741 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5742 posrcprefix="$srcdir/"
5744 posrcprefix="../$srcdir/"
5750 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5751 < $srcdir/po/POTFILES.in > po/POTFILES
5755 # Check for common headers.
5756 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5757 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5763 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5767 echo "$as_me:$LINENO: checking for $ac_header" >&5
5768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5775 # Is the header compilable?
5776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 $ac_includes_default
5785 #include <$ac_header>
5787 rm -f conftest.$ac_objext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>conftest.er1
5791 grep -v '^ *+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } &&
5796 { ac_try='test -z "$ac_c_werror_flag"
5797 || test ! -s conftest.err'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_header_compiler=yes
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5814 ac_header_compiler=no
5816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5818 echo "${ECHO_T}$ac_header_compiler" >&6
5820 # Is the header present?
5821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 #include <$ac_header>
5831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5834 grep -v '^ *+' conftest.er1 >conftest.err
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } >/dev/null; then
5839 if test -s conftest.err; then
5840 ac_cpp_err=$ac_c_preproc_warn_flag
5841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5848 if test -z "$ac_cpp_err"; then
5849 ac_header_preproc=yes
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 ac_header_preproc=no
5856 rm -f conftest.err conftest.$ac_ext
5857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5858 echo "${ECHO_T}$ac_header_preproc" >&6
5860 # So? What about this header?
5861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5867 ac_header_preproc=yes
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5884 ## ------------------------------------------ ##
5885 ## Report this to the AC_PACKAGE_NAME lists. ##
5886 ## ------------------------------------------ ##
5889 sed "s/^/$as_me: WARNING: /" >&2
5892 echo "$as_me:$LINENO: checking for $ac_header" >&5
5893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 eval "$as_ac_Header=\$ac_header_preproc"
5899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5904 cat >>confdefs.h <<_ACEOF
5905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914 for ac_header in sys/time.h sys/resource.h
5916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5918 echo "$as_me:$LINENO: checking for $ac_header" >&5
5919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5926 # Is the header compilable?
5927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 $ac_includes_default
5936 #include <$ac_header>
5938 rm -f conftest.$ac_objext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -z "$ac_c_werror_flag"
5948 || test ! -s conftest.err'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; } &&
5954 { ac_try='test -s conftest.$ac_objext'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 ac_header_compiler=yes
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5965 ac_header_compiler=no
5967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5969 echo "${ECHO_T}$ac_header_compiler" >&6
5971 # Is the header present?
5972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5974 cat >conftest.$ac_ext <<_ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <$ac_header>
5982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5985 grep -v '^ *+' conftest.er1 >conftest.err
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } >/dev/null; then
5990 if test -s conftest.err; then
5991 ac_cpp_err=$ac_c_preproc_warn_flag
5992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5999 if test -z "$ac_cpp_err"; then
6000 ac_header_preproc=yes
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_header_preproc=no
6007 rm -f conftest.err conftest.$ac_ext
6008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6009 echo "${ECHO_T}$ac_header_preproc" >&6
6011 # So? What about this header?
6012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6018 ac_header_preproc=yes
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6035 ## ------------------------------------------ ##
6036 ## Report this to the AC_PACKAGE_NAME lists. ##
6037 ## ------------------------------------------ ##
6040 sed "s/^/$as_me: WARNING: /" >&2
6043 echo "$as_me:$LINENO: checking for $ac_header" >&5
6044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 eval "$as_ac_Header=\$ac_header_preproc"
6050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6055 cat >>confdefs.h <<_ACEOF
6056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6065 for ac_header in fcntl.h fpu_control.h
6067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6069 echo "$as_me:$LINENO: checking for $ac_header" >&5
6070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6077 # Is the header compilable?
6078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6080 cat >conftest.$ac_ext <<_ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 $ac_includes_default
6087 #include <$ac_header>
6089 rm -f conftest.$ac_objext
6090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6091 (eval $ac_compile) 2>conftest.er1
6093 grep -v '^ *+' conftest.er1 >conftest.err
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } &&
6098 { ac_try='test -z "$ac_c_werror_flag"
6099 || test ! -s conftest.err'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; } &&
6105 { ac_try='test -s conftest.$ac_objext'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 ac_header_compiler=yes
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6116 ac_header_compiler=no
6118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6120 echo "${ECHO_T}$ac_header_compiler" >&6
6122 # Is the header present?
6123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6125 cat >conftest.$ac_ext <<_ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6131 #include <$ac_header>
6133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } >/dev/null; then
6141 if test -s conftest.err; then
6142 ac_cpp_err=$ac_c_preproc_warn_flag
6143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6150 if test -z "$ac_cpp_err"; then
6151 ac_header_preproc=yes
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 ac_header_preproc=no
6158 rm -f conftest.err conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6160 echo "${ECHO_T}$ac_header_preproc" >&6
6162 # So? What about this header?
6163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6169 ac_header_preproc=yes
6172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6186 ## ------------------------------------------ ##
6187 ## Report this to the AC_PACKAGE_NAME lists. ##
6188 ## ------------------------------------------ ##
6191 sed "s/^/$as_me: WARNING: /" >&2
6194 echo "$as_me:$LINENO: checking for $ac_header" >&5
6195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 eval "$as_ac_Header=\$ac_header_preproc"
6201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6206 cat >>confdefs.h <<_ACEOF
6207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217 for ac_header in dlfcn.h errno.h sys/stat.h
6219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6221 echo "$as_me:$LINENO: checking for $ac_header" >&5
6222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6229 # Is the header compilable?
6230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6232 cat >conftest.$ac_ext <<_ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 $ac_includes_default
6239 #include <$ac_header>
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -z "$ac_c_werror_flag"
6251 || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest.$ac_objext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 ac_header_compiler=yes
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 ac_header_compiler=no
6270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6272 echo "${ECHO_T}$ac_header_compiler" >&6
6274 # Is the header present?
6275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6277 cat >conftest.$ac_ext <<_ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 #include <$ac_header>
6285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6288 grep -v '^ *+' conftest.er1 >conftest.err
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } >/dev/null; then
6293 if test -s conftest.err; then
6294 ac_cpp_err=$ac_c_preproc_warn_flag
6295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6302 if test -z "$ac_cpp_err"; then
6303 ac_header_preproc=yes
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 ac_header_preproc=no
6310 rm -f conftest.err conftest.$ac_ext
6311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6312 echo "${ECHO_T}$ac_header_preproc" >&6
6314 # So? What about this header?
6315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6321 ac_header_preproc=yes
6324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6338 ## ------------------------------------------ ##
6339 ## Report this to the AC_PACKAGE_NAME lists. ##
6340 ## ------------------------------------------ ##
6343 sed "s/^/$as_me: WARNING: /" >&2
6346 echo "$as_me:$LINENO: checking for $ac_header" >&5
6347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 eval "$as_ac_Header=\$ac_header_preproc"
6353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6358 cat >>confdefs.h <<_ACEOF
6359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6370 for ac_func in getrusage time sigaction __setfpucw
6372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6373 echo "$as_me:$LINENO: checking for $ac_func" >&5
6374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6375 if eval "test \"\${$as_ac_var+set}\" = set"; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6386 #define $ac_func innocuous_$ac_func
6388 /* System header to define __stub macros and hopefully few prototypes,
6389 which can conflict with char $ac_func (); below.
6390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6391 <limits.h> exists even on freestanding compilers. */
6394 # include <limits.h>
6396 # include <assert.h>
6401 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6409 /* The GNU C library defines this for functions which it implements
6410 to always fail with ENOSYS. Some functions are actually named
6411 something starting with __ and the normal name is an alias. */
6412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6415 char (*f) () = $ac_func;
6424 return f != $ac_func;
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431 (eval $ac_link) 2>conftest.er1
6433 grep -v '^ *+' conftest.er1 >conftest.err
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -z "$ac_c_werror_flag"
6439 || test ! -s conftest.err'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; } &&
6445 { ac_try='test -s conftest$ac_exeext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 eval "$as_ac_var=yes"
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6456 eval "$as_ac_var=no"
6458 rm -f conftest.err conftest.$ac_objext \
6459 conftest$ac_exeext conftest.$ac_ext
6461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6463 if test `eval echo '${'$as_ac_var'}'` = yes; then
6464 cat >>confdefs.h <<_ACEOF
6465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6472 # Check for socket libraries
6474 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6475 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6476 if test "${ac_cv_lib_socket_bind+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 ac_check_lib_save_LIBS=$LIBS
6480 LIBS="-lsocket $LIBS"
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6488 /* Override any gcc2 internal prototype to avoid an error. */
6492 /* We use char because int might match the return type of a gcc2
6493 builtin and then its argument prototype would still apply. */
6503 rm -f conftest.$ac_objext conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>conftest.er1
6507 grep -v '^ *+' conftest.er1 >conftest.err
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_c_werror_flag"
6513 || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest$ac_exeext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 ac_cv_lib_socket_bind=yes
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_cv_lib_socket_bind=no
6532 rm -f conftest.err conftest.$ac_objext \
6533 conftest$ac_exeext conftest.$ac_ext
6534 LIBS=$ac_check_lib_save_LIBS
6536 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6537 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6538 if test $ac_cv_lib_socket_bind = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define HAVE_LIBSOCKET 1
6543 LIBS="-lsocket $LIBS"
6548 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6549 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6550 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 ac_check_lib_save_LIBS=$LIBS
6555 cat >conftest.$ac_ext <<_ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6562 /* Override any gcc2 internal prototype to avoid an error. */
6566 /* We use char because int might match the return type of a gcc2
6567 builtin and then its argument prototype would still apply. */
6568 char gethostbyname ();
6577 rm -f conftest.$ac_objext conftest$ac_exeext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579 (eval $ac_link) 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -z "$ac_c_werror_flag"
6587 || test ! -s conftest.err'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; } &&
6593 { ac_try='test -s conftest$ac_exeext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 ac_cv_lib_nsl_gethostbyname=yes
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 ac_cv_lib_nsl_gethostbyname=no
6606 rm -f conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext conftest.$ac_ext
6608 LIBS=$ac_check_lib_save_LIBS
6610 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6611 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6612 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6613 cat >>confdefs.h <<_ACEOF
6614 #define HAVE_LIBNSL 1
6622 . ${srcdir}/../../bfd/configure.host
6626 USE_MAINTAINER_MODE=no
6627 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6628 if test "${enable_maintainer_mode+set}" = set; then
6629 enableval="$enable_maintainer_mode"
6630 case "${enableval}" in
6631 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6633 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6634 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6635 { (exit 1); exit 1; }; }; MAINT="#" ;;
6637 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6638 echo "Setting maintainer mode" 6>&1
6645 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6646 if test "${enable_sim_bswap+set}" = set; then
6647 enableval="$enable_sim_bswap"
6648 case "${enableval}" in
6649 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6650 no) sim_bswap="-DWITH_BSWAP=0";;
6651 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6652 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6653 { (exit 1); exit 1; }; }; sim_bswap="";;
6655 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6656 echo "Setting bswap flags = $sim_bswap" 6>&1
6663 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6664 if test "${enable_sim_cflags+set}" = set; then
6665 enableval="$enable_sim_cflags"
6666 case "${enableval}" in
6667 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6668 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6669 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6670 { (exit 1); exit 1; }; }; sim_cflags="";;
6672 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6674 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6675 echo "Setting sim cflags = $sim_cflags" 6>&1
6682 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6683 if test "${enable_sim_debug+set}" = set; then
6684 enableval="$enable_sim_debug"
6685 case "${enableval}" in
6686 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6687 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6688 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6690 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6691 echo "Setting sim debug = $sim_debug" 6>&1
6698 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6699 if test "${enable_sim_stdio+set}" = set; then
6700 enableval="$enable_sim_stdio"
6701 case "${enableval}" in
6702 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6703 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6704 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6705 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6706 { (exit 1); exit 1; }; }; sim_stdio="";;
6708 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6709 echo "Setting stdio flags = $sim_stdio" 6>&1
6716 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6717 if test "${enable_sim_trace+set}" = set; then
6718 enableval="$enable_sim_trace"
6719 case "${enableval}" in
6720 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6721 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6723 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6726 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6727 if test x"$sim_trace" = x; then
6728 sim_trace="-DWITH_TRACE='(TRACE_$x"
6730 sim_trace="${sim_trace}|TRACE_$x"
6733 sim_trace="$sim_trace)'" ;;
6735 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6736 echo "Setting sim trace = $sim_trace" 6>&1
6743 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6744 if test "${enable_sim_profile+set}" = set; then
6745 enableval="$enable_sim_profile"
6746 case "${enableval}" in
6747 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6748 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6750 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6753 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6754 if test x"$sim_profile" = x; then
6755 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6757 sim_profile="${sim_profile}|PROFILE_$x"
6760 sim_profile="$sim_profile)'" ;;
6762 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6763 echo "Setting sim profile = $sim_profile" 6>&1
6766 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6770 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6771 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6772 if test "${ac_cv_type_signal+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 cat >conftest.$ac_ext <<_ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 #include <sys/types.h>
6787 extern "C" void (*signal (int, void (*)(int)))(int);
6789 void (*signal ()) ();
6800 rm -f conftest.$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>conftest.er1
6804 grep -v '^ *+' conftest.er1 >conftest.err
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag"
6810 || test ! -s conftest.err'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; } &&
6816 { ac_try='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_cv_type_signal=void
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 ac_cv_type_signal=int
6829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6832 echo "${ECHO_T}$ac_cv_type_signal" >&6
6834 cat >>confdefs.h <<_ACEOF
6835 #define RETSIGTYPE $ac_cv_type_signal
6845 sim_link_links=tconfig.h
6846 if test -f ${srcdir}/tconfig.in
6848 sim_link_files=tconfig.in
6850 sim_link_files=../common/tconfig.in
6853 # targ-vals.def points to the libc macro description file.
6855 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6857 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6858 sim_link_links="${sim_link_links} targ-vals.def"
6863 for ac_header in stdlib.h
6865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6867 echo "$as_me:$LINENO: checking for $ac_header" >&5
6868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6875 # Is the header compilable?
6876 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6878 cat >conftest.$ac_ext <<_ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6885 #include <$ac_header>
6887 rm -f conftest.$ac_objext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>conftest.er1
6891 grep -v '^ *+' conftest.er1 >conftest.err
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_header_compiler=yes
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6914 ac_header_compiler=no
6916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6918 echo "${ECHO_T}$ac_header_compiler" >&6
6920 # Is the header present?
6921 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6923 cat >conftest.$ac_ext <<_ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 #include <$ac_header>
6931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6934 grep -v '^ *+' conftest.er1 >conftest.err
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } >/dev/null; then
6939 if test -s conftest.err; then
6940 ac_cpp_err=$ac_c_preproc_warn_flag
6941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6948 if test -z "$ac_cpp_err"; then
6949 ac_header_preproc=yes
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6954 ac_header_preproc=no
6956 rm -f conftest.err conftest.$ac_ext
6957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6958 echo "${ECHO_T}$ac_header_preproc" >&6
6960 # So? What about this header?
6961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6967 ac_header_preproc=yes
6970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6984 ## ------------------------------------------ ##
6985 ## Report this to the AC_PACKAGE_NAME lists. ##
6986 ## ------------------------------------------ ##
6989 sed "s/^/$as_me: WARNING: /" >&2
6992 echo "$as_me:$LINENO: checking for $ac_header" >&5
6993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 eval "$as_ac_Header=\$ac_header_preproc"
6999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7004 cat >>confdefs.h <<_ACEOF
7005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7013 # In the Cygwin environment, we need some additional flags.
7014 echo "$as_me:$LINENO: checking for cygwin" >&5
7015 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
7016 if test "${sim_cv_os_cygwin+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 cat >conftest.$ac_ext <<_ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7031 $EGREP "lose" >/dev/null 2>&1; then
7032 sim_cv_os_cygwin=yes
7039 echo "$as_me:$LINENO: result: $sim_cv_os_cygwin" >&5
7040 echo "${ECHO_T}$sim_cv_os_cygwin" >&6
7042 if test x$sim_cv_os_cygwin = xyes; then
7043 TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
7045 echo "$as_me:$LINENO: checking for main in -ltermcap" >&5
7046 echo $ECHO_N "checking for main in -ltermcap... $ECHO_C" >&6
7047 if test "${ac_cv_lib_termcap_main+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 ac_check_lib_save_LIBS=$LIBS
7051 LIBS="-ltermcap $LIBS"
7052 cat >conftest.$ac_ext <<_ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070 (eval $ac_link) 2>conftest.er1
7072 grep -v '^ *+' conftest.er1 >conftest.err
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -z "$ac_c_werror_flag"
7078 || test ! -s conftest.err'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_lib_termcap_main=yes
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7095 ac_cv_lib_termcap_main=no
7097 rm -f conftest.err conftest.$ac_objext \
7098 conftest$ac_exeext conftest.$ac_ext
7099 LIBS=$ac_check_lib_save_LIBS
7101 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_main" >&5
7102 echo "${ECHO_T}$ac_cv_lib_termcap_main" >&6
7103 if test $ac_cv_lib_termcap_main = yes; then
7113 ac_sources="$sim_link_files"
7114 ac_dests="$sim_link_links"
7115 while test -n "$ac_sources"; do
7116 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7117 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7118 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7120 ac_config_links="$ac_config_links $ac_config_links_1"
7123 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7124 cgen_breaks="break cgen_rtx_error";
7127 ac_config_files="$ac_config_files Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"
7128 ac_config_commands="$ac_config_commands default"
7129 cat >confcache <<\_ACEOF
7130 # This file is a shell script that caches the results of configure
7131 # tests run on this system so they can be shared between configure
7132 # scripts and configure runs, see configure's option --config-cache.
7133 # It is not useful on other systems. If it contains results you don't
7134 # want to keep, you may remove or edit it.
7136 # config.status only pays attention to the cache file if you give it
7137 # the --recheck option to rerun configure.
7139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7145 # The following way of writing the cache mishandles newlines in values,
7146 # but we know of no workaround that is simple, portable, and efficient.
7147 # So, don't put newlines in cache variables' values.
7148 # Ultrix sh set writes to stderr and can't be redirected directly,
7149 # and sets the high bit in the cache file unless we assign to the vars.
7152 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7154 # `set' does not quote correctly, so add quotes (double-quote
7155 # substitution turns \\\\ into \\, and sed turns \\ into \).
7158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7161 # `set' quotes correctly as required by POSIX, so do not add quotes.
7163 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7172 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7174 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7175 if test -w $cache_file; then
7176 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7177 cat confcache >$cache_file
7179 echo "not updating unwritable cache $cache_file"
7184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7185 # Let make expand exec_prefix.
7186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7188 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7189 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7190 # trailing colons and then remove the whole line if VPATH becomes empty
7191 # (actually we leave an empty line to preserve line numbers).
7192 if test "x$srcdir" = x.; then
7193 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7194 s/:*\$(srcdir):*/:/;
7195 s/:*\${srcdir}:*/:/;
7197 s/^\([^=]*=[ ]*\):*/\1/;
7203 DEFS=-DHAVE_CONFIG_H
7207 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7208 # 1. Remove the extension, and $U if already installed.
7209 ac_i=`echo "$ac_i" |
7210 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7212 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7213 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7217 LTLIBOBJS=$ac_ltlibobjs
7221 : ${CONFIG_STATUS=./config.status}
7222 ac_clean_files_save=$ac_clean_files
7223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7224 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7225 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7226 cat >$CONFIG_STATUS <<_ACEOF
7228 # Generated by $as_me.
7229 # Run this file to recreate the current configuration.
7230 # Compiler output produced by configure, useful for debugging
7231 # configure, is in config.log if it exists.
7236 SHELL=\${CONFIG_SHELL-$SHELL}
7239 cat >>$CONFIG_STATUS <<\_ACEOF
7240 ## --------------------- ##
7241 ## M4sh Initialization. ##
7242 ## --------------------- ##
7244 # Be Bourne compatible
7245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7249 # is contrary to our usage. Disable this feature.
7250 alias -g '${1+"$@"}'='"$@"'
7251 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7254 DUALCASE=1; export DUALCASE # for MKS sh
7256 # Support unset when possible.
7257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7264 # Work around bugs in pre-3.0 UWIN ksh.
7265 $as_unset ENV MAIL MAILPATH
7272 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7273 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7274 LC_TELEPHONE LC_TIME
7276 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7277 eval $as_var=C; export $as_var
7283 # Required to use basename.
7284 if expr a : '\(a\)' >/dev/null 2>&1; then
7290 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7291 as_basename=basename
7297 # Name of the executable.
7298 as_me=`$as_basename "$0" ||
7299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7300 X"$0" : 'X\(//\)$' \| \
7301 X"$0" : 'X\(/\)$' \| \
7302 . : '\(.\)' 2>/dev/null ||
7304 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7305 /^X\/\(\/\/\)$/{ s//\1/; q; }
7306 /^X\/\(\/\).*/{ s//\1/; q; }
7310 # PATH needs CR, and LINENO needs CR and PATH.
7311 # Avoid depending upon Character Ranges.
7312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7315 as_cr_digits='0123456789'
7316 as_cr_alnum=$as_cr_Letters$as_cr_digits
7318 # The user is always right.
7319 if test "${PATH_SEPARATOR+set}" != set; then
7320 echo "#! /bin/sh" >conf$$.sh
7321 echo "exit 0" >>conf$$.sh
7323 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7334 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7335 test "x$as_lineno_1" != "x$as_lineno_2" &&
7336 test "x$as_lineno_3" = "x$as_lineno_2" || {
7337 # Find who we are. Look in the path if we contain no path at all
7340 *[\\/]* ) as_myself=$0 ;;
7341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7351 # We did not find ourselves, most probably we were run as `sh COMMAND'
7352 # in which case we are not to be found in the path.
7353 if test "x$as_myself" = x; then
7356 if test ! -f "$as_myself"; then
7357 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7358 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7359 { (exit 1); exit 1; }; }
7361 case $CONFIG_SHELL in
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7367 test -z "$as_dir" && as_dir=.
7368 for as_base in sh bash ksh sh5; do
7371 if ("$as_dir/$as_base" -c '
7374 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7375 test "x$as_lineno_1" != "x$as_lineno_2" &&
7376 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7377 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7378 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7379 CONFIG_SHELL=$as_dir/$as_base
7381 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7389 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7390 # uniformly replaced by the line number. The first 'sed' inserts a
7391 # line-number line before each line; the second 'sed' does the real
7392 # work. The second script uses 'N' to pair each line-number line
7393 # with the numbered line, and appends trailing '-' during
7394 # substitution so that $LINENO is not a special case at line end.
7395 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7396 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7397 sed '=' <$as_myself |
7402 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7405 s,^['$as_cr_digits']*\n,,
7407 chmod +x $as_me.lineno ||
7408 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7409 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7410 { (exit 1); exit 1; }; }
7412 # Don't try to exec as it changes $[0], causing all sort of problems
7413 # (the dirname of $[0] is not the place where we might find the
7414 # original and so on. Autoconf is especially sensible to this).
7416 # Exit status is that of the last command.
7421 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7422 *c*,-n*) ECHO_N= ECHO_C='
7424 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7425 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7428 if expr a : '\(a\)' >/dev/null 2>&1; then
7434 rm -f conf$$ conf$$.exe conf$$.file
7436 if ln -s conf$$.file conf$$ 2>/dev/null; then
7437 # We could just check for DJGPP; but this test a) works b) is more generic
7438 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7439 if test -f conf$$.exe; then
7440 # Don't use ln at all; we don't have any links
7445 elif ln conf$$.file conf$$ 2>/dev/null; then
7450 rm -f conf$$ conf$$.exe conf$$.file
7452 if mkdir -p . 2>/dev/null; then
7455 test -d ./-p && rmdir ./-p
7459 as_executable_p="test -f"
7461 # Sed expression to map a string onto a valid CPP name.
7462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7464 # Sed expression to map a string onto a valid variable name.
7465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7469 # We need space, tab and new line, in precisely that order.
7479 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7480 # report actual input values of CONFIG_FILES etc. instead of their
7481 # values after options handling. Logging --version etc. is OK.
7485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7486 ## Running $as_me. ##
7491 This file was extended by $as_me, which was
7492 generated by GNU Autoconf 2.59. Invocation command line was
7494 CONFIG_FILES = $CONFIG_FILES
7495 CONFIG_HEADERS = $CONFIG_HEADERS
7496 CONFIG_LINKS = $CONFIG_LINKS
7497 CONFIG_COMMANDS = $CONFIG_COMMANDS
7501 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7505 # Files that config.status was made for.
7506 if test -n "$ac_config_files"; then
7507 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7510 if test -n "$ac_config_headers"; then
7511 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7514 if test -n "$ac_config_links"; then
7515 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7518 if test -n "$ac_config_commands"; then
7519 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7522 cat >>$CONFIG_STATUS <<\_ACEOF
7525 \`$as_me' instantiates files from templates according to the
7526 current configuration.
7528 Usage: $0 [OPTIONS] [FILE]...
7530 -h, --help print this help, then exit
7531 -V, --version print version number, then exit
7532 -q, --quiet do not print progress messages
7533 -d, --debug don't remove temporary files
7534 --recheck update $as_me by reconfiguring in the same conditions
7535 --file=FILE[:TEMPLATE]
7536 instantiate the configuration file FILE
7537 --header=FILE[:TEMPLATE]
7538 instantiate the configuration header FILE
7540 Configuration files:
7543 Configuration headers:
7546 Configuration links:
7549 Configuration commands:
7552 Report bugs to <bug-autoconf@gnu.org>."
7555 cat >>$CONFIG_STATUS <<_ACEOF
7558 configured by $0, generated by GNU Autoconf 2.59,
7559 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7561 Copyright (C) 2003 Free Software Foundation, Inc.
7562 This config.status script is free software; the Free Software Foundation
7563 gives unlimited permission to copy, distribute and modify it."
7568 cat >>$CONFIG_STATUS <<\_ACEOF
7569 # If no file are specified by the user, then we need to provide default
7570 # value. By we need to know if files were specified by the user.
7576 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7577 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7585 *) # This is not an option, so the user has probably given explicit
7588 ac_need_defaults=false;;
7592 # Handling of the options.
7594 cat >>$CONFIG_STATUS <<\_ACEOF
7595 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7597 --version | --vers* | -V )
7598 echo "$ac_cs_version"; exit 0 ;;
7600 # Conflict between --help and --header
7601 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7602 Try \`$0 --help' for more information." >&5
7603 echo "$as_me: error: ambiguous option: $1
7604 Try \`$0 --help' for more information." >&2;}
7605 { (exit 1); exit 1; }; };;
7606 --help | --hel | -h )
7607 echo "$ac_cs_usage"; exit 0 ;;
7608 --debug | --d* | -d )
7610 --file | --fil | --fi | --f )
7612 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7613 ac_need_defaults=false;;
7614 --header | --heade | --head | --hea )
7616 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7617 ac_need_defaults=false;;
7618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7619 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7623 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7624 Try \`$0 --help' for more information." >&5
7625 echo "$as_me: error: unrecognized option: $1
7626 Try \`$0 --help' for more information." >&2;}
7627 { (exit 1); exit 1; }; } ;;
7629 *) ac_config_targets="$ac_config_targets $1" ;;
7635 ac_configure_extra_args=
7637 if $ac_cs_silent; then
7639 ac_configure_extra_args="$ac_configure_extra_args --silent"
7643 cat >>$CONFIG_STATUS <<_ACEOF
7644 if \$ac_cs_recheck; then
7645 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7646 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7655 cat >>$CONFIG_STATUS <<\_ACEOF
7656 for ac_config_target in $ac_config_targets
7658 case "$ac_config_target" in
7659 # Handling of arguments.
7660 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
7661 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
7662 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
7663 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
7664 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7665 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7666 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7667 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7668 { (exit 1); exit 1; }; };;
7672 # If the user did not use the arguments to specify the items to instantiate,
7673 # then the envvar interface is used. Set only those that are not.
7674 # We use the long form for the default assignment because of an extremely
7675 # bizarre bug on SunOS 4.1.3.
7676 if $ac_need_defaults; then
7677 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7678 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7679 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7683 # Have a temporary directory for convenience. Make it in the build tree
7684 # simply because there is no reason to put it here, and in addition,
7685 # creating and moving files from /tmp can sometimes cause problems.
7686 # Create a temporary directory, and hook for its removal unless debugging.
7689 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7690 trap '{ (exit 1); exit 1; }' 1 2 13 15
7693 # Create a (secure) tmp directory for tmp files.
7696 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7697 test -n "$tmp" && test -d "$tmp"
7700 tmp=./confstat$$-$RANDOM
7701 (umask 077 && mkdir $tmp)
7704 echo "$me: cannot create a temporary directory in ." >&2
7705 { (exit 1); exit 1; }
7710 cat >>$CONFIG_STATUS <<_ACEOF
7713 # CONFIG_FILES section.
7716 # No need to generate the scripts if there are no CONFIG_FILES.
7717 # This happens for instance when ./config.status config.h
7718 if test -n "\$CONFIG_FILES"; then
7719 # Protect against being on the right side of a sed subst in config.status.
7720 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7721 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7722 s,@sim_environment@,$sim_environment,;t t
7723 s,@sim_alignment@,$sim_alignment,;t t
7724 s,@sim_assert@,$sim_assert,;t t
7725 s,@sim_bitsize@,$sim_bitsize,;t t
7726 s,@sim_endian@,$sim_endian,;t t
7727 s,@sim_hostendian@,$sim_hostendian,;t t
7728 s,@sim_float@,$sim_float,;t t
7729 s,@sim_scache@,$sim_scache,;t t
7730 s,@sim_default_model@,$sim_default_model,;t t
7731 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7732 s,@sim_hw_objs@,$sim_hw_objs,;t t
7733 s,@sim_hw@,$sim_hw,;t t
7734 s,@sim_inline@,$sim_inline,;t t
7735 s,@sim_packages@,$sim_packages,;t t
7736 s,@sim_regparm@,$sim_regparm,;t t
7737 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7738 s,@sim_smp@,$sim_smp,;t t
7739 s,@sim_stdcall@,$sim_stdcall,;t t
7740 s,@sim_xor_endian@,$sim_xor_endian,;t t
7741 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7742 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7743 s,@SHELL@,$SHELL,;t t
7744 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7745 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7746 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7747 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7748 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7749 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7750 s,@exec_prefix@,$exec_prefix,;t t
7751 s,@prefix@,$prefix,;t t
7752 s,@program_transform_name@,$program_transform_name,;t t
7753 s,@bindir@,$bindir,;t t
7754 s,@sbindir@,$sbindir,;t t
7755 s,@libexecdir@,$libexecdir,;t t
7756 s,@datadir@,$datadir,;t t
7757 s,@sysconfdir@,$sysconfdir,;t t
7758 s,@sharedstatedir@,$sharedstatedir,;t t
7759 s,@localstatedir@,$localstatedir,;t t
7760 s,@libdir@,$libdir,;t t
7761 s,@includedir@,$includedir,;t t
7762 s,@oldincludedir@,$oldincludedir,;t t
7763 s,@infodir@,$infodir,;t t
7764 s,@mandir@,$mandir,;t t
7765 s,@build_alias@,$build_alias,;t t
7766 s,@host_alias@,$host_alias,;t t
7767 s,@target_alias@,$target_alias,;t t
7769 s,@ECHO_C@,$ECHO_C,;t t
7770 s,@ECHO_N@,$ECHO_N,;t t
7771 s,@ECHO_T@,$ECHO_T,;t t
7773 s,@build@,$build,;t t
7774 s,@build_cpu@,$build_cpu,;t t
7775 s,@build_vendor@,$build_vendor,;t t
7776 s,@build_os@,$build_os,;t t
7778 s,@host_cpu@,$host_cpu,;t t
7779 s,@host_vendor@,$host_vendor,;t t
7780 s,@host_os@,$host_os,;t t
7781 s,@target@,$target,;t t
7782 s,@target_cpu@,$target_cpu,;t t
7783 s,@target_vendor@,$target_vendor,;t t
7784 s,@target_os@,$target_os,;t t
7786 s,@CFLAGS@,$CFLAGS,;t t
7787 s,@LDFLAGS@,$LDFLAGS,;t t
7788 s,@CPPFLAGS@,$CPPFLAGS,;t t
7789 s,@ac_ct_CC@,$ac_ct_CC,;t t
7790 s,@EXEEXT@,$EXEEXT,;t t
7791 s,@OBJEXT@,$OBJEXT,;t t
7792 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7793 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7794 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7795 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7796 s,@HDEFINES@,$HDEFINES,;t t
7798 s,@RANLIB@,$RANLIB,;t t
7799 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7800 s,@SET_MAKE@,$SET_MAKE,;t t
7802 s,@EGREP@,$EGREP,;t t
7803 s,@ALLOCA@,$ALLOCA,;t t
7804 s,@USE_NLS@,$USE_NLS,;t t
7805 s,@MSGFMT@,$MSGFMT,;t t
7806 s,@GMSGFMT@,$GMSGFMT,;t t
7807 s,@XGETTEXT@,$XGETTEXT,;t t
7808 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7809 s,@CATALOGS@,$CATALOGS,;t t
7810 s,@CATOBJEXT@,$CATOBJEXT,;t t
7811 s,@DATADIRNAME@,$DATADIRNAME,;t t
7812 s,@GMOFILES@,$GMOFILES,;t t
7813 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7814 s,@INTLDEPS@,$INTLDEPS,;t t
7815 s,@INTLLIBS@,$INTLLIBS,;t t
7816 s,@INTLOBJS@,$INTLOBJS,;t t
7817 s,@POFILES@,$POFILES,;t t
7818 s,@POSUB@,$POSUB,;t t
7819 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
7820 s,@GT_NO@,$GT_NO,;t t
7821 s,@GT_YES@,$GT_YES,;t t
7822 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7824 s,@MAINT@,$MAINT,;t t
7825 s,@sim_bswap@,$sim_bswap,;t t
7826 s,@sim_cflags@,$sim_cflags,;t t
7827 s,@sim_debug@,$sim_debug,;t t
7828 s,@sim_stdio@,$sim_stdio,;t t
7829 s,@sim_trace@,$sim_trace,;t t
7830 s,@sim_profile@,$sim_profile,;t t
7831 s,@TERMCAP@,$TERMCAP,;t t
7832 s,@cgen_breaks@,$cgen_breaks,;t t
7833 s,@LIBOBJS@,$LIBOBJS,;t t
7834 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7839 cat >>$CONFIG_STATUS <<\_ACEOF
7840 # Split the substitutions into bite-sized pieces for seds with
7841 # small command number limits, like on Digital OSF/1 and HP-UX.
7843 ac_sed_frag=1 # Number of current file.
7844 ac_beg=1 # First line for current file.
7845 ac_end=$ac_max_sed_lines # Line after last line for current file.
7848 while $ac_more_lines; do
7849 if test $ac_beg -gt 1; then
7850 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7852 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7854 if test ! -s $tmp/subs.frag; then
7857 # The purpose of the label and of the branching condition is to
7858 # speed up the sed processing (if there are no `@' at all, there
7859 # is no need to browse any of the substitutions).
7860 # These are the two extra sed commands mentioned above.
7862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7863 if test -z "$ac_sed_cmds"; then
7864 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7866 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7868 ac_sed_frag=`expr $ac_sed_frag + 1`
7870 ac_end=`expr $ac_end + $ac_max_sed_lines`
7873 if test -z "$ac_sed_cmds"; then
7876 fi # test -n "$CONFIG_FILES"
7879 cat >>$CONFIG_STATUS <<\_ACEOF
7880 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7881 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7883 - | *:- | *:-:* ) # input from stdin
7885 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7886 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7887 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7888 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7889 * ) ac_file_in=$ac_file.in ;;
7892 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7893 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7895 X"$ac_file" : 'X\(//\)[^/]' \| \
7896 X"$ac_file" : 'X\(//\)$' \| \
7897 X"$ac_file" : 'X\(/\)' \| \
7898 . : '\(.\)' 2>/dev/null ||
7900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7902 /^X\(\/\/\)$/{ s//\1/; q; }
7903 /^X\(\/\).*/{ s//\1/; q; }
7905 { if $as_mkdir_p; then
7910 while test ! -d "$as_dir"; do
7911 as_dirs="$as_dir $as_dirs"
7912 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7914 X"$as_dir" : 'X\(//\)[^/]' \| \
7915 X"$as_dir" : 'X\(//\)$' \| \
7916 X"$as_dir" : 'X\(/\)' \| \
7917 . : '\(.\)' 2>/dev/null ||
7919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7921 /^X\(\/\/\)$/{ s//\1/; q; }
7922 /^X\(\/\).*/{ s//\1/; q; }
7925 test ! -n "$as_dirs" || mkdir $as_dirs
7926 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7928 { (exit 1); exit 1; }; }; }
7932 if test "$ac_dir" != .; then
7933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7934 # A "../" for each directory in $ac_dir_suffix.
7935 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7937 ac_dir_suffix= ac_top_builddir=
7941 .) # No --srcdir option. We are building in place.
7943 if test -z "$ac_top_builddir"; then
7946 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7948 [\\/]* | ?:[\\/]* ) # Absolute path.
7949 ac_srcdir=$srcdir$ac_dir_suffix;
7950 ac_top_srcdir=$srcdir ;;
7952 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7953 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7956 # Do not use `cd foo && pwd` to compute absolute paths, because
7957 # the directories may not exist.
7959 .) ac_abs_builddir="$ac_dir";;
7962 .) ac_abs_builddir=`pwd`;;
7963 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7964 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7967 case $ac_abs_builddir in
7968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7970 case ${ac_top_builddir}. in
7971 .) ac_abs_top_builddir=$ac_abs_builddir;;
7972 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7973 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7976 case $ac_abs_builddir in
7977 .) ac_abs_srcdir=$ac_srcdir;;
7980 .) ac_abs_srcdir=$ac_abs_builddir;;
7981 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7982 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7985 case $ac_abs_builddir in
7986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7988 case $ac_top_srcdir in
7989 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7990 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7991 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7998 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8001 if test x"$ac_file" != x-; then
8002 { echo "$as_me:$LINENO: creating $ac_file" >&5
8003 echo "$as_me: creating $ac_file" >&6;}
8006 # Let's still pretend it is `configure' which instantiates (i.e., don't
8007 # use $as_me), people would be surprised to read:
8008 # /* config.h. Generated by config.status. */
8009 if test x"$ac_file" = x-; then
8012 configure_input="$ac_file. "
8014 configure_input=$configure_input"Generated from `echo $ac_file_in |
8015 sed 's,.*/,,'` by configure."
8017 # First look for the input files in the build tree, otherwise in the
8019 ac_file_inputs=`IFS=:
8020 for f in $ac_file_in; do
8022 -) echo $tmp/stdin ;;
8024 # Absolute (can't be DOS-style, as IFS=:)
8025 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8026 echo "$as_me: error: cannot find input file: $f" >&2;}
8027 { (exit 1); exit 1; }; }
8030 if test -f "$f"; then
8033 elif test -f "$srcdir/$f"; then
8038 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8039 echo "$as_me: error: cannot find input file: $f" >&2;}
8040 { (exit 1); exit 1; }; }
8043 done` || { (exit 1); exit 1; }
8045 cat >>$CONFIG_STATUS <<_ACEOF
8049 cat >>$CONFIG_STATUS <<\_ACEOF
8051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8052 s,@configure_input@,$configure_input,;t t
8053 s,@srcdir@,$ac_srcdir,;t t
8054 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8055 s,@top_srcdir@,$ac_top_srcdir,;t t
8056 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8057 s,@builddir@,$ac_builddir,;t t
8058 s,@abs_builddir@,$ac_abs_builddir,;t t
8059 s,@top_builddir@,$ac_top_builddir,;t t
8060 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8061 s,@INSTALL@,$ac_INSTALL,;t t
8062 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8064 if test x"$ac_file" != x-; then
8065 mv $tmp/out $ac_file
8073 cat >>$CONFIG_STATUS <<\_ACEOF
8076 # CONFIG_HEADER section.
8079 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8080 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8082 # ac_d sets the value in "#define NAME VALUE" lines.
8083 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8084 ac_dB='[ ].*$,\1#\2'
8087 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8088 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8089 ac_uB='$,\1#\2define\3'
8093 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8094 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8096 - | *:- | *:-:* ) # input from stdin
8098 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8099 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8100 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8101 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8102 * ) ac_file_in=$ac_file.in ;;
8105 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8106 echo "$as_me: creating $ac_file" >&6;}
8108 # First look for the input files in the build tree, otherwise in the
8110 ac_file_inputs=`IFS=:
8111 for f in $ac_file_in; do
8113 -) echo $tmp/stdin ;;
8115 # Absolute (can't be DOS-style, as IFS=:)
8116 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8117 echo "$as_me: error: cannot find input file: $f" >&2;}
8118 { (exit 1); exit 1; }; }
8119 # Do quote $f, to prevent DOS paths from being IFS'd.
8122 if test -f "$f"; then
8125 elif test -f "$srcdir/$f"; then
8130 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8131 echo "$as_me: error: cannot find input file: $f" >&2;}
8132 { (exit 1); exit 1; }; }
8135 done` || { (exit 1); exit 1; }
8136 # Remove the trailing spaces.
8137 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8141 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8142 # `conftest.undefs', that substitutes the proper values into
8143 # config.h.in to produce config.h. The first handles `#define'
8144 # templates, and the second `#undef' templates.
8145 # And first: Protect against being on the right side of a sed subst in
8146 # config.status. Protect against being in an unquoted here document
8148 rm -f conftest.defines conftest.undefs
8149 # Using a here document instead of a string reduces the quoting nightmare.
8150 # Putting comments in sed scripts is not portable.
8152 # `end' is used to avoid that the second main sed command (meant for
8153 # 0-ary CPP macros) applies to n-ary macro definitions.
8154 # See the Autoconf documentation for `clear'.
8155 cat >confdef2sed.sed <<\_ACEOF
8160 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8162 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8165 # If some macros were called several times there might be several times
8166 # the same #defines, which is useless. Nevertheless, we may not want to
8167 # sort them, since we want the *last* AC-DEFINE to be honored.
8168 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8169 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8170 rm -f confdef2sed.sed
8172 # This sed command replaces #undef with comments. This is necessary, for
8173 # example, in the case of _POSIX_SOURCE, which is predefined and required
8174 # on some systems where configure will not decide to define it.
8175 cat >>conftest.undefs <<\_ACEOF
8176 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8179 # Break up conftest.defines because some shells have a limit on the size
8180 # of here documents, and old seds have small limits too (100 cmds).
8181 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8182 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8183 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8184 echo ' :' >>$CONFIG_STATUS
8186 while grep . conftest.defines >/dev/null
8188 # Write a limited-size here document to $tmp/defines.sed.
8189 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8190 # Speed up: don't consider the non `#define' lines.
8191 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8192 # Work around the forget-to-reset-the-flag bug.
8193 echo 't clr' >>$CONFIG_STATUS
8194 echo ': clr' >>$CONFIG_STATUS
8195 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8197 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8201 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8202 rm -f conftest.defines
8203 mv conftest.tail conftest.defines
8205 rm -f conftest.defines
8206 echo ' fi # grep' >>$CONFIG_STATUS
8207 echo >>$CONFIG_STATUS
8209 # Break up conftest.undefs because some shells have a limit on the size
8210 # of here documents, and old seds have small limits too (100 cmds).
8211 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8213 while grep . conftest.undefs >/dev/null
8215 # Write a limited-size here document to $tmp/undefs.sed.
8216 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8217 # Speed up: don't consider the non `#undef'
8218 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8219 # Work around the forget-to-reset-the-flag bug.
8220 echo 't clr' >>$CONFIG_STATUS
8221 echo ': clr' >>$CONFIG_STATUS
8222 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8224 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8228 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8229 rm -f conftest.undefs
8230 mv conftest.tail conftest.undefs
8232 rm -f conftest.undefs
8234 cat >>$CONFIG_STATUS <<\_ACEOF
8235 # Let's still pretend it is `configure' which instantiates (i.e., don't
8236 # use $as_me), people would be surprised to read:
8237 # /* config.h. Generated by config.status. */
8238 if test x"$ac_file" = x-; then
8239 echo "/* Generated by configure. */" >$tmp/config.h
8241 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8243 cat $tmp/in >>$tmp/config.h
8245 if test x"$ac_file" != x-; then
8246 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8247 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8248 echo "$as_me: $ac_file is unchanged" >&6;}
8250 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8252 X"$ac_file" : 'X\(//\)[^/]' \| \
8253 X"$ac_file" : 'X\(//\)$' \| \
8254 X"$ac_file" : 'X\(/\)' \| \
8255 . : '\(.\)' 2>/dev/null ||
8257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8259 /^X\(\/\/\)$/{ s//\1/; q; }
8260 /^X\(\/\).*/{ s//\1/; q; }
8262 { if $as_mkdir_p; then
8267 while test ! -d "$as_dir"; do
8268 as_dirs="$as_dir $as_dirs"
8269 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8271 X"$as_dir" : 'X\(//\)[^/]' \| \
8272 X"$as_dir" : 'X\(//\)$' \| \
8273 X"$as_dir" : 'X\(/\)' \| \
8274 . : '\(.\)' 2>/dev/null ||
8276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8278 /^X\(\/\/\)$/{ s//\1/; q; }
8279 /^X\(\/\).*/{ s//\1/; q; }
8282 test ! -n "$as_dirs" || mkdir $as_dirs
8283 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8284 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8285 { (exit 1); exit 1; }; }; }
8288 mv $tmp/config.h $ac_file
8296 cat >>$CONFIG_STATUS <<\_ACEOF
8299 # CONFIG_LINKS section.
8302 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8303 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8304 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8306 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8307 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8309 if test ! -r $srcdir/$ac_source; then
8310 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8311 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8312 { (exit 1); exit 1; }; }
8316 # Make relative symlinks.
8317 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8318 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8319 X"$ac_dest" : 'X\(//\)[^/]' \| \
8320 X"$ac_dest" : 'X\(//\)$' \| \
8321 X"$ac_dest" : 'X\(/\)' \| \
8322 . : '\(.\)' 2>/dev/null ||
8324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8326 /^X\(\/\/\)$/{ s//\1/; q; }
8327 /^X\(\/\).*/{ s//\1/; q; }
8329 { if $as_mkdir_p; then
8330 mkdir -p "$ac_dest_dir"
8332 as_dir="$ac_dest_dir"
8334 while test ! -d "$as_dir"; do
8335 as_dirs="$as_dir $as_dirs"
8336 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8338 X"$as_dir" : 'X\(//\)[^/]' \| \
8339 X"$as_dir" : 'X\(//\)$' \| \
8340 X"$as_dir" : 'X\(/\)' \| \
8341 . : '\(.\)' 2>/dev/null ||
8343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8345 /^X\(\/\/\)$/{ s//\1/; q; }
8346 /^X\(\/\).*/{ s//\1/; q; }
8349 test ! -n "$as_dirs" || mkdir $as_dirs
8350 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8351 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8352 { (exit 1); exit 1; }; }; }
8356 if test "$ac_dest_dir" != .; then
8357 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8358 # A "../" for each directory in $ac_dir_suffix.
8359 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8361 ac_dir_suffix= ac_top_builddir=
8365 .) # No --srcdir option. We are building in place.
8367 if test -z "$ac_top_builddir"; then
8370 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8372 [\\/]* | ?:[\\/]* ) # Absolute path.
8373 ac_srcdir=$srcdir$ac_dir_suffix;
8374 ac_top_srcdir=$srcdir ;;
8376 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8377 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8380 # Do not use `cd foo && pwd` to compute absolute paths, because
8381 # the directories may not exist.
8383 .) ac_abs_builddir="$ac_dest_dir";;
8385 case "$ac_dest_dir" in
8386 .) ac_abs_builddir=`pwd`;;
8387 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8388 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8391 case $ac_abs_builddir in
8392 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8394 case ${ac_top_builddir}. in
8395 .) ac_abs_top_builddir=$ac_abs_builddir;;
8396 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8397 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8400 case $ac_abs_builddir in
8401 .) ac_abs_srcdir=$ac_srcdir;;
8404 .) ac_abs_srcdir=$ac_abs_builddir;;
8405 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8406 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8409 case $ac_abs_builddir in
8410 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8412 case $ac_top_srcdir in
8413 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8414 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8415 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8421 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8422 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8425 # Try a symlink, then a hard link, then a copy.
8426 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8427 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8428 cp -p $srcdir/$ac_source $ac_dest ||
8429 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8430 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8431 { (exit 1); exit 1; }; }
8434 cat >>$CONFIG_STATUS <<\_ACEOF
8437 # CONFIG_COMMANDS section.
8439 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8440 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8441 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8442 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8443 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8444 X"$ac_dest" : 'X\(//\)[^/]' \| \
8445 X"$ac_dest" : 'X\(//\)$' \| \
8446 X"$ac_dest" : 'X\(/\)' \| \
8447 . : '\(.\)' 2>/dev/null ||
8449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8451 /^X\(\/\/\)$/{ s//\1/; q; }
8452 /^X\(\/\).*/{ s//\1/; q; }
8454 { if $as_mkdir_p; then
8459 while test ! -d "$as_dir"; do
8460 as_dirs="$as_dir $as_dirs"
8461 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8463 X"$as_dir" : 'X\(//\)[^/]' \| \
8464 X"$as_dir" : 'X\(//\)$' \| \
8465 X"$as_dir" : 'X\(/\)' \| \
8466 . : '\(.\)' 2>/dev/null ||
8468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8470 /^X\(\/\/\)$/{ s//\1/; q; }
8471 /^X\(\/\).*/{ s//\1/; q; }
8474 test ! -n "$as_dirs" || mkdir $as_dirs
8475 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8476 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8477 { (exit 1); exit 1; }; }; }
8481 if test "$ac_dir" != .; then
8482 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8483 # A "../" for each directory in $ac_dir_suffix.
8484 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8486 ac_dir_suffix= ac_top_builddir=
8490 .) # No --srcdir option. We are building in place.
8492 if test -z "$ac_top_builddir"; then
8495 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8497 [\\/]* | ?:[\\/]* ) # Absolute path.
8498 ac_srcdir=$srcdir$ac_dir_suffix;
8499 ac_top_srcdir=$srcdir ;;
8501 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8502 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8505 # Do not use `cd foo && pwd` to compute absolute paths, because
8506 # the directories may not exist.
8508 .) ac_abs_builddir="$ac_dir";;
8511 .) ac_abs_builddir=`pwd`;;
8512 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8513 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8516 case $ac_abs_builddir in
8517 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8519 case ${ac_top_builddir}. in
8520 .) ac_abs_top_builddir=$ac_abs_builddir;;
8521 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8522 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8525 case $ac_abs_builddir in
8526 .) ac_abs_srcdir=$ac_srcdir;;
8529 .) ac_abs_srcdir=$ac_abs_builddir;;
8530 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8531 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8534 case $ac_abs_builddir in
8535 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8537 case $ac_top_srcdir in
8538 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8539 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8540 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8545 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8546 echo "$as_me: executing $ac_dest commands" >&6;}
8548 default ) case "x$CONFIG_FILES" in
8550 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8551 rm -f Makesim1.tmp Makesim2.tmp Makefile
8552 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
8553 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
8554 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8555 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8556 <Makefile.sim >Makefile
8557 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8560 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
8566 cat >>$CONFIG_STATUS <<\_ACEOF
8568 { (exit 0); exit 0; }
8570 chmod +x $CONFIG_STATUS
8571 ac_clean_files=$ac_clean_files_save
8574 # configure is writing to config.log, and then calls config.status.
8575 # config.status does its own redirection, appending to config.log.
8576 # Unfortunately, on DOS this fails, as config.log is still kept open
8577 # by configure, so config.status won't be able to write to it; its
8578 # output is simply discarded. So we exec the FD to /dev/null,
8579 # effectively closing config.log, so it can be properly (re)opened and
8580 # appended to by config.status. When coming back to configure, we
8581 # need to make the FD available again.
8582 if test "$no_create" != yes; then
8584 ac_config_status_args=
8585 test "$silent" = yes &&
8586 ac_config_status_args="$ac_config_status_args --quiet"
8588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8591 # would make configure fail if this is the last instruction.
8592 $ac_cs_success || { (exit 1); exit 1; }