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="ldmain.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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB LIBOBJS LTLIBOBJS'
313 ac_subst_files='TDIRS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-lib-path=dir1:dir2... set default LIB_PATH
873 --with-sysroot=DIR Search for usr/lib et al within DIR.
874 --with-included-gettext use the GNU gettext library included here
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 ac_dir_suffix= ac_top_builddir=
907 .) # No --srcdir option. We are building in place.
909 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 # Do not use `cd foo && pwd` to compute absolute paths, because
923 # the directories may not exist.
925 .) ac_abs_builddir="$ac_dir";;
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_must_keep_next=false
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 -* ) ac_must_keep_next=true ;;
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1113 # The following way of writing the cache mishandles newlines in values,
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1136 for ac_var in $ac_subst_vars
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -n "$ac_subst_files"; then
1150 for ac_var in $ac_subst_files
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -s confdefs.h; then
1165 sed "/^$/d" confdefs.h | sort
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 # Predefined preprocessor variables.
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1248 # Check that the precious variables saved in the cache have kept the same
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1326 if test -f $ac_dir/install-sh; then
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 elif test -f $ac_dir/install.sh; then
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 elif test -f $ac_dir/shtool; then
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1343 { (exit 1); exit 1; }; }
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349 # Make sure we can run config.sub.
1350 $ac_config_sub sun4 >/dev/null 2>&1 ||
1351 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1352 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1353 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: checking build system type" >&5
1356 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1357 if test "${ac_cv_build+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 ac_cv_build_alias=$build_alias
1361 test -z "$ac_cv_build_alias" &&
1362 ac_cv_build_alias=`$ac_config_guess`
1363 test -z "$ac_cv_build_alias" &&
1364 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1365 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1366 { (exit 1); exit 1; }; }
1367 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1369 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1370 { (exit 1); exit 1; }; }
1373 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1374 echo "${ECHO_T}$ac_cv_build" >&6
1376 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381 echo "$as_me:$LINENO: checking host system type" >&5
1382 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1383 if test "${ac_cv_host+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 ac_cv_host_alias=$host_alias
1387 test -z "$ac_cv_host_alias" &&
1388 ac_cv_host_alias=$ac_cv_build_alias
1389 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1390 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1391 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1392 { (exit 1); exit 1; }; }
1395 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1396 echo "${ECHO_T}$ac_cv_host" >&6
1398 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1399 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1400 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403 echo "$as_me:$LINENO: checking target system type" >&5
1404 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1405 if test "${ac_cv_target+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 ac_cv_target_alias=$target_alias
1409 test "x$ac_cv_target_alias" = "x" &&
1410 ac_cv_target_alias=$ac_cv_host_alias
1411 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1412 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1413 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1414 { (exit 1); exit 1; }; }
1417 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1418 echo "${ECHO_T}$ac_cv_target" >&6
1419 target=$ac_cv_target
1420 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425 # The aliases save the names the user supplied, while $host etc.
1426 # will get canonicalized.
1427 test -n "$target_alias" &&
1428 test "$program_prefix$program_suffix$program_transform_name" = \
1430 program_prefix=${target_alias}-
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1473 if test -z "$ac_cv_prog_CC"; then
1475 # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC="gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1515 if test -z "$CC"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_CC="${ac_tool_prefix}cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1553 if test -z "$ac_cv_prog_CC"; then
1555 # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC="cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1596 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616 ac_prog_rejected=yes
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy $ac_cv_prog_CC
1630 if test $# != 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1650 if test -z "$CC"; then
1651 if test -n "$ac_tool_prefix"; then
1654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$CC"; then
1662 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 if test -n "$CC"; then
1682 echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 test -n "$CC" && break
1692 if test -z "$CC"; then
1696 # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy $ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 if test -n "$ac_ct_CC"; then
1704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_ac_ct_CC="$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1731 test -n "$ac_ct_CC" && break
1740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&2;}
1744 { (exit 1); exit 1; }; }
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748 "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751 (eval $ac_compiler --version </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); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1766 cat >conftest.$ac_ext <<_ACEOF
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h. */
1781 ac_clean_files_save=$ac_clean_files
1782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1786 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790 (eval $ac_link_default) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # Find the output, starting from the most likely. This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # Be careful to initialize this variable, since it used to be cached.
1799 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801 # b.out is created by i960 compilers.
1802 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804 test -f "$ac_file" || continue
1806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 # This is the source file.
1812 # We found the default executable, but exeext='' is most
1816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817 # FIXME: I believe we export ac_cv_exeext for Libtool,
1818 # but it would be cool to find out if it's true. Does anybody
1819 # maintain Libtool? --akim.
1827 echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&2;}
1834 { (exit 77); exit 77; }; }
1837 ac_exeext=$ac_cv_exeext
1838 echo "$as_me:$LINENO: result: $ac_file" >&5
1839 echo "${ECHO_T}$ac_file" >&6
1841 # Check the compiler produces executables we can run. If not, either
1842 # the compiler is broken, or we cross compile.
1843 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846 # If not cross compiling, check that we can run a simple program.
1847 if test "$cross_compiling" != yes; then
1848 if { ac_try='./$ac_file'
1849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; }; then
1856 if test "$cross_compiling" = maybe; then
1859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&2;}
1865 { (exit 1); exit 1; }; }
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873 ac_clean_files=$ac_clean_files_save
1874 # Check the compiler produces executables we can run. If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879 echo "${ECHO_T}$cross_compiling" >&6
1881 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884 (eval $ac_link) 2>&5
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; then
1888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1890 # work properly (i.e., refer to `conftest.exe'), while it won't with
1892 for ac_file in conftest.exe conftest conftest.*; do
1893 test -f "$ac_file" || continue
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.$ac_ext <<_ACEOF
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h. */
1937 rm -f conftest.o conftest.obj
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
1943 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&2;}
1958 { (exit 1); exit 1; }; }
1961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1964 echo "${ECHO_T}$ac_cv_objext" >&6
1965 OBJEXT=$ac_cv_objext
1967 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1968 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1969 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 cat >conftest.$ac_ext <<_ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1994 grep -v '^ *+' conftest.er1 >conftest.err
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 cat >conftest.$ac_ext <<_ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2052 grep -v '^ *+' conftest.er1 >conftest.err
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS=$ac_save_CFLAGS
2082 elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2089 if test "$GCC" = yes; then
2095 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_cv_prog_cc_stdc=no
2102 cat >conftest.$ac_ext <<_ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2113 struct buf { int x; };
2114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115 static char *e (p, i)
2121 static char *f (char * (*g) (char **, int), char **p, ...)
2126 s = g (p, va_arg (v,int));
2131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not '\xHH' hex character constants.
2133 These don't provoke an error unfortunately, instead are silently treated
2134 as 'x'. The following induces an error, until -std1 is added to get
2135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2136 array size at least. It's necessary to write '\x00'==0 to get something
2137 that's true only with -std1. */
2138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140 int test (int i, double x);
2141 struct s1 {int (*f) (int a);};
2142 struct s2 {int (*f) (double a);};
2143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 # Don't try gcc -ansi; that turns off useful extensions and
2155 # breaks some systems' header files.
2156 # AIX -qlanglvl=ansi
2157 # Ultrix and OSF/1 -std1
2158 # HP-UX 10.20 and later -Ae
2159 # HP-UX older versions -Aa -D_HPUX_SOURCE
2160 # SVR4 -Xc -D__EXTENSIONS__
2161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163 CC="$ac_save_CC $ac_arg"
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2168 grep -v '^ *+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 ac_cv_prog_cc_stdc=$ac_arg
2188 echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2192 rm -f conftest.err conftest.$ac_objext
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2199 case "x$ac_cv_prog_cc_stdc" in
2201 echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 # Some people use a C++ compiler to compile C. Since we use `exit',
2210 # in C++ we need to declare it. In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2222 grep -v '^ *+' conftest.er1 >conftest.err
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; } &&
2233 { ac_try='test -s conftest.$ac_objext'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 for ac_declaration in \
2241 'extern "C" void std::exit (int) throw (); using std::exit;' \
2242 'extern "C" void std::exit (int); using std::exit;' \
2243 'extern "C" void exit (int) throw ();' \
2244 'extern "C" void exit (int);' \
2247 cat >conftest.$ac_ext <<_ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>conftest.er1
2267 grep -v '^ *+' conftest.er1 >conftest.err
2269 cat conftest.err >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); } &&
2272 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; } &&
2322 { ac_try='test -s conftest.$ac_objext'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337 if test -n "$ac_declaration"; then
2338 echo '#ifdef __cplusplus' >>confdefs.h
2339 echo $ac_declaration >>confdefs.h
2340 echo '#endif' >>confdefs.h
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2357 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2358 if test "${ac_cv_search_strerror+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 ac_func_search_save_LIBS=$LIBS
2362 ac_cv_search_strerror=no
2363 cat >conftest.$ac_ext <<_ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2370 /* Override any gcc2 internal prototype to avoid an error. */
2374 /* We use char because int might match the return type of a gcc2
2375 builtin and then its argument prototype would still apply. */
2385 rm -f conftest.$ac_objext conftest$ac_exeext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2387 (eval $ac_link) 2>conftest.er1
2389 grep -v '^ *+' conftest.er1 >conftest.err
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest$ac_exeext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 ac_cv_search_strerror="none required"
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2412 rm -f conftest.err conftest.$ac_objext \
2413 conftest$ac_exeext conftest.$ac_ext
2414 if test "$ac_cv_search_strerror" = no; then
2415 for ac_lib in cposix; do
2416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2417 cat >conftest.$ac_ext <<_ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2424 /* Override any gcc2 internal prototype to avoid an error. */
2428 /* We use char because int might match the return type of a gcc2
2429 builtin and then its argument prototype would still apply. */
2439 rm -f conftest.$ac_objext conftest$ac_exeext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2441 (eval $ac_link) 2>conftest.er1
2443 grep -v '^ *+' conftest.er1 >conftest.err
2445 cat conftest.err >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest$ac_exeext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2460 ac_cv_search_strerror="-l$ac_lib"
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2467 rm -f conftest.err conftest.$ac_objext \
2468 conftest$ac_exeext conftest.$ac_ext
2471 LIBS=$ac_func_search_save_LIBS
2473 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2474 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2475 if test "$ac_cv_search_strerror" != no; then
2476 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2481 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2482 am__api_version="1.9"
2483 # Find a good install program. We prefer a C program (faster),
2484 # so one script is as good as another. But avoid the broken or
2485 # incompatible versions:
2486 # SysV /etc/install, /usr/sbin/install
2487 # SunOS /usr/etc/install
2488 # IRIX /sbin/install
2490 # AmigaOS /C/install, which installs bootblocks on floppy discs
2491 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2492 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2493 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2494 # OS/2's system install, which has a completely different semantic
2495 # ./install, which can be erroneously created by make from ./install.sh.
2496 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2497 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2498 if test -z "$INSTALL"; then
2499 if test "${ac_cv_path_install+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 # Account for people who put trailing slashes in PATH elements.
2509 ./ | .// | /cC/* | \
2510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2511 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2514 # OSF1 and SCO ODT 3.0 have their own names for install.
2515 # Don't use installbsd from OSF since it installs stuff as root
2517 for ac_prog in ginstall scoinst install; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2520 if test $ac_prog = install &&
2521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522 # AIX install. It has an incompatible calling convention.
2524 elif test $ac_prog = install &&
2525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # program-specific install script used by HP pwplus--don't use.
2529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541 if test "${ac_cv_path_install+set}" = set; then
2542 INSTALL=$ac_cv_path_install
2544 # As a last resort, use the slow shell script. We don't cache a
2545 # path for INSTALL within a source directory, because that will
2546 # break other packages using the cache if that directory is
2547 # removed, or if the path is relative.
2548 INSTALL=$ac_install_sh
2551 echo "$as_me:$LINENO: result: $INSTALL" >&5
2552 echo "${ECHO_T}$INSTALL" >&6
2554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2555 # It thinks the first close brace ends the variable substitution.
2556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2562 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2563 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2566 echo timestamp > conftest.file
2567 # Do `set' in a subshell so we don't clobber the current shell's
2568 # arguments. Must try -L first in case configure is actually a
2569 # symlink; some systems play weird games with the mod time of symlinks
2570 # (eg FreeBSD returns the mod time of the symlink's containing
2573 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2574 if test "$*" = "X"; then
2576 set X `ls -t $srcdir/configure conftest.file`
2579 if test "$*" != "X $srcdir/configure conftest.file" \
2580 && test "$*" != "X conftest.file $srcdir/configure"; then
2582 # If neither matched, then we have a broken ls. This can happen
2583 # if, for instance, CONFIG_SHELL is bash and it inherits a
2584 # broken ls alias from the environment. This has actually
2585 # happened. Such a system could not be considered "sane".
2586 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2587 alias in your environment" >&5
2588 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2589 alias in your environment" >&2;}
2590 { (exit 1); exit 1; }; }
2593 test "$2" = conftest.file
2599 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2600 Check your system clock" >&5
2601 echo "$as_me: error: newly created file is older than distributed files!
2602 Check your system clock" >&2;}
2603 { (exit 1); exit 1; }; }
2605 echo "$as_me:$LINENO: result: yes" >&5
2606 echo "${ECHO_T}yes" >&6
2607 test "$program_prefix" != NONE &&
2608 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2609 # Use a double $ so make ignores it.
2610 test "$program_suffix" != NONE &&
2611 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2612 # Double any \ or $. echo might interpret backslashes.
2613 # By default was `s,x,x', remove it if useless.
2614 cat <<\_ACEOF >conftest.sed
2615 s/[\\$]/&&/g;s/;s,x,x,$//
2617 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2620 # expand $ac_aux_dir to an absolute path
2621 am_aux_dir=`cd $ac_aux_dir && pwd`
2623 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2624 # Use eval to expand $SHELL
2625 if eval "$MISSING --run true"; then
2626 am_missing_run="$MISSING --run "
2629 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2630 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2633 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2634 # We used to keeping the `.' as first argument, in order to
2635 # allow $(mkdir_p) to be used without argument. As in
2636 # $(mkdir_p) $(somedir)
2637 # where $(somedir) is conditionally defined. However this is wrong
2639 # 1. if the package is installed by a user who cannot write `.'
2640 # make install will fail,
2641 # 2. the above comment should most certainly read
2642 # $(mkdir_p) $(DESTDIR)$(somedir)
2643 # so it does not work when $(somedir) is undefined and
2644 # $(DESTDIR) is not.
2645 # To support the latter case, we have to write
2646 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2647 # so the `.' trick is pointless.
2648 mkdir_p='mkdir -p --'
2650 # On NextStep and OpenStep, the `mkdir' command does not
2651 # recognize any option. It will interpret all options as
2652 # directories to create, and then abort because `.' already
2654 for d in ./-p ./--version;
2656 test -d $d && rmdir $d
2658 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2659 if test -f "$ac_aux_dir/mkinstalldirs"; then
2660 mkdir_p='$(mkinstalldirs)'
2662 mkdir_p='$(install_sh) -d'
2666 for ac_prog in gawk mawk nawk awk
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2672 if test "${ac_cv_prog_AWK+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 if test -n "$AWK"; then
2696 echo "$as_me:$LINENO: result: $AWK" >&5
2697 echo "${ECHO_T}$AWK" >&6
2699 echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6
2703 test -n "$AWK" && break
2706 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2707 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2708 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2709 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 cat >conftest.make <<\_ACEOF
2714 @echo 'ac_maketemp="$(MAKE)"'
2716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2717 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2718 if test -n "$ac_maketemp"; then
2719 eval ac_cv_prog_make_${ac_make}_set=yes
2721 eval ac_cv_prog_make_${ac_make}_set=no
2725 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2726 echo "$as_me:$LINENO: result: yes" >&5
2727 echo "${ECHO_T}yes" >&6
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2732 SET_MAKE="MAKE=${MAKE-make}"
2735 rm -rf .tst 2>/dev/null
2736 mkdir .tst 2>/dev/null
2737 if test -d .tst; then
2742 rmdir .tst 2>/dev/null
2744 DEPDIR="${am__leading_dot}deps"
2746 ac_config_commands="$ac_config_commands depfiles"
2749 am_make=${MAKE-make}
2750 cat > confinc << 'END'
2755 # If we don't find an include directive, just comment out the code.
2756 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2757 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2761 # First try GNU make style include.
2762 echo "include confinc" > confmf
2763 # We grep out `Entering directory' and `Leaving directory'
2764 # messages which can occur if `w' ends up in MAKEFLAGS.
2765 # In particular we don't look at `^make:' because GNU make might
2766 # be invoked under some other name (usually "gmake"), in which
2767 # case it prints its new name instead of `make'.
2768 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2773 # Now try BSD make style include.
2774 if test "$am__include" = "#"; then
2775 echo '.include "confinc"' > confmf
2776 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2777 am__include=.include
2784 echo "$as_me:$LINENO: result: $_am_result" >&5
2785 echo "${ECHO_T}$_am_result" >&6
2786 rm -f confinc confmf
2788 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2789 if test "${enable_dependency_tracking+set}" = set; then
2790 enableval="$enable_dependency_tracking"
2793 if test "x$enable_dependency_tracking" != xno; then
2794 am_depcomp="$ac_aux_dir/depcomp"
2799 if test "x$enable_dependency_tracking" != xno; then
2809 # test to see if srcdir already configured
2810 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2811 test -f $srcdir/config.status; then
2812 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2813 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2814 { (exit 1); exit 1; }; }
2817 # test whether we have cygpath
2818 if test -z "$CYGPATH_W"; then
2819 if (cygpath --version) >/dev/null 2>/dev/null; then
2820 CYGPATH_W='cygpath -w'
2827 # Define the identity of the package.
2829 VERSION=${BFD_VERSION}
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE "$PACKAGE"
2837 cat >>confdefs.h <<_ACEOF
2838 #define VERSION "$VERSION"
2841 # Some tools Automake needs.
2843 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2857 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2859 # Installed binaries are usually stripped using `strip' when the user
2860 # run `make install-strip'. However `strip' might not be the right
2861 # tool to use in cross-compilation environments, therefore Automake
2862 # will honor the `STRIP' environment variable to overrule this program.
2863 if test "$cross_compiling" != no; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}strip; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_STRIP+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 if test -n "$STRIP"; then
2873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 STRIP=$ac_cv_prog_STRIP
2892 if test -n "$STRIP"; then
2893 echo "$as_me:$LINENO: result: $STRIP" >&5
2894 echo "${ECHO_T}$STRIP" >&6
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2901 if test -z "$ac_cv_prog_STRIP"; then
2903 # Extract the first word of "strip", so it can be a program name with args.
2904 set dummy strip; ac_word=$2
2905 echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 if test -n "$ac_ct_STRIP"; then
2911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_ac_ct_STRIP="strip"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2931 if test -n "$ac_ct_STRIP"; then
2932 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2933 echo "${ECHO_T}$ac_ct_STRIP" >&6
2935 echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6
2941 STRIP="$ac_cv_prog_STRIP"
2945 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2947 # We need awk for the "check" target. The system "awk" is bad on
2949 # Always define AMTAR for backward compatibility.
2951 AMTAR=${AMTAR-"${am_missing_run}tar"}
2953 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2958 depcc="$CC" am_compiler_list=
2960 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2961 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2962 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2966 # We make a subdir and do the tests there. Otherwise we can end up
2967 # making bogus files that we don't know about and never remove. For
2968 # instance it was reported that on HP-UX the gcc test will end up
2969 # making a dummy file named `D' -- because `-MD' means `put the output
2972 # Copy depcomp to subdir because otherwise we won't find it if we're
2973 # using a relative directory.
2974 cp "$am_depcomp" conftest.dir
2976 # We will build objects and dependencies in a subdirectory because
2977 # it helps to detect inapplicable dependency modes. For instance
2978 # both Tru64's cc and ICC support -MD to output dependencies as a
2979 # side effect of compilation, but ICC will put the dependencies in
2980 # the current directory while Tru64 will put them in the object
2984 am_cv_CC_dependencies_compiler_type=none
2985 if test "$am_compiler_list" = ""; then
2986 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2988 for depmode in $am_compiler_list; do
2989 # Setup a source with many dependencies, because some compilers
2990 # like to wrap large dependency lists on column 80 (with \), and
2991 # we should not choose a depcomp mode which is confused by this.
2993 # We need to recreate these files for each test, as the compiler may
2994 # overwrite some of them when testing with obscure command lines.
2995 # This happens at least with the AIX C compiler.
2997 for i in 1 2 3 4 5 6; do
2998 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2999 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3000 # Solaris 8's {/usr,}/bin/sh.
3001 touch sub/conftst$i.h
3003 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3007 # after this tag, mechanisms are not by side-effect, so they'll
3008 # only be used when explicitly requested
3009 if test "x$enable_dependency_tracking" = xyes; then
3017 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3018 # mode. It turns out that the SunPro C++ compiler does not properly
3019 # handle `-M -o', and we need to detect this.
3020 if depmode=$depmode \
3021 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3023 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3024 >/dev/null 2>conftest.err &&
3025 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3026 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3027 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3028 # icc doesn't choke on unknown options, it will just issue warnings
3029 # or remarks (even with -Werror). So we grep stderr for any message
3030 # that says an option was ignored or not supported.
3031 # When given -MP, icc 7.0 and 7.1 complain thusly:
3032 # icc: Command line warning: ignoring option '-M'; no argument required
3033 # The diagnosis changed in icc 8.0:
3034 # icc: Command line remark: option '-MP' not supported
3035 if (grep 'ignoring option' conftest.err ||
3036 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3037 am_cv_CC_dependencies_compiler_type=$depmode
3046 am_cv_CC_dependencies_compiler_type=none
3050 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3051 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3057 test "x$enable_dependency_tracking" != xno \
3058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3060 am__fastdepCC_FALSE='#'
3062 am__fastdepCC_TRUE='#'
3063 am__fastdepCC_FALSE=
3069 # Check whether --enable-shared or --disable-shared was given.
3070 if test "${enable_shared+set}" = set; then
3071 enableval="$enable_shared"
3072 p=${PACKAGE-default}
3074 yes) enable_shared=yes ;;
3075 no) enable_shared=no ;;
3078 # Look at the argument we got. We use all the common list separators.
3079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3080 for pkg in $enableval; do
3081 if test "X$pkg" = "X$p"; then
3091 # Check whether --enable-static or --disable-static was given.
3092 if test "${enable_static+set}" = set; then
3093 enableval="$enable_static"
3094 p=${PACKAGE-default}
3096 yes) enable_static=yes ;;
3097 no) enable_static=no ;;
3100 # Look at the argument we got. We use all the common list separators.
3101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3102 for pkg in $enableval; do
3103 if test "X$pkg" = "X$p"; then
3113 # Check whether --enable-fast-install or --disable-fast-install was given.
3114 if test "${enable_fast_install+set}" = set; then
3115 enableval="$enable_fast_install"
3116 p=${PACKAGE-default}
3118 yes) enable_fast_install=yes ;;
3119 no) enable_fast_install=no ;;
3121 enable_fast_install=no
3122 # Look at the argument we got. We use all the common list separators.
3123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3124 for pkg in $enableval; do
3125 if test "X$pkg" = "X$p"; then
3126 enable_fast_install=yes
3133 enable_fast_install=yes
3136 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3137 if test "${with_gnu_ld+set}" = set; then
3138 withval="$with_gnu_ld"
3139 test "$withval" = no || with_gnu_ld=yes
3144 if test "$GCC" = yes; then
3145 # Check if gcc -print-prog-name=ld gives a path.
3146 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3147 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3150 # gcc leaves a trailing carriage return which upsets mingw
3151 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3153 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3156 # Accept absolute paths.
3157 [\\/]* | [A-Za-z]:[\\/]*)
3158 re_direlt='/[^/][^/]*/\.\./'
3159 # Canonicalize the path of ld
3160 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3161 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3162 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3164 test -z "$LD" && LD="$ac_prog"
3167 # If it fails, then pretend we aren't using GCC.
3171 # If it is relative, then search for the first ld in PATH.
3175 elif test "$with_gnu_ld" = yes; then
3176 echo "$as_me:$LINENO: checking for GNU ld" >&5
3177 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3179 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3180 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3182 if test "${lt_cv_path_LD+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 if test -z "$LD"; then
3186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3187 for ac_dir in $PATH; do
3188 test -z "$ac_dir" && ac_dir=.
3189 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3190 lt_cv_path_LD="$ac_dir/$ac_prog"
3191 # Check to see if the program is GNU ld. I'd rather use --version,
3192 # but apparently some GNU ld's only accept -v.
3193 # Break only if it was the GNU/non-GNU ld that we prefer.
3194 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3195 test "$with_gnu_ld" != no && break
3197 test "$with_gnu_ld" != yes && break
3203 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3208 if test -n "$LD"; then
3209 echo "$as_me:$LINENO: result: $LD" >&5
3210 echo "${ECHO_T}$LD" >&6
3212 echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6
3215 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3216 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3217 { (exit 1); exit 1; }; }
3218 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3219 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3220 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3224 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3225 lt_cv_prog_gnu_ld=yes
3227 lt_cv_prog_gnu_ld=no
3230 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3231 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3232 with_gnu_ld=$lt_cv_prog_gnu_ld
3235 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3236 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3237 if test "${lt_cv_ld_reload_flag+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 lt_cv_ld_reload_flag='-r'
3242 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3243 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3244 reload_flag=$lt_cv_ld_reload_flag
3245 test -n "$reload_flag" && reload_flag=" $reload_flag"
3247 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3248 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3249 if test "${lt_cv_path_NM+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 if test -n "$NM"; then
3253 # Let the user override the test.
3256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3257 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3258 test -z "$ac_dir" && ac_dir=.
3259 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3260 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3261 # Check to see if the nm accepts a BSD-compat flag.
3262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3263 # nm: unknown option "B" ignored
3264 # Tru64's nm complains that /dev/null is an invalid object file
3265 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3266 lt_cv_path_NM="$tmp_nm -B"
3268 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3269 lt_cv_path_NM="$tmp_nm -p"
3272 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3273 continue # so that we can try to find one that supports BSD flags
3278 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3283 echo "$as_me:$LINENO: result: $NM" >&5
3284 echo "${ECHO_T}$NM" >&6
3286 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3287 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3289 if test "$LN_S" = "ln -s"; then
3290 echo "$as_me:$LINENO: result: yes" >&5
3291 echo "${ECHO_T}yes" >&6
3293 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3294 echo "${ECHO_T}no, using $LN_S" >&6
3297 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3298 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3299 if test "${lt_cv_deplibs_check_method+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 lt_cv_file_magic_cmd='$MAGIC_CMD'
3303 lt_cv_file_magic_test_file=
3304 lt_cv_deplibs_check_method='unknown'
3305 # Need to set the preceding variable on all platforms that support
3306 # interlibrary dependencies.
3307 # 'none' -- dependencies not supported.
3308 # `unknown' -- same as none, but documents that we really don't know.
3309 # 'pass_all' -- all dependencies passed with no checks.
3310 # 'test_compile' -- check by making test program.
3311 # 'file_magic [regex]' -- check by looking for files in library path
3312 # which responds to the $file_magic_cmd with a given egrep regex.
3313 # If you have `file' or equivalent on your system and you're not sure
3314 # whether `pass_all' will *always* work, you probably want this one.
3318 lt_cv_deplibs_check_method=pass_all
3322 lt_cv_deplibs_check_method=pass_all
3326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3327 lt_cv_file_magic_cmd='/usr/bin/file -L'
3328 lt_cv_file_magic_test_file=/shlib/libc.so
3331 cygwin* | mingw* |pw32*)
3332 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3333 lt_cv_file_magic_cmd='$OBJDUMP -f'
3336 darwin* | rhapsody*)
3337 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3338 lt_cv_file_magic_cmd='/usr/bin/file -L'
3340 rhapsody* | darwin1.012)
3341 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3344 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3349 freebsd* | kfreebsd*-gnu)
3350 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3353 # Not sure whether the presence of OpenBSD here was a mistake.
3354 # Let's accept both of them until this is cleared up.
3355 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3356 lt_cv_file_magic_cmd=/usr/bin/file
3357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3361 lt_cv_deplibs_check_method=pass_all
3366 lt_cv_deplibs_check_method=pass_all
3372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3373 lt_cv_file_magic_cmd=/usr/bin/file
3374 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3378 lt_cv_file_magic_cmd=/usr/bin/file
3379 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3387 # this will be overridden with pass_all, but let us keep it just in case
3388 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3392 *-32|*"-32 ") libmagic=32-bit;;
3393 *-n32|*"-n32 ") libmagic=N32;;
3394 *-64|*"-64 ") libmagic=64-bit;;
3395 *) libmagic=never-match;;
3397 # this will be overridden with pass_all, but let us keep it just in case
3398 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3401 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3402 lt_cv_deplibs_check_method=pass_all
3405 # This must be Linux ELF.
3408 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3409 lt_cv_deplibs_check_method=pass_all ;;
3411 # glibc up to 2.1.1 does not perform some relocations on ARM
3412 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3414 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3417 netbsd* | knetbsd*-gnu)
3418 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3419 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3421 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3427 lt_cv_file_magic_cmd=/usr/bin/file
3428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3431 osf3* | osf4* | osf5*)
3432 # this will be overridden with pass_all, but let us keep it just in case
3433 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3434 lt_cv_file_magic_test_file=/shlib/libc.so
3435 lt_cv_deplibs_check_method=pass_all
3439 lt_cv_deplibs_check_method=pass_all
3443 lt_cv_deplibs_check_method=pass_all
3444 lt_cv_file_magic_test_file=/lib/libc.so
3447 sysv5uw[78]* | sysv4*uw2*)
3448 lt_cv_deplibs_check_method=pass_all
3451 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3452 case $host_vendor in
3454 lt_cv_deplibs_check_method=pass_all
3457 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]'
3458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3465 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3466 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3467 file_magic_cmd=$lt_cv_file_magic_cmd
3468 deplibs_check_method=$lt_cv_deplibs_check_method
3473 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3475 # Only perform the check for file, if the check method requires it
3476 case $deplibs_check_method in
3478 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3479 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3480 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3481 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3489 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3492 ac_save_MAGIC_CMD="$MAGIC_CMD"
3493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3494 ac_dummy="/usr/bin:$PATH"
3495 for ac_dir in $ac_dummy; do
3496 test -z "$ac_dir" && ac_dir=.
3497 if test -f $ac_dir/${ac_tool_prefix}file; then
3498 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3499 if test -n "$file_magic_test_file"; then
3500 case $deplibs_check_method in
3502 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3503 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3504 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3505 egrep "$file_magic_regex" > /dev/null; then
3510 *** Warning: the command libtool uses to detect shared libraries,
3511 *** $file_magic_cmd, produces output that libtool cannot recognize.
3512 *** The result is that libtool may fail to recognize shared libraries
3513 *** as such. This will affect the creation of libtool libraries that
3514 *** depend on shared libraries, but programs linked with such libtool
3515 *** libraries will work regardless of this problem. Nevertheless, you
3516 *** may want to report the problem to your system manager and/or to
3517 *** bug-libtool@gnu.org
3527 MAGIC_CMD="$ac_save_MAGIC_CMD"
3532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3533 if test -n "$MAGIC_CMD"; then
3534 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3535 echo "${ECHO_T}$MAGIC_CMD" >&6
3537 echo "$as_me:$LINENO: result: no" >&5
3538 echo "${ECHO_T}no" >&6
3541 if test -z "$lt_cv_path_MAGIC_CMD"; then
3542 if test -n "$ac_tool_prefix"; then
3543 echo "$as_me:$LINENO: checking for file" >&5
3544 echo $ECHO_N "checking for file... $ECHO_C" >&6
3545 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3556 ac_save_MAGIC_CMD="$MAGIC_CMD"
3557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3558 ac_dummy="/usr/bin:$PATH"
3559 for ac_dir in $ac_dummy; do
3560 test -z "$ac_dir" && ac_dir=.
3561 if test -f $ac_dir/file; then
3562 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3563 if test -n "$file_magic_test_file"; then
3564 case $deplibs_check_method in
3566 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3569 egrep "$file_magic_regex" > /dev/null; then
3574 *** Warning: the command libtool uses to detect shared libraries,
3575 *** $file_magic_cmd, produces output that libtool cannot recognize.
3576 *** The result is that libtool may fail to recognize shared libraries
3577 *** as such. This will affect the creation of libtool libraries that
3578 *** depend on shared libraries, but programs linked with such libtool
3579 *** libraries will work regardless of this problem. Nevertheless, you
3580 *** may want to report the problem to your system manager and/or to
3581 *** bug-libtool@gnu.org
3591 MAGIC_CMD="$ac_save_MAGIC_CMD"
3596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3597 if test -n "$MAGIC_CMD"; then
3598 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3599 echo "${ECHO_T}$MAGIC_CMD" >&6
3601 echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3614 if test -n "$ac_tool_prefix"; then
3615 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3616 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_RANLIB+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test -n "$RANLIB"; then
3623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 RANLIB=$ac_cv_prog_RANLIB
3642 if test -n "$RANLIB"; then
3643 echo "$as_me:$LINENO: result: $RANLIB" >&5
3644 echo "${ECHO_T}$RANLIB" >&6
3646 echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3651 if test -z "$ac_cv_prog_RANLIB"; then
3652 ac_ct_RANLIB=$RANLIB
3653 # Extract the first word of "ranlib", so it can be a program name with args.
3654 set dummy ranlib; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 if test -n "$ac_ct_RANLIB"; then
3661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_ac_ct_RANLIB="ranlib"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3680 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3681 if test -n "$ac_ct_RANLIB"; then
3682 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3683 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3685 echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3689 RANLIB=$ac_ct_RANLIB
3691 RANLIB="$ac_cv_prog_RANLIB"
3694 if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3696 set dummy ${ac_tool_prefix}strip; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_prog_STRIP+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 if test -n "$STRIP"; then
3703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 STRIP=$ac_cv_prog_STRIP
3722 if test -n "$STRIP"; then
3723 echo "$as_me:$LINENO: result: $STRIP" >&5
3724 echo "${ECHO_T}$STRIP" >&6
3726 echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6
3731 if test -z "$ac_cv_prog_STRIP"; then
3733 # Extract the first word of "strip", so it can be a program name with args.
3734 set dummy strip; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$ac_ct_STRIP"; then
3741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_STRIP="strip"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3761 if test -n "$ac_ct_STRIP"; then
3762 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3763 echo "${ECHO_T}$ac_ct_STRIP" >&6
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3771 STRIP="$ac_cv_prog_STRIP"
3775 # Check for any special flags to pass to ltconfig.
3776 libtool_flags="--cache-file=$cache_file"
3777 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3778 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3779 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3780 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3781 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3784 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3785 if test "${enable_libtool_lock+set}" = set; then
3786 enableval="$enable_libtool_lock"
3789 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3790 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3793 # Check whether --with-pic or --without-pic was given.
3794 if test "${with_pic+set}" = set; then
3800 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3801 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3803 # Some flags need to be propagated to the compiler or linker for good
3807 # Find out which ABI we are using.
3808 echo '#line 3808 "configure"' > conftest.$ac_ext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; then
3814 if test "$lt_cv_prog_gnu_ld" = yes; then
3815 case `/usr/bin/file conftest.$ac_objext` in
3817 LD="${LD-ld} -melf32bsmip"
3820 LD="${LD-ld} -melf32bmipn32"
3823 LD="${LD-ld} -melf64bmip"
3827 case `/usr/bin/file conftest.$ac_objext` in
3844 # Find out which ABI we are using.
3845 echo 'int i;' > conftest.$ac_ext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; then
3851 case "`/usr/bin/file conftest.o`" in
3864 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3865 SAVE_CFLAGS="$CFLAGS"
3866 CFLAGS="$CFLAGS -belf"
3867 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3868 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3869 if test "${lt_cv_cc_needs_belf+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880 cat >conftest.$ac_ext <<_ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3895 rm -f conftest.$ac_objext conftest$ac_exeext
3896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3897 (eval $ac_link) 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } &&
3904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; } &&
3910 { ac_try='test -s conftest$ac_exeext'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 lt_cv_cc_needs_belf=yes
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 lt_cv_cc_needs_belf=no
3923 rm -f conftest.err conftest.$ac_objext \
3924 conftest$ac_exeext conftest.$ac_ext
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3933 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3934 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3935 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3936 CFLAGS="$SAVE_CFLAGS"
3944 # Save cache, so that ltconfig can load it
3945 cat >confcache <<\_ACEOF
3946 # This file is a shell script that caches the results of configure
3947 # tests run on this system so they can be shared between configure
3948 # scripts and configure runs, see configure's option --config-cache.
3949 # It is not useful on other systems. If it contains results you don't
3950 # want to keep, you may remove or edit it.
3952 # config.status only pays attention to the cache file if you give it
3953 # the --recheck option to rerun configure.
3955 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3956 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3961 # The following way of writing the cache mishandles newlines in values,
3962 # but we know of no workaround that is simple, portable, and efficient.
3963 # So, don't put newlines in cache variables' values.
3964 # Ultrix sh set writes to stderr and can't be redirected directly,
3965 # and sets the high bit in the cache file unless we assign to the vars.
3968 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3970 # `set' does not quote correctly, so add quotes (double-quote
3971 # substitution turns \\\\ into \\, and sed turns \\ into \).
3974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3977 # `set' quotes correctly as required by POSIX, so do not add quotes.
3979 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3988 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3990 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3991 if test -w $cache_file; then
3992 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3993 cat confcache >$cache_file
3995 echo "not updating unwritable cache $cache_file"
4000 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4001 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4002 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4003 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4004 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4005 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4006 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4007 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4008 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4009 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4010 echo "$as_me: error: libtool configure failed" >&2;}
4011 { (exit 1); exit 1; }; }
4013 # Reload cache, that may have been modified by ltconfig
4014 if test -r "$cache_file"; then
4015 # Some versions of bash will fail to source /dev/null (special
4016 # files actually), so we avoid doing that.
4017 if test -f "$cache_file"; then
4018 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4019 echo "$as_me: loading cache $cache_file" >&6;}
4021 [\\/]* | ?:[\\/]* ) . $cache_file;;
4022 *) . ./$cache_file;;
4026 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4027 echo "$as_me: creating cache $cache_file" >&6;}
4032 # This can be used to rebuild libtool when needed
4033 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4035 # Always use our own libtool.
4036 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4038 # Redirect the config.log output again, so that the ltconfig log is not
4039 # clobbered by the next message.
4040 exec 5>>./config.log
4049 # Check whether --with-lib-path or --without-lib-path was given.
4050 if test "${with_lib_path+set}" = set; then
4051 withval="$with_lib_path"
4054 # Check whether --enable-targets or --disable-targets was given.
4055 if test "${enable_targets+set}" = set; then
4056 enableval="$enable_targets"
4057 case "${enableval}" in
4058 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4059 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4060 { (exit 1); exit 1; }; }
4062 no) enable_targets= ;;
4063 *) enable_targets=$enableval ;;
4065 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4066 if test "${enable_64_bit_bfd+set}" = set; then
4067 enableval="$enable_64_bit_bfd"
4068 case "${enableval}" in
4071 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4072 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4073 { (exit 1); exit 1; }; } ;;
4079 # Check whether --with-sysroot or --without-sysroot was given.
4080 if test "${with_sysroot+set}" = set; then
4081 withval="$with_sysroot"
4083 case ${with_sysroot} in
4084 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4085 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4088 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4091 if test "x$exec_prefix" = xNONE; then
4092 if test "x$prefix" = xNONE; then
4093 test_prefix=/usr/local
4098 test_prefix=$exec_prefix
4100 case ${TARGET_SYSTEM_ROOT} in
4101 "${test_prefix}"|"${test_prefix}/"*|\
4102 '${exec_prefix}'|'${exec_prefix}/'*)
4103 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4104 TARGET_SYSTEM_ROOT_DEFINE="$t"
4112 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4119 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4121 # Check whether --enable-werror or --disable-werror was given.
4122 if test "${enable_werror+set}" = set; then
4123 enableval="$enable_werror"
4124 case "${enableval}" in
4125 yes | y) ERROR_ON_WARNING="yes" ;;
4126 no | n) ERROR_ON_WARNING="no" ;;
4127 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4128 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4129 { (exit 1); exit 1; }; } ;;
4133 # Enable -Werror by default when using gcc
4134 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4135 ERROR_ON_WARNING=yes
4139 if test "${ERROR_ON_WARNING}" = yes ; then
4140 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4141 NO_WERROR="-Wno-error"
4144 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4145 if test "${enable_build_warnings+set}" = set; then
4146 enableval="$enable_build_warnings"
4147 case "${enableval}" in
4149 no) WARN_CFLAGS="-w";;
4150 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4151 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4152 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4153 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4154 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4158 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4159 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4165 ac_config_headers="$ac_config_headers config.h:config.in"
4168 if test -z "$target" ; then
4169 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4170 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4171 { (exit 1); exit 1; }; }
4173 if test -z "$host" ; then
4174 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4175 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4176 { (exit 1); exit 1; }; }
4179 # host-specific stuff:
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4189 echo "$as_me:$LINENO: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4191 if test "${ac_cv_prog_CC+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC="$CC" # Let the user override the test.
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 if test -n "$CC"; then
4215 echo "$as_me:$LINENO: result: $CC" >&5
4216 echo "${ECHO_T}$CC" >&6
4218 echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6
4223 if test -z "$ac_cv_prog_CC"; then
4225 # Extract the first word of "gcc", so it can be a program name with args.
4226 set dummy gcc; ac_word=$2
4227 echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 if test -n "$ac_ct_CC"; then
4233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_ac_ct_CC="gcc"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4252 if test -n "$ac_ct_CC"; then
4253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4254 echo "${ECHO_T}$ac_ct_CC" >&6
4256 echo "$as_me:$LINENO: result: no" >&5
4257 echo "${ECHO_T}no" >&6
4265 if test -z "$CC"; then
4266 if test -n "$ac_tool_prefix"; then
4267 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4268 set dummy ${ac_tool_prefix}cc; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_prog_CC+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 if test -n "$CC"; then
4275 ac_cv_prog_CC="$CC" # Let the user override the test.
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_prog_CC="${ac_tool_prefix}cc"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 if test -n "$CC"; then
4295 echo "$as_me:$LINENO: result: $CC" >&5
4296 echo "${ECHO_T}$CC" >&6
4298 echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6
4303 if test -z "$ac_cv_prog_CC"; then
4305 # Extract the first word of "cc", so it can be a program name with args.
4306 set dummy cc; ac_word=$2
4307 echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 if test -n "$ac_ct_CC"; then
4313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_ac_ct_CC="cc"
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4332 if test -n "$ac_ct_CC"; then
4333 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4334 echo "${ECHO_T}$ac_ct_CC" >&6
4336 echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6
4346 if test -z "$CC"; then
4347 # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351 if test "${ac_cv_prog_CC+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 if test -n "$CC"; then
4355 ac_cv_prog_CC="$CC" # Let the user override the test.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4366 ac_prog_rejected=yes
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 if test $ac_prog_rejected = yes; then
4377 # We found a bogon in the path, so make sure we never use it.
4378 set dummy $ac_cv_prog_CC
4380 if test $# != 0; then
4381 # We chose a different compiler from the bogus one.
4382 # However, it has the same basename, so the bogon will be chosen
4383 # first if we set CC to just the basename; use the full file name.
4385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4391 if test -n "$CC"; then
4392 echo "$as_me:$LINENO: result: $CC" >&5
4393 echo "${ECHO_T}$CC" >&6
4395 echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6
4400 if test -z "$CC"; then
4401 if test -n "$ac_tool_prefix"; then
4404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4406 echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408 if test "${ac_cv_prog_CC+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 if test -n "$CC"; then
4412 ac_cv_prog_CC="$CC" # Let the user override the test.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 if test -n "$CC"; then
4432 echo "$as_me:$LINENO: result: $CC" >&5
4433 echo "${ECHO_T}$CC" >&6
4435 echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4439 test -n "$CC" && break
4442 if test -z "$CC"; then
4446 # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy $ac_prog; ac_word=$2
4448 echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 if test -n "$ac_ct_CC"; then
4454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_ac_ct_CC="$ac_prog"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4473 if test -n "$ac_ct_CC"; then
4474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4475 echo "${ECHO_T}$ac_ct_CC" >&6
4477 echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4481 test -n "$ac_ct_CC" && break
4490 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4491 See \`config.log' for more details." >&5
4492 echo "$as_me: error: no acceptable C compiler found in \$PATH
4493 See \`config.log' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4496 # Provide some information about the compiler.
4497 echo "$as_me:$LINENO:" \
4498 "checking for C compiler version" >&5
4499 ac_compiler=`set X $ac_compile; echo $2`
4500 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4501 (eval $ac_compiler --version </dev/null >&5) 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }
4505 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4506 (eval $ac_compiler -v </dev/null >&5) 2>&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }
4510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4511 (eval $ac_compiler -V </dev/null >&5) 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }
4516 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4517 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4518 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4543 grep -v '^ *+' conftest.er1 >conftest.err
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4571 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4572 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4573 GCC=`test $ac_compiler_gnu = yes && echo yes`
4574 ac_test_CFLAGS=${CFLAGS+set}
4575 ac_save_CFLAGS=$CFLAGS
4577 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4579 if test "${ac_cv_prog_cc_g+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 cat >conftest.$ac_ext <<_ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599 (eval $ac_compile) 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4628 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4629 if test "$ac_test_CFLAGS" = set; then
4630 CFLAGS=$ac_save_CFLAGS
4631 elif test $ac_cv_prog_cc_g = yes; then
4632 if test "$GCC" = yes; then
4638 if test "$GCC" = yes; then
4644 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4645 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4646 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 ac_cv_prog_cc_stdc=no
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4659 #include <sys/types.h>
4660 #include <sys/stat.h>
4661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4662 struct buf { int x; };
4663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4664 static char *e (p, i)
4670 static char *f (char * (*g) (char **, int), char **p, ...)
4675 s = g (p, va_arg (v,int));
4680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4681 function prototypes and stuff, but not '\xHH' hex character constants.
4682 These don't provoke an error unfortunately, instead are silently treated
4683 as 'x'. The following induces an error, until -std1 is added to get
4684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4685 array size at least. It's necessary to write '\x00'==0 to get something
4686 that's true only with -std1. */
4687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4689 int test (int i, double x);
4690 struct s1 {int (*f) (int a);};
4691 struct s2 {int (*f) (double a);};
4692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4703 # Don't try gcc -ansi; that turns off useful extensions and
4704 # breaks some systems' header files.
4705 # AIX -qlanglvl=ansi
4706 # Ultrix and OSF/1 -std1
4707 # HP-UX 10.20 and later -Ae
4708 # HP-UX older versions -Aa -D_HPUX_SOURCE
4709 # SVR4 -Xc -D__EXTENSIONS__
4710 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4712 CC="$ac_save_CC $ac_arg"
4713 rm -f conftest.$ac_objext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715 (eval $ac_compile) 2>conftest.er1
4717 grep -v '^ *+' conftest.er1 >conftest.err
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } &&
4722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 ac_cv_prog_cc_stdc=$ac_arg
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4741 rm -f conftest.err conftest.$ac_objext
4743 rm -f conftest.$ac_ext conftest.$ac_objext
4748 case "x$ac_cv_prog_cc_stdc" in
4750 echo "$as_me:$LINENO: result: none needed" >&5
4751 echo "${ECHO_T}none needed" >&6 ;;
4753 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4754 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4755 CC="$CC $ac_cv_prog_cc_stdc" ;;
4758 # Some people use a C++ compiler to compile C. Since we use `exit',
4759 # in C++ we need to declare it. In case someone uses the same compiler
4760 # for both compiling C and C++ we need to have the C++ compiler decide
4761 # the declaration of exit, since it's the most demanding environment.
4762 cat >conftest.$ac_ext <<_ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; } &&
4782 { ac_try='test -s conftest.$ac_objext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4788 for ac_declaration in \
4790 'extern "C" void std::exit (int) throw (); using std::exit;' \
4791 'extern "C" void std::exit (int); using std::exit;' \
4792 'extern "C" void exit (int) throw ();' \
4793 'extern "C" void exit (int);' \
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest.$ac_objext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 cat >conftest.$ac_ext <<_ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 if test -n "$ac_declaration"; then
4887 echo '#ifdef __cplusplus' >>confdefs.h
4888 echo $ac_declaration >>confdefs.h
4889 echo '#endif' >>confdefs.h
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4904 # Find a good install program. We prefer a C program (faster),
4905 # so one script is as good as another. But avoid the broken or
4906 # incompatible versions:
4907 # SysV /etc/install, /usr/sbin/install
4908 # SunOS /usr/etc/install
4909 # IRIX /sbin/install
4911 # AmigaOS /C/install, which installs bootblocks on floppy discs
4912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4915 # OS/2's system install, which has a completely different semantic
4916 # ./install, which can be erroneously created by make from ./install.sh.
4917 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4918 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4919 if test -z "$INSTALL"; then
4920 if test "${ac_cv_path_install+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 test -z "$as_dir" && as_dir=.
4928 # Account for people who put trailing slashes in PATH elements.
4930 ./ | .// | /cC/* | \
4931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4932 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4935 # OSF1 and SCO ODT 3.0 have their own names for install.
4936 # Don't use installbsd from OSF since it installs stuff as root
4938 for ac_prog in ginstall scoinst install; do
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4941 if test $ac_prog = install &&
4942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4943 # AIX install. It has an incompatible calling convention.
4945 elif test $ac_prog = install &&
4946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4947 # program-specific install script used by HP pwplus--don't use.
4950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4962 if test "${ac_cv_path_install+set}" = set; then
4963 INSTALL=$ac_cv_path_install
4965 # As a last resort, use the slow shell script. We don't cache a
4966 # path for INSTALL within a source directory, because that will
4967 # break other packages using the cache if that directory is
4968 # removed, or if the path is relative.
4969 INSTALL=$ac_install_sh
4972 echo "$as_me:$LINENO: result: $INSTALL" >&5
4973 echo "${ECHO_T}$INSTALL" >&6
4975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4976 # It thinks the first close brace ends the variable substitution.
4977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4981 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4984 ALL_LINGUAS="fr sv tr es da"
4985 if test -n "$ac_tool_prefix"; then
4986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4988 echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4990 if test "${ac_cv_prog_RANLIB+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 if test -n "$RANLIB"; then
4994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 RANLIB=$ac_cv_prog_RANLIB
5013 if test -n "$RANLIB"; then
5014 echo "$as_me:$LINENO: result: $RANLIB" >&5
5015 echo "${ECHO_T}$RANLIB" >&6
5017 echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5022 if test -z "$ac_cv_prog_RANLIB"; then
5023 ac_ct_RANLIB=$RANLIB
5024 # Extract the first word of "ranlib", so it can be a program name with args.
5025 set dummy ranlib; ac_word=$2
5026 echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5028 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 if test -n "$ac_ct_RANLIB"; then
5032 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041 ac_cv_prog_ac_ct_RANLIB="ranlib"
5042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5052 if test -n "$ac_ct_RANLIB"; then
5053 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5054 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5056 echo "$as_me:$LINENO: result: no" >&5
5057 echo "${ECHO_T}no" >&6
5060 RANLIB=$ac_ct_RANLIB
5062 RANLIB="$ac_cv_prog_RANLIB"
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5071 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5076 if test -z "$CPP"; then
5077 if test "${ac_cv_prog_CPP+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 # Double quotes because CPP needs to be expanded
5081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5084 for ac_c_preproc_warn_flag in '' yes
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5099 # include <limits.h>
5101 # include <assert.h>
5105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_c_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5122 if test -z "$ac_cpp_err"; then
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 # Broken: fails on valid input.
5131 rm -f conftest.err conftest.$ac_ext
5133 # OK, works on sane cases. Now check whether non-existent headers
5134 # can be detected and how.
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <ac_nonexistent.h>
5143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5146 grep -v '^ *+' conftest.er1 >conftest.err
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } >/dev/null; then
5151 if test -s conftest.err; then
5152 ac_cpp_err=$ac_c_preproc_warn_flag
5153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5160 if test -z "$ac_cpp_err"; then
5161 # Broken: success on invalid input.
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 # Passes both tests.
5171 rm -f conftest.err conftest.$ac_ext
5174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5175 rm -f conftest.err conftest.$ac_ext
5176 if $ac_preproc_ok; then
5188 echo "$as_me:$LINENO: result: $CPP" >&5
5189 echo "${ECHO_T}$CPP" >&6
5191 for ac_c_preproc_warn_flag in '' yes
5193 # Use a header file that comes with gcc, so configuring glibc
5194 # with a fresh cross-compiler works.
5195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5196 # <limits.h> exists even on freestanding compilers.
5197 # On the NeXT, cc -E runs the code through the compiler's parser,
5198 # not just through cpp. "Syntax error" is here to catch this case.
5199 cat >conftest.$ac_ext <<_ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5206 # include <limits.h>
5208 # include <assert.h>
5212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev/null; then
5220 if test -s conftest.err; then
5221 ac_cpp_err=$ac_c_preproc_warn_flag
5222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5229 if test -z "$ac_cpp_err"; then
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 # Broken: fails on valid input.
5238 rm -f conftest.err conftest.$ac_ext
5240 # OK, works on sane cases. Now check whether non-existent headers
5241 # can be detected and how.
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 #include <ac_nonexistent.h>
5250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1 >conftest.err
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } >/dev/null; then
5258 if test -s conftest.err; then
5259 ac_cpp_err=$ac_c_preproc_warn_flag
5260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5267 if test -z "$ac_cpp_err"; then
5268 # Broken: success on invalid input.
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 # Passes both tests.
5278 rm -f conftest.err conftest.$ac_ext
5281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5282 rm -f conftest.err conftest.$ac_ext
5283 if $ac_preproc_ok; then
5286 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5287 See \`config.log' for more details." >&5
5288 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5289 See \`config.log' for more details." >&2;}
5290 { (exit 1); exit 1; }; }
5294 ac_cpp='$CPP $CPPFLAGS'
5295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300 echo "$as_me:$LINENO: checking for egrep" >&5
5301 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5302 if test "${ac_cv_prog_egrep+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5306 then ac_cv_prog_egrep='grep -E'
5307 else ac_cv_prog_egrep='egrep'
5310 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5311 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5312 EGREP=$ac_cv_prog_egrep
5315 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5317 if test "${ac_cv_header_stdc+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 cat >conftest.$ac_ext <<_ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest.$ac_objext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_header_stdc=yes
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5365 ac_cv_header_stdc=no
5367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5369 if test $ac_cv_header_stdc = yes; then
5370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 $EGREP "memchr" >/dev/null 2>&1; then
5384 ac_cv_header_stdc=no
5390 if test $ac_cv_header_stdc = yes; then
5391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5392 cat >conftest.$ac_ext <<_ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev/null 2>&1; then
5405 ac_cv_header_stdc=no
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5423 #if ((' ' & 0x0FF) == 0x020)
5424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5427 # define ISLOWER(c) \
5428 (('a' <= (c) && (c) <= 'i') \
5429 || ('j' <= (c) && (c) <= 'r') \
5430 || ('s' <= (c) && (c) <= 'z'))
5431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5439 for (i = 0; i < 256; i++)
5440 if (XOR (islower (i), ISLOWER (i))
5441 || toupper (i) != TOUPPER (i))
5446 rm -f conftest$ac_exeext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5448 (eval $ac_link) 2>&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5459 echo "$as_me: program exited with status $ac_status" >&5
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5464 ac_cv_header_stdc=no
5466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5471 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5472 if test $ac_cv_header_stdc = yes; then
5474 cat >>confdefs.h <<\_ACEOF
5475 #define STDC_HEADERS 1
5480 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5481 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5482 if test "${ac_cv_c_const+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 cat >conftest.$ac_ext <<_ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5495 /* FIXME: Include the comments suggested by Paul. */
5497 /* Ultrix mips cc rejects this. */
5498 typedef int charset[2];
5500 /* SunOS 4.1.1 cc rejects this. */
5501 char const *const *ccp;
5503 /* NEC SVR4.0.2 mips cc rejects this. */
5504 struct point {int x, y;};
5505 static struct point const zero = {0,0};
5506 /* AIX XL C 1.02.0.0 rejects this.
5507 It does not let you subtract one const X* pointer from another in
5508 an arm of an if-expression whose if-part is not a constant
5510 const char *g = "string";
5511 ccp = &g + (g ? g-g : 0);
5512 /* HPUX 7.0 cc rejects these. */
5515 ccp = (char const *const *) p;
5516 { /* SCO 3.2v4 cc rejects this. */
5518 char const *s = 0 ? (char *) 0 : (char const *) 0;
5522 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5524 const int *foo = &x[0];
5527 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5528 typedef const int *iptr;
5532 { /* AIX XL C 1.02.0.0 rejects this saying
5533 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5534 struct s { int j; const int *ap[3]; };
5535 struct s *b; b->j = 5;
5537 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5546 rm -f conftest.$ac_objext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5548 (eval $ac_compile) 2>conftest.er1
5550 grep -v '^ *+' conftest.er1 >conftest.err
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; } &&
5561 { ac_try='test -s conftest.$ac_objext'
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5576 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5577 echo "${ECHO_T}$ac_cv_c_const" >&6
5578 if test $ac_cv_c_const = no; then
5580 cat >>confdefs.h <<\_ACEOF
5586 echo "$as_me:$LINENO: checking for inline" >&5
5587 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5588 if test "${ac_cv_c_inline+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 for ac_kw in inline __inline__ __inline; do
5593 cat >conftest.$ac_ext <<_ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5601 static $ac_kw foo_t static_foo () {return 0; }
5602 $ac_kw foo_t foo () {return 0; }
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>conftest.er1
5610 grep -v '^ *+' conftest.er1 >conftest.err
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; } &&
5621 { ac_try='test -s conftest.$ac_objext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 ac_cv_c_inline=$ac_kw; break
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5638 echo "${ECHO_T}$ac_cv_c_inline" >&6
5641 case $ac_cv_c_inline in
5644 case $ac_cv_c_inline in
5646 *) ac_val=$ac_cv_c_inline;;
5648 cat >>confdefs.h <<_ACEOF
5650 #define inline $ac_val
5656 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5667 inttypes.h stdint.h unistd.h
5669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5670 echo "$as_me:$LINENO: checking for $ac_header" >&5
5671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 cat >conftest.$ac_ext <<_ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 $ac_includes_default
5683 #include <$ac_header>
5685 rm -f conftest.$ac_objext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>conftest.er1
5689 grep -v '^ *+' conftest.er1 >conftest.err
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 eval "$as_ac_Header=yes"
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 eval "$as_ac_Header=no"
5713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5718 cat >>confdefs.h <<_ACEOF
5719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5727 echo "$as_me:$LINENO: checking for off_t" >&5
5728 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5729 if test "${ac_cv_type_off_t+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 cat >conftest.$ac_ext <<_ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 $ac_includes_default
5750 rm -f conftest.$ac_objext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_cv_type_off_t=yes
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5780 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5781 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5782 if test $ac_cv_type_off_t = yes; then
5786 cat >>confdefs.h <<_ACEOF
5792 echo "$as_me:$LINENO: checking for size_t" >&5
5793 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5794 if test "${ac_cv_type_size_t+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 cat >conftest.$ac_ext <<_ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5809 if (sizeof (size_t))
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5819 grep -v '^ *+' conftest.er1 >conftest.err
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_type_size_t=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 ac_cv_type_size_t=no
5843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5846 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5847 if test $ac_cv_type_size_t = yes; then
5851 cat >>confdefs.h <<_ACEOF
5852 #define size_t unsigned
5857 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5858 # for constant arguments. Useless!
5859 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5860 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5861 if test "${ac_cv_working_alloca_h+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 cat >conftest.$ac_ext <<_ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5874 char *p = (char *) alloca (2 * sizeof (int));
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5881 (eval $ac_link) 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; } &&
5894 { ac_try='test -s conftest$ac_exeext'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; }; then
5900 ac_cv_working_alloca_h=yes
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5905 ac_cv_working_alloca_h=no
5907 rm -f conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext
5910 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5911 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5912 if test $ac_cv_working_alloca_h = yes; then
5914 cat >>confdefs.h <<\_ACEOF
5915 #define HAVE_ALLOCA_H 1
5920 echo "$as_me:$LINENO: checking for alloca" >&5
5921 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5922 if test "${ac_cv_func_alloca_works+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5932 # define alloca __builtin_alloca
5935 # include <malloc.h>
5936 # define alloca _alloca
5939 # include <alloca.h>
5944 # ifndef alloca /* predefined by HP cc +Olibcalls */
5955 char *p = (char *) alloca (1);
5960 rm -f conftest.$ac_objext conftest$ac_exeext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5962 (eval $ac_link) 2>conftest.er1
5964 grep -v '^ *+' conftest.er1 >conftest.err
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } &&
5969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; } &&
5975 { ac_try='test -s conftest$ac_exeext'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 ac_cv_func_alloca_works=yes
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 ac_cv_func_alloca_works=no
5988 rm -f conftest.err conftest.$ac_objext \
5989 conftest$ac_exeext conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5992 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5994 if test $ac_cv_func_alloca_works = yes; then
5996 cat >>confdefs.h <<\_ACEOF
5997 #define HAVE_ALLOCA 1
6001 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6002 # that cause trouble. Some versions do not even contain alloca or
6003 # contain a buggy version. If you still want to use their alloca,
6004 # use ar to extract alloca.o from them instead of compiling alloca.c.
6006 ALLOCA=alloca.$ac_objext
6008 cat >>confdefs.h <<\_ACEOF
6013 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6014 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6015 if test "${ac_cv_os_cray+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 cat >conftest.$ac_ext <<_ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #if defined(CRAY) && ! defined(CRAY2)
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032 $EGREP "webecray" >/dev/null 2>&1; then
6040 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6041 echo "${ECHO_T}$ac_cv_os_cray" >&6
6042 if test $ac_cv_os_cray = yes; then
6043 for ac_func in _getb67 GETB67 getb67; do
6044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6045 echo "$as_me:$LINENO: checking for $ac_func" >&5
6046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6047 if eval "test \"\${$as_ac_var+set}\" = set"; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 cat >conftest.$ac_ext <<_ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6058 #define $ac_func innocuous_$ac_func
6060 /* System header to define __stub macros and hopefully few prototypes,
6061 which can conflict with char $ac_func (); below.
6062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6063 <limits.h> exists even on freestanding compilers. */
6066 # include <limits.h>
6068 # include <assert.h>
6073 /* Override any gcc2 internal prototype to avoid an error. */
6078 /* We use char because int might match the return type of a gcc2
6079 builtin and then its argument prototype would still apply. */
6081 /* The GNU C library defines this for functions which it implements
6082 to always fail with ENOSYS. Some functions are actually named
6083 something starting with __ and the normal name is an alias. */
6084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6087 char (*f) () = $ac_func;
6096 return f != $ac_func;
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6103 (eval $ac_link) 2>conftest.er1
6105 grep -v '^ *+' conftest.er1 >conftest.err
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } &&
6110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; } &&
6116 { ac_try='test -s conftest$ac_exeext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 eval "$as_ac_var=yes"
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6127 eval "$as_ac_var=no"
6129 rm -f conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
6132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6134 if test `eval echo '${'$as_ac_var'}'` = yes; then
6136 cat >>confdefs.h <<_ACEOF
6137 #define CRAY_STACKSEG_END $ac_func
6146 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6147 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6148 if test "${ac_cv_c_stack_direction+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 if test "$cross_compiling" = yes; then
6152 ac_cv_c_stack_direction=0
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6161 find_stack_direction ()
6163 static char *addr = 0;
6168 return find_stack_direction ();
6171 return (&dummy > addr) ? 1 : -1;
6177 exit (find_stack_direction () < 0);
6180 rm -f conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182 (eval $ac_link) 2>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 ac_cv_c_stack_direction=1
6193 echo "$as_me: program exited with status $ac_status" >&5
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6198 ac_cv_c_stack_direction=-1
6200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6203 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6204 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6206 cat >>confdefs.h <<_ACEOF
6207 #define STACK_DIRECTION $ac_cv_c_stack_direction
6215 for ac_header in stdlib.h unistd.h
6217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219 echo "$as_me:$LINENO: checking for $ac_header" >&5
6220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6227 # Is the header compilable?
6228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6230 cat >conftest.$ac_ext <<_ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 $ac_includes_default
6237 #include <$ac_header>
6239 rm -f conftest.$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; } &&
6254 { ac_try='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 ac_header_compiler=yes
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_header_compiler=no
6267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6269 echo "${ECHO_T}$ac_header_compiler" >&6
6271 # Is the header present?
6272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6274 cat >conftest.$ac_ext <<_ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 #include <$ac_header>
6282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } >/dev/null; then
6290 if test -s conftest.err; then
6291 ac_cpp_err=$ac_c_preproc_warn_flag
6292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6299 if test -z "$ac_cpp_err"; then
6300 ac_header_preproc=yes
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 ac_header_preproc=no
6307 rm -f conftest.err conftest.$ac_ext
6308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6309 echo "${ECHO_T}$ac_header_preproc" >&6
6311 # So? What about this header?
6312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6318 ac_header_preproc=yes
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6335 ## ------------------------------------------ ##
6336 ## Report this to the AC_PACKAGE_NAME lists. ##
6337 ## ------------------------------------------ ##
6340 sed "s/^/$as_me: WARNING: /" >&2
6343 echo "$as_me:$LINENO: checking for $ac_header" >&5
6344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 eval "$as_ac_Header=\$ac_header_preproc"
6350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6355 cat >>confdefs.h <<_ACEOF
6356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6364 for ac_func in getpagesize
6366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6367 echo "$as_me:$LINENO: checking for $ac_func" >&5
6368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_var+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6380 #define $ac_func innocuous_$ac_func
6382 /* System header to define __stub macros and hopefully few prototypes,
6383 which can conflict with char $ac_func (); below.
6384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6385 <limits.h> exists even on freestanding compilers. */
6388 # include <limits.h>
6390 # include <assert.h>
6395 /* Override any gcc2 internal prototype to avoid an error. */
6400 /* We use char because int might match the return type of a gcc2
6401 builtin and then its argument prototype would still apply. */
6403 /* The GNU C library defines this for functions which it implements
6404 to always fail with ENOSYS. Some functions are actually named
6405 something starting with __ and the normal name is an alias. */
6406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6409 char (*f) () = $ac_func;
6418 return f != $ac_func;
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425 (eval $ac_link) 2>conftest.er1
6427 grep -v '^ *+' conftest.er1 >conftest.err
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest$ac_exeext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 eval "$as_ac_var=yes"
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 eval "$as_ac_var=no"
6451 rm -f conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6456 if test `eval echo '${'$as_ac_var'}'` = yes; then
6457 cat >>confdefs.h <<_ACEOF
6458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6464 echo "$as_me:$LINENO: checking for working mmap" >&5
6465 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6466 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 if test "$cross_compiling" = yes; then
6470 ac_cv_func_mmap_fixed_mapped=no
6472 cat >conftest.$ac_ext <<_ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6478 $ac_includes_default
6479 /* malloc might have been renamed as rpl_malloc. */
6482 /* Thanks to Mike Haertel and Jim Avera for this test.
6483 Here is a matrix of mmap possibilities:
6484 mmap private not fixed
6485 mmap private fixed at somewhere currently unmapped
6486 mmap private fixed at somewhere already mapped
6487 mmap shared not fixed
6488 mmap shared fixed at somewhere currently unmapped
6489 mmap shared fixed at somewhere already mapped
6490 For private mappings, we should verify that changes cannot be read()
6491 back from the file, nor mmap's back from the file at a different
6492 address. (There have been systems where private was not correctly
6493 implemented like the infamous i386 svr4.0, and systems where the
6494 VM page cache was not coherent with the file system buffer cache
6495 like early versions of FreeBSD and possibly contemporary NetBSD.)
6496 For shared mappings, we should conversely verify that changes get
6497 propagated back to all the places they're supposed to be.
6499 Grep wants private fixed already mapped.
6500 The main things grep needs to know about mmap are:
6501 * does it exist and is it safe to write into the mmap'd area
6502 * how to use it (BSD variants) */
6505 #include <sys/mman.h>
6507 #if !STDC_HEADERS && !HAVE_STDLIB_H
6511 /* This mess was copied from the GNU getpagesize.h. */
6512 #if !HAVE_GETPAGESIZE
6513 /* Assume that all systems that can run configure have sys/param.h. */
6514 # if !HAVE_SYS_PARAM_H
6515 # define HAVE_SYS_PARAM_H 1
6518 # ifdef _SC_PAGESIZE
6519 # define getpagesize() sysconf(_SC_PAGESIZE)
6520 # else /* no _SC_PAGESIZE */
6521 # if HAVE_SYS_PARAM_H
6522 # include <sys/param.h>
6523 # ifdef EXEC_PAGESIZE
6524 # define getpagesize() EXEC_PAGESIZE
6525 # else /* no EXEC_PAGESIZE */
6527 # define getpagesize() NBPG * CLSIZE
6530 # endif /* no CLSIZE */
6531 # else /* no NBPG */
6533 # define getpagesize() NBPC
6534 # else /* no NBPC */
6536 # define getpagesize() PAGESIZE
6537 # endif /* PAGESIZE */
6538 # endif /* no NBPC */
6539 # endif /* no NBPG */
6540 # endif /* no EXEC_PAGESIZE */
6541 # else /* no HAVE_SYS_PARAM_H */
6542 # define getpagesize() 8192 /* punt totally */
6543 # endif /* no HAVE_SYS_PARAM_H */
6544 # endif /* no _SC_PAGESIZE */
6546 #endif /* no HAVE_GETPAGESIZE */
6551 char *data, *data2, *data3;
6555 pagesize = getpagesize ();
6557 /* First, make a file with some known garbage in it. */
6558 data = (char *) malloc (pagesize);
6561 for (i = 0; i < pagesize; ++i)
6562 *(data + i) = rand ();
6564 fd = creat ("conftest.mmap", 0600);
6567 if (write (fd, data, pagesize) != pagesize)
6571 /* Next, try to mmap the file at a fixed address which already has
6572 something else allocated at it. If we can, also make sure that
6573 we see the same garbage. */
6574 fd = open ("conftest.mmap", O_RDWR);
6577 data2 = (char *) malloc (2 * pagesize);
6580 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6581 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6582 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6584 for (i = 0; i < pagesize; ++i)
6585 if (*(data + i) != *(data2 + i))
6588 /* Finally, make sure that changes to the mapped area do not
6589 percolate back to the file as seen by read(). (This is a bug on
6590 some variants of i386 svr4.0.) */
6591 for (i = 0; i < pagesize; ++i)
6592 *(data2 + i) = *(data2 + i) + 1;
6593 data3 = (char *) malloc (pagesize);
6596 if (read (fd, data3, pagesize) != pagesize)
6598 for (i = 0; i < pagesize; ++i)
6599 if (*(data + i) != *(data3 + i))
6605 rm -f conftest$ac_exeext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607 (eval $ac_link) 2>&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_func_mmap_fixed_mapped=yes
6618 echo "$as_me: program exited with status $ac_status" >&5
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6623 ac_cv_func_mmap_fixed_mapped=no
6625 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6628 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6629 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6630 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6632 cat >>confdefs.h <<\_ACEOF
6649 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6650 unistd.h values.h sys/param.h
6652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6654 echo "$as_me:$LINENO: checking for $ac_header" >&5
6655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6662 # Is the header compilable?
6663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6665 cat >conftest.$ac_ext <<_ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 $ac_includes_default
6672 #include <$ac_header>
6674 rm -f conftest.$ac_objext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6676 (eval $ac_compile) 2>conftest.er1
6678 grep -v '^ *+' conftest.er1 >conftest.err
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } &&
6683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; } &&
6689 { ac_try='test -s conftest.$ac_objext'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 ac_header_compiler=yes
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6700 ac_header_compiler=no
6702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6704 echo "${ECHO_T}$ac_header_compiler" >&6
6706 # Is the header present?
6707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6709 cat >conftest.$ac_ext <<_ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 #include <$ac_header>
6717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6720 grep -v '^ *+' conftest.er1 >conftest.err
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } >/dev/null; then
6725 if test -s conftest.err; then
6726 ac_cpp_err=$ac_c_preproc_warn_flag
6727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6734 if test -z "$ac_cpp_err"; then
6735 ac_header_preproc=yes
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6740 ac_header_preproc=no
6742 rm -f conftest.err conftest.$ac_ext
6743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6744 echo "${ECHO_T}$ac_header_preproc" >&6
6746 # So? What about this header?
6747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6753 ac_header_preproc=yes
6756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6770 ## ------------------------------------------ ##
6771 ## Report this to the AC_PACKAGE_NAME lists. ##
6772 ## ------------------------------------------ ##
6775 sed "s/^/$as_me: WARNING: /" >&2
6778 echo "$as_me:$LINENO: checking for $ac_header" >&5
6779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 eval "$as_ac_Header=\$ac_header_preproc"
6785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6790 cat >>confdefs.h <<_ACEOF
6791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6809 __argz_count __argz_stringify __argz_next
6811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6812 echo "$as_me:$LINENO: checking for $ac_func" >&5
6813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6814 if eval "test \"\${$as_ac_var+set}\" = set"; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 cat >conftest.$ac_ext <<_ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6825 #define $ac_func innocuous_$ac_func
6827 /* System header to define __stub macros and hopefully few prototypes,
6828 which can conflict with char $ac_func (); below.
6829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6830 <limits.h> exists even on freestanding compilers. */
6833 # include <limits.h>
6835 # include <assert.h>
6840 /* Override any gcc2 internal prototype to avoid an error. */
6845 /* We use char because int might match the return type of a gcc2
6846 builtin and then its argument prototype would still apply. */
6848 /* The GNU C library defines this for functions which it implements
6849 to always fail with ENOSYS. Some functions are actually named
6850 something starting with __ and the normal name is an alias. */
6851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6854 char (*f) () = $ac_func;
6863 return f != $ac_func;
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870 (eval $ac_link) 2>conftest.er1
6872 grep -v '^ *+' conftest.er1 >conftest.err
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } &&
6877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; } &&
6883 { ac_try='test -s conftest$ac_exeext'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; }; then
6889 eval "$as_ac_var=yes"
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 eval "$as_ac_var=no"
6896 rm -f conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6901 if test `eval echo '${'$as_ac_var'}'` = yes; then
6902 cat >>confdefs.h <<_ACEOF
6903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6910 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6912 for ac_func in stpcpy
6914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6915 echo "$as_me:$LINENO: checking for $ac_func" >&5
6916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6917 if eval "test \"\${$as_ac_var+set}\" = set"; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 cat >conftest.$ac_ext <<_ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6928 #define $ac_func innocuous_$ac_func
6930 /* System header to define __stub macros and hopefully few prototypes,
6931 which can conflict with char $ac_func (); below.
6932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6933 <limits.h> exists even on freestanding compilers. */
6936 # include <limits.h>
6938 # include <assert.h>
6943 /* Override any gcc2 internal prototype to avoid an error. */
6948 /* We use char because int might match the return type of a gcc2
6949 builtin and then its argument prototype would still apply. */
6951 /* The GNU C library defines this for functions which it implements
6952 to always fail with ENOSYS. Some functions are actually named
6953 something starting with __ and the normal name is an alias. */
6954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6957 char (*f) () = $ac_func;
6966 return f != $ac_func;
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973 (eval $ac_link) 2>conftest.er1
6975 grep -v '^ *+' conftest.er1 >conftest.err
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest$ac_exeext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 eval "$as_ac_var=yes"
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 eval "$as_ac_var=no"
6999 rm -f conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7004 if test `eval echo '${'$as_ac_var'}'` = yes; then
7005 cat >>confdefs.h <<_ACEOF
7006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7013 if test "${ac_cv_func_stpcpy}" = "yes"; then
7015 cat >>confdefs.h <<\_ACEOF
7016 #define HAVE_STPCPY 1
7021 if test $ac_cv_header_locale_h = yes; then
7022 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7023 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7024 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 cat >conftest.$ac_ext <<_ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044 (eval $ac_link) 2>conftest.er1
7046 grep -v '^ *+' conftest.er1 >conftest.err
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest$ac_exeext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 am_cv_val_LC_MESSAGES=yes
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 am_cv_val_LC_MESSAGES=no
7070 rm -f conftest.err conftest.$ac_objext \
7071 conftest$ac_exeext conftest.$ac_ext
7073 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7074 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7075 if test $am_cv_val_LC_MESSAGES = yes; then
7077 cat >>confdefs.h <<\_ACEOF
7078 #define HAVE_LC_MESSAGES 1
7083 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7084 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7085 # Check whether --enable-nls or --disable-nls was given.
7086 if test "${enable_nls+set}" = set; then
7087 enableval="$enable_nls"
7092 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7093 echo "${ECHO_T}$USE_NLS" >&6
7096 USE_INCLUDED_LIBINTL=no
7098 if test "$USE_NLS" = "yes"; then
7099 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7100 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7102 # Check whether --with-included-gettext or --without-included-gettext was given.
7103 if test "${with_included_gettext+set}" = set; then
7104 withval="$with_included_gettext"
7105 nls_cv_force_use_gnu_gettext=$withval
7107 nls_cv_force_use_gnu_gettext=no
7109 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7110 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7112 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7113 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7115 nls_cv_header_libgt=
7118 if test "${ac_cv_header_libintl_h+set}" = set; then
7119 echo "$as_me:$LINENO: checking for libintl.h" >&5
7120 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7121 if test "${ac_cv_header_libintl_h+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7125 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7127 # Is the header compilable?
7128 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7129 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7130 cat >conftest.$ac_ext <<_ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 $ac_includes_default
7137 #include <libintl.h>
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 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" || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_header_compiler=yes
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_header_compiler=no
7167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7169 echo "${ECHO_T}$ac_header_compiler" >&6
7171 # Is the header present?
7172 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7173 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7174 cat >conftest.$ac_ext <<_ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 #include <libintl.h>
7182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7185 grep -v '^ *+' conftest.er1 >conftest.err
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } >/dev/null; then
7190 if test -s conftest.err; then
7191 ac_cpp_err=$ac_c_preproc_warn_flag
7192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7199 if test -z "$ac_cpp_err"; then
7200 ac_header_preproc=yes
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7205 ac_header_preproc=no
7207 rm -f conftest.err conftest.$ac_ext
7208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7209 echo "${ECHO_T}$ac_header_preproc" >&6
7211 # So? What about this header?
7212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7214 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7215 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7216 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7217 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7218 ac_header_preproc=yes
7221 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7222 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7223 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7224 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7225 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7226 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7227 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7228 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7230 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7232 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7235 ## ------------------------------------------ ##
7236 ## Report this to the AC_PACKAGE_NAME lists. ##
7237 ## ------------------------------------------ ##
7240 sed "s/^/$as_me: WARNING: /" >&2
7243 echo "$as_me:$LINENO: checking for libintl.h" >&5
7244 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7245 if test "${ac_cv_header_libintl_h+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 ac_cv_header_libintl_h=$ac_header_preproc
7250 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7251 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7254 if test $ac_cv_header_libintl_h = yes; then
7255 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7256 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7257 if test "${gt_cv_func_gettext_libc+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 #include <libintl.h>
7270 return (int) gettext ("")
7275 rm -f conftest.$ac_objext conftest$ac_exeext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7277 (eval $ac_link) 2>conftest.er1
7279 grep -v '^ *+' conftest.er1 >conftest.err
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; } &&
7290 { ac_try='test -s conftest$ac_exeext'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7296 gt_cv_func_gettext_libc=yes
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7301 gt_cv_func_gettext_libc=no
7303 rm -f conftest.err conftest.$ac_objext \
7304 conftest$ac_exeext conftest.$ac_ext
7306 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7307 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7309 if test "$gt_cv_func_gettext_libc" != "yes"; then
7310 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7311 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7312 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 ac_check_lib_save_LIBS=$LIBS
7317 cat >conftest.$ac_ext <<_ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7324 /* Override any gcc2 internal prototype to avoid an error. */
7328 /* We use char because int might match the return type of a gcc2
7329 builtin and then its argument prototype would still apply. */
7330 char bindtextdomain ();
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>conftest.er1
7343 grep -v '^ *+' conftest.er1 >conftest.err
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest$ac_exeext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_cv_lib_intl_bindtextdomain=yes
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 ac_cv_lib_intl_bindtextdomain=no
7367 rm -f conftest.err conftest.$ac_objext \
7368 conftest$ac_exeext conftest.$ac_ext
7369 LIBS=$ac_check_lib_save_LIBS
7371 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7372 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7373 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7374 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7375 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7376 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 cat >conftest.$ac_ext <<_ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7389 return (int) gettext ("")
7394 rm -f conftest.$ac_objext conftest$ac_exeext
7395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7396 (eval $ac_link) 2>conftest.er1
7398 grep -v '^ *+' conftest.er1 >conftest.err
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 gt_cv_func_gettext_libintl=yes
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7420 gt_cv_func_gettext_libintl=no
7422 rm -f conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7425 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7426 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7431 if test "$gt_cv_func_gettext_libc" = "yes" \
7432 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE_GETTEXT 1
7438 # Extract the first word of "msgfmt", so it can be a program name with args.
7439 set dummy msgfmt; ac_word=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_path_MSGFMT+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7451 for ac_dir in $PATH; do
7452 test -z "$ac_dir" && ac_dir=.
7453 if test -f $ac_dir/$ac_word; then
7454 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7455 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7461 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7465 MSGFMT="$ac_cv_path_MSGFMT"
7466 if test -n "$MSGFMT"; then
7467 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7468 echo "${ECHO_T}$MSGFMT" >&6
7470 echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7473 if test "$MSGFMT" != "no"; then
7475 for ac_func in dcgettext
7477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7478 echo "$as_me:$LINENO: checking for $ac_func" >&5
7479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7480 if eval "test \"\${$as_ac_var+set}\" = set"; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7491 #define $ac_func innocuous_$ac_func
7493 /* System header to define __stub macros and hopefully few prototypes,
7494 which can conflict with char $ac_func (); below.
7495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7496 <limits.h> exists even on freestanding compilers. */
7499 # include <limits.h>
7501 # include <assert.h>
7506 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7514 /* The GNU C library defines this for functions which it implements
7515 to always fail with ENOSYS. Some functions are actually named
7516 something starting with __ and the normal name is an alias. */
7517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7520 char (*f) () = $ac_func;
7529 return f != $ac_func;
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536 (eval $ac_link) 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; } &&
7549 { ac_try='test -s conftest$ac_exeext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 eval "$as_ac_var=yes"
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 eval "$as_ac_var=no"
7562 rm -f conftest.err conftest.$ac_objext \
7563 conftest$ac_exeext conftest.$ac_ext
7565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7567 if test `eval echo '${'$as_ac_var'}'` = yes; then
7568 cat >>confdefs.h <<_ACEOF
7569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7575 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7576 set dummy gmsgfmt; ac_word=$2
7577 echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7579 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7605 GMSGFMT=$ac_cv_path_GMSGFMT
7607 if test -n "$GMSGFMT"; then
7608 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7609 echo "${ECHO_T}$GMSGFMT" >&6
7611 echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6
7615 # Extract the first word of "xgettext", so it can be a program name with args.
7616 set dummy xgettext; ac_word=$2
7617 echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7619 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7628 for ac_dir in $PATH; do
7629 test -z "$ac_dir" && ac_dir=.
7630 if test -f $ac_dir/$ac_word; then
7631 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7632 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7638 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7642 XGETTEXT="$ac_cv_path_XGETTEXT"
7643 if test -n "$XGETTEXT"; then
7644 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7645 echo "${ECHO_T}$XGETTEXT" >&6
7647 echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6
7651 cat >conftest.$ac_ext <<_ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7661 extern int _nl_msg_cat_cntr;
7662 return _nl_msg_cat_cntr
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669 (eval $ac_link) 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } &&
7676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; } &&
7682 { ac_try='test -s conftest$ac_exeext'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7697 rm -f conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
7708 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7709 # Neither gettext nor catgets in included in the C library.
7710 # Fall back on GNU gettext library (assuming it is present).
7711 nls_cv_use_gnu_gettext=yes
7715 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7716 INTLOBJS="\$(GETTOBJS)"
7717 # Extract the first word of "msgfmt", so it can be a program name with args.
7718 set dummy msgfmt; ac_word=$2
7719 echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7721 if test "${ac_cv_path_MSGFMT+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7730 for ac_dir in $PATH; do
7731 test -z "$ac_dir" && ac_dir=.
7732 if test -f $ac_dir/$ac_word; then
7733 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7734 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7740 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7744 MSGFMT="$ac_cv_path_MSGFMT"
7745 if test -n "$MSGFMT"; then
7746 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7747 echo "${ECHO_T}$MSGFMT" >&6
7749 echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6
7753 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7754 set dummy gmsgfmt; ac_word=$2
7755 echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7757 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7783 GMSGFMT=$ac_cv_path_GMSGFMT
7785 if test -n "$GMSGFMT"; then
7786 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7787 echo "${ECHO_T}$GMSGFMT" >&6
7789 echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6
7793 # Extract the first word of "xgettext", so it can be a program name with args.
7794 set dummy xgettext; ac_word=$2
7795 echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7797 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7806 for ac_dir in $PATH; do
7807 test -z "$ac_dir" && ac_dir=.
7808 if test -f $ac_dir/$ac_word; then
7809 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7810 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7816 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7820 XGETTEXT="$ac_cv_path_XGETTEXT"
7821 if test -n "$XGETTEXT"; then
7822 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7823 echo "${ECHO_T}$XGETTEXT" >&6
7825 echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6
7830 USE_INCLUDED_LIBINTL=yes
7834 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7836 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7837 nls_cv_header_intl=libintl.h
7838 nls_cv_header_libgt=libgettext.h
7841 if test "$XGETTEXT" != ":"; then
7842 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7845 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7846 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7851 # We need to process the po/ directory.
7855 nls_cv_header_intl=libintl.h
7856 nls_cv_header_libgt=libgettext.h
7859 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7860 # because some of the sources are only built for this goal.
7861 if test "$PACKAGE" = gettext; then
7863 USE_INCLUDED_LIBINTL=yes
7866 for lang in $ALL_LINGUAS; do
7867 GMOFILES="$GMOFILES $lang.gmo"
7868 POFILES="$POFILES $lang.po"
7882 if test "x$CATOBJEXT" != "x"; then
7884 cat >>confdefs.h <<\_ACEOF
7885 #define ENABLE_NLS 1
7891 if test "x$CATOBJEXT" != "x"; then
7892 if test "x$ALL_LINGUAS" = "x"; then
7895 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7896 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7898 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7899 case "$ALL_LINGUAS" in
7900 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7903 LINGUAS=$NEW_LINGUAS
7904 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7905 echo "${ECHO_T}$LINGUAS" >&6
7908 if test -n "$LINGUAS"; then
7909 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7913 if test $ac_cv_header_locale_h = yes; then
7914 INCLUDE_LOCALE_H="#include <locale.h>"
7917 /* The system does not provide the header <locale.h>. Take care yourself. */"
7921 if test -f $srcdir/po2tbl.sed.in; then
7922 if test "$CATOBJEXT" = ".cat"; then
7923 if test "${ac_cv_header_linux_version_h+set}" = set; then
7924 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7925 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7926 if test "${ac_cv_header_linux_version_h+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7930 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7932 # Is the header compilable?
7933 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7934 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7935 cat >conftest.$ac_ext <<_ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7941 $ac_includes_default
7942 #include <linux/version.h>
7944 rm -f conftest.$ac_objext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7946 (eval $ac_compile) 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; } &&
7959 { ac_try='test -s conftest.$ac_objext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 ac_header_compiler=yes
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 ac_header_compiler=no
7972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7974 echo "${ECHO_T}$ac_header_compiler" >&6
7976 # Is the header present?
7977 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7978 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7979 cat >conftest.$ac_ext <<_ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 #include <linux/version.h>
7987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7990 grep -v '^ *+' conftest.er1 >conftest.err
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } >/dev/null; then
7995 if test -s conftest.err; then
7996 ac_cpp_err=$ac_c_preproc_warn_flag
7997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8004 if test -z "$ac_cpp_err"; then
8005 ac_header_preproc=yes
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8010 ac_header_preproc=no
8012 rm -f conftest.err conftest.$ac_ext
8013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8014 echo "${ECHO_T}$ac_header_preproc" >&6
8016 # So? What about this header?
8017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8019 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8020 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8021 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8022 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8023 ac_header_preproc=yes
8026 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8027 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8028 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8029 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8030 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8031 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8032 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8033 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8034 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8035 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8036 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8037 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8040 ## ------------------------------------------ ##
8041 ## Report this to the AC_PACKAGE_NAME lists. ##
8042 ## ------------------------------------------ ##
8045 sed "s/^/$as_me: WARNING: /" >&2
8048 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8049 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8050 if test "${ac_cv_header_linux_version_h+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 ac_cv_header_linux_version_h=$ac_header_preproc
8055 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8056 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8059 if test $ac_cv_header_linux_version_h = yes; then
8067 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8069 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8070 $srcdir/po2tbl.sed.in > po2tbl.sed
8073 if test "$PACKAGE" = "gettext"; then
8083 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8089 if test -f $srcdir/po/POTFILES.in; then
8090 test -d po || mkdir po
8091 if test "x$srcdir" != "x."; then
8092 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8093 posrcprefix="$srcdir/"
8095 posrcprefix="../$srcdir/"
8101 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8102 < $srcdir/po/POTFILES.in > po/POTFILES
8108 for ac_prog in 'bison -y' byacc
8110 # Extract the first word of "$ac_prog", so it can be a program name with args.
8111 set dummy $ac_prog; ac_word=$2
8112 echo "$as_me:$LINENO: checking for $ac_word" >&5
8113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8114 if test "${ac_cv_prog_YACC+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 if test -n "$YACC"; then
8118 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8127 ac_cv_prog_YACC="$ac_prog"
8128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 YACC=$ac_cv_prog_YACC
8137 if test -n "$YACC"; then
8138 echo "$as_me:$LINENO: result: $YACC" >&5
8139 echo "${ECHO_T}$YACC" >&6
8141 echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8145 test -n "$YACC" && break
8147 test -n "$YACC" || YACC="yacc"
8149 for ac_prog in flex lex
8151 # Extract the first word of "$ac_prog", so it can be a program name with args.
8152 set dummy $ac_prog; ac_word=$2
8153 echo "$as_me:$LINENO: checking for $ac_word" >&5
8154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8155 if test "${ac_cv_prog_LEX+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 if test -n "$LEX"; then
8159 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_LEX="$ac_prog"
8169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 if test -n "$LEX"; then
8179 echo "$as_me:$LINENO: result: $LEX" >&5
8180 echo "${ECHO_T}$LEX" >&6
8182 echo "$as_me:$LINENO: result: no" >&5
8183 echo "${ECHO_T}no" >&6
8186 test -n "$LEX" && break
8188 test -n "$LEX" || LEX=":"
8190 if test -z "$LEXLIB"
8192 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8193 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8194 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 ac_check_lib_save_LIBS=$LIBS
8199 cat >conftest.$ac_ext <<_ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8206 /* Override any gcc2 internal prototype to avoid an error. */
8210 /* We use char because int might match the return type of a gcc2
8211 builtin and then its argument prototype would still apply. */
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223 (eval $ac_link) 2>conftest.er1
8225 grep -v '^ *+' conftest.er1 >conftest.err
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try='test -s conftest$ac_exeext'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 ac_cv_lib_fl_yywrap=yes
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8247 ac_cv_lib_fl_yywrap=no
8249 rm -f conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext conftest.$ac_ext
8251 LIBS=$ac_check_lib_save_LIBS
8253 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8254 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8255 if test $ac_cv_lib_fl_yywrap = yes; then
8258 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8259 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8260 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 ac_check_lib_save_LIBS=$LIBS
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8272 /* Override any gcc2 internal prototype to avoid an error. */
8276 /* We use char because int might match the return type of a gcc2
8277 builtin and then its argument prototype would still apply. */
8287 rm -f conftest.$ac_objext conftest$ac_exeext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>conftest.er1
8291 grep -v '^ *+' conftest.er1 >conftest.err
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try='test -s conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_lib_l_yywrap=yes
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 ac_cv_lib_l_yywrap=no
8315 rm -f conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext conftest.$ac_ext
8317 LIBS=$ac_check_lib_save_LIBS
8319 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8320 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8321 if test $ac_cv_lib_l_yywrap = yes; then
8329 if test "x$LEX" != "x:"; then
8330 echo "$as_me:$LINENO: checking lex output file root" >&5
8331 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8332 if test "${ac_cv_prog_lex_root+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 # The minimal lex program is just a single line: %%. But some broken lexes
8336 # (Solaris, I think it was) want two %% lines, so accommodate them.
8337 cat >conftest.l <<_ACEOF
8341 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8342 (eval $LEX conftest.l) 2>&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }
8346 if test -f lex.yy.c; then
8347 ac_cv_prog_lex_root=lex.yy
8348 elif test -f lexyy.c; then
8349 ac_cv_prog_lex_root=lexyy
8351 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8352 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8353 { (exit 1); exit 1; }; }
8356 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8357 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8359 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8361 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8362 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8363 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 # POSIX says lex can declare yytext either as a pointer or an array; the
8367 # default is implementation-dependent. Figure out which it is, since
8368 # not all implementations provide the %pointer and %array declarations.
8369 ac_cv_prog_lex_yytext_pointer=no
8370 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8372 LIBS="$LIBS $LEXLIB"
8373 cat >conftest.$ac_ext <<_ACEOF
8374 `cat $LEX_OUTPUT_ROOT.c`
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378 (eval $ac_link) 2>conftest.er1
8380 grep -v '^ *+' conftest.er1 >conftest.err
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest$ac_exeext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_cv_prog_lex_yytext_pointer=yes
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8403 rm -f conftest.err conftest.$ac_objext \
8404 conftest$ac_exeext conftest.$ac_ext
8406 rm -f "${LEX_OUTPUT_ROOT}.c"
8409 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8410 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8411 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8413 cat >>confdefs.h <<\_ACEOF
8414 #define YYTEXT_POINTER 1
8420 if test "$LEX" = :; then
8421 LEX=${am_missing_run}flex
8424 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8425 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8426 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8427 if test "${enable_maintainer_mode+set}" = set; then
8428 enableval="$enable_maintainer_mode"
8429 USE_MAINTAINER_MODE=$enableval
8431 USE_MAINTAINER_MODE=no
8433 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8434 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8437 if test $USE_MAINTAINER_MODE = yes; then
8438 MAINTAINER_MODE_TRUE=
8439 MAINTAINER_MODE_FALSE='#'
8441 MAINTAINER_MODE_TRUE='#'
8442 MAINTAINER_MODE_FALSE=
8445 MAINT=$MAINTAINER_MODE_TRUE
8449 . ${srcdir}/configure.host
8460 for ac_header in string.h strings.h stdlib.h unistd.h
8462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464 echo "$as_me:$LINENO: checking for $ac_header" >&5
8465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8472 # Is the header compilable?
8473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 $ac_includes_default
8482 #include <$ac_header>
8484 rm -f conftest.$ac_objext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486 (eval $ac_compile) 2>conftest.er1
8488 grep -v '^ *+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; } &&
8499 { ac_try='test -s conftest.$ac_objext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_header_compiler=yes
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 ac_header_compiler=no
8512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8514 echo "${ECHO_T}$ac_header_compiler" >&6
8516 # Is the header present?
8517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8519 cat >conftest.$ac_ext <<_ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 #include <$ac_header>
8527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } >/dev/null; then
8535 if test -s conftest.err; then
8536 ac_cpp_err=$ac_c_preproc_warn_flag
8537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8544 if test -z "$ac_cpp_err"; then
8545 ac_header_preproc=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 ac_header_preproc=no
8552 rm -f conftest.err conftest.$ac_ext
8553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8554 echo "${ECHO_T}$ac_header_preproc" >&6
8556 # So? What about this header?
8557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8563 ac_header_preproc=yes
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8580 ## ------------------------------------------ ##
8581 ## Report this to the AC_PACKAGE_NAME lists. ##
8582 ## ------------------------------------------ ##
8585 sed "s/^/$as_me: WARNING: /" >&2
8588 echo "$as_me:$LINENO: checking for $ac_header" >&5
8589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 eval "$as_ac_Header=\$ac_header_preproc"
8595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8600 cat >>confdefs.h <<_ACEOF
8601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8611 for ac_func in sbrk realpath glob
8613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8614 echo "$as_me:$LINENO: checking for $ac_func" >&5
8615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8616 if eval "test \"\${$as_ac_var+set}\" = set"; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 cat >conftest.$ac_ext <<_ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8627 #define $ac_func innocuous_$ac_func
8629 /* System header to define __stub macros and hopefully few prototypes,
8630 which can conflict with char $ac_func (); below.
8631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8632 <limits.h> exists even on freestanding compilers. */
8635 # include <limits.h>
8637 # include <assert.h>
8642 /* Override any gcc2 internal prototype to avoid an error. */
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8650 /* The GNU C library defines this for functions which it implements
8651 to always fail with ENOSYS. Some functions are actually named
8652 something starting with __ and the normal name is an alias. */
8653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8656 char (*f) () = $ac_func;
8665 return f != $ac_func;
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>conftest.er1
8674 grep -v '^ *+' conftest.er1 >conftest.err
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; } &&
8685 { ac_try='test -s conftest$ac_exeext'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; }; then
8691 eval "$as_ac_var=yes"
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 eval "$as_ac_var=no"
8698 rm -f conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8703 if test `eval echo '${'$as_ac_var'}'` = yes; then
8704 cat >>confdefs.h <<_ACEOF
8705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8717 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8718 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8719 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8720 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 #include <sys/types.h>
8742 rm -f conftest.$ac_objext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8744 (eval $ac_compile) 2>conftest.er1
8746 grep -v '^ *+' conftest.er1 >conftest.err
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest.$ac_objext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 eval "$as_ac_Header=yes"
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 eval "$as_ac_Header=no"
8770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8775 cat >>confdefs.h <<_ACEOF
8776 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8779 ac_header_dirent=$ac_hdr; break
8783 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8784 if test $ac_header_dirent = dirent.h; then
8785 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8786 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8787 if test "${ac_cv_search_opendir+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 ac_func_search_save_LIBS=$LIBS
8791 ac_cv_search_opendir=no
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8799 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; } &&
8829 { ac_try='test -s conftest$ac_exeext'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 ac_cv_search_opendir="none required"
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8841 rm -f conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8843 if test "$ac_cv_search_opendir" = no; then
8844 for ac_lib in dir; do
8845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8846 cat >conftest.$ac_ext <<_ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8853 /* Override any gcc2 internal prototype to avoid an error. */
8857 /* We use char because int might match the return type of a gcc2
8858 builtin and then its argument prototype would still apply. */
8868 rm -f conftest.$ac_objext conftest$ac_exeext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8870 (eval $ac_link) 2>conftest.er1
8872 grep -v '^ *+' conftest.er1 >conftest.err
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try='test -z "$ac_c_werror_flag" || 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 ac_cv_search_opendir="-l$ac_lib"
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8896 rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_func_search_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8903 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8904 if test "$ac_cv_search_opendir" != no; then
8905 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8910 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8911 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8912 if test "${ac_cv_search_opendir+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 ac_func_search_save_LIBS=$LIBS
8916 ac_cv_search_opendir=no
8917 cat >conftest.$ac_ext <<_ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8924 /* Override any gcc2 internal prototype to avoid an error. */
8928 /* We use char because int might match the return type of a gcc2
8929 builtin and then its argument prototype would still apply. */
8939 rm -f conftest.$ac_objext conftest$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941 (eval $ac_link) 2>conftest.er1
8943 grep -v '^ *+' conftest.er1 >conftest.err
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest$ac_exeext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_search_opendir="none required"
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8966 rm -f conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 if test "$ac_cv_search_opendir" = no; then
8970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8971 cat >conftest.$ac_ext <<_ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8978 /* Override any gcc2 internal prototype to avoid an error. */
8982 /* We use char because int might match the return type of a gcc2
8983 builtin and then its argument prototype would still apply. */
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8997 grep -v '^ *+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_cv_search_opendir="-l$ac_lib"
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9021 rm -f conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9025 LIBS=$ac_func_search_save_LIBS
9027 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9028 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9029 if test "$ac_cv_search_opendir" != no; then
9030 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9037 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9038 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9039 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 cat >conftest.$ac_ext <<_ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9052 extern int getopt (int, char *const*, const char *);
9057 rm -f conftest.$ac_objext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059 (eval $ac_compile) 2>conftest.er1
9061 grep -v '^ *+' conftest.er1 >conftest.err
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; } &&
9072 { ac_try='test -s conftest.$ac_objext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ld_cv_decl_getopt_unistd_h=yes
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9083 ld_cv_decl_getopt_unistd_h=no
9085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9088 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
9089 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
9090 if test $ld_cv_decl_getopt_unistd_h = yes; then
9092 cat >>confdefs.h <<\_ACEOF
9093 #define HAVE_DECL_GETOPT 1
9100 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9102 cat >>confdefs.h <<\_ACEOF
9103 #define USE_BINARY_FOPEN 1
9108 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9109 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9110 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 cat >conftest.$ac_ext <<_ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9121 #ifdef HAVE_STRING_H
9124 #ifdef HAVE_STRINGS_H
9125 #include <strings.h>
9128 #ifdef HAVE_STDLIB_H
9131 #ifdef HAVE_UNISTD_H
9137 char *(*pfn) = (char *(*)) strstr
9142 rm -f conftest.$ac_objext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9144 (eval $ac_compile) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1 >conftest.err
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; } &&
9157 { ac_try='test -s conftest.$ac_objext'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; }; then
9163 bfd_cv_decl_needed_strstr=no
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 bfd_cv_decl_needed_strstr=yes
9170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9173 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9174 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9175 if test $bfd_cv_decl_needed_strstr = yes; then
9177 cat >>confdefs.h <<\_ACEOF
9178 #define NEED_DECLARATION_STRSTR 1
9183 echo "$as_me:$LINENO: checking whether free must be declared" >&5
9184 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9185 if test "${bfd_cv_decl_needed_free+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 cat >conftest.$ac_ext <<_ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9196 #ifdef HAVE_STRING_H
9199 #ifdef HAVE_STRINGS_H
9200 #include <strings.h>
9203 #ifdef HAVE_STDLIB_H
9206 #ifdef HAVE_UNISTD_H
9212 char *(*pfn) = (char *(*)) free
9217 rm -f conftest.$ac_objext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9219 (eval $ac_compile) 2>conftest.er1
9221 grep -v '^ *+' conftest.er1 >conftest.err
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest.$ac_objext'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 bfd_cv_decl_needed_free=no
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 bfd_cv_decl_needed_free=yes
9245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9249 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
9250 if test $bfd_cv_decl_needed_free = yes; then
9252 cat >>confdefs.h <<\_ACEOF
9253 #define NEED_DECLARATION_FREE 1
9258 echo "$as_me:$LINENO: checking whether sbrk must be declared" >&5
9259 echo $ECHO_N "checking whether sbrk must be declared... $ECHO_C" >&6
9260 if test "${bfd_cv_decl_needed_sbrk+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9271 #ifdef HAVE_STRING_H
9274 #ifdef HAVE_STRINGS_H
9275 #include <strings.h>
9278 #ifdef HAVE_STDLIB_H
9281 #ifdef HAVE_UNISTD_H
9287 char *(*pfn) = (char *(*)) sbrk
9292 rm -f conftest.$ac_objext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9294 (eval $ac_compile) 2>conftest.er1
9296 grep -v '^ *+' conftest.er1 >conftest.err
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } &&
9301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; } &&
9307 { ac_try='test -s conftest.$ac_objext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 bfd_cv_decl_needed_sbrk=no
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9318 bfd_cv_decl_needed_sbrk=yes
9320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9323 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_sbrk" >&5
9324 echo "${ECHO_T}$bfd_cv_decl_needed_sbrk" >&6
9325 if test $bfd_cv_decl_needed_sbrk = yes; then
9327 cat >>confdefs.h <<\_ACEOF
9328 #define NEED_DECLARATION_SBRK 1
9333 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9334 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9335 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9346 #ifdef HAVE_STRING_H
9349 #ifdef HAVE_STRINGS_H
9350 #include <strings.h>
9353 #ifdef HAVE_STDLIB_H
9356 #ifdef HAVE_UNISTD_H
9362 char *(*pfn) = (char *(*)) getenv
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369 (eval $ac_compile) 2>conftest.er1
9371 grep -v '^ *+' conftest.er1 >conftest.err
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest.$ac_objext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 bfd_cv_decl_needed_getenv=no
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 bfd_cv_decl_needed_getenv=yes
9395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9398 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9399 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
9400 if test $bfd_cv_decl_needed_getenv = yes; then
9402 cat >>confdefs.h <<\_ACEOF
9403 #define NEED_DECLARATION_GETENV 1
9408 echo "$as_me:$LINENO: checking whether environ must be declared" >&5
9409 echo $ECHO_N "checking whether environ must be declared... $ECHO_C" >&6
9410 if test "${bfd_cv_decl_needed_environ+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 cat >conftest.$ac_ext <<_ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9421 #ifdef HAVE_STRING_H
9424 #ifdef HAVE_STRINGS_H
9425 #include <strings.h>
9428 #ifdef HAVE_STDLIB_H
9431 #ifdef HAVE_UNISTD_H
9437 char *(*pfn) = (char *(*)) environ
9442 rm -f conftest.$ac_objext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9444 (eval $ac_compile) 2>conftest.er1
9446 grep -v '^ *+' conftest.er1 >conftest.err
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } &&
9451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; } &&
9457 { ac_try='test -s conftest.$ac_objext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 bfd_cv_decl_needed_environ=no
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 bfd_cv_decl_needed_environ=yes
9470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9473 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_environ" >&5
9474 echo "${ECHO_T}$bfd_cv_decl_needed_environ" >&6
9475 if test $bfd_cv_decl_needed_environ = yes; then
9477 cat >>confdefs.h <<\_ACEOF
9478 #define NEED_DECLARATION_ENVIRON 1
9484 # When converting linker scripts into strings for use in emulation
9485 # files, use astring.sed if the compiler supports ANSI string
9486 # concatenation, or ostring.sed otherwise. This is to support the
9487 # broken Microsoft MSVC compiler, which limits the length of string
9488 # constants, while still supporting pre-ANSI compilers which do not
9489 # support string concatenation.
9490 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
9491 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
9492 if test "${ld_cv_string_concatenation+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 cat >conftest.$ac_ext <<_ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9510 rm -f conftest.$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512 (eval $ac_compile) 2>conftest.er1
9514 grep -v '^ *+' conftest.er1 >conftest.err
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } &&
9519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest.$ac_objext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ld_cv_string_concatenation=yes
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 ld_cv_string_concatenation=no
9538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9541 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
9542 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
9543 if test "$ld_cv_string_concatenation" = "yes"; then
9544 STRINGIFY=astring.sed
9546 STRINGIFY=ostring.sed
9550 # target-specific stuff:
9560 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9562 if test "$targ_alias" = "all"; then
9565 # Canonicalize the secondary target names.
9566 result=`$ac_config_sub $targ_alias 2>/dev/null`
9567 if test -n "$result"; then
9573 . ${srcdir}/configure.tgt
9575 if test "$targ" = "$target"; then
9579 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
9580 case " $all_emuls " in
9583 all_emuls="$all_emuls e${i}.o"
9584 eval result=\$tdir_$i
9585 test -z "$result" && result=$targ_alias
9586 echo tdir_$i=$result >> tdirs
9591 for i in $targ_emul $targ_extra_libpath; do
9592 case " $all_libpath " in
9595 if test -z "$all_libpath"; then
9598 all_libpath="$all_libpath ${i}"
9604 for i in $targ_extra_ofiles; do
9605 case " $all_emul_extras " in
9608 all_emul_extras="$all_emul_extras ${i}"
9620 if test x${all_targets} = xtrue; then
9621 if test x${want64} = xtrue; then
9622 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9624 EMULATION_OFILES='$(ALL_EMULATIONS)'
9626 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
9628 EMULATION_OFILES=$all_emuls
9629 EMUL_EXTRA_OFILES=$all_emul_extras
9635 EMULATION_LIBPATH=$all_libpath
9638 if test x${enable_static} = xno; then
9639 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
9641 TESTBFDLIB="../bfd/.libs/libbfd.a"
9645 target_vendor=${target_vendor=$host_vendor}
9646 case "$target_vendor" in
9647 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
9648 *) EXTRA_SHLIB_EXTENSION= ;;
9651 case "$target_os" in
9652 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
9655 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
9657 cat >>confdefs.h <<_ACEOF
9658 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
9663 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
9664 ac_config_commands="$ac_config_commands default"
9665 cat >confcache <<\_ACEOF
9666 # This file is a shell script that caches the results of configure
9667 # tests run on this system so they can be shared between configure
9668 # scripts and configure runs, see configure's option --config-cache.
9669 # It is not useful on other systems. If it contains results you don't
9670 # want to keep, you may remove or edit it.
9672 # config.status only pays attention to the cache file if you give it
9673 # the --recheck option to rerun configure.
9675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9681 # The following way of writing the cache mishandles newlines in values,
9682 # but we know of no workaround that is simple, portable, and efficient.
9683 # So, don't put newlines in cache variables' values.
9684 # Ultrix sh set writes to stderr and can't be redirected directly,
9685 # and sets the high bit in the cache file unless we assign to the vars.
9688 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9690 # `set' does not quote correctly, so add quotes (double-quote
9691 # substitution turns \\\\ into \\, and sed turns \\ into \).
9694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9697 # `set' quotes correctly as required by POSIX, so do not add quotes.
9699 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9708 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9710 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9711 if test -w $cache_file; then
9712 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9713 cat confcache >$cache_file
9715 echo "not updating unwritable cache $cache_file"
9720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9721 # Let make expand exec_prefix.
9722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9724 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9725 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9726 # trailing colons and then remove the whole line if VPATH becomes empty
9727 # (actually we leave an empty line to preserve line numbers).
9728 if test "x$srcdir" = x.; then
9729 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9730 s/:*\$(srcdir):*/:/;
9731 s/:*\${srcdir}:*/:/;
9733 s/^\([^=]*=[ ]*\):*/\1/;
9739 DEFS=-DHAVE_CONFIG_H
9743 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9744 # 1. Remove the extension, and $U if already installed.
9745 ac_i=`echo "$ac_i" |
9746 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9748 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9749 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9753 LTLIBOBJS=$ac_ltlibobjs
9756 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9757 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9758 Usually this means the macro was only invoked conditionally." >&5
9759 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9760 Usually this means the macro was only invoked conditionally." >&2;}
9761 { (exit 1); exit 1; }; }
9763 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9764 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9765 Usually this means the macro was only invoked conditionally." >&5
9766 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9767 Usually this means the macro was only invoked conditionally." >&2;}
9768 { (exit 1); exit 1; }; }
9770 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9771 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9772 Usually this means the macro was only invoked conditionally." >&5
9773 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9774 Usually this means the macro was only invoked conditionally." >&2;}
9775 { (exit 1); exit 1; }; }
9778 : ${CONFIG_STATUS=./config.status}
9779 ac_clean_files_save=$ac_clean_files
9780 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9781 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9782 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9783 cat >$CONFIG_STATUS <<_ACEOF
9785 # Generated by $as_me.
9786 # Run this file to recreate the current configuration.
9787 # Compiler output produced by configure, useful for debugging
9788 # configure, is in config.log if it exists.
9793 SHELL=\${CONFIG_SHELL-$SHELL}
9796 cat >>$CONFIG_STATUS <<\_ACEOF
9797 ## --------------------- ##
9798 ## M4sh Initialization. ##
9799 ## --------------------- ##
9801 # Be Bourne compatible
9802 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9805 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9806 # is contrary to our usage. Disable this feature.
9807 alias -g '${1+"$@"}'='"$@"'
9808 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9811 DUALCASE=1; export DUALCASE # for MKS sh
9813 # Support unset when possible.
9814 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9821 # Work around bugs in pre-3.0 UWIN ksh.
9822 $as_unset ENV MAIL MAILPATH
9829 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9830 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9831 LC_TELEPHONE LC_TIME
9833 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9834 eval $as_var=C; export $as_var
9840 # Required to use basename.
9841 if expr a : '\(a\)' >/dev/null 2>&1; then
9847 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9848 as_basename=basename
9854 # Name of the executable.
9855 as_me=`$as_basename "$0" ||
9856 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9857 X"$0" : 'X\(//\)$' \| \
9858 X"$0" : 'X\(/\)$' \| \
9859 . : '\(.\)' 2>/dev/null ||
9861 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9862 /^X\/\(\/\/\)$/{ s//\1/; q; }
9863 /^X\/\(\/\).*/{ s//\1/; q; }
9867 # PATH needs CR, and LINENO needs CR and PATH.
9868 # Avoid depending upon Character Ranges.
9869 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9870 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9871 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9872 as_cr_digits='0123456789'
9873 as_cr_alnum=$as_cr_Letters$as_cr_digits
9875 # The user is always right.
9876 if test "${PATH_SEPARATOR+set}" != set; then
9877 echo "#! /bin/sh" >conf$$.sh
9878 echo "exit 0" >>conf$$.sh
9880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9891 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9892 test "x$as_lineno_1" != "x$as_lineno_2" &&
9893 test "x$as_lineno_3" = "x$as_lineno_2" || {
9894 # Find who we are. Look in the path if we contain no path at all
9897 *[\\/]* ) as_myself=$0 ;;
9898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 test -z "$as_dir" && as_dir=.
9903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9908 # We did not find ourselves, most probably we were run as `sh COMMAND'
9909 # in which case we are not to be found in the path.
9910 if test "x$as_myself" = x; then
9913 if test ! -f "$as_myself"; then
9914 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9915 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9916 { (exit 1); exit 1; }; }
9918 case $CONFIG_SHELL in
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9924 test -z "$as_dir" && as_dir=.
9925 for as_base in sh bash ksh sh5; do
9928 if ("$as_dir/$as_base" -c '
9931 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9932 test "x$as_lineno_1" != "x$as_lineno_2" &&
9933 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9934 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9935 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9936 CONFIG_SHELL=$as_dir/$as_base
9938 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9946 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9947 # uniformly replaced by the line number. The first 'sed' inserts a
9948 # line-number line before each line; the second 'sed' does the real
9949 # work. The second script uses 'N' to pair each line-number line
9950 # with the numbered line, and appends trailing '-' during
9951 # substitution so that $LINENO is not a special case at line end.
9952 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9953 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9954 sed '=' <$as_myself |
9959 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9962 s,^['$as_cr_digits']*\n,,
9964 chmod +x $as_me.lineno ||
9965 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9966 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9967 { (exit 1); exit 1; }; }
9969 # Don't try to exec as it changes $[0], causing all sort of problems
9970 # (the dirname of $[0] is not the place where we might find the
9971 # original and so on. Autoconf is especially sensible to this).
9973 # Exit status is that of the last command.
9978 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9979 *c*,-n*) ECHO_N= ECHO_C='
9981 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9982 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9985 if expr a : '\(a\)' >/dev/null 2>&1; then
9991 rm -f conf$$ conf$$.exe conf$$.file
9993 if ln -s conf$$.file conf$$ 2>/dev/null; then
9994 # We could just check for DJGPP; but this test a) works b) is more generic
9995 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9996 if test -f conf$$.exe; then
9997 # Don't use ln at all; we don't have any links
10002 elif ln conf$$.file conf$$ 2>/dev/null; then
10007 rm -f conf$$ conf$$.exe conf$$.file
10009 if mkdir -p . 2>/dev/null; then
10012 test -d ./-p && rmdir ./-p
10016 as_executable_p="test -f"
10018 # Sed expression to map a string onto a valid CPP name.
10019 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10021 # Sed expression to map a string onto a valid variable name.
10022 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10026 # We need space, tab and new line, in precisely that order.
10036 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10037 # report actual input values of CONFIG_FILES etc. instead of their
10038 # values after options handling. Logging --version etc. is OK.
10042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10043 ## Running $as_me. ##
10048 This file was extended by $as_me, which was
10049 generated by GNU Autoconf 2.59. Invocation command line was
10051 CONFIG_FILES = $CONFIG_FILES
10052 CONFIG_HEADERS = $CONFIG_HEADERS
10053 CONFIG_LINKS = $CONFIG_LINKS
10054 CONFIG_COMMANDS = $CONFIG_COMMANDS
10058 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10062 # Files that config.status was made for.
10063 if test -n "$ac_config_files"; then
10064 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10067 if test -n "$ac_config_headers"; then
10068 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10071 if test -n "$ac_config_links"; then
10072 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10075 if test -n "$ac_config_commands"; then
10076 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10079 cat >>$CONFIG_STATUS <<\_ACEOF
10082 \`$as_me' instantiates files from templates according to the
10083 current configuration.
10085 Usage: $0 [OPTIONS] [FILE]...
10087 -h, --help print this help, then exit
10088 -V, --version print version number, then exit
10089 -q, --quiet do not print progress messages
10090 -d, --debug don't remove temporary files
10091 --recheck update $as_me by reconfiguring in the same conditions
10092 --file=FILE[:TEMPLATE]
10093 instantiate the configuration file FILE
10094 --header=FILE[:TEMPLATE]
10095 instantiate the configuration header FILE
10097 Configuration files:
10100 Configuration headers:
10103 Configuration commands:
10106 Report bugs to <bug-autoconf@gnu.org>."
10109 cat >>$CONFIG_STATUS <<_ACEOF
10112 configured by $0, generated by GNU Autoconf 2.59,
10113 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10115 Copyright (C) 2003 Free Software Foundation, Inc.
10116 This config.status script is free software; the Free Software Foundation
10117 gives unlimited permission to copy, distribute and modify it."
10122 cat >>$CONFIG_STATUS <<\_ACEOF
10123 # If no file are specified by the user, then we need to provide default
10124 # value. By we need to know if files were specified by the user.
10130 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10131 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10139 *) # This is not an option, so the user has probably given explicit
10142 ac_need_defaults=false;;
10146 # Handling of the options.
10148 cat >>$CONFIG_STATUS <<\_ACEOF
10149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10151 --version | --vers* | -V )
10152 echo "$ac_cs_version"; exit 0 ;;
10154 # Conflict between --help and --header
10155 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10156 Try \`$0 --help' for more information." >&5
10157 echo "$as_me: error: ambiguous option: $1
10158 Try \`$0 --help' for more information." >&2;}
10159 { (exit 1); exit 1; }; };;
10160 --help | --hel | -h )
10161 echo "$ac_cs_usage"; exit 0 ;;
10162 --debug | --d* | -d )
10164 --file | --fil | --fi | --f )
10166 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10167 ac_need_defaults=false;;
10168 --header | --heade | --head | --hea )
10170 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10171 ac_need_defaults=false;;
10172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10173 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10176 # This is an error.
10177 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10178 Try \`$0 --help' for more information." >&5
10179 echo "$as_me: error: unrecognized option: $1
10180 Try \`$0 --help' for more information." >&2;}
10181 { (exit 1); exit 1; }; } ;;
10183 *) ac_config_targets="$ac_config_targets $1" ;;
10189 ac_configure_extra_args=
10191 if $ac_cs_silent; then
10193 ac_configure_extra_args="$ac_configure_extra_args --silent"
10197 cat >>$CONFIG_STATUS <<_ACEOF
10198 if \$ac_cs_recheck; then
10199 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10200 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10205 cat >>$CONFIG_STATUS <<_ACEOF
10207 # INIT-COMMANDS section.
10210 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10216 cat >>$CONFIG_STATUS <<\_ACEOF
10217 for ac_config_target in $ac_config_targets
10219 case "$ac_config_target" in
10220 # Handling of arguments.
10221 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10222 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10223 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10224 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10225 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10226 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10227 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10228 { (exit 1); exit 1; }; };;
10232 # If the user did not use the arguments to specify the items to instantiate,
10233 # then the envvar interface is used. Set only those that are not.
10234 # We use the long form for the default assignment because of an extremely
10235 # bizarre bug on SunOS 4.1.3.
10236 if $ac_need_defaults; then
10237 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10238 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10239 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10242 # Have a temporary directory for convenience. Make it in the build tree
10243 # simply because there is no reason to put it here, and in addition,
10244 # creating and moving files from /tmp can sometimes cause problems.
10245 # Create a temporary directory, and hook for its removal unless debugging.
10248 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10249 trap '{ (exit 1); exit 1; }' 1 2 13 15
10252 # Create a (secure) tmp directory for tmp files.
10255 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10256 test -n "$tmp" && test -d "$tmp"
10259 tmp=./confstat$$-$RANDOM
10260 (umask 077 && mkdir $tmp)
10263 echo "$me: cannot create a temporary directory in ." >&2
10264 { (exit 1); exit 1; }
10269 cat >>$CONFIG_STATUS <<_ACEOF
10272 # CONFIG_FILES section.
10275 # No need to generate the scripts if there are no CONFIG_FILES.
10276 # This happens for instance when ./config.status config.h
10277 if test -n "\$CONFIG_FILES"; then
10278 # Protect against being on the right side of a sed subst in config.status.
10279 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10280 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10281 s,@SHELL@,$SHELL,;t t
10282 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10283 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10284 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10285 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10286 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10287 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10288 s,@exec_prefix@,$exec_prefix,;t t
10289 s,@prefix@,$prefix,;t t
10290 s,@program_transform_name@,$program_transform_name,;t t
10291 s,@bindir@,$bindir,;t t
10292 s,@sbindir@,$sbindir,;t t
10293 s,@libexecdir@,$libexecdir,;t t
10294 s,@datadir@,$datadir,;t t
10295 s,@sysconfdir@,$sysconfdir,;t t
10296 s,@sharedstatedir@,$sharedstatedir,;t t
10297 s,@localstatedir@,$localstatedir,;t t
10298 s,@libdir@,$libdir,;t t
10299 s,@includedir@,$includedir,;t t
10300 s,@oldincludedir@,$oldincludedir,;t t
10301 s,@infodir@,$infodir,;t t
10302 s,@mandir@,$mandir,;t t
10303 s,@build_alias@,$build_alias,;t t
10304 s,@host_alias@,$host_alias,;t t
10305 s,@target_alias@,$target_alias,;t t
10306 s,@DEFS@,$DEFS,;t t
10307 s,@ECHO_C@,$ECHO_C,;t t
10308 s,@ECHO_N@,$ECHO_N,;t t
10309 s,@ECHO_T@,$ECHO_T,;t t
10310 s,@LIBS@,$LIBS,;t t
10311 s,@build@,$build,;t t
10312 s,@build_cpu@,$build_cpu,;t t
10313 s,@build_vendor@,$build_vendor,;t t
10314 s,@build_os@,$build_os,;t t
10315 s,@host@,$host,;t t
10316 s,@host_cpu@,$host_cpu,;t t
10317 s,@host_vendor@,$host_vendor,;t t
10318 s,@host_os@,$host_os,;t t
10319 s,@target@,$target,;t t
10320 s,@target_cpu@,$target_cpu,;t t
10321 s,@target_vendor@,$target_vendor,;t t
10322 s,@target_os@,$target_os,;t t
10324 s,@CFLAGS@,$CFLAGS,;t t
10325 s,@LDFLAGS@,$LDFLAGS,;t t
10326 s,@CPPFLAGS@,$CPPFLAGS,;t t
10327 s,@ac_ct_CC@,$ac_ct_CC,;t t
10328 s,@EXEEXT@,$EXEEXT,;t t
10329 s,@OBJEXT@,$OBJEXT,;t t
10330 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10331 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10332 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10333 s,@CYGPATH_W@,$CYGPATH_W,;t t
10334 s,@PACKAGE@,$PACKAGE,;t t
10335 s,@VERSION@,$VERSION,;t t
10336 s,@ACLOCAL@,$ACLOCAL,;t t
10337 s,@AUTOCONF@,$AUTOCONF,;t t
10338 s,@AUTOMAKE@,$AUTOMAKE,;t t
10339 s,@AUTOHEADER@,$AUTOHEADER,;t t
10340 s,@MAKEINFO@,$MAKEINFO,;t t
10341 s,@install_sh@,$install_sh,;t t
10342 s,@STRIP@,$STRIP,;t t
10343 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10344 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10345 s,@mkdir_p@,$mkdir_p,;t t
10347 s,@SET_MAKE@,$SET_MAKE,;t t
10348 s,@am__leading_dot@,$am__leading_dot,;t t
10349 s,@AMTAR@,$AMTAR,;t t
10350 s,@am__tar@,$am__tar,;t t
10351 s,@am__untar@,$am__untar,;t t
10352 s,@DEPDIR@,$DEPDIR,;t t
10353 s,@am__include@,$am__include,;t t
10354 s,@am__quote@,$am__quote,;t t
10355 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10356 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10357 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10358 s,@CCDEPMODE@,$CCDEPMODE,;t t
10359 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10360 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10361 s,@LN_S@,$LN_S,;t t
10362 s,@RANLIB@,$RANLIB,;t t
10363 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10364 s,@LIBTOOL@,$LIBTOOL,;t t
10365 s,@use_sysroot@,$use_sysroot,;t t
10366 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
10367 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
10368 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10369 s,@NO_WERROR@,$NO_WERROR,;t t
10371 s,@EGREP@,$EGREP,;t t
10372 s,@ALLOCA@,$ALLOCA,;t t
10373 s,@USE_NLS@,$USE_NLS,;t t
10374 s,@MSGFMT@,$MSGFMT,;t t
10375 s,@GMSGFMT@,$GMSGFMT,;t t
10376 s,@XGETTEXT@,$XGETTEXT,;t t
10377 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10378 s,@CATALOGS@,$CATALOGS,;t t
10379 s,@CATOBJEXT@,$CATOBJEXT,;t t
10380 s,@DATADIRNAME@,$DATADIRNAME,;t t
10381 s,@GMOFILES@,$GMOFILES,;t t
10382 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10383 s,@INTLDEPS@,$INTLDEPS,;t t
10384 s,@INTLLIBS@,$INTLLIBS,;t t
10385 s,@INTLOBJS@,$INTLOBJS,;t t
10386 s,@POFILES@,$POFILES,;t t
10387 s,@POSUB@,$POSUB,;t t
10388 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10389 s,@GT_NO@,$GT_NO,;t t
10390 s,@GT_YES@,$GT_YES,;t t
10391 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10393 s,@YACC@,$YACC,;t t
10395 s,@LEXLIB@,$LEXLIB,;t t
10396 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10397 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10398 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10399 s,@MAINT@,$MAINT,;t t
10400 s,@HDEFINES@,$HDEFINES,;t t
10401 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
10402 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
10403 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
10404 s,@STRINGIFY@,$STRINGIFY,;t t
10405 s,@EMUL@,$EMUL,;t t
10406 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
10407 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
10408 s,@LIB_PATH@,$LIB_PATH,;t t
10409 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
10410 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
10411 s,@LIBOBJS@,$LIBOBJS,;t t
10412 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10419 cat >>$CONFIG_STATUS <<\_ACEOF
10420 # Split the substitutions into bite-sized pieces for seds with
10421 # small command number limits, like on Digital OSF/1 and HP-UX.
10422 ac_max_sed_lines=48
10423 ac_sed_frag=1 # Number of current file.
10424 ac_beg=1 # First line for current file.
10425 ac_end=$ac_max_sed_lines # Line after last line for current file.
10428 while $ac_more_lines; do
10429 if test $ac_beg -gt 1; then
10430 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10432 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10434 if test ! -s $tmp/subs.frag; then
10435 ac_more_lines=false
10437 # The purpose of the label and of the branching condition is to
10438 # speed up the sed processing (if there are no `@' at all, there
10439 # is no need to browse any of the substitutions).
10440 # These are the two extra sed commands mentioned above.
10442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10443 if test -z "$ac_sed_cmds"; then
10444 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10446 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10448 ac_sed_frag=`expr $ac_sed_frag + 1`
10450 ac_end=`expr $ac_end + $ac_max_sed_lines`
10453 if test -z "$ac_sed_cmds"; then
10456 fi # test -n "$CONFIG_FILES"
10459 cat >>$CONFIG_STATUS <<\_ACEOF
10460 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10461 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10463 - | *:- | *:-:* ) # input from stdin
10465 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10467 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10469 * ) ac_file_in=$ac_file.in ;;
10472 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10473 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10475 X"$ac_file" : 'X\(//\)[^/]' \| \
10476 X"$ac_file" : 'X\(//\)$' \| \
10477 X"$ac_file" : 'X\(/\)' \| \
10478 . : '\(.\)' 2>/dev/null ||
10480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10482 /^X\(\/\/\)$/{ s//\1/; q; }
10483 /^X\(\/\).*/{ s//\1/; q; }
10485 { if $as_mkdir_p; then
10490 while test ! -d "$as_dir"; do
10491 as_dirs="$as_dir $as_dirs"
10492 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10494 X"$as_dir" : 'X\(//\)[^/]' \| \
10495 X"$as_dir" : 'X\(//\)$' \| \
10496 X"$as_dir" : 'X\(/\)' \| \
10497 . : '\(.\)' 2>/dev/null ||
10499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10501 /^X\(\/\/\)$/{ s//\1/; q; }
10502 /^X\(\/\).*/{ s//\1/; q; }
10505 test ! -n "$as_dirs" || mkdir $as_dirs
10506 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10507 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10508 { (exit 1); exit 1; }; }; }
10512 if test "$ac_dir" != .; then
10513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10514 # A "../" for each directory in $ac_dir_suffix.
10515 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10517 ac_dir_suffix= ac_top_builddir=
10521 .) # No --srcdir option. We are building in place.
10523 if test -z "$ac_top_builddir"; then
10526 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10528 [\\/]* | ?:[\\/]* ) # Absolute path.
10529 ac_srcdir=$srcdir$ac_dir_suffix;
10530 ac_top_srcdir=$srcdir ;;
10531 *) # Relative path.
10532 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10533 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10536 # Do not use `cd foo && pwd` to compute absolute paths, because
10537 # the directories may not exist.
10539 .) ac_abs_builddir="$ac_dir";;
10542 .) ac_abs_builddir=`pwd`;;
10543 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10544 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10547 case $ac_abs_builddir in
10548 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10550 case ${ac_top_builddir}. in
10551 .) ac_abs_top_builddir=$ac_abs_builddir;;
10552 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10553 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10556 case $ac_abs_builddir in
10557 .) ac_abs_srcdir=$ac_srcdir;;
10560 .) ac_abs_srcdir=$ac_abs_builddir;;
10561 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10562 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10565 case $ac_abs_builddir in
10566 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10568 case $ac_top_srcdir in
10569 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10570 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10571 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10577 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10578 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10581 # Let's still pretend it is `configure' which instantiates (i.e., don't
10582 # use $as_me), people would be surprised to read:
10583 # /* config.h. Generated by config.status. */
10584 if test x"$ac_file" = x-; then
10587 configure_input="$ac_file. "
10589 configure_input=$configure_input"Generated from `echo $ac_file_in |
10590 sed 's,.*/,,'` by configure."
10592 # First look for the input files in the build tree, otherwise in the
10594 ac_file_inputs=`IFS=:
10595 for f in $ac_file_in; do
10597 -) echo $tmp/stdin ;;
10599 # Absolute (can't be DOS-style, as IFS=:)
10600 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10601 echo "$as_me: error: cannot find input file: $f" >&2;}
10602 { (exit 1); exit 1; }; }
10605 if test -f "$f"; then
10608 elif test -f "$srcdir/$f"; then
10613 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10614 echo "$as_me: error: cannot find input file: $f" >&2;}
10615 { (exit 1); exit 1; }; }
10618 done` || { (exit 1); exit 1; }
10620 if test x"$ac_file" != x-; then
10621 { echo "$as_me:$LINENO: creating $ac_file" >&5
10622 echo "$as_me: creating $ac_file" >&6;}
10626 cat >>$CONFIG_STATUS <<_ACEOF
10630 cat >>$CONFIG_STATUS <<\_ACEOF
10632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10633 s,@configure_input@,$configure_input,;t t
10634 s,@srcdir@,$ac_srcdir,;t t
10635 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10636 s,@top_srcdir@,$ac_top_srcdir,;t t
10637 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10638 s,@builddir@,$ac_builddir,;t t
10639 s,@abs_builddir@,$ac_abs_builddir,;t t
10640 s,@top_builddir@,$ac_top_builddir,;t t
10641 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10642 s,@INSTALL@,$ac_INSTALL,;t t
10643 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10645 if test x"$ac_file" != x-; then
10646 mv $tmp/out $ac_file
10654 cat >>$CONFIG_STATUS <<\_ACEOF
10657 # CONFIG_HEADER section.
10660 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10661 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10663 # ac_d sets the value in "#define NAME VALUE" lines.
10664 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10665 ac_dB='[ ].*$,\1#\2'
10668 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10669 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10670 ac_uB='$,\1#\2define\3'
10674 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10675 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10677 - | *:- | *:-:* ) # input from stdin
10679 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10680 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10681 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10682 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10683 * ) ac_file_in=$ac_file.in ;;
10686 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10687 echo "$as_me: creating $ac_file" >&6;}
10689 # First look for the input files in the build tree, otherwise in the
10691 ac_file_inputs=`IFS=:
10692 for f in $ac_file_in; do
10694 -) echo $tmp/stdin ;;
10696 # Absolute (can't be DOS-style, as IFS=:)
10697 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10698 echo "$as_me: error: cannot find input file: $f" >&2;}
10699 { (exit 1); exit 1; }; }
10700 # Do quote $f, to prevent DOS paths from being IFS'd.
10703 if test -f "$f"; then
10706 elif test -f "$srcdir/$f"; then
10711 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10712 echo "$as_me: error: cannot find input file: $f" >&2;}
10713 { (exit 1); exit 1; }; }
10716 done` || { (exit 1); exit 1; }
10717 # Remove the trailing spaces.
10718 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10722 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10723 # `conftest.undefs', that substitutes the proper values into
10724 # config.h.in to produce config.h. The first handles `#define'
10725 # templates, and the second `#undef' templates.
10726 # And first: Protect against being on the right side of a sed subst in
10727 # config.status. Protect against being in an unquoted here document
10728 # in config.status.
10729 rm -f conftest.defines conftest.undefs
10730 # Using a here document instead of a string reduces the quoting nightmare.
10731 # Putting comments in sed scripts is not portable.
10733 # `end' is used to avoid that the second main sed command (meant for
10734 # 0-ary CPP macros) applies to n-ary macro definitions.
10735 # See the Autoconf documentation for `clear'.
10736 cat >confdef2sed.sed <<\_ACEOF
10741 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10743 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10746 # If some macros were called several times there might be several times
10747 # the same #defines, which is useless. Nevertheless, we may not want to
10748 # sort them, since we want the *last* AC-DEFINE to be honored.
10749 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10750 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10751 rm -f confdef2sed.sed
10753 # This sed command replaces #undef with comments. This is necessary, for
10754 # example, in the case of _POSIX_SOURCE, which is predefined and required
10755 # on some systems where configure will not decide to define it.
10756 cat >>conftest.undefs <<\_ACEOF
10757 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10760 # Break up conftest.defines because some shells have a limit on the size
10761 # of here documents, and old seds have small limits too (100 cmds).
10762 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10763 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10764 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10765 echo ' :' >>$CONFIG_STATUS
10766 rm -f conftest.tail
10767 while grep . conftest.defines >/dev/null
10769 # Write a limited-size here document to $tmp/defines.sed.
10770 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10771 # Speed up: don't consider the non `#define' lines.
10772 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10773 # Work around the forget-to-reset-the-flag bug.
10774 echo 't clr' >>$CONFIG_STATUS
10775 echo ': clr' >>$CONFIG_STATUS
10776 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10778 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10780 mv $tmp/out $tmp/in
10782 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10783 rm -f conftest.defines
10784 mv conftest.tail conftest.defines
10786 rm -f conftest.defines
10787 echo ' fi # grep' >>$CONFIG_STATUS
10788 echo >>$CONFIG_STATUS
10790 # Break up conftest.undefs because some shells have a limit on the size
10791 # of here documents, and old seds have small limits too (100 cmds).
10792 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10793 rm -f conftest.tail
10794 while grep . conftest.undefs >/dev/null
10796 # Write a limited-size here document to $tmp/undefs.sed.
10797 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10798 # Speed up: don't consider the non `#undef'
10799 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10800 # Work around the forget-to-reset-the-flag bug.
10801 echo 't clr' >>$CONFIG_STATUS
10802 echo ': clr' >>$CONFIG_STATUS
10803 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10805 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10807 mv $tmp/out $tmp/in
10809 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10810 rm -f conftest.undefs
10811 mv conftest.tail conftest.undefs
10813 rm -f conftest.undefs
10815 cat >>$CONFIG_STATUS <<\_ACEOF
10816 # Let's still pretend it is `configure' which instantiates (i.e., don't
10817 # use $as_me), people would be surprised to read:
10818 # /* config.h. Generated by config.status. */
10819 if test x"$ac_file" = x-; then
10820 echo "/* Generated by configure. */" >$tmp/config.h
10822 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10824 cat $tmp/in >>$tmp/config.h
10826 if test x"$ac_file" != x-; then
10827 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10828 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10829 echo "$as_me: $ac_file is unchanged" >&6;}
10831 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10833 X"$ac_file" : 'X\(//\)[^/]' \| \
10834 X"$ac_file" : 'X\(//\)$' \| \
10835 X"$ac_file" : 'X\(/\)' \| \
10836 . : '\(.\)' 2>/dev/null ||
10838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10840 /^X\(\/\/\)$/{ s//\1/; q; }
10841 /^X\(\/\).*/{ s//\1/; q; }
10843 { if $as_mkdir_p; then
10848 while test ! -d "$as_dir"; do
10849 as_dirs="$as_dir $as_dirs"
10850 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10852 X"$as_dir" : 'X\(//\)[^/]' \| \
10853 X"$as_dir" : 'X\(//\)$' \| \
10854 X"$as_dir" : 'X\(/\)' \| \
10855 . : '\(.\)' 2>/dev/null ||
10857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10859 /^X\(\/\/\)$/{ s//\1/; q; }
10860 /^X\(\/\).*/{ s//\1/; q; }
10863 test ! -n "$as_dirs" || mkdir $as_dirs
10864 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10865 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10866 { (exit 1); exit 1; }; }; }
10869 mv $tmp/config.h $ac_file
10873 rm -f $tmp/config.h
10875 # Compute $ac_file's index in $config_headers.
10877 for _am_header in $config_headers :; do
10878 case $_am_header in
10879 $ac_file | $ac_file:* )
10882 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10885 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10886 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10887 X$ac_file : 'X\(//\)[^/]' \| \
10888 X$ac_file : 'X\(//\)$' \| \
10889 X$ac_file : 'X\(/\)' \| \
10890 . : '\(.\)' 2>/dev/null ||
10892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10894 /^X\(\/\/\)$/{ s//\1/; q; }
10895 /^X\(\/\).*/{ s//\1/; q; }
10896 s/.*/./; q'`/stamp-h$_am_stamp_count
10899 cat >>$CONFIG_STATUS <<\_ACEOF
10902 # CONFIG_COMMANDS section.
10904 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10905 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10906 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10907 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10908 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10909 X"$ac_dest" : 'X\(//\)[^/]' \| \
10910 X"$ac_dest" : 'X\(//\)$' \| \
10911 X"$ac_dest" : 'X\(/\)' \| \
10912 . : '\(.\)' 2>/dev/null ||
10914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10916 /^X\(\/\/\)$/{ s//\1/; q; }
10917 /^X\(\/\).*/{ s//\1/; q; }
10919 { if $as_mkdir_p; then
10924 while test ! -d "$as_dir"; do
10925 as_dirs="$as_dir $as_dirs"
10926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10928 X"$as_dir" : 'X\(//\)[^/]' \| \
10929 X"$as_dir" : 'X\(//\)$' \| \
10930 X"$as_dir" : 'X\(/\)' \| \
10931 . : '\(.\)' 2>/dev/null ||
10933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10935 /^X\(\/\/\)$/{ s//\1/; q; }
10936 /^X\(\/\).*/{ s//\1/; q; }
10939 test ! -n "$as_dirs" || mkdir $as_dirs
10940 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10942 { (exit 1); exit 1; }; }; }
10946 if test "$ac_dir" != .; then
10947 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10948 # A "../" for each directory in $ac_dir_suffix.
10949 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10951 ac_dir_suffix= ac_top_builddir=
10955 .) # No --srcdir option. We are building in place.
10957 if test -z "$ac_top_builddir"; then
10960 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10962 [\\/]* | ?:[\\/]* ) # Absolute path.
10963 ac_srcdir=$srcdir$ac_dir_suffix;
10964 ac_top_srcdir=$srcdir ;;
10965 *) # Relative path.
10966 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10967 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10970 # Do not use `cd foo && pwd` to compute absolute paths, because
10971 # the directories may not exist.
10973 .) ac_abs_builddir="$ac_dir";;
10976 .) ac_abs_builddir=`pwd`;;
10977 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10978 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10981 case $ac_abs_builddir in
10982 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10984 case ${ac_top_builddir}. in
10985 .) ac_abs_top_builddir=$ac_abs_builddir;;
10986 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10987 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10990 case $ac_abs_builddir in
10991 .) ac_abs_srcdir=$ac_srcdir;;
10994 .) ac_abs_srcdir=$ac_abs_builddir;;
10995 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10996 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10999 case $ac_abs_builddir in
11000 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11002 case $ac_top_srcdir in
11003 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11004 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11005 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11010 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11011 echo "$as_me: executing $ac_dest commands" >&6;}
11013 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11014 # Strip MF so we end up with the name of the file.
11015 mf=`echo "$mf" | sed -e 's/:.*$//'`
11016 # Check whether this is an Automake generated Makefile or not.
11017 # We used to match only the files named `Makefile.in', but
11018 # some people rename them; so instead we look at the file content.
11019 # Grep'ing the first line is not enough: some people post-process
11020 # each Makefile.in and add a new line on top of each file to say so.
11021 # So let's grep whole file.
11022 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11023 dirpart=`(dirname "$mf") 2>/dev/null ||
11024 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11025 X"$mf" : 'X\(//\)[^/]' \| \
11026 X"$mf" : 'X\(//\)$' \| \
11027 X"$mf" : 'X\(/\)' \| \
11028 . : '\(.\)' 2>/dev/null ||
11030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11032 /^X\(\/\/\)$/{ s//\1/; q; }
11033 /^X\(\/\).*/{ s//\1/; q; }
11038 # Extract the definition of DEPDIR, am__include, and am__quote
11039 # from the Makefile without running `make'.
11040 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11041 test -z "$DEPDIR" && continue
11042 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11043 test -z "am__include" && continue
11044 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11045 # When using ansi2knr, U may be empty or an underscore; expand it
11046 U=`sed -n 's/^U = //p' < "$mf"`
11047 # Find all dependency output files, they are included files with
11048 # $(DEPDIR) in their names. We invoke sed twice because it is the
11049 # simplest approach to changing $(DEPDIR) to its actual value in the
11051 for file in `sed -n "
11052 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11053 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11054 # Make sure the directory exists.
11055 test -f "$dirpart/$file" && continue
11056 fdir=`(dirname "$file") 2>/dev/null ||
11057 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11058 X"$file" : 'X\(//\)[^/]' \| \
11059 X"$file" : 'X\(//\)$' \| \
11060 X"$file" : 'X\(/\)' \| \
11061 . : '\(.\)' 2>/dev/null ||
11063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11065 /^X\(\/\/\)$/{ s//\1/; q; }
11066 /^X\(\/\).*/{ s//\1/; q; }
11068 { if $as_mkdir_p; then
11069 mkdir -p $dirpart/$fdir
11071 as_dir=$dirpart/$fdir
11073 while test ! -d "$as_dir"; do
11074 as_dirs="$as_dir $as_dirs"
11075 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11077 X"$as_dir" : 'X\(//\)[^/]' \| \
11078 X"$as_dir" : 'X\(//\)$' \| \
11079 X"$as_dir" : 'X\(/\)' \| \
11080 . : '\(.\)' 2>/dev/null ||
11082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11084 /^X\(\/\/\)$/{ s//\1/; q; }
11085 /^X\(\/\).*/{ s//\1/; q; }
11088 test ! -n "$as_dirs" || mkdir $as_dirs
11089 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11090 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11091 { (exit 1); exit 1; }; }; }
11093 # echo "creating $dirpart/$file"
11094 echo '# dummy' > "$dirpart/$file"
11098 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11103 cat >>$CONFIG_STATUS <<\_ACEOF
11105 { (exit 0); exit 0; }
11107 chmod +x $CONFIG_STATUS
11108 ac_clean_files=$ac_clean_files_save
11111 # configure is writing to config.log, and then calls config.status.
11112 # config.status does its own redirection, appending to config.log.
11113 # Unfortunately, on DOS this fails, as config.log is still kept open
11114 # by configure, so config.status won't be able to write to it; its
11115 # output is simply discarded. So we exec the FD to /dev/null,
11116 # effectively closing config.log, so it can be properly (re)opened and
11117 # appended to by config.status. When coming back to configure, we
11118 # need to make the FD available again.
11119 if test "$no_create" != yes; then
11121 ac_config_status_args=
11122 test "$silent" = yes &&
11123 ac_config_status_args="$ac_config_status_args --quiet"
11125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11128 # would make configure fail if this is the last instruction.
11129 $ac_cs_success || { (exit 1); exit 1; }