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="ar.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE LN_S RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS YACC LEX LEXLIB LEX_OUTPUT_ROOT 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR 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 --enable-shared=PKGS build shared libraries default=yes
854 --enable-static=PKGS build static libraries default=yes
855 --enable-fast-install=PKGS optimize for fast installation default=yes
856 --disable-libtool-lock avoid locking (might break parallel builds)
857 --enable-targets alternative target configurations
858 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
859 --enable-build-warnings Enable build-time compiler warnings if gcc is used
860 --disable-nls do not use Native Language Support
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-gnu-ld assume the C compiler uses GNU ld default=no
868 --with-pic try to use only PIC/non-PIC objects default=use both
869 --with-included-gettext use the GNU gettext library included here
871 Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
886 if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890 test -d $ac_dir || continue
893 if test "$ac_dir" != .; then
894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895 # A "../" for each directory in $ac_dir_suffix.
896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 ac_dir_suffix= ac_top_builddir=
902 .) # No --srcdir option. We are building in place.
904 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_srcdir=$srcdir$ac_dir_suffix;
911 ac_top_srcdir=$srcdir ;;
913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 # Do not use `cd foo && pwd` to compute absolute paths, because
918 # the directories may not exist.
920 .) ac_abs_builddir="$ac_dir";;
923 .) ac_abs_builddir=`pwd`;;
924 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 case $ac_abs_builddir in
929 .) ac_abs_top_builddir=${ac_top_builddir}.;;
931 case ${ac_top_builddir}. in
932 .) ac_abs_top_builddir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 case $ac_abs_builddir in
938 .) ac_abs_srcdir=$ac_srcdir;;
941 .) ac_abs_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 case $ac_abs_builddir in
947 .) ac_abs_top_srcdir=$ac_top_srcdir;;
949 case $ac_top_srcdir in
950 .) ac_abs_top_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 # Check for guested configure; otherwise get Cygnus style configure.
958 if test -f $ac_srcdir/configure.gnu; then
960 $SHELL $ac_srcdir/configure.gnu --help=recursive
961 elif test -f $ac_srcdir/configure; then
963 $SHELL $ac_srcdir/configure --help=recursive
964 elif test -f $ac_srcdir/configure.ac ||
965 test -f $ac_srcdir/configure.in; then
969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 test -n "$ac_init_help" && exit 0
976 if $ac_init_version; then
979 Copyright (C) 2003 Free Software Foundation, Inc.
980 This configure script is free software; the Free Software Foundation
981 gives unlimited permission to copy, distribute and modify it.
987 This file contains any messages produced by compilers while
988 running configure, to aid debugging if configure makes a mistake.
990 It was created by $as_me, which was
991 generated by GNU Autoconf 2.59. Invocation command line was
1002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 test -z "$as_dir" && as_dir=.
1026 echo "PATH: $as_dir"
1041 # Keep a trace of the command line.
1042 # Strip out --no-create and --no-recursion so they do not pile up.
1043 # Strip out --silent because we don't want to record it for future runs.
1044 # Also quote any args containing shell meta-characters.
1045 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_must_keep_next=false
1056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1060 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1066 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067 if test $ac_must_keep_next = true; then
1068 ac_must_keep_next=false # Got value, back to normal.
1071 *=* | --config-cache | -C | -disable-* | --disable-* \
1072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074 | -with-* | --with-* | -without-* | --without-* | --x)
1075 case "$ac_configure_args0 " in
1076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 -* ) ac_must_keep_next=true ;;
1082 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083 # Get rid of the leading space.
1089 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1092 # When interrupted or exit'd, cleanup temporary files, and complete
1093 # config.log. We remove comments because anyway the quotes in there
1094 # would cause problems or look ugly.
1095 # WARNING: Be sure not to use single quotes in there, as some shells,
1096 # such as our DU 5.0 friend, will then `close' the trap.
1097 trap 'exit_status=$?
1098 # Save into config.log some information that might help in debugging.
1103 ## ---------------- ##
1104 ## Cache variables. ##
1105 ## ---------------- ##
1108 # The following way of writing the cache mishandles newlines in values,
1111 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ## ----------------- ##
1127 ## Output variables. ##
1128 ## ----------------- ##
1131 for ac_var in $ac_subst_vars
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1138 if test -n "$ac_subst_files"; then
1145 for ac_var in $ac_subst_files
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -s confdefs.h; then
1160 sed "/^$/d" confdefs.h | sort
1163 test "$ac_signal" != 0 &&
1164 echo "$as_me: caught signal $ac_signal"
1165 echo "$as_me: exit $exit_status"
1167 rm -f core *.core &&
1168 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 for ac_signal in 1 2 13 15; do
1172 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1177 rm -rf conftest* confdefs.h
1178 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181 # Predefined preprocessor variables.
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 # Let the site file select an alternate cache file if it wants to.
1209 # Prefer explicitly selected file to automatically selected ones.
1210 if test -z "$CONFIG_SITE"; then
1211 if test "x$prefix" != xNONE; then
1212 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1214 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 for ac_site_file in $CONFIG_SITE; do
1218 if test -r "$ac_site_file"; then
1219 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220 echo "$as_me: loading site script $ac_site_file" >&6;}
1221 sed 's/^/| /' "$ac_site_file" >&5
1226 if test -r "$cache_file"; then
1227 # Some versions of bash will fail to source /dev/null (special
1228 # files actually), so we avoid doing that.
1229 if test -f "$cache_file"; then
1230 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1231 echo "$as_me: loading cache $cache_file" >&6;}
1233 [\\/]* | ?:[\\/]* ) . $cache_file;;
1234 *) . ./$cache_file;;
1238 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1239 echo "$as_me: creating cache $cache_file" >&6;}
1243 # Check that the precious variables saved in the cache have kept the same
1245 ac_cache_corrupted=false
1246 for ac_var in `(set) 2>&1 |
1247 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1249 eval ac_new_set=\$ac_env_${ac_var}_set
1250 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1251 eval ac_new_val="\$ac_env_${ac_var}_value"
1252 case $ac_old_set,$ac_new_set in
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1263 if test "x$ac_old_val" != "x$ac_new_val"; then
1264 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1265 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1266 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1267 echo "$as_me: former value: $ac_old_val" >&2;}
1268 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1269 echo "$as_me: current value: $ac_new_val" >&2;}
1270 ac_cache_corrupted=:
1273 # Pass precious variables to config.status.
1274 if test "$ac_new_set" = set; then
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 *) ac_arg=$ac_var=$ac_new_val ;;
1280 case " $ac_configure_args " in
1281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1282 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 if $ac_cache_corrupted; then
1287 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1288 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1289 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1290 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1291 { (exit 1); exit 1; }; }
1295 ac_cpp='$CPP $CPPFLAGS'
1296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321 if test -f $ac_dir/install-sh; then
1323 ac_install_sh="$ac_aux_dir/install-sh -c"
1325 elif test -f $ac_dir/install.sh; then
1327 ac_install_sh="$ac_aux_dir/install.sh -c"
1329 elif test -f $ac_dir/shtool; then
1331 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 if test -z "$ac_aux_dir"; then
1336 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338 { (exit 1); exit 1; }; }
1340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344 # Make sure we can run config.sub.
1345 $ac_config_sub sun4 >/dev/null 2>&1 ||
1346 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1348 { (exit 1); exit 1; }; }
1350 echo "$as_me:$LINENO: checking build system type" >&5
1351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1352 if test "${ac_cv_build+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 ac_cv_build_alias=$build_alias
1356 test -z "$ac_cv_build_alias" &&
1357 ac_cv_build_alias=`$ac_config_guess`
1358 test -z "$ac_cv_build_alias" &&
1359 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1361 { (exit 1); exit 1; }; }
1362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1365 { (exit 1); exit 1; }; }
1368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1369 echo "${ECHO_T}$ac_cv_build" >&6
1371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376 echo "$as_me:$LINENO: checking host system type" >&5
1377 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1378 if test "${ac_cv_host+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 ac_cv_host_alias=$host_alias
1382 test -z "$ac_cv_host_alias" &&
1383 ac_cv_host_alias=$ac_cv_build_alias
1384 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1385 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1386 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1387 { (exit 1); exit 1; }; }
1390 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1391 echo "${ECHO_T}$ac_cv_host" >&6
1393 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1394 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1395 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398 echo "$as_me:$LINENO: checking target system type" >&5
1399 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1400 if test "${ac_cv_target+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 ac_cv_target_alias=$target_alias
1404 test "x$ac_cv_target_alias" = "x" &&
1405 ac_cv_target_alias=$ac_cv_host_alias
1406 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1407 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1412 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1413 echo "${ECHO_T}$ac_cv_target" >&6
1414 target=$ac_cv_target
1415 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420 # The aliases save the names the user supplied, while $host etc.
1421 # will get canonicalized.
1422 test -n "$target_alias" &&
1423 test "$program_prefix$program_suffix$program_transform_name" = \
1425 program_prefix=${target_alias}-
1427 ac_cpp='$CPP $CPPFLAGS'
1428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1431 if test -n "$ac_tool_prefix"; then
1432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1434 echo "$as_me:$LINENO: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_prog_CC+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 if test -n "$CC"; then
1440 ac_cv_prog_CC="$CC" # Let the user override the test.
1442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 test -z "$as_dir" && as_dir=.
1447 for ac_exec_ext in '' $ac_executable_extensions; do
1448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 if test -n "$CC"; then
1460 echo "$as_me:$LINENO: result: $CC" >&5
1461 echo "${ECHO_T}$CC" >&6
1463 echo "$as_me:$LINENO: result: no" >&5
1464 echo "${ECHO_T}no" >&6
1468 if test -z "$ac_cv_prog_CC"; then
1470 # Extract the first word of "gcc", so it can be a program name with args.
1471 set dummy gcc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 if test -n "$ac_ct_CC"; then
1478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_ac_ct_CC="gcc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1497 if test -n "$ac_ct_CC"; then
1498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1499 echo "${ECHO_T}$ac_ct_CC" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1510 if test -z "$CC"; then
1511 if test -n "$ac_tool_prefix"; then
1512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1513 set dummy ${ac_tool_prefix}cc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$CC"; then
1520 ac_cv_prog_CC="$CC" # Let the user override the test.
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_CC="${ac_tool_prefix}cc"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 if test -n "$CC"; then
1540 echo "$as_me:$LINENO: result: $CC" >&5
1541 echo "${ECHO_T}$CC" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1548 if test -z "$ac_cv_prog_CC"; then
1550 # Extract the first word of "cc", so it can be a program name with args.
1551 set dummy cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 if test -n "$ac_ct_CC"; then
1558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_ac_ct_CC="cc"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1577 if test -n "$ac_ct_CC"; then
1578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1579 echo "${ECHO_T}$ac_ct_CC" >&6
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1591 if test -z "$CC"; then
1592 # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1611 ac_prog_rejected=yes
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621 if test $ac_prog_rejected = yes; then
1622 # We found a bogon in the path, so make sure we never use it.
1623 set dummy $ac_cv_prog_CC
1625 if test $# != 0; then
1626 # We chose a different compiler from the bogus one.
1627 # However, it has the same basename, so the bogon will be chosen
1628 # first if we set CC to just the basename; use the full file name.
1630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$CC"; then
1646 if test -n "$ac_tool_prefix"; then
1649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$CC"; then
1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 if test -n "$CC"; then
1677 echo "$as_me:$LINENO: result: $CC" >&5
1678 echo "${ECHO_T}$CC" >&6
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1684 test -n "$CC" && break
1687 if test -z "$CC"; then
1691 # Extract the first word of "$ac_prog", so it can be a program name with args.
1692 set dummy $ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$ac_ct_CC"; then
1699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_ac_ct_CC="$ac_prog"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1718 if test -n "$ac_ct_CC"; then
1719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1720 echo "${ECHO_T}$ac_ct_CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 test -n "$ac_ct_CC" && break
1735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1736 See \`config.log' for more details." >&5
1737 echo "$as_me: error: no acceptable C compiler found in \$PATH
1738 See \`config.log' for more details." >&2;}
1739 { (exit 1); exit 1; }; }
1741 # Provide some information about the compiler.
1742 echo "$as_me:$LINENO:" \
1743 "checking for C compiler version" >&5
1744 ac_compiler=`set X $ac_compile; echo $2`
1745 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1746 (eval $ac_compiler --version </dev/null >&5) 2>&5
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1751 (eval $ac_compiler -v </dev/null >&5) 2>&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1756 (eval $ac_compiler -V </dev/null >&5) 2>&5
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1761 cat >conftest.$ac_ext <<_ACEOF
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1776 ac_clean_files_save=$ac_clean_files
1777 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1781 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1782 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1783 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1796 # b.out is created by i960 compilers.
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1799 test -f "$ac_file" || continue
1801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804 # This is the source file.
1807 # We found the default executable, but exeext='' is most
1811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&2;}
1829 { (exit 77); exit 77; }; }
1832 ac_exeext=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843 if { ac_try='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1851 if test "$cross_compiling" = maybe; then
1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'.
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1868 ac_clean_files=$ac_clean_files_save
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1887 for ac_file in conftest.exe conftest conftest.*; do
1888 test -f "$ac_file" || continue
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1905 rm -f conftest$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1909 rm -f conftest.$ac_ext
1910 EXEEXT=$ac_cv_exeext
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.$ac_ext <<_ACEOF
1920 cat confdefs.h >>conftest.$ac_ext
1921 cat >>conftest.$ac_ext <<_ACEOF
1922 /* end confdefs.h. */
1932 rm -f conftest.o conftest.obj
1933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1934 (eval $ac_compile) 2>&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; then
1938 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1949 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1956 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1958 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1959 echo "${ECHO_T}$ac_cv_objext" >&6
1960 OBJEXT=$ac_cv_objext
1962 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1963 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1964 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 cat >conftest.$ac_ext <<_ACEOF
1970 cat confdefs.h >>conftest.$ac_ext
1971 cat >>conftest.$ac_ext <<_ACEOF
1972 /* end confdefs.h. */
1985 rm -f conftest.$ac_objext
1986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>conftest.er1
1989 grep -v '^ *+' conftest.er1 >conftest.err
1991 cat conftest.err >&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); } &&
1994 { ac_try='test -z "$ac_c_werror_flag"
1995 || test ! -s conftest.err'
1996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; } &&
2001 { ac_try='test -s conftest.$ac_objext'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2009 echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2015 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2019 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2020 GCC=`test $ac_compiler_gnu = yes && echo yes`
2021 ac_test_CFLAGS=${CFLAGS+set}
2022 ac_save_CFLAGS=$CFLAGS
2024 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2025 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2026 if test "${ac_cv_prog_cc_g+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 cat >conftest.$ac_ext <<_ACEOF
2032 cat confdefs.h >>conftest.$ac_ext
2033 cat >>conftest.$ac_ext <<_ACEOF
2034 /* end confdefs.h. */
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>conftest.er1
2048 grep -v '^ *+' conftest.er1 >conftest.err
2050 cat conftest.err >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); } &&
2053 { ac_try='test -z "$ac_c_werror_flag"
2054 || test ! -s conftest.err'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; } &&
2060 { ac_try='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2068 echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2075 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2077 if test "$ac_test_CFLAGS" = set; then
2078 CFLAGS=$ac_save_CFLAGS
2079 elif test $ac_cv_prog_cc_g = yes; then
2080 if test "$GCC" = yes; then
2086 if test "$GCC" = yes; then
2092 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 ac_cv_prog_cc_stdc=no
2099 cat >conftest.$ac_ext <<_ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2107 #include <sys/types.h>
2108 #include <sys/stat.h>
2109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2110 struct buf { int x; };
2111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2112 static char *e (p, i)
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2123 s = g (p, va_arg (v,int));
2128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2129 function prototypes and stuff, but not '\xHH' hex character constants.
2130 These don't provoke an error unfortunately, instead are silently treated
2131 as 'x'. The following induces an error, until -std1 is added to get
2132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2133 array size at least. It's necessary to write '\x00'==0 to get something
2134 that's true only with -std1. */
2135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2137 int test (int i, double x);
2138 struct s1 {int (*f) (int a);};
2139 struct s2 {int (*f) (double a);};
2140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 # Don't try gcc -ansi; that turns off useful extensions and
2152 # breaks some systems' header files.
2153 # AIX -qlanglvl=ansi
2154 # Ultrix and OSF/1 -std1
2155 # HP-UX 10.20 and later -Ae
2156 # HP-UX older versions -Aa -D_HPUX_SOURCE
2157 # SVR4 -Xc -D__EXTENSIONS__
2158 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160 CC="$ac_save_CC $ac_arg"
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2165 grep -v '^ *+' conftest.er1 >conftest.err
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try='test -z "$ac_c_werror_flag"
2171 || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cc_stdc=$ac_arg
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2190 rm -f conftest.err conftest.$ac_objext
2192 rm -f conftest.$ac_ext conftest.$ac_objext
2197 case "x$ac_cv_prog_cc_stdc" in
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 # Some people use a C++ compiler to compile C. Since we use `exit',
2208 # in C++ we need to declare it. In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.$ac_ext <<_ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2220 grep -v '^ *+' conftest.er1 >conftest.err
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag"
2226 || test ! -s conftest.err'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 for ac_declaration in \
2240 'extern "C" void std::exit (int) throw (); using std::exit;' \
2241 'extern "C" void std::exit (int); using std::exit;' \
2242 'extern "C" void exit (int) throw ();' \
2243 'extern "C" void exit (int);' \
2246 cat >conftest.$ac_ext <<_ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>conftest.er1
2266 grep -v '^ *+' conftest.er1 >conftest.err
2268 cat conftest.err >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -z "$ac_c_werror_flag"
2272 || test ! -s conftest.err'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2311 grep -v '^ *+' conftest.er1 >conftest.err
2313 cat conftest.err >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try='test -z "$ac_c_werror_flag"
2317 || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338 if test -n "$ac_declaration"; then
2339 echo '#ifdef __cplusplus' >>confdefs.h
2340 echo $ac_declaration >>confdefs.h
2341 echo '#endif' >>confdefs.h
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2359 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2360 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 ac_check_lib_save_LIBS=$LIBS
2364 LIBS="-lcposix $LIBS"
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2372 /* Override any gcc2 internal prototype to avoid an error. */
2376 /* We use char because int might match the return type of a gcc2
2377 builtin and then its argument prototype would still apply. */
2387 rm -f conftest.$ac_objext conftest$ac_exeext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2389 (eval $ac_link) 2>conftest.er1
2391 grep -v '^ *+' conftest.er1 >conftest.err
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag"
2397 || test ! -s conftest.err'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest$ac_exeext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 ac_cv_lib_cposix_strerror=yes
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 ac_cv_lib_cposix_strerror=no
2416 rm -f conftest.err conftest.$ac_objext \
2417 conftest$ac_exeext conftest.$ac_ext
2418 LIBS=$ac_check_lib_save_LIBS
2420 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2421 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2422 if test $ac_cv_lib_cposix_strerror = yes; then
2423 LIBS="$LIBS -lcposix"
2429 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2430 am__api_version="1.4"
2431 # Find a good install program. We prefer a C program (faster),
2432 # so one script is as good as another. But avoid the broken or
2433 # incompatible versions:
2434 # SysV /etc/install, /usr/sbin/install
2435 # SunOS /usr/etc/install
2436 # IRIX /sbin/install
2438 # AmigaOS /C/install, which installs bootblocks on floppy discs
2439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442 # OS/2's system install, which has a completely different semantic
2443 # ./install, which can be erroneously created by make from ./install.sh.
2444 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2445 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2446 if test -z "$INSTALL"; then
2447 if test "${ac_cv_path_install+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir=.
2455 # Account for people who put trailing slashes in PATH elements.
2457 ./ | .// | /cC/* | \
2458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2462 # OSF1 and SCO ODT 3.0 have their own names for install.
2463 # Don't use installbsd from OSF since it installs stuff as root
2465 for ac_prog in ginstall scoinst install; do
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2468 if test $ac_prog = install &&
2469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470 # AIX install. It has an incompatible calling convention.
2472 elif test $ac_prog = install &&
2473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474 # program-specific install script used by HP pwplus--don't use.
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2492 # As a last resort, use the slow shell script. We don't cache a
2493 # path for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the path is relative.
2496 INSTALL=$ac_install_sh
2499 echo "$as_me:$LINENO: result: $INSTALL" >&5
2500 echo "${ECHO_T}$INSTALL" >&6
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2510 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2511 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2514 echo timestamp > conftestfile
2515 # Do `set' in a subshell so we don't clobber the current shell's
2516 # arguments. Must try -L first in case configure is actually a
2517 # symlink; some systems play weird games with the mod time of symlinks
2518 # (eg FreeBSD returns the mod time of the symlink's containing
2521 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2522 if test "$*" = "X"; then
2524 set X `ls -t $srcdir/configure conftestfile`
2526 if test "$*" != "X $srcdir/configure conftestfile" \
2527 && test "$*" != "X conftestfile $srcdir/configure"; then
2529 # If neither matched, then we have a broken ls. This can happen
2530 # if, for instance, CONFIG_SHELL is bash and it inherits a
2531 # broken ls alias from the environment. This has actually
2532 # happened. Such a system could not be considered "sane".
2533 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2534 alias in your environment" >&5
2535 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2536 alias in your environment" >&2;}
2537 { (exit 1); exit 1; }; }
2540 test "$2" = conftestfile
2546 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2547 Check your system clock" >&5
2548 echo "$as_me: error: newly created file is older than distributed files!
2549 Check your system clock" >&2;}
2550 { (exit 1); exit 1; }; }
2553 echo "$as_me:$LINENO: result: yes" >&5
2554 echo "${ECHO_T}yes" >&6
2555 test "$program_prefix" != NONE &&
2556 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2557 # Use a double $ so make ignores it.
2558 test "$program_suffix" != NONE &&
2559 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2560 # Double any \ or $. echo might interpret backslashes.
2561 # By default was `s,x,x', remove it if useless.
2562 cat <<\_ACEOF >conftest.sed
2563 s/[\\$]/&&/g;s/;s,x,x,$//
2565 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2568 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2569 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2570 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2571 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 cat >conftest.make <<\_ACEOF
2576 @echo 'ac_maketemp="$(MAKE)"'
2578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2579 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2580 if test -n "$ac_maketemp"; then
2581 eval ac_cv_prog_make_${ac_make}_set=yes
2583 eval ac_cv_prog_make_${ac_make}_set=no
2587 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2588 echo "$as_me:$LINENO: result: yes" >&5
2589 echo "${ECHO_T}yes" >&6
2592 echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2594 SET_MAKE="MAKE=${MAKE-make}"
2600 VERSION=${BFD_VERSION}
2602 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2603 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2604 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2605 { (exit 1); exit 1; }; }
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE "$PACKAGE"
2613 cat >>confdefs.h <<_ACEOF
2614 #define VERSION "$VERSION"
2619 missing_dir=`cd $ac_aux_dir && pwd`
2620 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2621 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
2622 # Run test in a subshell; some versions of sh will print an error if
2623 # an executable is not found, even if stderr is redirected.
2624 # Redirect stdin to placate older versions of autoconf. Sigh.
2625 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2626 ACLOCAL=aclocal-${am__api_version}
2627 echo "$as_me:$LINENO: result: found" >&5
2628 echo "${ECHO_T}found" >&6
2630 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
2631 echo "$as_me:$LINENO: result: missing" >&5
2632 echo "${ECHO_T}missing" >&6
2635 echo "$as_me:$LINENO: checking for working autoconf" >&5
2636 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
2637 # Run test in a subshell; some versions of sh will print an error if
2638 # an executable is not found, even if stderr is redirected.
2639 # Redirect stdin to placate older versions of autoconf. Sigh.
2640 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2642 echo "$as_me:$LINENO: result: found" >&5
2643 echo "${ECHO_T}found" >&6
2645 AUTOCONF="$missing_dir/missing autoconf"
2646 echo "$as_me:$LINENO: result: missing" >&5
2647 echo "${ECHO_T}missing" >&6
2650 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2651 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
2652 # Run test in a subshell; some versions of sh will print an error if
2653 # an executable is not found, even if stderr is redirected.
2654 # Redirect stdin to placate older versions of autoconf. Sigh.
2655 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2656 AUTOMAKE=automake-${am__api_version}
2657 echo "$as_me:$LINENO: result: found" >&5
2658 echo "${ECHO_T}found" >&6
2660 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
2661 echo "$as_me:$LINENO: result: missing" >&5
2662 echo "${ECHO_T}missing" >&6
2665 echo "$as_me:$LINENO: checking for working autoheader" >&5
2666 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
2667 # Run test in a subshell; some versions of sh will print an error if
2668 # an executable is not found, even if stderr is redirected.
2669 # Redirect stdin to placate older versions of autoconf. Sigh.
2670 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2671 AUTOHEADER=autoheader
2672 echo "$as_me:$LINENO: result: found" >&5
2673 echo "${ECHO_T}found" >&6
2675 AUTOHEADER="$missing_dir/missing autoheader"
2676 echo "$as_me:$LINENO: result: missing" >&5
2677 echo "${ECHO_T}missing" >&6
2680 echo "$as_me:$LINENO: checking for working makeinfo" >&5
2681 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
2682 # Run test in a subshell; some versions of sh will print an error if
2683 # an executable is not found, even if stderr is redirected.
2684 # Redirect stdin to placate older versions of autoconf. Sigh.
2685 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2687 echo "$as_me:$LINENO: result: found" >&5
2688 echo "${ECHO_T}found" >&6
2690 MAKEINFO="$missing_dir/missing makeinfo"
2691 echo "$as_me:$LINENO: result: missing" >&5
2692 echo "${ECHO_T}missing" >&6
2697 # Check whether --enable-shared or --disable-shared was given.
2698 if test "${enable_shared+set}" = set; then
2699 enableval="$enable_shared"
2700 p=${PACKAGE-default}
2702 yes) enable_shared=yes ;;
2703 no) enable_shared=no ;;
2706 # Look at the argument we got. We use all the common list separators.
2707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2708 for pkg in $enableval; do
2709 if test "X$pkg" = "X$p"; then
2719 # Check whether --enable-static or --disable-static was given.
2720 if test "${enable_static+set}" = set; then
2721 enableval="$enable_static"
2722 p=${PACKAGE-default}
2724 yes) enable_static=yes ;;
2725 no) enable_static=no ;;
2728 # Look at the argument we got. We use all the common list separators.
2729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2730 for pkg in $enableval; do
2731 if test "X$pkg" = "X$p"; then
2741 # Check whether --enable-fast-install or --disable-fast-install was given.
2742 if test "${enable_fast_install+set}" = set; then
2743 enableval="$enable_fast_install"
2744 p=${PACKAGE-default}
2746 yes) enable_fast_install=yes ;;
2747 no) enable_fast_install=no ;;
2749 enable_fast_install=no
2750 # Look at the argument we got. We use all the common list separators.
2751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2752 for pkg in $enableval; do
2753 if test "X$pkg" = "X$p"; then
2754 enable_fast_install=yes
2761 enable_fast_install=yes
2764 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2765 if test "${with_gnu_ld+set}" = set; then
2766 withval="$with_gnu_ld"
2767 test "$withval" = no || with_gnu_ld=yes
2772 if test "$GCC" = yes; then
2773 # Check if gcc -print-prog-name=ld gives a path.
2774 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2775 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2778 # gcc leaves a trailing carriage return which upsets mingw
2779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2784 # Accept absolute paths.
2785 [\\/]* | [A-Za-z]:[\\/]*)
2786 re_direlt='/[^/][^/]*/\.\./'
2787 # Canonicalize the path of ld
2788 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2790 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2792 test -z "$LD" && LD="$ac_prog"
2795 # If it fails, then pretend we aren't using GCC.
2799 # If it is relative, then search for the first ld in PATH.
2803 elif test "$with_gnu_ld" = yes; then
2804 echo "$as_me:$LINENO: checking for GNU ld" >&5
2805 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2807 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2808 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2810 if test "${lt_cv_path_LD+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 if test -z "$LD"; then
2814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2815 for ac_dir in $PATH; do
2816 test -z "$ac_dir" && ac_dir=.
2817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2818 lt_cv_path_LD="$ac_dir/$ac_prog"
2819 # Check to see if the program is GNU ld. I'd rather use --version,
2820 # but apparently some GNU ld's only accept -v.
2821 # Break only if it was the GNU/non-GNU ld that we prefer.
2822 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2823 test "$with_gnu_ld" != no && break
2825 test "$with_gnu_ld" != yes && break
2831 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2836 if test -n "$LD"; then
2837 echo "$as_me:$LINENO: result: $LD" >&5
2838 echo "${ECHO_T}$LD" >&6
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2845 { (exit 1); exit 1; }; }
2846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2852 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2853 lt_cv_prog_gnu_ld=yes
2855 lt_cv_prog_gnu_ld=no
2858 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2859 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2860 with_gnu_ld=$lt_cv_prog_gnu_ld
2863 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2864 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2865 if test "${lt_cv_ld_reload_flag+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 lt_cv_ld_reload_flag='-r'
2870 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2871 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2872 reload_flag=$lt_cv_ld_reload_flag
2873 test -n "$reload_flag" && reload_flag=" $reload_flag"
2875 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2876 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2877 if test "${lt_cv_path_NM+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test -n "$NM"; then
2881 # Let the user override the test.
2884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2885 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2886 test -z "$ac_dir" && ac_dir=.
2887 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2888 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2889 # Check to see if the nm accepts a BSD-compat flag.
2890 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2891 # nm: unknown option "B" ignored
2892 # Tru64's nm complains that /dev/null is an invalid object file
2893 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2894 lt_cv_path_NM="$tmp_nm -B"
2896 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2897 lt_cv_path_NM="$tmp_nm -p"
2900 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2901 continue # so that we can try to find one that supports BSD flags
2906 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2911 echo "$as_me:$LINENO: result: $NM" >&5
2912 echo "${ECHO_T}$NM" >&6
2914 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2915 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2917 if test "$LN_S" = "ln -s"; then
2918 echo "$as_me:$LINENO: result: yes" >&5
2919 echo "${ECHO_T}yes" >&6
2921 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2922 echo "${ECHO_T}no, using $LN_S" >&6
2925 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2926 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2927 if test "${lt_cv_deplibs_check_method+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 lt_cv_file_magic_cmd='$MAGIC_CMD'
2931 lt_cv_file_magic_test_file=
2932 lt_cv_deplibs_check_method='unknown'
2933 # Need to set the preceding variable on all platforms that support
2934 # interlibrary dependencies.
2935 # 'none' -- dependencies not supported.
2936 # `unknown' -- same as none, but documents that we really don't know.
2937 # 'pass_all' -- all dependencies passed with no checks.
2938 # 'test_compile' -- check by making test program.
2939 # 'file_magic [regex]' -- check by looking for files in library path
2940 # which responds to the $file_magic_cmd with a given egrep regex.
2941 # If you have `file' or equivalent on your system and you're not sure
2942 # whether `pass_all' will *always* work, you probably want this one.
2946 lt_cv_deplibs_check_method=pass_all
2950 lt_cv_deplibs_check_method=pass_all
2954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2955 lt_cv_file_magic_cmd='/usr/bin/file -L'
2956 lt_cv_file_magic_test_file=/shlib/libc.so
2959 cygwin* | mingw* |pw32*)
2960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2961 lt_cv_file_magic_cmd='$OBJDUMP -f'
2964 darwin* | rhapsody*)
2965 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2966 lt_cv_file_magic_cmd='/usr/bin/file -L'
2968 rhapsody* | darwin1.012)
2969 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2972 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2978 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2981 # Not sure whether the presence of OpenBSD here was a mistake.
2982 # Let's accept both of them until this is cleared up.
2983 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2984 lt_cv_file_magic_cmd=/usr/bin/file
2985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2989 lt_cv_deplibs_check_method=pass_all
2994 lt_cv_deplibs_check_method=pass_all
3000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3001 lt_cv_file_magic_cmd=/usr/bin/file
3002 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3006 lt_cv_file_magic_cmd=/usr/bin/file
3007 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3015 # this will be overridden with pass_all, but let us keep it just in case
3016 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3020 *-32|*"-32 ") libmagic=32-bit;;
3021 *-n32|*"-n32 ") libmagic=N32;;
3022 *-64|*"-64 ") libmagic=64-bit;;
3023 *) libmagic=never-match;;
3025 # this will be overridden with pass_all, but let us keep it just in case
3026 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3029 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3030 lt_cv_deplibs_check_method=pass_all
3033 # This must be Linux ELF.
3036 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3037 lt_cv_deplibs_check_method=pass_all ;;
3039 # glibc up to 2.1.1 does not perform some relocations on ARM
3040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3042 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3046 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3047 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3049 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3055 lt_cv_file_magic_cmd=/usr/bin/file
3056 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3059 osf3* | osf4* | osf5*)
3060 # this will be overridden with pass_all, but let us keep it just in case
3061 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3062 lt_cv_file_magic_test_file=/shlib/libc.so
3063 lt_cv_deplibs_check_method=pass_all
3067 lt_cv_deplibs_check_method=pass_all
3071 lt_cv_deplibs_check_method=pass_all
3072 lt_cv_file_magic_test_file=/lib/libc.so
3075 sysv5uw[78]* | sysv4*uw2*)
3076 lt_cv_deplibs_check_method=pass_all
3079 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3080 case $host_vendor in
3082 lt_cv_deplibs_check_method=pass_all
3085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3086 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3093 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3094 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3095 file_magic_cmd=$lt_cv_file_magic_cmd
3096 deplibs_check_method=$lt_cv_deplibs_check_method
3101 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3103 # Only perform the check for file, if the check method requires it
3104 case $deplibs_check_method in
3106 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3107 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3108 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3117 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3120 ac_save_MAGIC_CMD="$MAGIC_CMD"
3121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3122 ac_dummy="/usr/bin:$PATH"
3123 for ac_dir in $ac_dummy; do
3124 test -z "$ac_dir" && ac_dir=.
3125 if test -f $ac_dir/${ac_tool_prefix}file; then
3126 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3127 if test -n "$file_magic_test_file"; then
3128 case $deplibs_check_method in
3130 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3133 egrep "$file_magic_regex" > /dev/null; then
3138 *** Warning: the command libtool uses to detect shared libraries,
3139 *** $file_magic_cmd, produces output that libtool cannot recognize.
3140 *** The result is that libtool may fail to recognize shared libraries
3141 *** as such. This will affect the creation of libtool libraries that
3142 *** depend on shared libraries, but programs linked with such libtool
3143 *** libraries will work regardless of this problem. Nevertheless, you
3144 *** may want to report the problem to your system manager and/or to
3145 *** bug-libtool@gnu.org
3155 MAGIC_CMD="$ac_save_MAGIC_CMD"
3160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3161 if test -n "$MAGIC_CMD"; then
3162 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3163 echo "${ECHO_T}$MAGIC_CMD" >&6
3165 echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3169 if test -z "$lt_cv_path_MAGIC_CMD"; then
3170 if test -n "$ac_tool_prefix"; then
3171 echo "$as_me:$LINENO: checking for file" >&5
3172 echo $ECHO_N "checking for file... $ECHO_C" >&6
3173 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3184 ac_save_MAGIC_CMD="$MAGIC_CMD"
3185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3186 ac_dummy="/usr/bin:$PATH"
3187 for ac_dir in $ac_dummy; do
3188 test -z "$ac_dir" && ac_dir=.
3189 if test -f $ac_dir/file; then
3190 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3191 if test -n "$file_magic_test_file"; then
3192 case $deplibs_check_method in
3194 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3197 egrep "$file_magic_regex" > /dev/null; then
3202 *** Warning: the command libtool uses to detect shared libraries,
3203 *** $file_magic_cmd, produces output that libtool cannot recognize.
3204 *** The result is that libtool may fail to recognize shared libraries
3205 *** as such. This will affect the creation of libtool libraries that
3206 *** depend on shared libraries, but programs linked with such libtool
3207 *** libraries will work regardless of this problem. Nevertheless, you
3208 *** may want to report the problem to your system manager and/or to
3209 *** bug-libtool@gnu.org
3219 MAGIC_CMD="$ac_save_MAGIC_CMD"
3224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3225 if test -n "$MAGIC_CMD"; then
3226 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3227 echo "${ECHO_T}$MAGIC_CMD" >&6
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_RANLIB+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$RANLIB"; then
3251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 RANLIB=$ac_cv_prog_RANLIB
3270 if test -n "$RANLIB"; then
3271 echo "$as_me:$LINENO: result: $RANLIB" >&5
3272 echo "${ECHO_T}$RANLIB" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3279 if test -z "$ac_cv_prog_RANLIB"; then
3280 ac_ct_RANLIB=$RANLIB
3281 # Extract the first word of "ranlib", so it can be a program name with args.
3282 set dummy ranlib; ac_word=$2
3283 echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test -n "$ac_ct_RANLIB"; then
3289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_RANLIB="ranlib"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3309 if test -n "$ac_ct_RANLIB"; then
3310 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3311 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3313 echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3317 RANLIB=$ac_ct_RANLIB
3319 RANLIB="$ac_cv_prog_RANLIB"
3322 if test -n "$ac_tool_prefix"; then
3323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3324 set dummy ${ac_tool_prefix}strip; ac_word=$2
3325 echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327 if test "${ac_cv_prog_STRIP+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 if test -n "$STRIP"; then
3331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 STRIP=$ac_cv_prog_STRIP
3350 if test -n "$STRIP"; then
3351 echo "$as_me:$LINENO: result: $STRIP" >&5
3352 echo "${ECHO_T}$STRIP" >&6
3354 echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3359 if test -z "$ac_cv_prog_STRIP"; then
3361 # Extract the first word of "strip", so it can be a program name with args.
3362 set dummy strip; ac_word=$2
3363 echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 if test -n "$ac_ct_STRIP"; then
3369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_ac_ct_STRIP="strip"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3388 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3389 if test -n "$ac_ct_STRIP"; then
3390 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3391 echo "${ECHO_T}$ac_ct_STRIP" >&6
3393 echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6
3399 STRIP="$ac_cv_prog_STRIP"
3403 # Check for any special flags to pass to ltconfig.
3404 libtool_flags="--cache-file=$cache_file"
3405 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3406 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3407 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3408 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3409 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3412 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3413 if test "${enable_libtool_lock+set}" = set; then
3414 enableval="$enable_libtool_lock"
3417 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3418 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3421 # Check whether --with-pic or --without-pic was given.
3422 if test "${with_pic+set}" = set; then
3428 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3429 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3431 # Some flags need to be propagated to the compiler or linker for good
3435 # Find out which ABI we are using.
3436 echo '#line 3436 "configure"' > conftest.$ac_ext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; then
3442 if test "$lt_cv_prog_gnu_ld" = yes; then
3443 case `/usr/bin/file conftest.$ac_objext` in
3445 LD="${LD-ld} -melf32bsmip"
3448 LD="${LD-ld} -melf32bmipn32"
3451 LD="${LD-ld} -melf64bmip"
3455 case `/usr/bin/file conftest.$ac_objext` in
3472 # Find out which ABI we are using.
3473 echo 'int i;' > conftest.$ac_ext
3474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3475 (eval $ac_compile) 2>&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; then
3479 case "`/usr/bin/file conftest.o`" in
3492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3493 SAVE_CFLAGS="$CFLAGS"
3494 CFLAGS="$CFLAGS -belf"
3495 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3496 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3497 if test "${lt_cv_cc_needs_belf+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3523 rm -f conftest.$ac_objext conftest$ac_exeext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3525 (eval $ac_link) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest$ac_exeext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 lt_cv_cc_needs_belf=yes
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 lt_cv_cc_needs_belf=no
3552 rm -f conftest.err conftest.$ac_objext \
3553 conftest$ac_exeext conftest.$ac_ext
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3562 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3565 CFLAGS="$SAVE_CFLAGS"
3573 # Save cache, so that ltconfig can load it
3574 cat >confcache <<\_ACEOF
3575 # This file is a shell script that caches the results of configure
3576 # tests run on this system so they can be shared between configure
3577 # scripts and configure runs, see configure's option --config-cache.
3578 # It is not useful on other systems. If it contains results you don't
3579 # want to keep, you may remove or edit it.
3581 # config.status only pays attention to the cache file if you give it
3582 # the --recheck option to rerun configure.
3584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3590 # The following way of writing the cache mishandles newlines in values,
3591 # but we know of no workaround that is simple, portable, and efficient.
3592 # So, don't put newlines in cache variables' values.
3593 # Ultrix sh set writes to stderr and can't be redirected directly,
3594 # and sets the high bit in the cache file unless we assign to the vars.
3597 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3599 # `set' does not quote correctly, so add quotes (double-quote
3600 # substitution turns \\\\ into \\, and sed turns \\ into \).
3603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3606 # `set' quotes correctly as required by POSIX, so do not add quotes.
3608 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3617 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3619 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3620 if test -w $cache_file; then
3621 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3622 cat confcache >$cache_file
3624 echo "not updating unwritable cache $cache_file"
3629 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3630 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3631 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3632 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3633 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3634 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3635 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3636 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3637 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3638 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3639 echo "$as_me: error: libtool configure failed" >&2;}
3640 { (exit 1); exit 1; }; }
3642 # Reload cache, that may have been modified by ltconfig
3643 if test -r "$cache_file"; then
3644 # Some versions of bash will fail to source /dev/null (special
3645 # files actually), so we avoid doing that.
3646 if test -f "$cache_file"; then
3647 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3648 echo "$as_me: loading cache $cache_file" >&6;}
3650 [\\/]* | ?:[\\/]* ) . $cache_file;;
3651 *) . ./$cache_file;;
3655 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3656 echo "$as_me: creating cache $cache_file" >&6;}
3661 # This can be used to rebuild libtool when needed
3662 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3664 # Always use our own libtool.
3665 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3667 # Redirect the config.log output again, so that the ltconfig log is not
3668 # clobbered by the next message.
3669 exec 5>>./config.log
3677 # Check whether --enable-targets or --disable-targets was given.
3678 if test "${enable_targets+set}" = set; then
3679 enableval="$enable_targets"
3680 case "${enableval}" in
3681 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3682 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3683 { (exit 1); exit 1; }; }
3685 no) enable_targets= ;;
3686 *) enable_targets=$enableval ;;
3688 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3689 if test "${enable_commonbfdlib+set}" = set; then
3690 enableval="$enable_commonbfdlib"
3691 case "${enableval}" in
3692 yes) commonbfdlib=true ;;
3693 no) commonbfdlib=false ;;
3694 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3695 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3696 { (exit 1); exit 1; }; } ;;
3699 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3700 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3701 if test "${enable_build_warnings+set}" = set; then
3702 enableval="$enable_build_warnings"
3703 case "${enableval}" in
3705 no) build_warnings="-w";;
3706 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3707 build_warnings="${build_warnings} ${t}";;
3708 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3709 build_warnings="${t} ${build_warnings}";;
3710 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3712 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3713 echo "Setting warning flags = $build_warnings" 6>&1
3716 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3717 WARN_CFLAGS="${build_warnings}"
3722 ac_config_headers="$ac_config_headers config.h:config.in"
3724 ac_config_commands="$ac_config_commands default-1"
3727 if test -z "$target" ; then
3728 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3729 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3730 { (exit 1); exit 1; }; }
3732 if test -z "$host" ; then
3733 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3734 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3735 { (exit 1); exit 1; }; }
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 if test -n "$ac_tool_prefix"; then
3744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3745 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_prog_CC+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 if test -n "$CC"; then
3752 ac_cv_prog_CC="$CC" # Let the user override the test.
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 if test -n "$CC"; then
3772 echo "$as_me:$LINENO: result: $CC" >&5
3773 echo "${ECHO_T}$CC" >&6
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3780 if test -z "$ac_cv_prog_CC"; then
3782 # Extract the first word of "gcc", so it can be a program name with args.
3783 set dummy gcc; ac_word=$2
3784 echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test -n "$ac_ct_CC"; then
3790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_ac_ct_CC="gcc"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3809 if test -n "$ac_ct_CC"; then
3810 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3811 echo "${ECHO_T}$ac_ct_CC" >&6
3813 echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3822 if test -z "$CC"; then
3823 if test -n "$ac_tool_prefix"; then
3824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3825 set dummy ${ac_tool_prefix}cc; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_prog_CC+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC="$CC" # Let the user override the test.
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_CC="${ac_tool_prefix}cc"
3842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 if test -n "$CC"; then
3852 echo "$as_me:$LINENO: result: $CC" >&5
3853 echo "${ECHO_T}$CC" >&6
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3860 if test -z "$ac_cv_prog_CC"; then
3862 # Extract the first word of "cc", so it can be a program name with args.
3863 set dummy cc; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$ac_ct_CC"; then
3870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_ac_ct_CC="cc"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3889 if test -n "$ac_ct_CC"; then
3890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3891 echo "${ECHO_T}$ac_ct_CC" >&6
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3903 if test -z "$CC"; then
3904 # Extract the first word of "cc", so it can be a program name with args.
3905 set dummy cc; ac_word=$2
3906 echo "$as_me:$LINENO: checking for $ac_word" >&5
3907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3908 if test "${ac_cv_prog_CC+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3923 ac_prog_rejected=yes
3927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 if test $ac_prog_rejected = yes; then
3934 # We found a bogon in the path, so make sure we never use it.
3935 set dummy $ac_cv_prog_CC
3937 if test $# != 0; then
3938 # We chose a different compiler from the bogus one.
3939 # However, it has the same basename, so the bogon will be chosen
3940 # first if we set CC to just the basename; use the full file name.
3942 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3948 if test -n "$CC"; then
3949 echo "$as_me:$LINENO: result: $CC" >&5
3950 echo "${ECHO_T}$CC" >&6
3952 echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3957 if test -z "$CC"; then
3958 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_CC+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 if test -n "$CC"; then
3969 ac_cv_prog_CC="$CC" # Let the user override the test.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 if test -n "$CC"; then
3989 echo "$as_me:$LINENO: result: $CC" >&5
3990 echo "${ECHO_T}$CC" >&6
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 test -n "$CC" && break
3999 if test -z "$CC"; then
4003 # Extract the first word of "$ac_prog", so it can be a program name with args.
4004 set dummy $ac_prog; ac_word=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 if test -n "$ac_ct_CC"; then
4011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_ac_ct_CC="$ac_prog"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4030 if test -n "$ac_ct_CC"; then
4031 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4032 echo "${ECHO_T}$ac_ct_CC" >&6
4034 echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4038 test -n "$ac_ct_CC" && break
4047 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4048 See \`config.log' for more details." >&5
4049 echo "$as_me: error: no acceptable C compiler found in \$PATH
4050 See \`config.log' for more details." >&2;}
4051 { (exit 1); exit 1; }; }
4053 # Provide some information about the compiler.
4054 echo "$as_me:$LINENO:" \
4055 "checking for C compiler version" >&5
4056 ac_compiler=`set X $ac_compile; echo $2`
4057 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4058 (eval $ac_compiler --version </dev/null >&5) 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }
4062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4063 (eval $ac_compiler -v </dev/null >&5) 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }
4067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4068 (eval $ac_compiler -V </dev/null >&5) 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }
4073 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4074 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4075 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4096 rm -f conftest.$ac_objext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>conftest.er1
4100 grep -v '^ *+' conftest.er1 >conftest.err
4102 cat conftest.err >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try='test -z "$ac_c_werror_flag"
4106 || test ! -s conftest.err'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; } &&
4112 { ac_try='test -s conftest.$ac_objext'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4129 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4130 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4131 GCC=`test $ac_compiler_gnu = yes && echo yes`
4132 ac_test_CFLAGS=${CFLAGS+set}
4133 ac_save_CFLAGS=$CFLAGS
4135 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4136 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4137 if test "${ac_cv_prog_cc_g+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag"
4165 || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4187 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4188 if test "$ac_test_CFLAGS" = set; then
4189 CFLAGS=$ac_save_CFLAGS
4190 elif test $ac_cv_prog_cc_g = yes; then
4191 if test "$GCC" = yes; then
4197 if test "$GCC" = yes; then
4203 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4204 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4205 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 ac_cv_prog_cc_stdc=no
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4218 #include <sys/types.h>
4219 #include <sys/stat.h>
4220 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4221 struct buf { int x; };
4222 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4223 static char *e (p, i)
4229 static char *f (char * (*g) (char **, int), char **p, ...)
4234 s = g (p, va_arg (v,int));
4239 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4240 function prototypes and stuff, but not '\xHH' hex character constants.
4241 These don't provoke an error unfortunately, instead are silently treated
4242 as 'x'. The following induces an error, until -std1 is added to get
4243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4244 array size at least. It's necessary to write '\x00'==0 to get something
4245 that's true only with -std1. */
4246 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4248 int test (int i, double x);
4249 struct s1 {int (*f) (int a);};
4250 struct s2 {int (*f) (double a);};
4251 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4257 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4262 # Don't try gcc -ansi; that turns off useful extensions and
4263 # breaks some systems' header files.
4264 # AIX -qlanglvl=ansi
4265 # Ultrix and OSF/1 -std1
4266 # HP-UX 10.20 and later -Ae
4267 # HP-UX older versions -Aa -D_HPUX_SOURCE
4268 # SVR4 -Xc -D__EXTENSIONS__
4269 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4271 CC="$ac_save_CC $ac_arg"
4272 rm -f conftest.$ac_objext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4274 (eval $ac_compile) 2>conftest.er1
4276 grep -v '^ *+' conftest.er1 >conftest.err
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try='test -z "$ac_c_werror_flag"
4282 || test ! -s conftest.err'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; } &&
4288 { ac_try='test -s conftest.$ac_objext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 ac_cv_prog_cc_stdc=$ac_arg
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4301 rm -f conftest.err conftest.$ac_objext
4303 rm -f conftest.$ac_ext conftest.$ac_objext
4308 case "x$ac_cv_prog_cc_stdc" in
4310 echo "$as_me:$LINENO: result: none needed" >&5
4311 echo "${ECHO_T}none needed" >&6 ;;
4313 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4314 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4315 CC="$CC $ac_cv_prog_cc_stdc" ;;
4318 # Some people use a C++ compiler to compile C. Since we use `exit',
4319 # in C++ we need to declare it. In case someone uses the same compiler
4320 # for both compiling C and C++ we need to have the C++ compiler decide
4321 # the declaration of exit, since it's the most demanding environment.
4322 cat >conftest.$ac_ext <<_ACEOF
4327 rm -f conftest.$ac_objext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>conftest.er1
4331 grep -v '^ *+' conftest.er1 >conftest.err
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 for ac_declaration in \
4351 'extern "C" void std::exit (int) throw (); using std::exit;' \
4352 'extern "C" void std::exit (int); using std::exit;' \
4353 'extern "C" void exit (int) throw ();' \
4354 'extern "C" void exit (int);' \
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4377 grep -v '^ *+' conftest.er1 >conftest.err
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_c_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449 if test -n "$ac_declaration"; then
4450 echo '#ifdef __cplusplus' >>confdefs.h
4451 echo $ac_declaration >>confdefs.h
4452 echo '#endif' >>confdefs.h
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468 for ac_prog in 'bison -y' byacc
4470 # Extract the first word of "$ac_prog", so it can be a program name with args.
4471 set dummy $ac_prog; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_prog_YACC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test -n "$YACC"; then
4478 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_YACC="$ac_prog"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 YACC=$ac_cv_prog_YACC
4497 if test -n "$YACC"; then
4498 echo "$as_me:$LINENO: result: $YACC" >&5
4499 echo "${ECHO_T}$YACC" >&6
4501 echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4505 test -n "$YACC" && break
4507 test -n "$YACC" || YACC="yacc"
4509 missing_dir=`cd $ac_aux_dir && pwd`
4510 for ac_prog in flex lex
4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_prog_LEX+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 if test -n "$LEX"; then
4520 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_prog_LEX="$ac_prog"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 if test -n "$LEX"; then
4540 echo "$as_me:$LINENO: result: $LEX" >&5
4541 echo "${ECHO_T}$LEX" >&6
4543 echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4547 test -n "$LEX" && break
4549 test -n "$LEX" || LEX="$missing_dir/missing flex"
4551 for ac_prog in flex lex
4553 # Extract the first word of "$ac_prog", so it can be a program name with args.
4554 set dummy $ac_prog; ac_word=$2
4555 echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557 if test "${ac_cv_prog_LEX+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 if test -n "$LEX"; then
4561 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_LEX="$ac_prog"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 if test -n "$LEX"; then
4581 echo "$as_me:$LINENO: result: $LEX" >&5
4582 echo "${ECHO_T}$LEX" >&6
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4588 test -n "$LEX" && break
4590 test -n "$LEX" || LEX=":"
4592 if test -z "$LEXLIB"
4594 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4595 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4596 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 ac_check_lib_save_LIBS=$LIBS
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4608 /* Override any gcc2 internal prototype to avoid an error. */
4612 /* We use char because int might match the return type of a gcc2
4613 builtin and then its argument prototype would still apply. */
4623 rm -f conftest.$ac_objext conftest$ac_exeext
4624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4625 (eval $ac_link) 2>conftest.er1
4627 grep -v '^ *+' conftest.er1 >conftest.err
4629 cat conftest.err >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } &&
4632 { ac_try='test -z "$ac_c_werror_flag"
4633 || test ! -s conftest.err'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest$ac_exeext'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4645 ac_cv_lib_fl_yywrap=yes
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 ac_cv_lib_fl_yywrap=no
4652 rm -f conftest.err conftest.$ac_objext \
4653 conftest$ac_exeext conftest.$ac_ext
4654 LIBS=$ac_check_lib_save_LIBS
4656 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4657 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4658 if test $ac_cv_lib_fl_yywrap = yes; then
4661 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4662 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4663 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 ac_check_lib_save_LIBS=$LIBS
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4675 /* Override any gcc2 internal prototype to avoid an error. */
4679 /* We use char because int might match the return type of a gcc2
4680 builtin and then its argument prototype would still apply. */
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 ac_cv_lib_l_yywrap=yes
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 ac_cv_lib_l_yywrap=no
4719 rm -f conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
4721 LIBS=$ac_check_lib_save_LIBS
4723 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4724 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4725 if test $ac_cv_lib_l_yywrap = yes; then
4733 if test "x$LEX" != "x:"; then
4734 echo "$as_me:$LINENO: checking lex output file root" >&5
4735 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4736 if test "${ac_cv_prog_lex_root+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 # The minimal lex program is just a single line: %%. But some broken lexes
4740 # (Solaris, I think it was) want two %% lines, so accommodate them.
4741 cat >conftest.l <<_ACEOF
4745 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4746 (eval $LEX conftest.l) 2>&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }
4750 if test -f lex.yy.c; then
4751 ac_cv_prog_lex_root=lex.yy
4752 elif test -f lexyy.c; then
4753 ac_cv_prog_lex_root=lexyy
4755 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4756 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4757 { (exit 1); exit 1; }; }
4760 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4761 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4763 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4765 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4766 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4767 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 # POSIX says lex can declare yytext either as a pointer or an array; the
4771 # default is implementation-dependent. Figure out which it is, since
4772 # not all implementations provide the %pointer and %array declarations.
4773 ac_cv_prog_lex_yytext_pointer=no
4774 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4776 LIBS="$LIBS $LEXLIB"
4777 cat >conftest.$ac_ext <<_ACEOF
4778 `cat $LEX_OUTPUT_ROOT.c`
4780 rm -f conftest.$ac_objext conftest$ac_exeext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4782 (eval $ac_link) 2>conftest.er1
4784 grep -v '^ *+' conftest.er1 >conftest.err
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest$ac_exeext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_cv_prog_lex_yytext_pointer=yes
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4808 rm -f conftest.err conftest.$ac_objext \
4809 conftest$ac_exeext conftest.$ac_ext
4811 rm -f "${LEX_OUTPUT_ROOT}.c"
4814 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4815 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4816 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4818 cat >>confdefs.h <<\_ACEOF
4819 #define YYTEXT_POINTER 1
4827 ALL_LINGUAS="fr tr ja es sv da zh_CN ru"
4828 if test -n "$ac_tool_prefix"; then
4829 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4830 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4831 echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4833 if test "${ac_cv_prog_RANLIB+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 if test -n "$RANLIB"; then
4837 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 RANLIB=$ac_cv_prog_RANLIB
4856 if test -n "$RANLIB"; then
4857 echo "$as_me:$LINENO: result: $RANLIB" >&5
4858 echo "${ECHO_T}$RANLIB" >&6
4860 echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6
4865 if test -z "$ac_cv_prog_RANLIB"; then
4866 ac_ct_RANLIB=$RANLIB
4867 # Extract the first word of "ranlib", so it can be a program name with args.
4868 set dummy ranlib; ac_word=$2
4869 echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 if test -n "$ac_ct_RANLIB"; then
4875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884 ac_cv_prog_ac_ct_RANLIB="ranlib"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4894 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4895 if test -n "$ac_ct_RANLIB"; then
4896 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4897 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4899 echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6
4903 RANLIB=$ac_ct_RANLIB
4905 RANLIB="$ac_cv_prog_RANLIB"
4909 ac_cpp='$CPP $CPPFLAGS'
4910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4914 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4915 # On Suns, sometimes $CPP names a directory.
4916 if test -n "$CPP" && test -d "$CPP"; then
4919 if test -z "$CPP"; then
4920 if test "${ac_cv_prog_CPP+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 # Double quotes because CPP needs to be expanded
4924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4927 for ac_c_preproc_warn_flag in '' yes
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat >conftest.$ac_ext <<_ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4942 # include <limits.h>
4944 # include <assert.h>
4948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } >/dev/null; then
4956 if test -s conftest.err; then
4957 ac_cpp_err=$ac_c_preproc_warn_flag
4958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4965 if test -z "$ac_cpp_err"; then
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 # Broken: fails on valid input.
4974 rm -f conftest.err conftest.$ac_ext
4976 # OK, works on sane cases. Now check whether non-existent headers
4977 # can be detected and how.
4978 cat >conftest.$ac_ext <<_ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #include <ac_nonexistent.h>
4986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } >/dev/null; then
4994 if test -s conftest.err; then
4995 ac_cpp_err=$ac_c_preproc_warn_flag
4996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5003 if test -z "$ac_cpp_err"; then
5004 # Broken: success on invalid input.
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5010 # Passes both tests.
5014 rm -f conftest.err conftest.$ac_ext
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.$ac_ext
5019 if $ac_preproc_ok; then
5031 echo "$as_me:$LINENO: result: $CPP" >&5
5032 echo "${ECHO_T}$CPP" >&6
5034 for ac_c_preproc_warn_flag in '' yes
5036 # Use a header file that comes with gcc, so configuring glibc
5037 # with a fresh cross-compiler works.
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 # <limits.h> exists even on freestanding compilers.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5049 # include <limits.h>
5051 # include <assert.h>
5055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null; then
5063 if test -s conftest.err; then
5064 ac_cpp_err=$ac_c_preproc_warn_flag
5065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5072 if test -z "$ac_cpp_err"; then
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 # Broken: fails on valid input.
5081 rm -f conftest.err conftest.$ac_ext
5083 # OK, works on sane cases. Now check whether non-existent headers
5084 # can be detected and how.
5085 cat >conftest.$ac_ext <<_ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 #include <ac_nonexistent.h>
5093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096 grep -v '^ *+' conftest.er1 >conftest.err
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null; then
5101 if test -s conftest.err; then
5102 ac_cpp_err=$ac_c_preproc_warn_flag
5103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5110 if test -z "$ac_cpp_err"; then
5111 # Broken: success on invalid input.
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 # Passes both tests.
5121 rm -f conftest.err conftest.$ac_ext
5124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125 rm -f conftest.err conftest.$ac_ext
5126 if $ac_preproc_ok; then
5129 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5132 See \`config.log' for more details." >&2;}
5133 { (exit 1); exit 1; }; }
5137 ac_cpp='$CPP $CPPFLAGS'
5138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143 echo "$as_me:$LINENO: checking for egrep" >&5
5144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5145 if test "${ac_cv_prog_egrep+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5149 then ac_cv_prog_egrep='grep -E'
5150 else ac_cv_prog_egrep='egrep'
5153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5155 EGREP=$ac_cv_prog_egrep
5158 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5160 if test "${ac_cv_header_stdc+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>conftest.er1
5186 grep -v '^ *+' conftest.er1 >conftest.err
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_header_stdc=yes
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 ac_cv_header_stdc=no
5211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213 if test $ac_cv_header_stdc = yes; then
5214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5225 $EGREP "memchr" >/dev/null 2>&1; then
5228 ac_cv_header_stdc=no
5234 if test $ac_cv_header_stdc = yes; then
5235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5236 cat >conftest.$ac_ext <<_ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246 $EGREP "free" >/dev/null 2>&1; then
5249 ac_cv_header_stdc=no
5255 if test $ac_cv_header_stdc = yes; then
5256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5257 if test "$cross_compiling" = yes; then
5260 cat >conftest.$ac_ext <<_ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5267 #if ((' ' & 0x0FF) == 0x020)
5268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5271 # define ISLOWER(c) \
5272 (('a' <= (c) && (c) <= 'i') \
5273 || ('j' <= (c) && (c) <= 'r') \
5274 || ('s' <= (c) && (c) <= 'z'))
5275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5283 for (i = 0; i < 256; i++)
5284 if (XOR (islower (i), ISLOWER (i))
5285 || toupper (i) != TOUPPER (i))
5290 rm -f conftest$ac_exeext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292 (eval $ac_link) 2>&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5303 echo "$as_me: program exited with status $ac_status" >&5
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5308 ac_cv_header_stdc=no
5310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5314 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5315 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5316 if test $ac_cv_header_stdc = yes; then
5318 cat >>confdefs.h <<\_ACEOF
5319 #define STDC_HEADERS 1
5324 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5325 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5326 if test "${ac_cv_c_const+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5339 /* FIXME: Include the comments suggested by Paul. */
5341 /* Ultrix mips cc rejects this. */
5342 typedef int charset[2];
5344 /* SunOS 4.1.1 cc rejects this. */
5345 char const *const *ccp;
5347 /* NEC SVR4.0.2 mips cc rejects this. */
5348 struct point {int x, y;};
5349 static struct point const zero = {0,0};
5350 /* AIX XL C 1.02.0.0 rejects this.
5351 It does not let you subtract one const X* pointer from another in
5352 an arm of an if-expression whose if-part is not a constant
5354 const char *g = "string";
5355 ccp = &g + (g ? g-g : 0);
5356 /* HPUX 7.0 cc rejects these. */
5359 ccp = (char const *const *) p;
5360 { /* SCO 3.2v4 cc rejects this. */
5362 char const *s = 0 ? (char *) 0 : (char const *) 0;
5366 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5368 const int *foo = &x[0];
5371 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5372 typedef const int *iptr;
5376 { /* AIX XL C 1.02.0.0 rejects this saying
5377 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5378 struct s { int j; const int *ap[3]; };
5379 struct s *b; b->j = 5;
5381 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5421 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5422 echo "${ECHO_T}$ac_cv_c_const" >&6
5423 if test $ac_cv_c_const = no; then
5425 cat >>confdefs.h <<\_ACEOF
5431 echo "$as_me:$LINENO: checking for inline" >&5
5432 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5433 if test "${ac_cv_c_inline+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 for ac_kw in inline __inline__ __inline; do
5438 cat >conftest.$ac_ext <<_ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5446 static $ac_kw foo_t static_foo () {return 0; }
5447 $ac_kw foo_t foo () {return 0; }
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_c_inline=$ac_kw; break
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5484 echo "${ECHO_T}$ac_cv_c_inline" >&6
5487 case $ac_cv_c_inline in
5490 case $ac_cv_c_inline in
5492 *) ac_val=$ac_cv_c_inline;;
5494 cat >>confdefs.h <<_ACEOF
5496 #define inline $ac_val
5502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5513 inttypes.h stdint.h unistd.h
5515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516 echo "$as_me:$LINENO: checking for $ac_header" >&5
5517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 cat >conftest.$ac_ext <<_ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 $ac_includes_default
5529 #include <$ac_header>
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try='test -z "$ac_c_werror_flag"
5541 || test ! -s conftest.err'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } &&
5547 { ac_try='test -s conftest.$ac_objext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 eval "$as_ac_Header=yes"
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 eval "$as_ac_Header=no"
5560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5565 cat >>confdefs.h <<_ACEOF
5566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5574 echo "$as_me:$LINENO: checking for off_t" >&5
5575 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5576 if test "${ac_cv_type_off_t+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 cat >conftest.$ac_ext <<_ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 $ac_includes_default
5597 rm -f conftest.$ac_objext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599 (eval $ac_compile) 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -z "$ac_c_werror_flag"
5607 || test ! -s conftest.err'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_cv_type_off_t=yes
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5628 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5629 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5630 if test $ac_cv_type_off_t = yes; then
5634 cat >>confdefs.h <<_ACEOF
5640 echo "$as_me:$LINENO: checking for size_t" >&5
5641 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5642 if test "${ac_cv_type_size_t+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5657 if (sizeof (size_t))
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>conftest.er1
5667 grep -v '^ *+' conftest.er1 >conftest.err
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 ac_cv_type_size_t=yes
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 ac_cv_type_size_t=no
5692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5695 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5696 if test $ac_cv_type_size_t = yes; then
5700 cat >>confdefs.h <<_ACEOF
5701 #define size_t unsigned
5706 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5707 # for constant arguments. Useless!
5708 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5709 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5710 if test "${ac_cv_working_alloca_h+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 cat >conftest.$ac_ext <<_ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5723 char *p = (char *) alloca (2 * sizeof (int));
5728 rm -f conftest.$ac_objext conftest$ac_exeext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5730 (eval $ac_link) 2>conftest.er1
5732 grep -v '^ *+' conftest.er1 >conftest.err
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_c_werror_flag"
5738 || test ! -s conftest.err'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; } &&
5744 { ac_try='test -s conftest$ac_exeext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_cv_working_alloca_h=yes
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ac_cv_working_alloca_h=no
5757 rm -f conftest.err conftest.$ac_objext \
5758 conftest$ac_exeext conftest.$ac_ext
5760 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5761 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5762 if test $ac_cv_working_alloca_h = yes; then
5764 cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_ALLOCA_H 1
5770 echo "$as_me:$LINENO: checking for alloca" >&5
5771 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5772 if test "${ac_cv_func_alloca_works+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5782 # define alloca __builtin_alloca
5785 # include <malloc.h>
5786 # define alloca _alloca
5789 # include <alloca.h>
5794 # ifndef alloca /* predefined by HP cc +Olibcalls */
5805 char *p = (char *) alloca (1);
5810 rm -f conftest.$ac_objext conftest$ac_exeext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5812 (eval $ac_link) 2>conftest.er1
5814 grep -v '^ *+' conftest.er1 >conftest.err
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try='test -z "$ac_c_werror_flag"
5820 || test ! -s conftest.err'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try='test -s conftest$ac_exeext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 ac_cv_func_alloca_works=yes
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 ac_cv_func_alloca_works=no
5839 rm -f conftest.err conftest.$ac_objext \
5840 conftest$ac_exeext conftest.$ac_ext
5842 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5843 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5845 if test $ac_cv_func_alloca_works = yes; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_ALLOCA 1
5852 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5853 # that cause trouble. Some versions do not even contain alloca or
5854 # contain a buggy version. If you still want to use their alloca,
5855 # use ar to extract alloca.o from them instead of compiling alloca.c.
5857 ALLOCA=alloca.$ac_objext
5859 cat >>confdefs.h <<\_ACEOF
5864 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5865 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5866 if test "${ac_cv_os_cray+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #if defined(CRAY) && ! defined(CRAY2)
5882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5883 $EGREP "webecray" >/dev/null 2>&1; then
5891 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5892 echo "${ECHO_T}$ac_cv_os_cray" >&6
5893 if test $ac_cv_os_cray = yes; then
5894 for ac_func in _getb67 GETB67 getb67; do
5895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5896 echo "$as_me:$LINENO: checking for $ac_func" >&5
5897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5898 if eval "test \"\${$as_ac_var+set}\" = set"; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 cat >conftest.$ac_ext <<_ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5909 #define $ac_func innocuous_$ac_func
5911 /* System header to define __stub macros and hopefully few prototypes,
5912 which can conflict with char $ac_func (); below.
5913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5914 <limits.h> exists even on freestanding compilers. */
5917 # include <limits.h>
5919 # include <assert.h>
5924 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5932 /* The GNU C library defines this for functions which it implements
5933 to always fail with ENOSYS. Some functions are actually named
5934 something starting with __ and the normal name is an alias. */
5935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5938 char (*f) () = $ac_func;
5947 return f != $ac_func;
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>conftest.er1
5956 grep -v '^ *+' conftest.er1 >conftest.err
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } &&
5961 { ac_try='test -z "$ac_c_werror_flag"
5962 || test ! -s conftest.err'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest$ac_exeext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 eval "$as_ac_var=yes"
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5979 eval "$as_ac_var=no"
5981 rm -f conftest.err conftest.$ac_objext \
5982 conftest$ac_exeext conftest.$ac_ext
5984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5986 if test `eval echo '${'$as_ac_var'}'` = yes; then
5988 cat >>confdefs.h <<_ACEOF
5989 #define CRAY_STACKSEG_END $ac_func
5998 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5999 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6000 if test "${ac_cv_c_stack_direction+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 if test "$cross_compiling" = yes; then
6004 ac_cv_c_stack_direction=0
6006 cat >conftest.$ac_ext <<_ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6013 find_stack_direction ()
6015 static char *addr = 0;
6020 return find_stack_direction ();
6023 return (&dummy > addr) ? 1 : -1;
6029 exit (find_stack_direction () < 0);
6032 rm -f conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 ac_cv_c_stack_direction=1
6045 echo "$as_me: program exited with status $ac_status" >&5
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6050 ac_cv_c_stack_direction=-1
6052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6055 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6056 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6058 cat >>confdefs.h <<_ACEOF
6059 #define STACK_DIRECTION $ac_cv_c_stack_direction
6067 for ac_header in stdlib.h unistd.h
6069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071 echo "$as_me:$LINENO: checking for $ac_header" >&5
6072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6079 # Is the header compilable?
6080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 $ac_includes_default
6089 #include <$ac_header>
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag"
6101 || test ! -s conftest.err'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_header_compiler=yes
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 ac_header_compiler=no
6120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6122 echo "${ECHO_T}$ac_header_compiler" >&6
6124 # Is the header present?
6125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <$ac_header>
6135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6138 grep -v '^ *+' conftest.er1 >conftest.err
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev/null; then
6143 if test -s conftest.err; then
6144 ac_cpp_err=$ac_c_preproc_warn_flag
6145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6152 if test -z "$ac_cpp_err"; then
6153 ac_header_preproc=yes
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ac_header_preproc=no
6160 rm -f conftest.err conftest.$ac_ext
6161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6162 echo "${ECHO_T}$ac_header_preproc" >&6
6164 # So? What about this header?
6165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6171 ac_header_preproc=yes
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6188 ## ------------------------------------------ ##
6189 ## Report this to the AC_PACKAGE_NAME lists. ##
6190 ## ------------------------------------------ ##
6193 sed "s/^/$as_me: WARNING: /" >&2
6196 echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 eval "$as_ac_Header=\$ac_header_preproc"
6203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6208 cat >>confdefs.h <<_ACEOF
6209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217 for ac_func in getpagesize
6219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6220 echo "$as_me:$LINENO: checking for $ac_func" >&5
6221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6222 if eval "test \"\${$as_ac_var+set}\" = set"; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 cat >conftest.$ac_ext <<_ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6233 #define $ac_func innocuous_$ac_func
6235 /* System header to define __stub macros and hopefully few prototypes,
6236 which can conflict with char $ac_func (); below.
6237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6238 <limits.h> exists even on freestanding compilers. */
6241 # include <limits.h>
6243 # include <assert.h>
6248 /* Override any gcc2 internal prototype to avoid an error. */
6253 /* We use char because int might match the return type of a gcc2
6254 builtin and then its argument prototype would still apply. */
6256 /* The GNU C library defines this for functions which it implements
6257 to always fail with ENOSYS. Some functions are actually named
6258 something starting with __ and the normal name is an alias. */
6259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6262 char (*f) () = $ac_func;
6271 return f != $ac_func;
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>conftest.er1
6280 grep -v '^ *+' conftest.er1 >conftest.err
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest$ac_exeext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 eval "$as_ac_var=yes"
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 eval "$as_ac_var=no"
6305 rm -f conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6310 if test `eval echo '${'$as_ac_var'}'` = yes; then
6311 cat >>confdefs.h <<_ACEOF
6312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6318 echo "$as_me:$LINENO: checking for working mmap" >&5
6319 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6320 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 if test "$cross_compiling" = yes; then
6324 ac_cv_func_mmap_fixed_mapped=no
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 $ac_includes_default
6333 /* malloc might have been renamed as rpl_malloc. */
6336 /* Thanks to Mike Haertel and Jim Avera for this test.
6337 Here is a matrix of mmap possibilities:
6338 mmap private not fixed
6339 mmap private fixed at somewhere currently unmapped
6340 mmap private fixed at somewhere already mapped
6341 mmap shared not fixed
6342 mmap shared fixed at somewhere currently unmapped
6343 mmap shared fixed at somewhere already mapped
6344 For private mappings, we should verify that changes cannot be read()
6345 back from the file, nor mmap's back from the file at a different
6346 address. (There have been systems where private was not correctly
6347 implemented like the infamous i386 svr4.0, and systems where the
6348 VM page cache was not coherent with the file system buffer cache
6349 like early versions of FreeBSD and possibly contemporary NetBSD.)
6350 For shared mappings, we should conversely verify that changes get
6351 propagated back to all the places they're supposed to be.
6353 Grep wants private fixed already mapped.
6354 The main things grep needs to know about mmap are:
6355 * does it exist and is it safe to write into the mmap'd area
6356 * how to use it (BSD variants) */
6359 #include <sys/mman.h>
6361 #if !STDC_HEADERS && !HAVE_STDLIB_H
6365 /* This mess was copied from the GNU getpagesize.h. */
6366 #if !HAVE_GETPAGESIZE
6367 /* Assume that all systems that can run configure have sys/param.h. */
6368 # if !HAVE_SYS_PARAM_H
6369 # define HAVE_SYS_PARAM_H 1
6372 # ifdef _SC_PAGESIZE
6373 # define getpagesize() sysconf(_SC_PAGESIZE)
6374 # else /* no _SC_PAGESIZE */
6375 # if HAVE_SYS_PARAM_H
6376 # include <sys/param.h>
6377 # ifdef EXEC_PAGESIZE
6378 # define getpagesize() EXEC_PAGESIZE
6379 # else /* no EXEC_PAGESIZE */
6381 # define getpagesize() NBPG * CLSIZE
6384 # endif /* no CLSIZE */
6385 # else /* no NBPG */
6387 # define getpagesize() NBPC
6388 # else /* no NBPC */
6390 # define getpagesize() PAGESIZE
6391 # endif /* PAGESIZE */
6392 # endif /* no NBPC */
6393 # endif /* no NBPG */
6394 # endif /* no EXEC_PAGESIZE */
6395 # else /* no HAVE_SYS_PARAM_H */
6396 # define getpagesize() 8192 /* punt totally */
6397 # endif /* no HAVE_SYS_PARAM_H */
6398 # endif /* no _SC_PAGESIZE */
6400 #endif /* no HAVE_GETPAGESIZE */
6405 char *data, *data2, *data3;
6409 pagesize = getpagesize ();
6411 /* First, make a file with some known garbage in it. */
6412 data = (char *) malloc (pagesize);
6415 for (i = 0; i < pagesize; ++i)
6416 *(data + i) = rand ();
6418 fd = creat ("conftest.mmap", 0600);
6421 if (write (fd, data, pagesize) != pagesize)
6425 /* Next, try to mmap the file at a fixed address which already has
6426 something else allocated at it. If we can, also make sure that
6427 we see the same garbage. */
6428 fd = open ("conftest.mmap", O_RDWR);
6431 data2 = (char *) malloc (2 * pagesize);
6434 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6435 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6436 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6438 for (i = 0; i < pagesize; ++i)
6439 if (*(data + i) != *(data2 + i))
6442 /* Finally, make sure that changes to the mapped area do not
6443 percolate back to the file as seen by read(). (This is a bug on
6444 some variants of i386 svr4.0.) */
6445 for (i = 0; i < pagesize; ++i)
6446 *(data2 + i) = *(data2 + i) + 1;
6447 data3 = (char *) malloc (pagesize);
6450 if (read (fd, data3, pagesize) != pagesize)
6452 for (i = 0; i < pagesize; ++i)
6453 if (*(data + i) != *(data3 + i))
6459 rm -f conftest$ac_exeext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_cv_func_mmap_fixed_mapped=yes
6472 echo "$as_me: program exited with status $ac_status" >&5
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6477 ac_cv_func_mmap_fixed_mapped=no
6479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6483 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6484 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6486 cat >>confdefs.h <<\_ACEOF
6503 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6504 unistd.h values.h sys/param.h
6506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508 echo "$as_me:$LINENO: checking for $ac_header" >&5
6509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6516 # Is the header compilable?
6517 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6519 cat >conftest.$ac_ext <<_ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525 $ac_includes_default
6526 #include <$ac_header>
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6532 grep -v '^ *+' conftest.er1 >conftest.err
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_header_compiler=yes
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_header_compiler=no
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6559 echo "${ECHO_T}$ac_header_compiler" >&6
6561 # Is the header present?
6562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <$ac_header>
6572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6575 grep -v '^ *+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } >/dev/null; then
6580 if test -s conftest.err; then
6581 ac_cpp_err=$ac_c_preproc_warn_flag
6582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6589 if test -z "$ac_cpp_err"; then
6590 ac_header_preproc=yes
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6595 ac_header_preproc=no
6597 rm -f conftest.err conftest.$ac_ext
6598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599 echo "${ECHO_T}$ac_header_preproc" >&6
6601 # So? What about this header?
6602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6608 ac_header_preproc=yes
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6625 ## ------------------------------------------ ##
6626 ## Report this to the AC_PACKAGE_NAME lists. ##
6627 ## ------------------------------------------ ##
6630 sed "s/^/$as_me: WARNING: /" >&2
6633 echo "$as_me:$LINENO: checking for $ac_header" >&5
6634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 eval "$as_ac_Header=\$ac_header_preproc"
6640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6645 cat >>confdefs.h <<_ACEOF
6646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6663 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6664 __argz_count __argz_stringify __argz_next
6666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6667 echo "$as_me:$LINENO: checking for $ac_func" >&5
6668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6669 if eval "test \"\${$as_ac_var+set}\" = set"; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 cat >conftest.$ac_ext <<_ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6680 #define $ac_func innocuous_$ac_func
6682 /* System header to define __stub macros and hopefully few prototypes,
6683 which can conflict with char $ac_func (); below.
6684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6685 <limits.h> exists even on freestanding compilers. */
6688 # include <limits.h>
6690 # include <assert.h>
6695 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6703 /* The GNU C library defines this for functions which it implements
6704 to always fail with ENOSYS. Some functions are actually named
6705 something starting with __ and the normal name is an alias. */
6706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6709 char (*f) () = $ac_func;
6718 return f != $ac_func;
6723 rm -f conftest.$ac_objext conftest$ac_exeext
6724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6725 (eval $ac_link) 2>conftest.er1
6727 grep -v '^ *+' conftest.er1 >conftest.err
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try='test -z "$ac_c_werror_flag"
6733 || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest$ac_exeext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 eval "$as_ac_var=yes"
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6750 eval "$as_ac_var=no"
6752 rm -f conftest.err conftest.$ac_objext \
6753 conftest$ac_exeext conftest.$ac_ext
6755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6757 if test `eval echo '${'$as_ac_var'}'` = yes; then
6758 cat >>confdefs.h <<_ACEOF
6759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6766 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6768 for ac_func in stpcpy
6770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6771 echo "$as_me:$LINENO: checking for $ac_func" >&5
6772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6773 if eval "test \"\${$as_ac_var+set}\" = set"; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6784 #define $ac_func innocuous_$ac_func
6786 /* System header to define __stub macros and hopefully few prototypes,
6787 which can conflict with char $ac_func (); below.
6788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6789 <limits.h> exists even on freestanding compilers. */
6792 # include <limits.h>
6794 # include <assert.h>
6799 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6807 /* The GNU C library defines this for functions which it implements
6808 to always fail with ENOSYS. Some functions are actually named
6809 something starting with __ and the normal name is an alias. */
6810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6813 char (*f) () = $ac_func;
6822 return f != $ac_func;
6827 rm -f conftest.$ac_objext conftest$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>conftest.er1
6831 grep -v '^ *+' conftest.er1 >conftest.err
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest$ac_exeext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 eval "$as_ac_var=yes"
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 eval "$as_ac_var=no"
6856 rm -f conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6861 if test `eval echo '${'$as_ac_var'}'` = yes; then
6862 cat >>confdefs.h <<_ACEOF
6863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6870 if test "${ac_cv_func_stpcpy}" = "yes"; then
6872 cat >>confdefs.h <<\_ACEOF
6873 #define HAVE_STPCPY 1
6878 if test $ac_cv_header_locale_h = yes; then
6879 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6880 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6881 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>conftest.er1
6903 grep -v '^ *+' conftest.er1 >conftest.err
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest$ac_exeext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 am_cv_val_LC_MESSAGES=yes
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 am_cv_val_LC_MESSAGES=no
6928 rm -f conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
6931 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6932 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6933 if test $am_cv_val_LC_MESSAGES = yes; then
6935 cat >>confdefs.h <<\_ACEOF
6936 #define HAVE_LC_MESSAGES 1
6941 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6942 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6943 # Check whether --enable-nls or --disable-nls was given.
6944 if test "${enable_nls+set}" = set; then
6945 enableval="$enable_nls"
6950 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6951 echo "${ECHO_T}$USE_NLS" >&6
6954 USE_INCLUDED_LIBINTL=no
6956 if test "$USE_NLS" = "yes"; then
6958 cat >>confdefs.h <<\_ACEOF
6959 #define ENABLE_NLS 1
6962 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6963 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6965 # Check whether --with-included-gettext or --without-included-gettext was given.
6966 if test "${with_included_gettext+set}" = set; then
6967 withval="$with_included_gettext"
6968 nls_cv_force_use_gnu_gettext=$withval
6970 nls_cv_force_use_gnu_gettext=no
6972 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6973 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6975 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6976 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6978 nls_cv_header_libgt=
6981 if test "${ac_cv_header_libintl_h+set}" = set; then
6982 echo "$as_me:$LINENO: checking for libintl.h" >&5
6983 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6984 if test "${ac_cv_header_libintl_h+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6988 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6990 # Is the header compilable?
6991 echo "$as_me:$LINENO: checking libintl.h usability" >&5
6992 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 $ac_includes_default
7000 #include <libintl.h>
7002 rm -f conftest.$ac_objext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7004 (eval $ac_compile) 2>conftest.er1
7006 grep -v '^ *+' conftest.er1 >conftest.err
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -z "$ac_c_werror_flag"
7012 || test ! -s conftest.err'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; } &&
7018 { ac_try='test -s conftest.$ac_objext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 ac_header_compiler=yes
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_header_compiler=no
7031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7033 echo "${ECHO_T}$ac_header_compiler" >&6
7035 # Is the header present?
7036 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7037 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7038 cat >conftest.$ac_ext <<_ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 #include <libintl.h>
7046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7049 grep -v '^ *+' conftest.er1 >conftest.err
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } >/dev/null; then
7054 if test -s conftest.err; then
7055 ac_cpp_err=$ac_c_preproc_warn_flag
7056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7063 if test -z "$ac_cpp_err"; then
7064 ac_header_preproc=yes
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 ac_header_preproc=no
7071 rm -f conftest.err conftest.$ac_ext
7072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7073 echo "${ECHO_T}$ac_header_preproc" >&6
7075 # So? What about this header?
7076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7078 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7079 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7081 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7082 ac_header_preproc=yes
7085 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7086 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7087 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7088 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7089 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7090 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7091 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7092 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7093 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7094 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7095 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7096 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7099 ## ------------------------------------------ ##
7100 ## Report this to the AC_PACKAGE_NAME lists. ##
7101 ## ------------------------------------------ ##
7104 sed "s/^/$as_me: WARNING: /" >&2
7107 echo "$as_me:$LINENO: checking for libintl.h" >&5
7108 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7109 if test "${ac_cv_header_libintl_h+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 ac_cv_header_libintl_h=$ac_header_preproc
7114 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7115 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7118 if test $ac_cv_header_libintl_h = yes; then
7119 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7120 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7121 if test "${gt_cv_func_gettext_libc+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 cat >conftest.$ac_ext <<_ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 #include <libintl.h>
7134 return (int) gettext ("")
7139 rm -f conftest.$ac_objext conftest$ac_exeext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141 (eval $ac_link) 2>conftest.er1
7143 grep -v '^ *+' conftest.er1 >conftest.err
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 gt_cv_func_gettext_libc=yes
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 gt_cv_func_gettext_libc=no
7168 rm -f conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
7171 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7172 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7174 if test "$gt_cv_func_gettext_libc" != "yes"; then
7175 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7176 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7177 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_check_lib_save_LIBS=$LIBS
7182 cat >conftest.$ac_ext <<_ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7189 /* Override any gcc2 internal prototype to avoid an error. */
7193 /* We use char because int might match the return type of a gcc2
7194 builtin and then its argument prototype would still apply. */
7195 char bindtextdomain ();
7204 rm -f conftest.$ac_objext conftest$ac_exeext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7206 (eval $ac_link) 2>conftest.er1
7208 grep -v '^ *+' conftest.er1 >conftest.err
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest$ac_exeext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_cv_lib_intl_bindtextdomain=yes
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7231 ac_cv_lib_intl_bindtextdomain=no
7233 rm -f conftest.err conftest.$ac_objext \
7234 conftest$ac_exeext conftest.$ac_ext
7235 LIBS=$ac_check_lib_save_LIBS
7237 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7238 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7239 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7240 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7241 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7242 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 cat >conftest.$ac_ext <<_ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7255 return (int) gettext ("")
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>conftest.er1
7264 grep -v '^ *+' conftest.er1 >conftest.err
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 gt_cv_func_gettext_libintl=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 gt_cv_func_gettext_libintl=no
7289 rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7292 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7293 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7298 if test "$gt_cv_func_gettext_libc" = "yes" \
7299 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7301 cat >>confdefs.h <<\_ACEOF
7302 #define HAVE_GETTEXT 1
7305 # Extract the first word of "msgfmt", so it can be a program name with args.
7306 set dummy msgfmt; ac_word=$2
7307 echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_path_MSGFMT+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7318 for ac_dir in $PATH; do
7319 test -z "$ac_dir" && ac_dir=.
7320 if test -f $ac_dir/$ac_word; then
7321 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7322 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7328 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7332 MSGFMT="$ac_cv_path_MSGFMT"
7333 if test -n "$MSGFMT"; then
7334 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7335 echo "${ECHO_T}$MSGFMT" >&6
7337 echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6
7340 if test "$MSGFMT" != "no"; then
7342 for ac_func in dcgettext
7344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7345 echo "$as_me:$LINENO: checking for $ac_func" >&5
7346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7347 if eval "test \"\${$as_ac_var+set}\" = set"; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 cat >conftest.$ac_ext <<_ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7358 #define $ac_func innocuous_$ac_func
7360 /* System header to define __stub macros and hopefully few prototypes,
7361 which can conflict with char $ac_func (); below.
7362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7363 <limits.h> exists even on freestanding compilers. */
7366 # include <limits.h>
7368 # include <assert.h>
7373 /* Override any gcc2 internal prototype to avoid an error. */
7378 /* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7381 /* The GNU C library defines this for functions which it implements
7382 to always fail with ENOSYS. Some functions are actually named
7383 something starting with __ and the normal name is an alias. */
7384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7387 char (*f) () = $ac_func;
7396 return f != $ac_func;
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>conftest.er1
7405 grep -v '^ *+' conftest.er1 >conftest.err
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -z "$ac_c_werror_flag"
7411 || test ! -s conftest.err'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; } &&
7417 { ac_try='test -s conftest$ac_exeext'
7418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; }; then
7423 eval "$as_ac_var=yes"
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7428 eval "$as_ac_var=no"
7430 rm -f conftest.err conftest.$ac_objext \
7431 conftest$ac_exeext conftest.$ac_ext
7433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7435 if test `eval echo '${'$as_ac_var'}'` = yes; then
7436 cat >>confdefs.h <<_ACEOF
7437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7443 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7444 set dummy gmsgfmt; ac_word=$2
7445 echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7447 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7473 GMSGFMT=$ac_cv_path_GMSGFMT
7475 if test -n "$GMSGFMT"; then
7476 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7477 echo "${ECHO_T}$GMSGFMT" >&6
7479 echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6
7483 # Extract the first word of "xgettext", so it can be a program name with args.
7484 set dummy xgettext; ac_word=$2
7485 echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7487 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7496 for ac_dir in $PATH; do
7497 test -z "$ac_dir" && ac_dir=.
7498 if test -f $ac_dir/$ac_word; then
7499 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7500 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7506 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7510 XGETTEXT="$ac_cv_path_XGETTEXT"
7511 if test -n "$XGETTEXT"; then
7512 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7513 echo "${ECHO_T}$XGETTEXT" >&6
7515 echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6
7519 cat >conftest.$ac_ext <<_ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7529 extern int _nl_msg_cat_cntr;
7530 return _nl_msg_cat_cntr
7535 rm -f conftest.$ac_objext conftest$ac_exeext
7536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7537 (eval $ac_link) 2>conftest.er1
7539 grep -v '^ *+' conftest.er1 >conftest.err
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } &&
7544 { ac_try='test -z "$ac_c_werror_flag"
7545 || test ! -s conftest.err'
7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; } &&
7551 { ac_try='test -s conftest$ac_exeext'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; }; then
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7566 rm -f conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7577 if test "$CATOBJEXT" = "NONE"; then
7578 nls_cv_use_gnu_gettext=yes
7582 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7583 INTLOBJS="\$(GETTOBJS)"
7584 # Extract the first word of "msgfmt", so it can be a program name with args.
7585 set dummy msgfmt; ac_word=$2
7586 echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7588 if test "${ac_cv_path_MSGFMT+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7597 for ac_dir in $PATH; do
7598 test -z "$ac_dir" && ac_dir=.
7599 if test -f $ac_dir/$ac_word; then
7600 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7601 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7607 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7611 MSGFMT="$ac_cv_path_MSGFMT"
7612 if test -n "$MSGFMT"; then
7613 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7614 echo "${ECHO_T}$MSGFMT" >&6
7616 echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6
7620 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7621 set dummy gmsgfmt; ac_word=$2
7622 echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7624 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7650 GMSGFMT=$ac_cv_path_GMSGFMT
7652 if test -n "$GMSGFMT"; then
7653 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7654 echo "${ECHO_T}$GMSGFMT" >&6
7656 echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7660 # Extract the first word of "xgettext", so it can be a program name with args.
7661 set dummy xgettext; ac_word=$2
7662 echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7664 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7673 for ac_dir in $PATH; do
7674 test -z "$ac_dir" && ac_dir=.
7675 if test -f $ac_dir/$ac_word; then
7676 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7677 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7683 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7687 XGETTEXT="$ac_cv_path_XGETTEXT"
7688 if test -n "$XGETTEXT"; then
7689 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7690 echo "${ECHO_T}$XGETTEXT" >&6
7692 echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6
7697 USE_INCLUDED_LIBINTL=yes
7701 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7703 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7704 nls_cv_header_intl=libintl.h
7705 nls_cv_header_libgt=libgettext.h
7708 if test "$XGETTEXT" != ":"; then
7709 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7712 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7713 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7718 # We need to process the po/ directory.
7722 nls_cv_header_intl=libintl.h
7723 nls_cv_header_libgt=libgettext.h
7726 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7727 # because some of the sources are only built for this goal.
7728 if test "$PACKAGE" = gettext; then
7730 USE_INCLUDED_LIBINTL=yes
7733 for lang in $ALL_LINGUAS; do
7734 GMOFILES="$GMOFILES $lang.gmo"
7735 POFILES="$POFILES $lang.po"
7751 if test "x$CATOBJEXT" != "x"; then
7752 if test "x$ALL_LINGUAS" = "x"; then
7755 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7756 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7758 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7759 case "$ALL_LINGUAS" in
7760 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7763 LINGUAS=$NEW_LINGUAS
7764 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7765 echo "${ECHO_T}$LINGUAS" >&6
7768 if test -n "$LINGUAS"; then
7769 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7773 if test $ac_cv_header_locale_h = yes; then
7774 INCLUDE_LOCALE_H="#include <locale.h>"
7777 /* The system does not provide the header <locale.h>. Take care yourself. */"
7781 if test -f $srcdir/po2tbl.sed.in; then
7782 if test "$CATOBJEXT" = ".cat"; then
7783 if test "${ac_cv_header_linux_version_h+set}" = set; then
7784 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7785 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7786 if test "${ac_cv_header_linux_version_h+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7790 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7792 # Is the header compilable?
7793 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7794 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7801 $ac_includes_default
7802 #include <linux/version.h>
7804 rm -f conftest.$ac_objext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806 (eval $ac_compile) 2>conftest.er1
7808 grep -v '^ *+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest.$ac_objext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_header_compiler=yes
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ac_header_compiler=no
7833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7835 echo "${ECHO_T}$ac_header_compiler" >&6
7837 # Is the header present?
7838 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7839 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 #include <linux/version.h>
7848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7851 grep -v '^ *+' conftest.er1 >conftest.err
7853 cat conftest.err >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } >/dev/null; then
7856 if test -s conftest.err; then
7857 ac_cpp_err=$ac_c_preproc_warn_flag
7858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7865 if test -z "$ac_cpp_err"; then
7866 ac_header_preproc=yes
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7871 ac_header_preproc=no
7873 rm -f conftest.err conftest.$ac_ext
7874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7875 echo "${ECHO_T}$ac_header_preproc" >&6
7877 # So? What about this header?
7878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7880 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7881 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7882 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7883 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7884 ac_header_preproc=yes
7887 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7888 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7890 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7891 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7892 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7893 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7894 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7895 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7896 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7897 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7898 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7901 ## ------------------------------------------ ##
7902 ## Report this to the AC_PACKAGE_NAME lists. ##
7903 ## ------------------------------------------ ##
7906 sed "s/^/$as_me: WARNING: /" >&2
7909 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7910 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7911 if test "${ac_cv_header_linux_version_h+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 ac_cv_header_linux_version_h=$ac_header_preproc
7916 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7917 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7920 if test $ac_cv_header_linux_version_h = yes; then
7928 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7930 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7931 $srcdir/po2tbl.sed.in > po2tbl.sed
7934 if test "$PACKAGE" = "gettext"; then
7944 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
7950 if test -f $srcdir/po/POTFILES.in; then
7951 test -d po || mkdir po
7952 if test "x$srcdir" != "x."; then
7953 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7954 posrcprefix="$srcdir/"
7956 posrcprefix="../$srcdir/"
7962 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7963 < $srcdir/po/POTFILES.in > po/POTFILES
7967 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7968 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
7969 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7970 if test "${enable_maintainer_mode+set}" = set; then
7971 enableval="$enable_maintainer_mode"
7972 USE_MAINTAINER_MODE=$enableval
7974 USE_MAINTAINER_MODE=no
7976 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7977 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
7980 if test $USE_MAINTAINER_MODE = yes; then
7981 MAINTAINER_MODE_TRUE=
7982 MAINTAINER_MODE_FALSE='#'
7984 MAINTAINER_MODE_TRUE='#'
7985 MAINTAINER_MODE_FALSE=
7987 MAINT=$MAINTAINER_MODE_TRUE
7991 if test -n "$EXEEXT"; then
7993 cat >>confdefs.h <<\_ACEOF
7994 #define HAVE_EXECUTABLE_SUFFIX 1
7999 cat >>confdefs.h <<_ACEOF
8000 #define EXECUTABLE_SUFFIX "${EXEEXT}"
8004 # host-specific stuff:
8008 . ${srcdir}/../bfd/configure.host
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8016 echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018 if test "${ac_cv_prog_RANLIB+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 if test -n "$RANLIB"; then
8022 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 RANLIB=$ac_cv_prog_RANLIB
8041 if test -n "$RANLIB"; then
8042 echo "$as_me:$LINENO: result: $RANLIB" >&5
8043 echo "${ECHO_T}$RANLIB" >&6
8045 echo "$as_me:$LINENO: result: no" >&5
8046 echo "${ECHO_T}no" >&6
8050 if test -z "$ac_cv_prog_RANLIB"; then
8051 ac_ct_RANLIB=$RANLIB
8052 # Extract the first word of "ranlib", so it can be a program name with args.
8053 set dummy ranlib; ac_word=$2
8054 echo "$as_me:$LINENO: checking for $ac_word" >&5
8055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 if test -n "$ac_ct_RANLIB"; then
8060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069 ac_cv_prog_ac_ct_RANLIB="ranlib"
8070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8080 if test -n "$ac_ct_RANLIB"; then
8081 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8082 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8084 echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6
8088 RANLIB=$ac_ct_RANLIB
8090 RANLIB="$ac_cv_prog_RANLIB"
8093 # Find a good install program. We prefer a C program (faster),
8094 # so one script is as good as another. But avoid the broken or
8095 # incompatible versions:
8096 # SysV /etc/install, /usr/sbin/install
8097 # SunOS /usr/etc/install
8098 # IRIX /sbin/install
8100 # AmigaOS /C/install, which installs bootblocks on floppy discs
8101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8104 # OS/2's system install, which has a completely different semantic
8105 # ./install, which can be erroneously created by make from ./install.sh.
8106 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8107 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8108 if test -z "$INSTALL"; then
8109 if test "${ac_cv_path_install+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 test -z "$as_dir" && as_dir=.
8117 # Account for people who put trailing slashes in PATH elements.
8119 ./ | .// | /cC/* | \
8120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8121 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8124 # OSF1 and SCO ODT 3.0 have their own names for install.
8125 # Don't use installbsd from OSF since it installs stuff as root
8127 for ac_prog in ginstall scoinst install; do
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8130 if test $ac_prog = install &&
8131 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8132 # AIX install. It has an incompatible calling convention.
8134 elif test $ac_prog = install &&
8135 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8136 # program-specific install script used by HP pwplus--don't use.
8139 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8151 if test "${ac_cv_path_install+set}" = set; then
8152 INSTALL=$ac_cv_path_install
8154 # As a last resort, use the slow shell script. We don't cache a
8155 # path for INSTALL within a source directory, because that will
8156 # break other packages using the cache if that directory is
8157 # removed, or if the path is relative.
8158 INSTALL=$ac_install_sh
8161 echo "$as_me:$LINENO: result: $INSTALL" >&5
8162 echo "${ECHO_T}$INSTALL" >&6
8164 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8165 # It thinks the first close brace ends the variable substitution.
8166 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8168 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8170 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8173 # Put a plausible default for CC_FOR_BUILD in Makefile.
8174 if test -z "$CC_FOR_BUILD"; then
8175 if test "x$cross_compiling" = "xno"; then
8176 CC_FOR_BUILD='$(CC)'
8182 # Also set EXEEXT_FOR_BUILD.
8183 if test "x$cross_compiling" = "xno"; then
8184 EXEEXT_FOR_BUILD='$(EXEEXT)'
8186 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8187 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8188 if test "${bfd_cv_build_exeext+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 echo 'int main () { return 0; }' > conftest.c
8193 bfd_cv_build_exeext=
8194 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8195 for file in conftest.*; do
8197 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8198 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8202 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8204 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8205 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8207 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8211 DEMANGLER_NAME=c++filt
8213 *-*-go32* | *-*-msdos*)
8214 DEMANGLER_NAME=cxxfilt
8224 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
8226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8228 echo "$as_me:$LINENO: checking for $ac_header" >&5
8229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8236 # Is the header compilable?
8237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8245 $ac_includes_default
8246 #include <$ac_header>
8248 rm -f conftest.$ac_objext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250 (eval $ac_compile) 2>conftest.er1
8252 grep -v '^ *+' conftest.er1 >conftest.err
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -z "$ac_c_werror_flag"
8258 || test ! -s conftest.err'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; } &&
8264 { ac_try='test -s conftest.$ac_objext'
8265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8270 ac_header_compiler=yes
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8275 ac_header_compiler=no
8277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8279 echo "${ECHO_T}$ac_header_compiler" >&6
8281 # Is the header present?
8282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8284 cat >conftest.$ac_ext <<_ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8290 #include <$ac_header>
8292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8295 grep -v '^ *+' conftest.er1 >conftest.err
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } >/dev/null; then
8300 if test -s conftest.err; then
8301 ac_cpp_err=$ac_c_preproc_warn_flag
8302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8309 if test -z "$ac_cpp_err"; then
8310 ac_header_preproc=yes
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 ac_header_preproc=no
8317 rm -f conftest.err conftest.$ac_ext
8318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8319 echo "${ECHO_T}$ac_header_preproc" >&6
8321 # So? What about this header?
8322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8328 ac_header_preproc=yes
8331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8345 ## ------------------------------------------ ##
8346 ## Report this to the AC_PACKAGE_NAME lists. ##
8347 ## ------------------------------------------ ##
8350 sed "s/^/$as_me: WARNING: /" >&2
8353 echo "$as_me:$LINENO: checking for $ac_header" >&5
8354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 eval "$as_ac_Header=\$ac_header_preproc"
8360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8365 cat >>confdefs.h <<_ACEOF
8366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8373 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8374 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8375 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 #include <sys/types.h>
8385 #include <sys/wait.h>
8387 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8390 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8398 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8403 rm -f conftest.$ac_objext
8404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8405 (eval $ac_compile) 2>conftest.er1
8407 grep -v '^ *+' conftest.er1 >conftest.err
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -z "$ac_c_werror_flag"
8413 || test ! -s conftest.err'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; } &&
8419 { ac_try='test -s conftest.$ac_objext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_header_sys_wait_h=yes
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_cv_header_sys_wait_h=no
8432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8434 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8435 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8436 if test $ac_cv_header_sys_wait_h = yes; then
8438 cat >>confdefs.h <<\_ACEOF
8439 #define HAVE_SYS_WAIT_H 1
8444 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8445 # for constant arguments. Useless!
8446 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8447 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8448 if test "${ac_cv_working_alloca_h+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8461 char *p = (char *) alloca (2 * sizeof (int));
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8468 (eval $ac_link) 2>conftest.er1
8470 grep -v '^ *+' conftest.er1 >conftest.err
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag"
8476 || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest$ac_exeext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_working_alloca_h=yes
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_cv_working_alloca_h=no
8495 rm -f conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8498 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8499 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8500 if test $ac_cv_working_alloca_h = yes; then
8502 cat >>confdefs.h <<\_ACEOF
8503 #define HAVE_ALLOCA_H 1
8508 echo "$as_me:$LINENO: checking for alloca" >&5
8509 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8510 if test "${ac_cv_func_alloca_works+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 cat >conftest.$ac_ext <<_ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8520 # define alloca __builtin_alloca
8523 # include <malloc.h>
8524 # define alloca _alloca
8527 # include <alloca.h>
8532 # ifndef alloca /* predefined by HP cc +Olibcalls */
8543 char *p = (char *) alloca (1);
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>conftest.er1
8552 grep -v '^ *+' conftest.er1 >conftest.err
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 ac_cv_func_alloca_works=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 ac_cv_func_alloca_works=no
8577 rm -f conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8580 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8581 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8583 if test $ac_cv_func_alloca_works = yes; then
8585 cat >>confdefs.h <<\_ACEOF
8586 #define HAVE_ALLOCA 1
8590 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8591 # that cause trouble. Some versions do not even contain alloca or
8592 # contain a buggy version. If you still want to use their alloca,
8593 # use ar to extract alloca.o from them instead of compiling alloca.c.
8595 ALLOCA=alloca.$ac_objext
8597 cat >>confdefs.h <<\_ACEOF
8602 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8603 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8604 if test "${ac_cv_os_cray+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 cat >conftest.$ac_ext <<_ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 #if defined(CRAY) && ! defined(CRAY2)
8620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8621 $EGREP "webecray" >/dev/null 2>&1; then
8629 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8630 echo "${ECHO_T}$ac_cv_os_cray" >&6
8631 if test $ac_cv_os_cray = yes; then
8632 for ac_func in _getb67 GETB67 getb67; do
8633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8634 echo "$as_me:$LINENO: checking for $ac_func" >&5
8635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8636 if eval "test \"\${$as_ac_var+set}\" = set"; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 cat >conftest.$ac_ext <<_ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8647 #define $ac_func innocuous_$ac_func
8649 /* System header to define __stub macros and hopefully few prototypes,
8650 which can conflict with char $ac_func (); below.
8651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652 <limits.h> exists even on freestanding compilers. */
8655 # include <limits.h>
8657 # include <assert.h>
8662 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8670 /* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8676 char (*f) () = $ac_func;
8685 return f != $ac_func;
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>conftest.er1
8694 grep -v '^ *+' conftest.er1 >conftest.err
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -z "$ac_c_werror_flag"
8700 || test ! -s conftest.err'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 eval "$as_ac_var=yes"
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 eval "$as_ac_var=no"
8719 rm -f conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8724 if test `eval echo '${'$as_ac_var'}'` = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727 #define CRAY_STACKSEG_END $ac_func
8736 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8737 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8738 if test "${ac_cv_c_stack_direction+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 if test "$cross_compiling" = yes; then
8742 ac_cv_c_stack_direction=0
8744 cat >conftest.$ac_ext <<_ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8751 find_stack_direction ()
8753 static char *addr = 0;
8758 return find_stack_direction ();
8761 return (&dummy > addr) ? 1 : -1;
8767 exit (find_stack_direction () < 0);
8770 rm -f conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_cv_c_stack_direction=1
8783 echo "$as_me: program exited with status $ac_status" >&5
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8788 ac_cv_c_stack_direction=-1
8790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8793 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8794 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8796 cat >>confdefs.h <<_ACEOF
8797 #define STACK_DIRECTION $ac_cv_c_stack_direction
8808 for ac_func in sbrk utimes setmode getc_unlocked strcoll
8810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8811 echo "$as_me:$LINENO: checking for $ac_func" >&5
8812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8813 if eval "test \"\${$as_ac_var+set}\" = set"; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 cat >conftest.$ac_ext <<_ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8824 #define $ac_func innocuous_$ac_func
8826 /* System header to define __stub macros and hopefully few prototypes,
8827 which can conflict with char $ac_func (); below.
8828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8829 <limits.h> exists even on freestanding compilers. */
8832 # include <limits.h>
8834 # include <assert.h>
8839 /* Override any gcc2 internal prototype to avoid an error. */
8844 /* We use char because int might match the return type of a gcc2
8845 builtin and then its argument prototype would still apply. */
8847 /* The GNU C library defines this for functions which it implements
8848 to always fail with ENOSYS. Some functions are actually named
8849 something starting with __ and the normal name is an alias. */
8850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8853 char (*f) () = $ac_func;
8862 return f != $ac_func;
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
8871 grep -v '^ *+' conftest.er1 >conftest.err
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 eval "$as_ac_var=yes"
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 eval "$as_ac_var=no"
8896 rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8901 if test `eval echo '${'$as_ac_var'}'` = yes; then
8902 cat >>confdefs.h <<_ACEOF
8903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8910 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
8911 # needs to be defined for it
8912 echo "$as_me:$LINENO: checking for fopen64" >&5
8913 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
8914 if test "${bu_cv_have_fopen64+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 cat >conftest.$ac_ext <<_ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8927 FILE *f = fopen64 ("/tmp/foo","r");
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934 (eval $ac_link) 2>conftest.er1
8936 grep -v '^ *+' conftest.er1 >conftest.err
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } &&
8941 { ac_try='test -z "$ac_c_werror_flag"
8942 || test ! -s conftest.err'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; } &&
8948 { ac_try='test -s conftest$ac_exeext'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; }; then
8954 bu_cv_have_fopen64=yes
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 saved_CPPFLAGS=$CPPFLAGS
8960 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8971 FILE *f = fopen64 ("/tmp/foo","r");
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978 (eval $ac_link) 2>conftest.er1
8980 grep -v '^ *+' conftest.er1 >conftest.err
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag"
8986 || test ! -s conftest.err'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 bu_cv_have_fopen64=no
9005 rm -f conftest.err conftest.$ac_objext \
9006 conftest$ac_exeext conftest.$ac_ext
9007 CPPFLAGS=$saved_CPPFLAGS
9009 rm -f conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9013 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
9014 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
9015 if test "$bu_cv_have_fopen64" != no; then
9017 cat >>confdefs.h <<\_ACEOF
9018 #define HAVE_FOPEN64 1
9021 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then
9023 cat >>confdefs.h <<\_ACEOF
9024 #define _LARGEFILE64_SOURCE 1
9030 # Some systems have frexp only in -lm, not in -lc.
9031 echo "$as_me:$LINENO: checking for library containing frexp" >&5
9032 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
9033 if test "${ac_cv_search_frexp+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 ac_func_search_save_LIBS=$LIBS
9037 ac_cv_search_frexp=no
9038 cat >conftest.$ac_ext <<_ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9045 /* Override any gcc2 internal prototype to avoid an error. */
9049 /* We use char because int might match the return type of a gcc2
9050 builtin and then its argument prototype would still apply. */
9060 rm -f conftest.$ac_objext conftest$ac_exeext
9061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062 (eval $ac_link) 2>conftest.er1
9064 grep -v '^ *+' conftest.er1 >conftest.err
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -z "$ac_c_werror_flag"
9070 || test ! -s conftest.err'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; } &&
9076 { ac_try='test -s conftest$ac_exeext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082 ac_cv_search_frexp="none required"
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9088 rm -f conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090 if test "$ac_cv_search_frexp" = no; then
9092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any gcc2 internal prototype to avoid an error. */
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_search_frexp="-l$ac_lib"
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9144 rm -f conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9148 LIBS=$ac_func_search_save_LIBS
9150 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
9151 echo "${ECHO_T}$ac_cv_search_frexp" >&6
9152 if test "$ac_cv_search_frexp" != no; then
9153 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
9158 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
9159 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
9160 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 cat >conftest.$ac_ext <<_ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9178 rm -f conftest.$ac_objext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180 (eval $ac_compile) 2>conftest.er1
9182 grep -v '^ *+' conftest.er1 >conftest.err
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag"
9188 || test ! -s conftest.err'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; } &&
9194 { ac_try='test -s conftest.$ac_objext'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 bu_cv_decl_time_t_time_h=yes
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9205 bu_cv_decl_time_t_time_h=no
9207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
9211 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
9212 if test $bu_cv_decl_time_t_time_h = yes; then
9214 cat >>confdefs.h <<\_ACEOF
9215 #define HAVE_TIME_T_IN_TIME_H 1
9220 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
9221 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
9222 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 #include <sys/types.h>
9240 rm -f conftest.$ac_objext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>conftest.er1
9244 grep -v '^ *+' conftest.er1 >conftest.err
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try='test -z "$ac_c_werror_flag"
9250 || test ! -s conftest.err'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 bu_cv_decl_time_t_types_h=yes
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 bu_cv_decl_time_t_types_h=no
9269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9272 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
9273 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
9274 if test $bu_cv_decl_time_t_types_h = yes; then
9276 cat >>confdefs.h <<\_ACEOF
9277 #define HAVE_TIME_T_IN_TYPES_H 1
9282 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
9284 echo "$as_me:$LINENO: checking for utime.h" >&5
9285 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9286 if test "${bu_cv_header_utime_h+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 cat >conftest.$ac_ext <<_ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9295 #include <sys/types.h>
9308 rm -f conftest.$ac_objext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9310 (eval $ac_compile) 2>conftest.er1
9312 grep -v '^ *+' conftest.er1 >conftest.err
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag"
9318 || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest.$ac_objext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 bu_cv_header_utime_h=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 bu_cv_header_utime_h=no
9337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9340 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
9341 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
9342 if test $bu_cv_header_utime_h = yes; then
9344 cat >>confdefs.h <<\_ACEOF
9345 #define HAVE_GOOD_UTIME_H 1
9350 echo "$as_me:$LINENO: checking whether fprintf must be declared" >&5
9351 echo $ECHO_N "checking whether fprintf must be declared... $ECHO_C" >&6
9352 if test "${bfd_cv_decl_needed_fprintf+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 cat >conftest.$ac_ext <<_ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9363 #ifdef HAVE_STRING_H
9366 #ifdef HAVE_STRINGS_H
9367 #include <strings.h>
9370 #ifdef HAVE_STDLIB_H
9373 #ifdef HAVE_UNISTD_H
9379 char *(*pfn) = (char *(*)) fprintf
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 bfd_cv_decl_needed_fprintf=no
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 bfd_cv_decl_needed_fprintf=yes
9413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9416 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_fprintf" >&5
9417 echo "${ECHO_T}$bfd_cv_decl_needed_fprintf" >&6
9418 if test $bfd_cv_decl_needed_fprintf = yes; then
9420 cat >>confdefs.h <<\_ACEOF
9421 #define NEED_DECLARATION_FPRINTF 1
9426 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9427 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9428 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 cat >conftest.$ac_ext <<_ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9439 #ifdef HAVE_STRING_H
9442 #ifdef HAVE_STRINGS_H
9443 #include <strings.h>
9446 #ifdef HAVE_STDLIB_H
9449 #ifdef HAVE_UNISTD_H
9455 char *(*pfn) = (char *(*)) strstr
9460 rm -f conftest.$ac_objext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462 (eval $ac_compile) 2>conftest.er1
9464 grep -v '^ *+' conftest.er1 >conftest.err
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -z "$ac_c_werror_flag"
9470 || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest.$ac_objext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 bfd_cv_decl_needed_strstr=no
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 bfd_cv_decl_needed_strstr=yes
9489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9492 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9493 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9494 if test $bfd_cv_decl_needed_strstr = yes; then
9496 cat >>confdefs.h <<\_ACEOF
9497 #define NEED_DECLARATION_STRSTR 1
9502 echo "$as_me:$LINENO: checking whether sbrk must be declared" >&5
9503 echo $ECHO_N "checking whether sbrk must be declared... $ECHO_C" >&6
9504 if test "${bfd_cv_decl_needed_sbrk+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 cat >conftest.$ac_ext <<_ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9515 #ifdef HAVE_STRING_H
9518 #ifdef HAVE_STRINGS_H
9519 #include <strings.h>
9522 #ifdef HAVE_STDLIB_H
9525 #ifdef HAVE_UNISTD_H
9531 char *(*pfn) = (char *(*)) sbrk
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>conftest.er1
9540 grep -v '^ *+' conftest.er1 >conftest.err
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 bfd_cv_decl_needed_sbrk=no
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 bfd_cv_decl_needed_sbrk=yes
9565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9568 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_sbrk" >&5
9569 echo "${ECHO_T}$bfd_cv_decl_needed_sbrk" >&6
9570 if test $bfd_cv_decl_needed_sbrk = yes; then
9572 cat >>confdefs.h <<\_ACEOF
9573 #define NEED_DECLARATION_SBRK 1
9578 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9579 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9580 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 cat >conftest.$ac_ext <<_ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9591 #ifdef HAVE_STRING_H
9594 #ifdef HAVE_STRINGS_H
9595 #include <strings.h>
9598 #ifdef HAVE_STDLIB_H
9601 #ifdef HAVE_UNISTD_H
9607 char *(*pfn) = (char *(*)) getenv
9612 rm -f conftest.$ac_objext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9614 (eval $ac_compile) 2>conftest.er1
9616 grep -v '^ *+' conftest.er1 >conftest.err
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try='test -s conftest.$ac_objext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 bfd_cv_decl_needed_getenv=no
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9639 bfd_cv_decl_needed_getenv=yes
9641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9644 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9645 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
9646 if test $bfd_cv_decl_needed_getenv = yes; then
9648 cat >>confdefs.h <<\_ACEOF
9649 #define NEED_DECLARATION_GETENV 1
9654 echo "$as_me:$LINENO: checking whether environ must be declared" >&5
9655 echo $ECHO_N "checking whether environ must be declared... $ECHO_C" >&6
9656 if test "${bfd_cv_decl_needed_environ+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 cat >conftest.$ac_ext <<_ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9667 #ifdef HAVE_STRING_H
9670 #ifdef HAVE_STRINGS_H
9671 #include <strings.h>
9674 #ifdef HAVE_STDLIB_H
9677 #ifdef HAVE_UNISTD_H
9683 char *(*pfn) = (char *(*)) environ
9688 rm -f conftest.$ac_objext
9689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9690 (eval $ac_compile) 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag"
9698 || test ! -s conftest.err'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; } &&
9704 { ac_try='test -s conftest.$ac_objext'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 bfd_cv_decl_needed_environ=no
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 bfd_cv_decl_needed_environ=yes
9717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_environ" >&5
9721 echo "${ECHO_T}$bfd_cv_decl_needed_environ" >&6
9722 if test $bfd_cv_decl_needed_environ = yes; then
9724 cat >>confdefs.h <<\_ACEOF
9725 #define NEED_DECLARATION_ENVIRON 1
9733 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9735 cat >>confdefs.h <<\_ACEOF
9736 #define USE_BINARY_FOPEN 1
9741 # target-specific stuff:
9743 # Canonicalize the secondary target names.
9744 if test -n "$enable_targets"; then
9745 for targ in `echo $enable_targets | sed 's/,/ /g'`
9747 result=`$ac_config_sub $targ 2>/dev/null`
9748 if test -n "$result"; then
9749 canon_targets="$canon_targets $result"
9751 # Allow targets that config.sub doesn't recognize, like "all".
9752 canon_targets="$canon_targets $targ"
9768 for targ in $target $canon_targets
9770 if test "x$targ" = "xall"; then
9772 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
9773 BUILD_SRCONV='$(SRCONV_PROG)'
9774 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
9777 i[3-7]86*-*-netware*)
9778 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
9779 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
9782 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
9783 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
9785 powerpc*-*-netware*)
9786 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
9787 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
9790 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
9791 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
9795 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
9799 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9800 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
9801 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9803 arm-*-pe* | arm-*-wince)
9804 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9805 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
9806 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9809 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9810 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
9811 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9813 arm*-* | xscale-* | strongarm-* | d10v-*)
9814 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
9816 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
9817 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9818 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
9819 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9820 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
9823 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
9824 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
9829 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
9831 powerpc*-*-pe* | powerpc*-*-cygwin*)
9832 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9833 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
9834 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9837 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9838 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
9839 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9842 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9843 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
9844 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9847 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9848 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
9849 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9852 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9853 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
9855 c4x-*-* | tic4x-*-*)
9856 OBJDUMP_DEFS="$OBJDUMP_DEFS -DSKIP_ZEROES=32"
9859 OBJDUMP_DEFS="$OBJDUMP_DEFS -DSKIP_ZEROES=16"
9865 if test "${with_windres+set}" = set; then
9866 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9880 cat >>confdefs.h <<_ACEOF
9881 #define TARGET "${target}"
9886 . $srcdir/../bfd/config.bfd
9887 if test "x$targ_underscore" = "xyes"; then
9893 cat >>confdefs.h <<_ACEOF
9894 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
9899 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9901 # Canonicalize the secondary target names.
9902 result=`$ac_config_sub $targ_alias 2>/dev/null`
9903 if test -n "$result"; then
9909 . ${srcdir}/configure.tgt
9911 EMULATION=$targ_emul
9912 EMULATION_VECTOR=$targ_emul_vector
9918 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
9919 ac_config_commands="$ac_config_commands default"
9920 cat >confcache <<\_ACEOF
9921 # This file is a shell script that caches the results of configure
9922 # tests run on this system so they can be shared between configure
9923 # scripts and configure runs, see configure's option --config-cache.
9924 # It is not useful on other systems. If it contains results you don't
9925 # want to keep, you may remove or edit it.
9927 # config.status only pays attention to the cache file if you give it
9928 # the --recheck option to rerun configure.
9930 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9931 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9936 # The following way of writing the cache mishandles newlines in values,
9937 # but we know of no workaround that is simple, portable, and efficient.
9938 # So, don't put newlines in cache variables' values.
9939 # Ultrix sh set writes to stderr and can't be redirected directly,
9940 # and sets the high bit in the cache file unless we assign to the vars.
9943 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9945 # `set' does not quote correctly, so add quotes (double-quote
9946 # substitution turns \\\\ into \\, and sed turns \\ into \).
9949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9952 # `set' quotes correctly as required by POSIX, so do not add quotes.
9954 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9963 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9965 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9966 if test -w $cache_file; then
9967 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9968 cat confcache >$cache_file
9970 echo "not updating unwritable cache $cache_file"
9975 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9976 # Let make expand exec_prefix.
9977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9979 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9980 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9981 # trailing colons and then remove the whole line if VPATH becomes empty
9982 # (actually we leave an empty line to preserve line numbers).
9983 if test "x$srcdir" = x.; then
9984 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9985 s/:*\$(srcdir):*/:/;
9986 s/:*\${srcdir}:*/:/;
9988 s/^\([^=]*=[ ]*\):*/\1/;
9994 DEFS=-DHAVE_CONFIG_H
9998 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9999 # 1. Remove the extension, and $U if already installed.
10000 ac_i=`echo "$ac_i" |
10001 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10003 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10004 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10006 LIBOBJS=$ac_libobjs
10008 LTLIBOBJS=$ac_ltlibobjs
10012 : ${CONFIG_STATUS=./config.status}
10013 ac_clean_files_save=$ac_clean_files
10014 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10015 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10016 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10017 cat >$CONFIG_STATUS <<_ACEOF
10019 # Generated by $as_me.
10020 # Run this file to recreate the current configuration.
10021 # Compiler output produced by configure, useful for debugging
10022 # configure, is in config.log if it exists.
10025 ac_cs_recheck=false
10027 SHELL=\${CONFIG_SHELL-$SHELL}
10030 cat >>$CONFIG_STATUS <<\_ACEOF
10031 ## --------------------- ##
10032 ## M4sh Initialization. ##
10033 ## --------------------- ##
10035 # Be Bourne compatible
10036 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10039 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10040 # is contrary to our usage. Disable this feature.
10041 alias -g '${1+"$@"}'='"$@"'
10042 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10045 DUALCASE=1; export DUALCASE # for MKS sh
10047 # Support unset when possible.
10048 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10055 # Work around bugs in pre-3.0 UWIN ksh.
10056 $as_unset ENV MAIL MAILPATH
10063 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10064 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10065 LC_TELEPHONE LC_TIME
10067 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10068 eval $as_var=C; export $as_var
10074 # Required to use basename.
10075 if expr a : '\(a\)' >/dev/null 2>&1; then
10081 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10082 as_basename=basename
10088 # Name of the executable.
10089 as_me=`$as_basename "$0" ||
10090 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10091 X"$0" : 'X\(//\)$' \| \
10092 X"$0" : 'X\(/\)$' \| \
10093 . : '\(.\)' 2>/dev/null ||
10095 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10096 /^X\/\(\/\/\)$/{ s//\1/; q; }
10097 /^X\/\(\/\).*/{ s//\1/; q; }
10101 # PATH needs CR, and LINENO needs CR and PATH.
10102 # Avoid depending upon Character Ranges.
10103 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10104 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10105 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10106 as_cr_digits='0123456789'
10107 as_cr_alnum=$as_cr_Letters$as_cr_digits
10109 # The user is always right.
10110 if test "${PATH_SEPARATOR+set}" != set; then
10111 echo "#! /bin/sh" >conf$$.sh
10112 echo "exit 0" >>conf$$.sh
10114 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10123 as_lineno_1=$LINENO
10124 as_lineno_2=$LINENO
10125 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10126 test "x$as_lineno_1" != "x$as_lineno_2" &&
10127 test "x$as_lineno_3" = "x$as_lineno_2" || {
10128 # Find who we are. Look in the path if we contain no path at all
10131 *[\\/]* ) as_myself=$0 ;;
10132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10136 test -z "$as_dir" && as_dir=.
10137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10142 # We did not find ourselves, most probably we were run as `sh COMMAND'
10143 # in which case we are not to be found in the path.
10144 if test "x$as_myself" = x; then
10147 if test ! -f "$as_myself"; then
10148 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10149 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10150 { (exit 1); exit 1; }; }
10152 case $CONFIG_SHELL in
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10158 test -z "$as_dir" && as_dir=.
10159 for as_base in sh bash ksh sh5; do
10162 if ("$as_dir/$as_base" -c '
10163 as_lineno_1=$LINENO
10164 as_lineno_2=$LINENO
10165 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10166 test "x$as_lineno_1" != "x$as_lineno_2" &&
10167 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10168 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10169 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10170 CONFIG_SHELL=$as_dir/$as_base
10171 export CONFIG_SHELL
10172 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10180 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10181 # uniformly replaced by the line number. The first 'sed' inserts a
10182 # line-number line before each line; the second 'sed' does the real
10183 # work. The second script uses 'N' to pair each line-number line
10184 # with the numbered line, and appends trailing '-' during
10185 # substitution so that $LINENO is not a special case at line end.
10186 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10187 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10188 sed '=' <$as_myself |
10193 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10196 s,^['$as_cr_digits']*\n,,
10197 ' >$as_me.lineno &&
10198 chmod +x $as_me.lineno ||
10199 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10200 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10201 { (exit 1); exit 1; }; }
10203 # Don't try to exec as it changes $[0], causing all sort of problems
10204 # (the dirname of $[0] is not the place where we might find the
10205 # original and so on. Autoconf is especially sensible to this).
10207 # Exit status is that of the last command.
10212 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10213 *c*,-n*) ECHO_N= ECHO_C='
10215 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10216 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10219 if expr a : '\(a\)' >/dev/null 2>&1; then
10225 rm -f conf$$ conf$$.exe conf$$.file
10227 if ln -s conf$$.file conf$$ 2>/dev/null; then
10228 # We could just check for DJGPP; but this test a) works b) is more generic
10229 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10230 if test -f conf$$.exe; then
10231 # Don't use ln at all; we don't have any links
10236 elif ln conf$$.file conf$$ 2>/dev/null; then
10241 rm -f conf$$ conf$$.exe conf$$.file
10243 if mkdir -p . 2>/dev/null; then
10246 test -d ./-p && rmdir ./-p
10250 as_executable_p="test -f"
10252 # Sed expression to map a string onto a valid CPP name.
10253 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10255 # Sed expression to map a string onto a valid variable name.
10256 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10260 # We need space, tab and new line, in precisely that order.
10270 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10271 # report actual input values of CONFIG_FILES etc. instead of their
10272 # values after options handling. Logging --version etc. is OK.
10276 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10277 ## Running $as_me. ##
10282 This file was extended by $as_me, which was
10283 generated by GNU Autoconf 2.59. Invocation command line was
10285 CONFIG_FILES = $CONFIG_FILES
10286 CONFIG_HEADERS = $CONFIG_HEADERS
10287 CONFIG_LINKS = $CONFIG_LINKS
10288 CONFIG_COMMANDS = $CONFIG_COMMANDS
10292 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10296 # Files that config.status was made for.
10297 if test -n "$ac_config_files"; then
10298 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10301 if test -n "$ac_config_headers"; then
10302 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10305 if test -n "$ac_config_links"; then
10306 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10309 if test -n "$ac_config_commands"; then
10310 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10313 cat >>$CONFIG_STATUS <<\_ACEOF
10316 \`$as_me' instantiates files from templates according to the
10317 current configuration.
10319 Usage: $0 [OPTIONS] [FILE]...
10321 -h, --help print this help, then exit
10322 -V, --version print version number, then exit
10323 -q, --quiet do not print progress messages
10324 -d, --debug don't remove temporary files
10325 --recheck update $as_me by reconfiguring in the same conditions
10326 --file=FILE[:TEMPLATE]
10327 instantiate the configuration file FILE
10328 --header=FILE[:TEMPLATE]
10329 instantiate the configuration header FILE
10331 Configuration files:
10334 Configuration headers:
10337 Configuration commands:
10340 Report bugs to <bug-autoconf@gnu.org>."
10343 cat >>$CONFIG_STATUS <<_ACEOF
10346 configured by $0, generated by GNU Autoconf 2.59,
10347 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10349 Copyright (C) 2003 Free Software Foundation, Inc.
10350 This config.status script is free software; the Free Software Foundation
10351 gives unlimited permission to copy, distribute and modify it."
10356 cat >>$CONFIG_STATUS <<\_ACEOF
10357 # If no file are specified by the user, then we need to provide default
10358 # value. By we need to know if files were specified by the user.
10364 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10365 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10373 *) # This is not an option, so the user has probably given explicit
10376 ac_need_defaults=false;;
10380 # Handling of the options.
10382 cat >>$CONFIG_STATUS <<\_ACEOF
10383 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10385 --version | --vers* | -V )
10386 echo "$ac_cs_version"; exit 0 ;;
10388 # Conflict between --help and --header
10389 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10390 Try \`$0 --help' for more information." >&5
10391 echo "$as_me: error: ambiguous option: $1
10392 Try \`$0 --help' for more information." >&2;}
10393 { (exit 1); exit 1; }; };;
10394 --help | --hel | -h )
10395 echo "$ac_cs_usage"; exit 0 ;;
10396 --debug | --d* | -d )
10398 --file | --fil | --fi | --f )
10400 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10401 ac_need_defaults=false;;
10402 --header | --heade | --head | --hea )
10404 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10405 ac_need_defaults=false;;
10406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10407 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10410 # This is an error.
10411 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10412 Try \`$0 --help' for more information." >&5
10413 echo "$as_me: error: unrecognized option: $1
10414 Try \`$0 --help' for more information." >&2;}
10415 { (exit 1); exit 1; }; } ;;
10417 *) ac_config_targets="$ac_config_targets $1" ;;
10423 ac_configure_extra_args=
10425 if $ac_cs_silent; then
10427 ac_configure_extra_args="$ac_configure_extra_args --silent"
10431 cat >>$CONFIG_STATUS <<_ACEOF
10432 if \$ac_cs_recheck; then
10433 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10434 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10439 cat >>$CONFIG_STATUS <<_ACEOF
10441 # INIT-COMMANDS section.
10450 cat >>$CONFIG_STATUS <<\_ACEOF
10451 for ac_config_target in $ac_config_targets
10453 case "$ac_config_target" in
10454 # Handling of arguments.
10455 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10456 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10457 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10458 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10459 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10460 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10461 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10462 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10463 { (exit 1); exit 1; }; };;
10467 # If the user did not use the arguments to specify the items to instantiate,
10468 # then the envvar interface is used. Set only those that are not.
10469 # We use the long form for the default assignment because of an extremely
10470 # bizarre bug on SunOS 4.1.3.
10471 if $ac_need_defaults; then
10472 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10473 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10477 # Have a temporary directory for convenience. Make it in the build tree
10478 # simply because there is no reason to put it here, and in addition,
10479 # creating and moving files from /tmp can sometimes cause problems.
10480 # Create a temporary directory, and hook for its removal unless debugging.
10483 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10484 trap '{ (exit 1); exit 1; }' 1 2 13 15
10487 # Create a (secure) tmp directory for tmp files.
10490 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10491 test -n "$tmp" && test -d "$tmp"
10494 tmp=./confstat$$-$RANDOM
10495 (umask 077 && mkdir $tmp)
10498 echo "$me: cannot create a temporary directory in ." >&2
10499 { (exit 1); exit 1; }
10504 cat >>$CONFIG_STATUS <<_ACEOF
10507 # CONFIG_FILES section.
10510 # No need to generate the scripts if there are no CONFIG_FILES.
10511 # This happens for instance when ./config.status config.h
10512 if test -n "\$CONFIG_FILES"; then
10513 # Protect against being on the right side of a sed subst in config.status.
10514 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10515 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10516 s,@SHELL@,$SHELL,;t t
10517 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10518 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10519 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10520 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10521 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10522 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10523 s,@exec_prefix@,$exec_prefix,;t t
10524 s,@prefix@,$prefix,;t t
10525 s,@program_transform_name@,$program_transform_name,;t t
10526 s,@bindir@,$bindir,;t t
10527 s,@sbindir@,$sbindir,;t t
10528 s,@libexecdir@,$libexecdir,;t t
10529 s,@datadir@,$datadir,;t t
10530 s,@sysconfdir@,$sysconfdir,;t t
10531 s,@sharedstatedir@,$sharedstatedir,;t t
10532 s,@localstatedir@,$localstatedir,;t t
10533 s,@libdir@,$libdir,;t t
10534 s,@includedir@,$includedir,;t t
10535 s,@oldincludedir@,$oldincludedir,;t t
10536 s,@infodir@,$infodir,;t t
10537 s,@mandir@,$mandir,;t t
10538 s,@build_alias@,$build_alias,;t t
10539 s,@host_alias@,$host_alias,;t t
10540 s,@target_alias@,$target_alias,;t t
10541 s,@DEFS@,$DEFS,;t t
10542 s,@ECHO_C@,$ECHO_C,;t t
10543 s,@ECHO_N@,$ECHO_N,;t t
10544 s,@ECHO_T@,$ECHO_T,;t t
10545 s,@LIBS@,$LIBS,;t t
10546 s,@build@,$build,;t t
10547 s,@build_cpu@,$build_cpu,;t t
10548 s,@build_vendor@,$build_vendor,;t t
10549 s,@build_os@,$build_os,;t t
10550 s,@host@,$host,;t t
10551 s,@host_cpu@,$host_cpu,;t t
10552 s,@host_vendor@,$host_vendor,;t t
10553 s,@host_os@,$host_os,;t t
10554 s,@target@,$target,;t t
10555 s,@target_cpu@,$target_cpu,;t t
10556 s,@target_vendor@,$target_vendor,;t t
10557 s,@target_os@,$target_os,;t t
10559 s,@CFLAGS@,$CFLAGS,;t t
10560 s,@LDFLAGS@,$LDFLAGS,;t t
10561 s,@CPPFLAGS@,$CPPFLAGS,;t t
10562 s,@ac_ct_CC@,$ac_ct_CC,;t t
10563 s,@EXEEXT@,$EXEEXT,;t t
10564 s,@OBJEXT@,$OBJEXT,;t t
10565 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10566 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10567 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10568 s,@PACKAGE@,$PACKAGE,;t t
10569 s,@VERSION@,$VERSION,;t t
10570 s,@ACLOCAL@,$ACLOCAL,;t t
10571 s,@AUTOCONF@,$AUTOCONF,;t t
10572 s,@AUTOMAKE@,$AUTOMAKE,;t t
10573 s,@AUTOHEADER@,$AUTOHEADER,;t t
10574 s,@MAKEINFO@,$MAKEINFO,;t t
10575 s,@SET_MAKE@,$SET_MAKE,;t t
10576 s,@LN_S@,$LN_S,;t t
10577 s,@RANLIB@,$RANLIB,;t t
10578 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10579 s,@STRIP@,$STRIP,;t t
10580 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10581 s,@LIBTOOL@,$LIBTOOL,;t t
10582 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10583 s,@YACC@,$YACC,;t t
10585 s,@LEXLIB@,$LEXLIB,;t t
10586 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10588 s,@EGREP@,$EGREP,;t t
10589 s,@ALLOCA@,$ALLOCA,;t t
10590 s,@USE_NLS@,$USE_NLS,;t t
10591 s,@MSGFMT@,$MSGFMT,;t t
10592 s,@GMSGFMT@,$GMSGFMT,;t t
10593 s,@XGETTEXT@,$XGETTEXT,;t t
10594 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10595 s,@CATALOGS@,$CATALOGS,;t t
10596 s,@CATOBJEXT@,$CATOBJEXT,;t t
10597 s,@DATADIRNAME@,$DATADIRNAME,;t t
10598 s,@GMOFILES@,$GMOFILES,;t t
10599 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10600 s,@INTLDEPS@,$INTLDEPS,;t t
10601 s,@INTLLIBS@,$INTLLIBS,;t t
10602 s,@INTLOBJS@,$INTLOBJS,;t t
10603 s,@POFILES@,$POFILES,;t t
10604 s,@POSUB@,$POSUB,;t t
10605 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10606 s,@GT_NO@,$GT_NO,;t t
10607 s,@GT_YES@,$GT_YES,;t t
10608 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10610 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10611 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10612 s,@MAINT@,$MAINT,;t t
10613 s,@HDEFINES@,$HDEFINES,;t t
10615 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10616 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
10617 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
10618 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
10619 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
10620 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
10621 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
10622 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
10623 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
10624 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
10625 s,@BUILD_MISC@,$BUILD_MISC,;t t
10626 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
10627 s,@EMULATION@,$EMULATION,;t t
10628 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
10629 s,@LIBOBJS@,$LIBOBJS,;t t
10630 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10635 cat >>$CONFIG_STATUS <<\_ACEOF
10636 # Split the substitutions into bite-sized pieces for seds with
10637 # small command number limits, like on Digital OSF/1 and HP-UX.
10638 ac_max_sed_lines=48
10639 ac_sed_frag=1 # Number of current file.
10640 ac_beg=1 # First line for current file.
10641 ac_end=$ac_max_sed_lines # Line after last line for current file.
10644 while $ac_more_lines; do
10645 if test $ac_beg -gt 1; then
10646 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10648 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10650 if test ! -s $tmp/subs.frag; then
10651 ac_more_lines=false
10653 # The purpose of the label and of the branching condition is to
10654 # speed up the sed processing (if there are no `@' at all, there
10655 # is no need to browse any of the substitutions).
10656 # These are the two extra sed commands mentioned above.
10658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10659 if test -z "$ac_sed_cmds"; then
10660 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10662 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10664 ac_sed_frag=`expr $ac_sed_frag + 1`
10666 ac_end=`expr $ac_end + $ac_max_sed_lines`
10669 if test -z "$ac_sed_cmds"; then
10672 fi # test -n "$CONFIG_FILES"
10675 cat >>$CONFIG_STATUS <<\_ACEOF
10676 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10677 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10679 - | *:- | *:-:* ) # input from stdin
10681 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10682 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10683 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10685 * ) ac_file_in=$ac_file.in ;;
10688 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10689 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10691 X"$ac_file" : 'X\(//\)[^/]' \| \
10692 X"$ac_file" : 'X\(//\)$' \| \
10693 X"$ac_file" : 'X\(/\)' \| \
10694 . : '\(.\)' 2>/dev/null ||
10696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10698 /^X\(\/\/\)$/{ s//\1/; q; }
10699 /^X\(\/\).*/{ s//\1/; q; }
10701 { if $as_mkdir_p; then
10706 while test ! -d "$as_dir"; do
10707 as_dirs="$as_dir $as_dirs"
10708 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10710 X"$as_dir" : 'X\(//\)[^/]' \| \
10711 X"$as_dir" : 'X\(//\)$' \| \
10712 X"$as_dir" : 'X\(/\)' \| \
10713 . : '\(.\)' 2>/dev/null ||
10715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10717 /^X\(\/\/\)$/{ s//\1/; q; }
10718 /^X\(\/\).*/{ s//\1/; q; }
10721 test ! -n "$as_dirs" || mkdir $as_dirs
10722 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10723 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10724 { (exit 1); exit 1; }; }; }
10728 if test "$ac_dir" != .; then
10729 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10730 # A "../" for each directory in $ac_dir_suffix.
10731 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10733 ac_dir_suffix= ac_top_builddir=
10737 .) # No --srcdir option. We are building in place.
10739 if test -z "$ac_top_builddir"; then
10742 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10744 [\\/]* | ?:[\\/]* ) # Absolute path.
10745 ac_srcdir=$srcdir$ac_dir_suffix;
10746 ac_top_srcdir=$srcdir ;;
10747 *) # Relative path.
10748 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10749 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10752 # Do not use `cd foo && pwd` to compute absolute paths, because
10753 # the directories may not exist.
10755 .) ac_abs_builddir="$ac_dir";;
10758 .) ac_abs_builddir=`pwd`;;
10759 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10760 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10763 case $ac_abs_builddir in
10764 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10766 case ${ac_top_builddir}. in
10767 .) ac_abs_top_builddir=$ac_abs_builddir;;
10768 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10769 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10772 case $ac_abs_builddir in
10773 .) ac_abs_srcdir=$ac_srcdir;;
10776 .) ac_abs_srcdir=$ac_abs_builddir;;
10777 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10778 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10781 case $ac_abs_builddir in
10782 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10784 case $ac_top_srcdir in
10785 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10786 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10787 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10793 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10794 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10797 if test x"$ac_file" != x-; then
10798 { echo "$as_me:$LINENO: creating $ac_file" >&5
10799 echo "$as_me: creating $ac_file" >&6;}
10802 # Let's still pretend it is `configure' which instantiates (i.e., don't
10803 # use $as_me), people would be surprised to read:
10804 # /* config.h. Generated by config.status. */
10805 if test x"$ac_file" = x-; then
10808 configure_input="$ac_file. "
10810 configure_input=$configure_input"Generated from `echo $ac_file_in |
10811 sed 's,.*/,,'` by configure."
10813 # First look for the input files in the build tree, otherwise in the
10815 ac_file_inputs=`IFS=:
10816 for f in $ac_file_in; do
10818 -) echo $tmp/stdin ;;
10820 # Absolute (can't be DOS-style, as IFS=:)
10821 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10822 echo "$as_me: error: cannot find input file: $f" >&2;}
10823 { (exit 1); exit 1; }; }
10826 if test -f "$f"; then
10829 elif test -f "$srcdir/$f"; then
10834 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10835 echo "$as_me: error: cannot find input file: $f" >&2;}
10836 { (exit 1); exit 1; }; }
10839 done` || { (exit 1); exit 1; }
10841 cat >>$CONFIG_STATUS <<_ACEOF
10845 cat >>$CONFIG_STATUS <<\_ACEOF
10847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10848 s,@configure_input@,$configure_input,;t t
10849 s,@srcdir@,$ac_srcdir,;t t
10850 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10851 s,@top_srcdir@,$ac_top_srcdir,;t t
10852 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10853 s,@builddir@,$ac_builddir,;t t
10854 s,@abs_builddir@,$ac_abs_builddir,;t t
10855 s,@top_builddir@,$ac_top_builddir,;t t
10856 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10857 s,@INSTALL@,$ac_INSTALL,;t t
10858 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10860 if test x"$ac_file" != x-; then
10861 mv $tmp/out $ac_file
10869 cat >>$CONFIG_STATUS <<\_ACEOF
10872 # CONFIG_HEADER section.
10875 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10876 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10878 # ac_d sets the value in "#define NAME VALUE" lines.
10879 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10880 ac_dB='[ ].*$,\1#\2'
10883 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10884 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10885 ac_uB='$,\1#\2define\3'
10889 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10890 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10892 - | *:- | *:-:* ) # input from stdin
10894 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10895 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10896 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10898 * ) ac_file_in=$ac_file.in ;;
10901 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10902 echo "$as_me: creating $ac_file" >&6;}
10904 # First look for the input files in the build tree, otherwise in the
10906 ac_file_inputs=`IFS=:
10907 for f in $ac_file_in; do
10909 -) echo $tmp/stdin ;;
10911 # Absolute (can't be DOS-style, as IFS=:)
10912 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10913 echo "$as_me: error: cannot find input file: $f" >&2;}
10914 { (exit 1); exit 1; }; }
10915 # Do quote $f, to prevent DOS paths from being IFS'd.
10918 if test -f "$f"; then
10921 elif test -f "$srcdir/$f"; then
10926 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10927 echo "$as_me: error: cannot find input file: $f" >&2;}
10928 { (exit 1); exit 1; }; }
10931 done` || { (exit 1); exit 1; }
10932 # Remove the trailing spaces.
10933 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10937 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10938 # `conftest.undefs', that substitutes the proper values into
10939 # config.h.in to produce config.h. The first handles `#define'
10940 # templates, and the second `#undef' templates.
10941 # And first: Protect against being on the right side of a sed subst in
10942 # config.status. Protect against being in an unquoted here document
10943 # in config.status.
10944 rm -f conftest.defines conftest.undefs
10945 # Using a here document instead of a string reduces the quoting nightmare.
10946 # Putting comments in sed scripts is not portable.
10948 # `end' is used to avoid that the second main sed command (meant for
10949 # 0-ary CPP macros) applies to n-ary macro definitions.
10950 # See the Autoconf documentation for `clear'.
10951 cat >confdef2sed.sed <<\_ACEOF
10956 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10958 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10961 # If some macros were called several times there might be several times
10962 # the same #defines, which is useless. Nevertheless, we may not want to
10963 # sort them, since we want the *last* AC-DEFINE to be honored.
10964 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10965 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10966 rm -f confdef2sed.sed
10968 # This sed command replaces #undef with comments. This is necessary, for
10969 # example, in the case of _POSIX_SOURCE, which is predefined and required
10970 # on some systems where configure will not decide to define it.
10971 cat >>conftest.undefs <<\_ACEOF
10972 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10975 # Break up conftest.defines because some shells have a limit on the size
10976 # of here documents, and old seds have small limits too (100 cmds).
10977 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10978 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10979 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10980 echo ' :' >>$CONFIG_STATUS
10981 rm -f conftest.tail
10982 while grep . conftest.defines >/dev/null
10984 # Write a limited-size here document to $tmp/defines.sed.
10985 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10986 # Speed up: don't consider the non `#define' lines.
10987 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10988 # Work around the forget-to-reset-the-flag bug.
10989 echo 't clr' >>$CONFIG_STATUS
10990 echo ': clr' >>$CONFIG_STATUS
10991 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10993 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10995 mv $tmp/out $tmp/in
10997 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10998 rm -f conftest.defines
10999 mv conftest.tail conftest.defines
11001 rm -f conftest.defines
11002 echo ' fi # grep' >>$CONFIG_STATUS
11003 echo >>$CONFIG_STATUS
11005 # Break up conftest.undefs because some shells have a limit on the size
11006 # of here documents, and old seds have small limits too (100 cmds).
11007 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11008 rm -f conftest.tail
11009 while grep . conftest.undefs >/dev/null
11011 # Write a limited-size here document to $tmp/undefs.sed.
11012 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11013 # Speed up: don't consider the non `#undef'
11014 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11015 # Work around the forget-to-reset-the-flag bug.
11016 echo 't clr' >>$CONFIG_STATUS
11017 echo ': clr' >>$CONFIG_STATUS
11018 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11020 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11022 mv $tmp/out $tmp/in
11024 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11025 rm -f conftest.undefs
11026 mv conftest.tail conftest.undefs
11028 rm -f conftest.undefs
11030 cat >>$CONFIG_STATUS <<\_ACEOF
11031 # Let's still pretend it is `configure' which instantiates (i.e., don't
11032 # use $as_me), people would be surprised to read:
11033 # /* config.h. Generated by config.status. */
11034 if test x"$ac_file" = x-; then
11035 echo "/* Generated by configure. */" >$tmp/config.h
11037 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11039 cat $tmp/in >>$tmp/config.h
11041 if test x"$ac_file" != x-; then
11042 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11043 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11044 echo "$as_me: $ac_file is unchanged" >&6;}
11046 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11048 X"$ac_file" : 'X\(//\)[^/]' \| \
11049 X"$ac_file" : 'X\(//\)$' \| \
11050 X"$ac_file" : 'X\(/\)' \| \
11051 . : '\(.\)' 2>/dev/null ||
11053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11055 /^X\(\/\/\)$/{ s//\1/; q; }
11056 /^X\(\/\).*/{ s//\1/; q; }
11058 { if $as_mkdir_p; then
11063 while test ! -d "$as_dir"; do
11064 as_dirs="$as_dir $as_dirs"
11065 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11067 X"$as_dir" : 'X\(//\)[^/]' \| \
11068 X"$as_dir" : 'X\(//\)$' \| \
11069 X"$as_dir" : 'X\(/\)' \| \
11070 . : '\(.\)' 2>/dev/null ||
11072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11074 /^X\(\/\/\)$/{ s//\1/; q; }
11075 /^X\(\/\).*/{ s//\1/; q; }
11078 test ! -n "$as_dirs" || mkdir $as_dirs
11079 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11080 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11081 { (exit 1); exit 1; }; }; }
11084 mv $tmp/config.h $ac_file
11088 rm -f $tmp/config.h
11092 cat >>$CONFIG_STATUS <<\_ACEOF
11095 # CONFIG_COMMANDS section.
11097 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11098 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11099 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11100 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11101 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11102 X"$ac_dest" : 'X\(//\)[^/]' \| \
11103 X"$ac_dest" : 'X\(//\)$' \| \
11104 X"$ac_dest" : 'X\(/\)' \| \
11105 . : '\(.\)' 2>/dev/null ||
11107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11109 /^X\(\/\/\)$/{ s//\1/; q; }
11110 /^X\(\/\).*/{ s//\1/; q; }
11112 { if $as_mkdir_p; then
11117 while test ! -d "$as_dir"; do
11118 as_dirs="$as_dir $as_dirs"
11119 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11121 X"$as_dir" : 'X\(//\)[^/]' \| \
11122 X"$as_dir" : 'X\(//\)$' \| \
11123 X"$as_dir" : 'X\(/\)' \| \
11124 . : '\(.\)' 2>/dev/null ||
11126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11128 /^X\(\/\/\)$/{ s//\1/; q; }
11129 /^X\(\/\).*/{ s//\1/; q; }
11132 test ! -n "$as_dirs" || mkdir $as_dirs
11133 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11134 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11135 { (exit 1); exit 1; }; }; }
11139 if test "$ac_dir" != .; then
11140 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11141 # A "../" for each directory in $ac_dir_suffix.
11142 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11144 ac_dir_suffix= ac_top_builddir=
11148 .) # No --srcdir option. We are building in place.
11150 if test -z "$ac_top_builddir"; then
11153 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11155 [\\/]* | ?:[\\/]* ) # Absolute path.
11156 ac_srcdir=$srcdir$ac_dir_suffix;
11157 ac_top_srcdir=$srcdir ;;
11158 *) # Relative path.
11159 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11160 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11163 # Do not use `cd foo && pwd` to compute absolute paths, because
11164 # the directories may not exist.
11166 .) ac_abs_builddir="$ac_dir";;
11169 .) ac_abs_builddir=`pwd`;;
11170 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11171 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11174 case $ac_abs_builddir in
11175 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11177 case ${ac_top_builddir}. in
11178 .) ac_abs_top_builddir=$ac_abs_builddir;;
11179 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11180 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11183 case $ac_abs_builddir in
11184 .) ac_abs_srcdir=$ac_srcdir;;
11187 .) ac_abs_srcdir=$ac_abs_builddir;;
11188 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11189 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11192 case $ac_abs_builddir in
11193 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11195 case $ac_top_srcdir in
11196 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11197 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11198 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11203 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11204 echo "$as_me: executing $ac_dest commands" >&6;}
11206 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
11208 case "x$CONFIG_FILES" in
11209 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11216 cat >>$CONFIG_STATUS <<\_ACEOF
11218 { (exit 0); exit 0; }
11220 chmod +x $CONFIG_STATUS
11221 ac_clean_files=$ac_clean_files_save
11224 # configure is writing to config.log, and then calls config.status.
11225 # config.status does its own redirection, appending to config.log.
11226 # Unfortunately, on DOS this fails, as config.log is still kept open
11227 # by configure, so config.status won't be able to write to it; its
11228 # output is simply discarded. So we exec the FD to /dev/null,
11229 # effectively closing config.log, so it can be properly (re)opened and
11230 # appended to by config.status. When coming back to configure, we
11231 # need to make the FD available again.
11232 if test "$no_create" != yes; then
11234 ac_config_status_args=
11235 test "$silent" = yes &&
11236 ac_config_status_args="$ac_config_status_args --quiet"
11238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11241 # would make configure fail if this is the last instruction.
11242 $ac_cs_success || { (exit 1); exit 1; }