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="as.h"
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 WARN_CFLAGS GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBM LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-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-bfd-assembler use BFD back end for writing object files
860 targets alternative target configurations besides the primary
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-build-warnings Enable build-time compiler warnings if gcc is used
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-included-gettext use the GNU gettext library included here
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 ac_dir_suffix= ac_top_builddir=
905 .) # No --srcdir option. We are building in place.
907 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
923 .) ac_abs_builddir="$ac_dir";;
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_must_keep_next=false
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 -* ) ac_must_keep_next=true ;;
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1111 # The following way of writing the cache mishandles newlines in values,
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1134 for ac_var in $ac_subst_vars
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1141 if test -n "$ac_subst_files"; then
1148 for ac_var in $ac_subst_files
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -s confdefs.h; then
1163 sed "/^$/d" confdefs.h | sort
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1246 # Check that the precious variables saved in the cache have kept the same
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 for ac_dir in .. $srcdir/..; do
1324 if test -f $ac_dir/install-sh; then
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 elif test -f $ac_dir/install.sh; then
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 elif test -f $ac_dir/shtool; then
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1428 program_prefix=${target_alias}-
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$ac_cv_prog_CC"; then
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1551 if test -z "$ac_cv_prog_CC"; then
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1648 if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$CC" && break
1690 if test -z "$CC"; then
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$ac_ct_CC" && break
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1764 cat >conftest.$ac_ext <<_ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h. */
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802 test -f "$ac_file" || continue
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 # This is the source file.
1810 # We found the default executable, but exeext='' is most
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1839 # Check the compiler produces executables we can run. If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1854 if test "$cross_compiling" = maybe; then
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 cat >conftest.$ac_ext <<_ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 cat >conftest.$ac_ext <<_ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1992 grep -v '^ *+' conftest.er1 >conftest.err
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 cat >conftest.$ac_ext <<_ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2050 grep -v '^ *+' conftest.er1 >conftest.err
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2069 echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078 if test "$ac_test_CFLAGS" = set; then
2079 CFLAGS=$ac_save_CFLAGS
2080 elif test $ac_cv_prog_cc_g = yes; then
2081 if test "$GCC" = yes; then
2087 if test "$GCC" = yes; then
2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_cv_prog_cc_stdc=no
2100 cat >conftest.$ac_ext <<_ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2124 s = g (p, va_arg (v,int));
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not '\xHH' hex character constants.
2131 These don't provoke an error unfortunately, instead are silently treated
2132 as 'x'. The following induces an error, until -std1 is added to get
2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2134 array size at least. It's necessary to write '\x00'==0 to get something
2135 that's true only with -std1. */
2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX -qlanglvl=ansi
2155 # Ultrix and OSF/1 -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions -Aa -D_HPUX_SOURCE
2158 # SVR4 -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161 CC="$ac_save_CC $ac_arg"
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2166 grep -v '^ *+' conftest.er1 >conftest.err
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cc_stdc=$ac_arg
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2190 rm -f conftest.err conftest.$ac_objext
2192 rm -f conftest.$ac_ext conftest.$ac_objext
2197 case "x$ac_cv_prog_cc_stdc" in
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 # Some people use a C++ compiler to compile C. Since we use `exit',
2208 # in C++ we need to declare it. In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.$ac_ext <<_ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2220 grep -v '^ *+' conftest.er1 >conftest.err
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 for ac_declaration in \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2245 cat >conftest.$ac_ext <<_ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2265 grep -v '^ *+' conftest.er1 >conftest.err
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 cat >conftest.$ac_ext <<_ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 if test -n "$ac_declaration"; then
2336 echo '#ifdef __cplusplus' >>confdefs.h
2337 echo $ac_declaration >>confdefs.h
2338 echo '#endif' >>confdefs.h
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2355 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2356 if test "${ac_cv_search_strerror+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 ac_func_search_save_LIBS=$LIBS
2360 ac_cv_search_strerror=no
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2368 /* Override any gcc2 internal prototype to avoid an error. */
2372 /* We use char because int might match the return type of a gcc2
2373 builtin and then its argument prototype would still apply. */
2383 rm -f conftest.$ac_objext conftest$ac_exeext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2385 (eval $ac_link) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest$ac_exeext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 ac_cv_search_strerror="none required"
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2410 rm -f conftest.err conftest.$ac_objext \
2411 conftest$ac_exeext conftest.$ac_ext
2412 if test "$ac_cv_search_strerror" = no; then
2413 for ac_lib in cposix; do
2414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2415 cat >conftest.$ac_ext <<_ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2422 /* Override any gcc2 internal prototype to avoid an error. */
2426 /* We use char because int might match the return type of a gcc2
2427 builtin and then its argument prototype would still apply. */
2437 rm -f conftest.$ac_objext conftest$ac_exeext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2439 (eval $ac_link) 2>conftest.er1
2441 grep -v '^ *+' conftest.er1 >conftest.err
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; } &&
2452 { ac_try='test -s conftest$ac_exeext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 ac_cv_search_strerror="-l$ac_lib"
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2465 rm -f conftest.err conftest.$ac_objext \
2466 conftest$ac_exeext conftest.$ac_ext
2469 LIBS=$ac_func_search_save_LIBS
2471 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2472 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2473 if test "$ac_cv_search_strerror" != no; then
2474 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2479 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2480 am__api_version="1.9"
2481 # Find a good install program. We prefer a C program (faster),
2482 # so one script is as good as another. But avoid the broken or
2483 # incompatible versions:
2484 # SysV /etc/install, /usr/sbin/install
2485 # SunOS /usr/etc/install
2486 # IRIX /sbin/install
2488 # AmigaOS /C/install, which installs bootblocks on floppy discs
2489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2492 # OS/2's system install, which has a completely different semantic
2493 # ./install, which can be erroneously created by make from ./install.sh.
2494 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2495 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2496 if test -z "$INSTALL"; then
2497 if test "${ac_cv_path_install+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 # Account for people who put trailing slashes in PATH elements.
2507 ./ | .// | /cC/* | \
2508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2509 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2512 # OSF1 and SCO ODT 3.0 have their own names for install.
2513 # Don't use installbsd from OSF since it installs stuff as root
2515 for ac_prog in ginstall scoinst install; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2518 if test $ac_prog = install &&
2519 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520 # AIX install. It has an incompatible calling convention.
2522 elif test $ac_prog = install &&
2523 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # program-specific install script used by HP pwplus--don't use.
2527 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2542 # As a last resort, use the slow shell script. We don't cache a
2543 # path for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the path is relative.
2546 INSTALL=$ac_install_sh
2549 echo "$as_me:$LINENO: result: $INSTALL" >&5
2550 echo "${ECHO_T}$INSTALL" >&6
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2561 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2564 echo timestamp > conftest.file
2565 # Do `set' in a subshell so we don't clobber the current shell's
2566 # arguments. Must try -L first in case configure is actually a
2567 # symlink; some systems play weird games with the mod time of symlinks
2568 # (eg FreeBSD returns the mod time of the symlink's containing
2571 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2572 if test "$*" = "X"; then
2574 set X `ls -t $srcdir/configure conftest.file`
2577 if test "$*" != "X $srcdir/configure conftest.file" \
2578 && test "$*" != "X conftest.file $srcdir/configure"; then
2580 # If neither matched, then we have a broken ls. This can happen
2581 # if, for instance, CONFIG_SHELL is bash and it inherits a
2582 # broken ls alias from the environment. This has actually
2583 # happened. Such a system could not be considered "sane".
2584 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2585 alias in your environment" >&5
2586 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2587 alias in your environment" >&2;}
2588 { (exit 1); exit 1; }; }
2591 test "$2" = conftest.file
2597 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2598 Check your system clock" >&5
2599 echo "$as_me: error: newly created file is older than distributed files!
2600 Check your system clock" >&2;}
2601 { (exit 1); exit 1; }; }
2603 echo "$as_me:$LINENO: result: yes" >&5
2604 echo "${ECHO_T}yes" >&6
2605 test "$program_prefix" != NONE &&
2606 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2607 # Use a double $ so make ignores it.
2608 test "$program_suffix" != NONE &&
2609 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2610 # Double any \ or $. echo might interpret backslashes.
2611 # By default was `s,x,x', remove it if useless.
2612 cat <<\_ACEOF >conftest.sed
2613 s/[\\$]/&&/g;s/;s,x,x,$//
2615 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2618 # expand $ac_aux_dir to an absolute path
2619 am_aux_dir=`cd $ac_aux_dir && pwd`
2621 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2622 # Use eval to expand $SHELL
2623 if eval "$MISSING --run true"; then
2624 am_missing_run="$MISSING --run "
2627 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2628 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2631 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2632 # We used to keeping the `.' as first argument, in order to
2633 # allow $(mkdir_p) to be used without argument. As in
2634 # $(mkdir_p) $(somedir)
2635 # where $(somedir) is conditionally defined. However this is wrong
2637 # 1. if the package is installed by a user who cannot write `.'
2638 # make install will fail,
2639 # 2. the above comment should most certainly read
2640 # $(mkdir_p) $(DESTDIR)$(somedir)
2641 # so it does not work when $(somedir) is undefined and
2642 # $(DESTDIR) is not.
2643 # To support the latter case, we have to write
2644 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2645 # so the `.' trick is pointless.
2646 mkdir_p='mkdir -p --'
2648 # On NextStep and OpenStep, the `mkdir' command does not
2649 # recognize any option. It will interpret all options as
2650 # directories to create, and then abort because `.' already
2652 for d in ./-p ./--version;
2654 test -d $d && rmdir $d
2656 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2657 if test -f "$ac_aux_dir/mkinstalldirs"; then
2658 mkdir_p='$(mkinstalldirs)'
2660 mkdir_p='$(install_sh) -d'
2664 for ac_prog in gawk mawk nawk awk
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670 if test "${ac_cv_prog_AWK+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 if test -n "$AWK"; then
2674 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_AWK="$ac_prog"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 if test -n "$AWK"; then
2694 echo "$as_me:$LINENO: result: $AWK" >&5
2695 echo "${ECHO_T}$AWK" >&6
2697 echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2701 test -n "$AWK" && break
2704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2706 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 cat >conftest.make <<\_ACEOF
2712 @echo 'ac_maketemp="$(MAKE)"'
2714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2716 if test -n "$ac_maketemp"; then
2717 eval ac_cv_prog_make_${ac_make}_set=yes
2719 eval ac_cv_prog_make_${ac_make}_set=no
2723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2724 echo "$as_me:$LINENO: result: yes" >&5
2725 echo "${ECHO_T}yes" >&6
2728 echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2730 SET_MAKE="MAKE=${MAKE-make}"
2733 rm -rf .tst 2>/dev/null
2734 mkdir .tst 2>/dev/null
2735 if test -d .tst; then
2740 rmdir .tst 2>/dev/null
2742 DEPDIR="${am__leading_dot}deps"
2744 ac_config_commands="$ac_config_commands depfiles"
2747 am_make=${MAKE-make}
2748 cat > confinc << 'END'
2753 # If we don't find an include directive, just comment out the code.
2754 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2755 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2759 # First try GNU make style include.
2760 echo "include confinc" > confmf
2761 # We grep out `Entering directory' and `Leaving directory'
2762 # messages which can occur if `w' ends up in MAKEFLAGS.
2763 # In particular we don't look at `^make:' because GNU make might
2764 # be invoked under some other name (usually "gmake"), in which
2765 # case it prints its new name instead of `make'.
2766 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2771 # Now try BSD make style include.
2772 if test "$am__include" = "#"; then
2773 echo '.include "confinc"' > confmf
2774 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2775 am__include=.include
2782 echo "$as_me:$LINENO: result: $_am_result" >&5
2783 echo "${ECHO_T}$_am_result" >&6
2784 rm -f confinc confmf
2786 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2787 if test "${enable_dependency_tracking+set}" = set; then
2788 enableval="$enable_dependency_tracking"
2791 if test "x$enable_dependency_tracking" != xno; then
2792 am_depcomp="$ac_aux_dir/depcomp"
2797 if test "x$enable_dependency_tracking" != xno; then
2807 # test to see if srcdir already configured
2808 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2809 test -f $srcdir/config.status; then
2810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2811 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2812 { (exit 1); exit 1; }; }
2815 # test whether we have cygpath
2816 if test -z "$CYGPATH_W"; then
2817 if (cygpath --version) >/dev/null 2>/dev/null; then
2818 CYGPATH_W='cygpath -w'
2825 # Define the identity of the package.
2827 VERSION=${BFD_VERSION}
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE "$PACKAGE"
2835 cat >>confdefs.h <<_ACEOF
2836 #define VERSION "$VERSION"
2839 # Some tools Automake needs.
2841 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2844 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2847 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2850 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2853 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2855 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2857 # Installed binaries are usually stripped using `strip' when the user
2858 # run `make install-strip'. However `strip' might not be the right
2859 # tool to use in cross-compilation environments, therefore Automake
2860 # will honor the `STRIP' environment variable to overrule this program.
2861 if test "$cross_compiling" != no; then
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}strip; ac_word=$2
2865 echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867 if test "${ac_cv_prog_STRIP+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test -n "$STRIP"; then
2871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891 echo "$as_me:$LINENO: result: $STRIP" >&5
2892 echo "${ECHO_T}$STRIP" >&6
2894 echo "$as_me:$LINENO: result: no" >&5
2895 echo "${ECHO_T}no" >&6
2899 if test -z "$ac_cv_prog_STRIP"; then
2901 # Extract the first word of "strip", so it can be a program name with args.
2902 set dummy strip; ac_word=$2
2903 echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 if test -n "$ac_ct_STRIP"; then
2909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_ac_ct_STRIP="strip"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929 if test -n "$ac_ct_STRIP"; then
2930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2931 echo "${ECHO_T}$ac_ct_STRIP" >&6
2933 echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2939 STRIP="$ac_cv_prog_STRIP"
2943 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2945 # We need awk for the "check" target. The system "awk" is bad on
2947 # Always define AMTAR for backward compatibility.
2949 AMTAR=${AMTAR-"${am_missing_run}tar"}
2951 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2956 depcc="$CC" am_compiler_list=
2958 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2959 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2960 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2964 # We make a subdir and do the tests there. Otherwise we can end up
2965 # making bogus files that we don't know about and never remove. For
2966 # instance it was reported that on HP-UX the gcc test will end up
2967 # making a dummy file named `D' -- because `-MD' means `put the output
2970 # Copy depcomp to subdir because otherwise we won't find it if we're
2971 # using a relative directory.
2972 cp "$am_depcomp" conftest.dir
2974 # We will build objects and dependencies in a subdirectory because
2975 # it helps to detect inapplicable dependency modes. For instance
2976 # both Tru64's cc and ICC support -MD to output dependencies as a
2977 # side effect of compilation, but ICC will put the dependencies in
2978 # the current directory while Tru64 will put them in the object
2982 am_cv_CC_dependencies_compiler_type=none
2983 if test "$am_compiler_list" = ""; then
2984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2986 for depmode in $am_compiler_list; do
2987 # Setup a source with many dependencies, because some compilers
2988 # like to wrap large dependency lists on column 80 (with \), and
2989 # we should not choose a depcomp mode which is confused by this.
2991 # We need to recreate these files for each test, as the compiler may
2992 # overwrite some of them when testing with obscure command lines.
2993 # This happens at least with the AIX C compiler.
2995 for i in 1 2 3 4 5 6; do
2996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2997 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2998 # Solaris 8's {/usr,}/bin/sh.
2999 touch sub/conftst$i.h
3001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3005 # after this tag, mechanisms are not by side-effect, so they'll
3006 # only be used when explicitly requested
3007 if test "x$enable_dependency_tracking" = xyes; then
3015 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3016 # mode. It turns out that the SunPro C++ compiler does not properly
3017 # handle `-M -o', and we need to detect this.
3018 if depmode=$depmode \
3019 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3021 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3022 >/dev/null 2>conftest.err &&
3023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3024 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3026 # icc doesn't choke on unknown options, it will just issue warnings
3027 # or remarks (even with -Werror). So we grep stderr for any message
3028 # that says an option was ignored or not supported.
3029 # When given -MP, icc 7.0 and 7.1 complain thusly:
3030 # icc: Command line warning: ignoring option '-M'; no argument required
3031 # The diagnosis changed in icc 8.0:
3032 # icc: Command line remark: option '-MP' not supported
3033 if (grep 'ignoring option' conftest.err ||
3034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3035 am_cv_CC_dependencies_compiler_type=$depmode
3044 am_cv_CC_dependencies_compiler_type=none
3048 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3049 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3055 test "x$enable_dependency_tracking" != xno \
3056 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3058 am__fastdepCC_FALSE='#'
3060 am__fastdepCC_TRUE='#'
3061 am__fastdepCC_FALSE=
3067 # Check whether --enable-shared or --disable-shared was given.
3068 if test "${enable_shared+set}" = set; then
3069 enableval="$enable_shared"
3070 p=${PACKAGE-default}
3072 yes) enable_shared=yes ;;
3073 no) enable_shared=no ;;
3076 # Look at the argument we got. We use all the common list separators.
3077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3078 for pkg in $enableval; do
3079 if test "X$pkg" = "X$p"; then
3089 # Check whether --enable-static or --disable-static was given.
3090 if test "${enable_static+set}" = set; then
3091 enableval="$enable_static"
3092 p=${PACKAGE-default}
3094 yes) enable_static=yes ;;
3095 no) enable_static=no ;;
3098 # Look at the argument we got. We use all the common list separators.
3099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3100 for pkg in $enableval; do
3101 if test "X$pkg" = "X$p"; then
3111 # Check whether --enable-fast-install or --disable-fast-install was given.
3112 if test "${enable_fast_install+set}" = set; then
3113 enableval="$enable_fast_install"
3114 p=${PACKAGE-default}
3116 yes) enable_fast_install=yes ;;
3117 no) enable_fast_install=no ;;
3119 enable_fast_install=no
3120 # Look at the argument we got. We use all the common list separators.
3121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3122 for pkg in $enableval; do
3123 if test "X$pkg" = "X$p"; then
3124 enable_fast_install=yes
3131 enable_fast_install=yes
3134 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3135 if test "${with_gnu_ld+set}" = set; then
3136 withval="$with_gnu_ld"
3137 test "$withval" = no || with_gnu_ld=yes
3142 if test "$GCC" = yes; then
3143 # Check if gcc -print-prog-name=ld gives a path.
3144 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3145 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3148 # gcc leaves a trailing carriage return which upsets mingw
3149 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3151 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3154 # Accept absolute paths.
3155 [\\/]* | [A-Za-z]:[\\/]*)
3156 re_direlt='/[^/][^/]*/\.\./'
3157 # Canonicalize the path of ld
3158 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3159 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3160 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3162 test -z "$LD" && LD="$ac_prog"
3165 # If it fails, then pretend we aren't using GCC.
3169 # If it is relative, then search for the first ld in PATH.
3173 elif test "$with_gnu_ld" = yes; then
3174 echo "$as_me:$LINENO: checking for GNU ld" >&5
3175 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3177 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3178 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3180 if test "${lt_cv_path_LD+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 if test -z "$LD"; then
3184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3185 for ac_dir in $PATH; do
3186 test -z "$ac_dir" && ac_dir=.
3187 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3188 lt_cv_path_LD="$ac_dir/$ac_prog"
3189 # Check to see if the program is GNU ld. I'd rather use --version,
3190 # but apparently some GNU ld's only accept -v.
3191 # Break only if it was the GNU/non-GNU ld that we prefer.
3192 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3193 test "$with_gnu_ld" != no && break
3195 test "$with_gnu_ld" != yes && break
3201 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3206 if test -n "$LD"; then
3207 echo "$as_me:$LINENO: result: $LD" >&5
3208 echo "${ECHO_T}$LD" >&6
3210 echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3213 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3214 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3215 { (exit 1); exit 1; }; }
3216 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3217 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3218 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3222 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3223 lt_cv_prog_gnu_ld=yes
3225 lt_cv_prog_gnu_ld=no
3228 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3229 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3230 with_gnu_ld=$lt_cv_prog_gnu_ld
3233 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3234 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3235 if test "${lt_cv_ld_reload_flag+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 lt_cv_ld_reload_flag='-r'
3240 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3241 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3242 reload_flag=$lt_cv_ld_reload_flag
3243 test -n "$reload_flag" && reload_flag=" $reload_flag"
3245 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3246 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3247 if test "${lt_cv_path_NM+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$NM"; then
3251 # Let the user override the test.
3254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3255 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3256 test -z "$ac_dir" && ac_dir=.
3257 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3258 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3259 # Check to see if the nm accepts a BSD-compat flag.
3260 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3261 # nm: unknown option "B" ignored
3262 # Tru64's nm complains that /dev/null is an invalid object file
3263 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3264 lt_cv_path_NM="$tmp_nm -B"
3266 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3267 lt_cv_path_NM="$tmp_nm -p"
3270 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3271 continue # so that we can try to find one that supports BSD flags
3276 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3281 echo "$as_me:$LINENO: result: $NM" >&5
3282 echo "${ECHO_T}$NM" >&6
3284 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3285 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3287 if test "$LN_S" = "ln -s"; then
3288 echo "$as_me:$LINENO: result: yes" >&5
3289 echo "${ECHO_T}yes" >&6
3291 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3292 echo "${ECHO_T}no, using $LN_S" >&6
3295 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3296 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3297 if test "${lt_cv_deplibs_check_method+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 lt_cv_file_magic_cmd='$MAGIC_CMD'
3301 lt_cv_file_magic_test_file=
3302 lt_cv_deplibs_check_method='unknown'
3303 # Need to set the preceding variable on all platforms that support
3304 # interlibrary dependencies.
3305 # 'none' -- dependencies not supported.
3306 # `unknown' -- same as none, but documents that we really don't know.
3307 # 'pass_all' -- all dependencies passed with no checks.
3308 # 'test_compile' -- check by making test program.
3309 # 'file_magic [regex]' -- check by looking for files in library path
3310 # which responds to the $file_magic_cmd with a given egrep regex.
3311 # If you have `file' or equivalent on your system and you're not sure
3312 # whether `pass_all' will *always* work, you probably want this one.
3316 lt_cv_deplibs_check_method=pass_all
3320 lt_cv_deplibs_check_method=pass_all
3324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3325 lt_cv_file_magic_cmd='/usr/bin/file -L'
3326 lt_cv_file_magic_test_file=/shlib/libc.so
3329 cygwin* | mingw* |pw32*)
3330 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3331 lt_cv_file_magic_cmd='$OBJDUMP -f'
3334 darwin* | rhapsody*)
3335 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3336 lt_cv_file_magic_cmd='/usr/bin/file -L'
3338 rhapsody* | darwin1.012)
3339 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3342 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3347 freebsd* | kfreebsd*-gnu)
3348 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3351 # Not sure whether the presence of OpenBSD here was a mistake.
3352 # Let's accept both of them until this is cleared up.
3353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3354 lt_cv_file_magic_cmd=/usr/bin/file
3355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3359 lt_cv_deplibs_check_method=pass_all
3364 lt_cv_deplibs_check_method=pass_all
3370 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3371 lt_cv_file_magic_cmd=/usr/bin/file
3372 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3376 lt_cv_file_magic_cmd=/usr/bin/file
3377 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3385 # this will be overridden with pass_all, but let us keep it just in case
3386 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3390 *-32|*"-32 ") libmagic=32-bit;;
3391 *-n32|*"-n32 ") libmagic=N32;;
3392 *-64|*"-64 ") libmagic=64-bit;;
3393 *) libmagic=never-match;;
3395 # this will be overridden with pass_all, but let us keep it just in case
3396 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3399 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3400 lt_cv_deplibs_check_method=pass_all
3403 # This must be Linux ELF.
3406 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3407 lt_cv_deplibs_check_method=pass_all ;;
3409 # glibc up to 2.1.1 does not perform some relocations on ARM
3410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3412 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3415 netbsd* | knetbsd*-gnu)
3416 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3417 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3419 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3425 lt_cv_file_magic_cmd=/usr/bin/file
3426 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3429 osf3* | osf4* | osf5*)
3430 # this will be overridden with pass_all, but let us keep it just in case
3431 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3432 lt_cv_file_magic_test_file=/shlib/libc.so
3433 lt_cv_deplibs_check_method=pass_all
3437 lt_cv_deplibs_check_method=pass_all
3441 lt_cv_deplibs_check_method=pass_all
3442 lt_cv_file_magic_test_file=/lib/libc.so
3445 sysv5uw[78]* | sysv4*uw2*)
3446 lt_cv_deplibs_check_method=pass_all
3449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3450 case $host_vendor in
3452 lt_cv_deplibs_check_method=pass_all
3455 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]'
3456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3463 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3464 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3465 file_magic_cmd=$lt_cv_file_magic_cmd
3466 deplibs_check_method=$lt_cv_deplibs_check_method
3471 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3473 # Only perform the check for file, if the check method requires it
3474 case $deplibs_check_method in
3476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3477 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3478 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3479 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3490 ac_save_MAGIC_CMD="$MAGIC_CMD"
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3492 ac_dummy="/usr/bin:$PATH"
3493 for ac_dir in $ac_dummy; do
3494 test -z "$ac_dir" && ac_dir=.
3495 if test -f $ac_dir/${ac_tool_prefix}file; then
3496 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3497 if test -n "$file_magic_test_file"; then
3498 case $deplibs_check_method in
3500 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3503 egrep "$file_magic_regex" > /dev/null; then
3508 *** Warning: the command libtool uses to detect shared libraries,
3509 *** $file_magic_cmd, produces output that libtool cannot recognize.
3510 *** The result is that libtool may fail to recognize shared libraries
3511 *** as such. This will affect the creation of libtool libraries that
3512 *** depend on shared libraries, but programs linked with such libtool
3513 *** libraries will work regardless of this problem. Nevertheless, you
3514 *** may want to report the problem to your system manager and/or to
3515 *** bug-libtool@gnu.org
3525 MAGIC_CMD="$ac_save_MAGIC_CMD"
3530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3531 if test -n "$MAGIC_CMD"; then
3532 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3533 echo "${ECHO_T}$MAGIC_CMD" >&6
3535 echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3539 if test -z "$lt_cv_path_MAGIC_CMD"; then
3540 if test -n "$ac_tool_prefix"; then
3541 echo "$as_me:$LINENO: checking for file" >&5
3542 echo $ECHO_N "checking for file... $ECHO_C" >&6
3543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3554 ac_save_MAGIC_CMD="$MAGIC_CMD"
3555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3556 ac_dummy="/usr/bin:$PATH"
3557 for ac_dir in $ac_dummy; do
3558 test -z "$ac_dir" && ac_dir=.
3559 if test -f $ac_dir/file; then
3560 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3561 if test -n "$file_magic_test_file"; then
3562 case $deplibs_check_method in
3564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3567 egrep "$file_magic_regex" > /dev/null; then
3572 *** Warning: the command libtool uses to detect shared libraries,
3573 *** $file_magic_cmd, produces output that libtool cannot recognize.
3574 *** The result is that libtool may fail to recognize shared libraries
3575 *** as such. This will affect the creation of libtool libraries that
3576 *** depend on shared libraries, but programs linked with such libtool
3577 *** libraries will work regardless of this problem. Nevertheless, you
3578 *** may want to report the problem to your system manager and/or to
3579 *** bug-libtool@gnu.org
3589 MAGIC_CMD="$ac_save_MAGIC_CMD"
3594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3595 if test -n "$MAGIC_CMD"; then
3596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3597 echo "${ECHO_T}$MAGIC_CMD" >&6
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3612 if test -n "$ac_tool_prefix"; then
3613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_RANLIB+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 if test -n "$RANLIB"; then
3621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 RANLIB=$ac_cv_prog_RANLIB
3640 if test -n "$RANLIB"; then
3641 echo "$as_me:$LINENO: result: $RANLIB" >&5
3642 echo "${ECHO_T}$RANLIB" >&6
3644 echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3649 if test -z "$ac_cv_prog_RANLIB"; then
3650 ac_ct_RANLIB=$RANLIB
3651 # Extract the first word of "ranlib", so it can be a program name with args.
3652 set dummy ranlib; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 if test -n "$ac_ct_RANLIB"; then
3659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_ac_ct_RANLIB="ranlib"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3679 if test -n "$ac_ct_RANLIB"; then
3680 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3681 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3683 echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3687 RANLIB=$ac_ct_RANLIB
3689 RANLIB="$ac_cv_prog_RANLIB"
3692 if test -n "$ac_tool_prefix"; then
3693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3694 set dummy ${ac_tool_prefix}strip; ac_word=$2
3695 echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697 if test "${ac_cv_prog_STRIP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 if test -n "$STRIP"; then
3701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 STRIP=$ac_cv_prog_STRIP
3720 if test -n "$STRIP"; then
3721 echo "$as_me:$LINENO: result: $STRIP" >&5
3722 echo "${ECHO_T}$STRIP" >&6
3724 echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3729 if test -z "$ac_cv_prog_STRIP"; then
3731 # Extract the first word of "strip", so it can be a program name with args.
3732 set dummy strip; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 if test -n "$ac_ct_STRIP"; then
3739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_ac_ct_STRIP="strip"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3759 if test -n "$ac_ct_STRIP"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3761 echo "${ECHO_T}$ac_ct_STRIP" >&6
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3769 STRIP="$ac_cv_prog_STRIP"
3773 # Check for any special flags to pass to ltconfig.
3774 libtool_flags="--cache-file=$cache_file"
3775 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3776 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3777 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3778 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3779 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3782 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3783 if test "${enable_libtool_lock+set}" = set; then
3784 enableval="$enable_libtool_lock"
3787 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3788 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3791 # Check whether --with-pic or --without-pic was given.
3792 if test "${with_pic+set}" = set; then
3798 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3799 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3801 # Some flags need to be propagated to the compiler or linker for good
3805 # Find out which ABI we are using.
3806 echo '#line 3806 "configure"' > conftest.$ac_ext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; then
3812 if test "$lt_cv_prog_gnu_ld" = yes; then
3813 case `/usr/bin/file conftest.$ac_objext` in
3815 LD="${LD-ld} -melf32bsmip"
3818 LD="${LD-ld} -melf32bmipn32"
3821 LD="${LD-ld} -melf64bmip"
3825 case `/usr/bin/file conftest.$ac_objext` in
3842 # Find out which ABI we are using.
3843 echo 'int i;' > conftest.$ac_ext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; then
3849 case "`/usr/bin/file conftest.o`" in
3862 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3863 SAVE_CFLAGS="$CFLAGS"
3864 CFLAGS="$CFLAGS -belf"
3865 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3866 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3867 if test "${lt_cv_cc_needs_belf+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3893 rm -f conftest.$ac_objext conftest$ac_exeext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3895 (eval $ac_link) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } &&
3902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest$ac_exeext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 lt_cv_cc_needs_belf=yes
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 lt_cv_cc_needs_belf=no
3921 rm -f conftest.err conftest.$ac_objext \
3922 conftest$ac_exeext conftest.$ac_ext
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3931 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3932 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3934 CFLAGS="$SAVE_CFLAGS"
3942 # Save cache, so that ltconfig can load it
3943 cat >confcache <<\_ACEOF
3944 # This file is a shell script that caches the results of configure
3945 # tests run on this system so they can be shared between configure
3946 # scripts and configure runs, see configure's option --config-cache.
3947 # It is not useful on other systems. If it contains results you don't
3948 # want to keep, you may remove or edit it.
3950 # config.status only pays attention to the cache file if you give it
3951 # the --recheck option to rerun configure.
3953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3959 # The following way of writing the cache mishandles newlines in values,
3960 # but we know of no workaround that is simple, portable, and efficient.
3961 # So, don't put newlines in cache variables' values.
3962 # Ultrix sh set writes to stderr and can't be redirected directly,
3963 # and sets the high bit in the cache file unless we assign to the vars.
3966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3968 # `set' does not quote correctly, so add quotes (double-quote
3969 # substitution turns \\\\ into \\, and sed turns \\ into \).
3972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3975 # `set' quotes correctly as required by POSIX, so do not add quotes.
3977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3988 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3989 if test -w $cache_file; then
3990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3991 cat confcache >$cache_file
3993 echo "not updating unwritable cache $cache_file"
3998 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3999 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4000 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4001 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4002 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4003 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4004 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4005 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4006 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4007 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4008 echo "$as_me: error: libtool configure failed" >&2;}
4009 { (exit 1); exit 1; }; }
4011 # Reload cache, that may have been modified by ltconfig
4012 if test -r "$cache_file"; then
4013 # Some versions of bash will fail to source /dev/null (special
4014 # files actually), so we avoid doing that.
4015 if test -f "$cache_file"; then
4016 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4017 echo "$as_me: loading cache $cache_file" >&6;}
4019 [\\/]* | ?:[\\/]* ) . $cache_file;;
4020 *) . ./$cache_file;;
4024 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4025 echo "$as_me: creating cache $cache_file" >&6;}
4030 # This can be used to rebuild libtool when needed
4031 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4033 # Always use our own libtool.
4034 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4036 # Redirect the config.log output again, so that the ltconfig log is not
4037 # clobbered by the next message.
4038 exec 5>>./config.log
4047 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
4048 if test "${enable_bfd_assembler+set}" = set; then
4049 enableval="$enable_bfd_assembler"
4050 case "${enableval}" in
4051 yes) need_bfd=yes user_bfd_gas=yes ;;
4052 no) user_bfd_gas=no ;;
4053 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
4054 echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
4055 { (exit 1); exit 1; }; } ;;
4057 fi; # Check whether --enable-targets or --disable-targets was given.
4058 if test "${enable_targets+set}" = set; then
4059 enableval="$enable_targets"
4060 case "${enableval}" in
4061 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4062 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4063 { (exit 1); exit 1; }; }
4065 no) enable_targets= ;;
4066 *) enable_targets=$enableval ;;
4068 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4069 if test "${enable_commonbfdlib+set}" = set; then
4070 enableval="$enable_commonbfdlib"
4071 case "${enableval}" in
4072 yes) commonbfdlib=true ;;
4073 no) commonbfdlib=false ;;
4074 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4075 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4076 { (exit 1); exit 1; }; } ;;
4081 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4082 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4083 if test "${enable_build_warnings+set}" = set; then
4084 enableval="$enable_build_warnings"
4085 case "${enableval}" in
4087 no) build_warnings="-w";;
4088 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4089 build_warnings="${build_warnings} ${t}";;
4090 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4091 build_warnings="${t} ${build_warnings}";;
4092 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4094 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4095 echo "Setting warning flags = $build_warnings" 6>&1
4098 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4099 WARN_CFLAGS="${build_warnings}"
4103 # Generate a header file
4104 ac_config_headers="$ac_config_headers config.h:config.in"
4107 # If we are on a DOS filesystem, we must use gdb.ini rather than
4110 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
4112 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4117 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4123 #We need this for the host. BOUT header is in host order.
4124 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4125 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4126 if test "${ac_cv_c_bigendian+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 # See if sys/param.h defines the BYTE_ORDER macro.
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 #include <sys/types.h>
4137 #include <sys/param.h>
4142 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4154 grep -v '^ *+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 # It does; now see whether it defined to BIG_ENDIAN or not.
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 #include <sys/types.h>
4179 #include <sys/param.h>
4184 #if BYTE_ORDER != BIG_ENDIAN
4192 rm -f conftest.$ac_objext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_cv_c_bigendian=yes
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 ac_cv_c_bigendian=no
4220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 # It does not; compile a test program.
4226 if test "$cross_compiling" = yes; then
4227 # try to guess the endianness by grepping values into an object file
4228 ac_cv_c_bigendian=unknown
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4244 _ascii (); _ebcdic ();
4249 rm -f conftest.$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251 (eval $ac_compile) 2>conftest.er1
4253 grep -v '^ *+' conftest.er1 >conftest.err
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4271 ac_cv_c_bigendian=yes
4273 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274 if test "$ac_cv_c_bigendian" = unknown; then
4275 ac_cv_c_bigendian=no
4277 # finding both strings is unlikely to happen, but who knows?
4278 ac_cv_c_bigendian=unknown
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4288 cat >conftest.$ac_ext <<_ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4297 /* Are we little or big endian? From Harbison&Steele. */
4301 char c[sizeof (long)];
4304 exit (u.c[sizeof (long) - 1] == 1);
4307 rm -f conftest$ac_exeext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4309 (eval $ac_link) 2>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 ac_cv_c_bigendian=no
4320 echo "$as_me: program exited with status $ac_status" >&5
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4325 ac_cv_c_bigendian=yes
4327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4333 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4334 case $ac_cv_c_bigendian in
4337 cat >>confdefs.h <<\_ACEOF
4338 #define WORDS_BIGENDIAN 1
4344 { { echo "$as_me:$LINENO: error: unknown endianness
4345 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4346 echo "$as_me: error: unknown endianness
4347 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4348 { (exit 1); exit 1; }; } ;;
4354 # Makefile target for installing gas in $(tooldir)/bin.
4355 install_tooldir=install-exec-tooldir
4359 if test -n "$enable_targets" ; then
4360 for t in `echo $enable_targets | sed 's/,/ /g'`; do
4361 if test $t = "all"; then
4365 result=`$ac_config_sub $t 2>/dev/null`
4366 if test -n "$result" ; then
4367 canon_targets="$canon_targets $result"
4369 # # Permit "all", etc. We don't support it yet though.
4370 # canon_targets="$canon_targets $t"
4373 _gas_uniq_list="$canon_targets"
4374 _gas_uniq_newlist=""
4375 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4376 case $_gas_uniq_i in
4378 *) case " $_gas_uniq_newlist " in
4379 *" $_gas_uniq_i "*) ;;
4380 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4384 canon_targets=$_gas_uniq_newlist
4390 for this_target in $target $canon_targets ; do
4393 . ${srcdir}/configure.tgt
4395 case ${target_cpu} in
4398 cat >>confdefs.h <<_ACEOF
4399 #define DEFAULT_CRIS_ARCH $arch
4405 if test ${this_target} = $target ; then
4406 target_cpu_type=${cpu_type}
4407 elif test ${target_cpu_type} != ${cpu_type} ; then
4411 generic_target=${cpu_type}-${target_vendor}-${target_os}
4412 case ${generic_target} in
4414 if test ${this_target} = $target; then
4416 cat >>confdefs.h <<\_ACEOF
4423 i386-*-msdosdjgpp* \
4427 cat >>confdefs.h <<\_ACEOF
4428 #define STRICTCOFF 1
4434 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4435 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4441 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4442 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4443 { (exit 1); exit 1; }; }
4448 cat >>confdefs.h <<\_ACEOF
4449 #define AIX_WEAK_SUPPORT 1
4456 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4457 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4458 { (exit 1); exit 1; }; } ;;
4462 if test ${this_target} = $target; then
4464 cat >>confdefs.h <<\_ACEOF
4465 #define TARGET_SOLARIS_COMMENT 1
4469 if test x${endian} = xbig; then
4470 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4471 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4472 { (exit 1); exit 1; }; }
4478 cat >>confdefs.h <<\_ACEOF
4479 #define TARGET_SYMBIAN 1
4485 if test ${this_target} = $target ; then
4487 if test x${endian} = xbig; then
4489 elif test x${endian} = xlittle; then
4492 if test x${endian_def} != x; then
4494 cat >>confdefs.h <<_ACEOF
4495 #define TARGET_BYTES_BIG_ENDIAN $endian_def
4501 # Other random stuff.
4505 # Set mips_cpu to the name of the default CPU.
4506 case ${target_cpu} in
4507 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4510 mipsisa32 | mipsisa32el)
4513 mipsisa32r2 | mipsisa32r2el)
4516 mipsisa64 | mipsisa64el)
4519 mipsisa64r2 | mipsisa64r2el)
4522 mipstx39 | mipstx39el)
4525 mips64vr | mips64vrel)
4528 mipsisa32r2* | mipsisa64r2*)
4529 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4531 mips64* | mipsisa64* | mipsisa32*)
4532 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4535 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4536 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4537 { (exit 1); exit 1; }; }
4540 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4541 # binaries. It's a GNU extension that some OSes don't understand.
4542 # The value only matters on ELF targets.
4545 use_e_mips_abi_o32=0
4548 use_e_mips_abi_o32=1
4551 # Decide whether to generate 32-bit or 64-bit code by default.
4552 # Used to resolve -march=from-abi when an embedded ABI is selected.
4554 mips64*-*-* | mipsisa64*-*-*)
4555 mips_default_64bit=1
4558 mips_default_64bit=0
4561 # Decide which ABI to target by default.
4563 mips64*-linux* | mips-sgi-irix6*)
4564 mips_default_abi=N32_ABI
4567 mips_default_abi=O32_ABI
4570 mips_default_abi=NO_ABI
4574 cat >>confdefs.h <<_ACEOF
4575 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4579 cat >>confdefs.h <<_ACEOF
4580 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4584 cat >>confdefs.h <<_ACEOF
4585 #define MIPS_DEFAULT_64BIT $mips_default_64bit
4589 cat >>confdefs.h <<_ACEOF
4590 #define MIPS_DEFAULT_ABI $mips_default_abi
4596 # Do we need the opcodes library?
4604 case "${enable_shared}" in
4605 yes) shared_opcodes=true ;;
4606 *opcodes*) shared_opcodes=true ;;
4607 *) shared_opcodes=false ;;
4609 if test "${shared_opcodes}" = "true"; then
4610 # A shared libopcodes must be linked against libbfd.
4616 # Any other special object files needed ?
4618 fr30 | ip2k | iq2000 | m32r | openrisc)
4626 case ${extra_objects} in
4628 *) extra_objects="$extra_objects m68k-parse.o" ;;
4633 echo ${extra_objects} | grep -s "itbl-parse.o"
4634 if test $? -ne 0 ; then
4635 extra_objects="$extra_objects itbl-parse.o"
4638 echo ${extra_objects} | grep -s "itbl-lex.o"
4639 if test $? -ne 0 ; then
4640 extra_objects="$extra_objects itbl-lex.o"
4643 echo ${extra_objects} | grep -s "itbl-ops.o"
4644 if test $? -ne 0 ; then
4645 extra_objects="$extra_objects itbl-ops.o"
4649 i386 | s390 | sparc)
4650 if test $this_target = $target ; then
4652 cat >>confdefs.h <<_ACEOF
4653 #define DEFAULT_ARCH "${arch}"
4664 echo ${extra_objects} | grep -s "xtensa-relax.o"
4665 if test $? -ne 0 ; then
4666 extra_objects="$extra_objects xtensa-relax.o"
4674 if test $using_cgen = yes ; then
4675 case "x${extra_objects}" in
4677 *) extra_objects="$extra_objects cgen.o" ;;
4681 # See if we really can support this configuration with the emulation code.
4683 if test $this_target = $target ; then
4684 primary_bfd_gas=$bfd_gas
4688 if test $bfd_gas = no ; then
4689 # Can't support other configurations this way.
4692 elif test $bfd_gas = no ; then
4693 # Can't support this configuration.
4697 # From target name and format, produce a list of supported emulations.
4699 case ${generic_target}-${fmt} in
4700 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4701 mips*-*-linux*-*) case "$endian" in
4702 big) emulation="mipsbelf mipslelf mipself" ;;
4703 *) emulation="mipslelf mipsbelf mipself" ;;
4705 mips-*-lnews*-ecoff) ;;
4706 mips-*-*-ecoff) case "$endian" in
4707 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4708 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4710 mips-*-*-elf) case "$endian" in
4711 big) emulation="mipsbelf mipslelf mipself" ;;
4712 *) emulation="mipslelf mipsbelf mipself" ;;
4714 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4715 # i386-pc-pe-coff != i386-pc-coff.
4717 # Uncommenting the next line will turn on support for i386 AOUT
4718 # for the default linux configuration
4719 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4721 i386-*-aout) emulation="i386aout" ;;
4722 i386-*-coff) emulation="i386coff" ;;
4723 i386-*-elf) emulation="i386elf" ;;
4725 # Always all formats. The first stated emulation becomes the default.
4726 cris-*-*aout*) emulation="crisaout criself" ;;
4727 cris-*-*) emulation="criself crisaout" ;;
4730 emulations="$emulations $emulation"
4734 # Turn on all targets if possible
4735 if test ${all_targets} = "yes"; then
4736 case ${target_cpu_type} in
4738 case ${obj_format} in
4740 emulations="$emulations i386coff i386elf"
4743 emulations="$emulations i386aout i386elf"
4746 emulations="$emulations i386aout i386coff"
4753 # Assign floating point type. Most processors with FP support
4754 # IEEE FP. On those that don't support FP at all, usually IEEE
4756 case ${target_cpu} in
4757 vax | tahoe ) atof=${target_cpu} ;;
4762 case "${obj_format}" in
4763 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4764 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4765 { (exit 1); exit 1; }; } ;;
4768 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4770 if test $using_cgen = yes ; then
4771 case ${target_cpu} in
4772 *) cgen_cpu_prefix=${target_cpu} ;;
4776 cat >>confdefs.h <<\_ACEOF
4777 #define USING_CGEN 1
4783 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4784 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4785 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4786 { (exit 1); exit 1; }; }
4789 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4790 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4791 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4792 { (exit 1); exit 1; }; }
4795 case ${user_bfd_gas}-${primary_bfd_gas} in
4797 # We didn't override user's choice.
4800 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4801 echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
4813 # User specified nothing.
4817 # Some COFF configurations want these random other flags set.
4818 case ${obj_format} in
4820 case ${target_cpu_type} in
4822 cat >>confdefs.h <<\_ACEOF
4827 cat >>confdefs.h <<\_ACEOF
4832 cat >>confdefs.h <<\_ACEOF
4840 # Getting this done right is going to be a bitch. Each configuration specified
4841 # with --enable-targets=... should be checked for environment, format, cpu, and
4844 # For each configuration, the necessary object file support code must be linked
4845 # in. This might be only one, it might be up to four. The necessary emulation
4846 # code needs to be provided, too.
4848 # And then there's "--enable-targets=all"....
4850 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4852 formats="${obj_format}"
4855 _gas_uniq_list="$emulations"
4856 _gas_uniq_newlist=""
4857 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4858 case $_gas_uniq_i in
4860 *) case " $_gas_uniq_newlist " in
4861 *" $_gas_uniq_i "*) ;;
4862 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4866 emulations=$_gas_uniq_newlist
4868 for em in . $emulations ; do
4871 mipsbelf | mipslelf | mipself)
4872 fmt=elf file=mipself ;;
4873 mipsbecoff | mipslecoff | mipsecoff)
4874 fmt=ecoff file=mipsecoff ;;
4876 fmt=coff file=$em ;;
4878 fmt=aout file=$em ;;
4882 formats="$formats $fmt"
4883 emfiles="$emfiles e-$file.o"
4884 EMULATIONS="$EMULATIONS &$em,"
4886 _gas_uniq_list="$formats"
4887 _gas_uniq_newlist=""
4888 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4889 case $_gas_uniq_i in
4891 *) case " $_gas_uniq_newlist " in
4892 *" $_gas_uniq_i "*) ;;
4893 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4897 formats=$_gas_uniq_newlist
4899 _gas_uniq_list="$emfiles"
4900 _gas_uniq_newlist=""
4901 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4902 case $_gas_uniq_i in
4904 *) case " $_gas_uniq_newlist " in
4905 *" $_gas_uniq_i "*) ;;
4906 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4910 emfiles=$_gas_uniq_newlist
4912 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4913 for fmt in $formats ; do
4916 cat >>confdefs.h <<\_ACEOF
4917 #define OBJ_MAYBE_AOUT 1
4921 cat >>confdefs.h <<\_ACEOF
4922 #define OBJ_MAYBE_BOUT 1
4926 cat >>confdefs.h <<\_ACEOF
4927 #define OBJ_MAYBE_COFF 1
4931 cat >>confdefs.h <<\_ACEOF
4932 #define OBJ_MAYBE_ECOFF 1
4936 cat >>confdefs.h <<\_ACEOF
4937 #define OBJ_MAYBE_ELF 1
4941 cat >>confdefs.h <<\_ACEOF
4942 #define OBJ_MAYBE_GENERIC 1
4946 cat >>confdefs.h <<\_ACEOF
4947 #define OBJ_MAYBE_HP300 1
4951 cat >>confdefs.h <<\_ACEOF
4952 #define OBJ_MAYBE_IEEE 1
4956 cat >>confdefs.h <<\_ACEOF
4957 #define OBJ_MAYBE_SOM 1
4961 extra_objects="$extra_objects obj-$fmt.o"
4965 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
4966 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4967 # e-mips* has more than one emulation per file, e-i386* has just one at the
4968 # moment. If only one emulation is specified, then don't define
4969 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
4970 case "${obj_format}${emfiles}" in
4972 extra_objects="$extra_objects $emfiles"
4974 cat >>confdefs.h <<\_ACEOF
4975 #define USE_EMULATIONS 1
4982 cat >>confdefs.h <<_ACEOF
4983 #define EMULATIONS $EMULATIONS
4987 cat >>confdefs.h <<_ACEOF
4988 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
4992 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4993 yes-*-coff) need_bfd=yes ;;
4994 no-*-coff) need_bfd=yes
4996 cat >>confdefs.h <<\_ACEOF
4997 #define MANY_SEGMENTS 1
5002 reject_dev_configs=yes
5004 case ${reject_dev_configs}-${dev} in
5006 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5007 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5008 { (exit 1); exit 1; }; }
5018 case "${primary_bfd_gas}" in
5020 cat >>confdefs.h <<\_ACEOF
5021 #define BFD_ASSEMBLER 1
5027 # do we need the opcodes library?
5028 case "${need_opcodes}" in
5030 OPCODES_LIB=../opcodes/libopcodes.la
5034 case "${need_bfd}" in
5036 BFDLIB=../bfd/libbfd.la
5037 BFDVER_H=../bfd/bfdver.h
5038 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
5049 cat >>confdefs.h <<_ACEOF
5050 #define TARGET_ALIAS "${target_alias}"
5054 cat >>confdefs.h <<_ACEOF
5055 #define TARGET_CANONICAL "${target}"
5059 cat >>confdefs.h <<_ACEOF
5060 #define TARGET_CPU "${target_cpu}"
5064 cat >>confdefs.h <<_ACEOF
5065 #define TARGET_VENDOR "${target_vendor}"
5069 cat >>confdefs.h <<_ACEOF
5070 #define TARGET_OS "${target_os}"
5075 ac_cpp='$CPP $CPPFLAGS'
5076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5082 echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084 if test "${ac_cv_prog_CC+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 if test -n "$CC"; then
5088 ac_cv_prog_CC="$CC" # Let the user override the test.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 if test -n "$CC"; then
5108 echo "$as_me:$LINENO: result: $CC" >&5
5109 echo "${ECHO_T}$CC" >&6
5111 echo "$as_me:$LINENO: result: no" >&5
5112 echo "${ECHO_T}no" >&6
5116 if test -z "$ac_cv_prog_CC"; then
5118 # Extract the first word of "gcc", so it can be a program name with args.
5119 set dummy gcc; ac_word=$2
5120 echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 if test -n "$ac_ct_CC"; then
5126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135 ac_cv_prog_ac_ct_CC="gcc"
5136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5145 if test -n "$ac_ct_CC"; then
5146 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5147 echo "${ECHO_T}$ac_ct_CC" >&6
5149 echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6
5158 if test -z "$CC"; then
5159 if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5161 set dummy ${ac_tool_prefix}cc; ac_word=$2
5162 echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164 if test "${ac_cv_prog_CC+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 if test -n "$CC"; then
5168 ac_cv_prog_CC="$CC" # Let the user override the test.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_CC="${ac_tool_prefix}cc"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 if test -n "$CC"; then
5188 echo "$as_me:$LINENO: result: $CC" >&5
5189 echo "${ECHO_T}$CC" >&6
5191 echo "$as_me:$LINENO: result: no" >&5
5192 echo "${ECHO_T}no" >&6
5196 if test -z "$ac_cv_prog_CC"; then
5198 # Extract the first word of "cc", so it can be a program name with args.
5199 set dummy cc; ac_word=$2
5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 if test -n "$ac_ct_CC"; then
5206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_ac_ct_CC="cc"
5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5225 if test -n "$ac_ct_CC"; then
5226 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5227 echo "${ECHO_T}$ac_ct_CC" >&6
5229 echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5239 if test -z "$CC"; then
5240 # Extract the first word of "cc", so it can be a program name with args.
5241 set dummy cc; ac_word=$2
5242 echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244 if test "${ac_cv_prog_CC+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 if test -n "$CC"; then
5248 ac_cv_prog_CC="$CC" # Let the user override the test.
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5259 ac_prog_rejected=yes
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 if test $ac_prog_rejected = yes; then
5270 # We found a bogon in the path, so make sure we never use it.
5271 set dummy $ac_cv_prog_CC
5273 if test $# != 0; then
5274 # We chose a different compiler from the bogus one.
5275 # However, it has the same basename, so the bogon will be chosen
5276 # first if we set CC to just the basename; use the full file name.
5278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5284 if test -n "$CC"; then
5285 echo "$as_me:$LINENO: result: $CC" >&5
5286 echo "${ECHO_T}$CC" >&6
5288 echo "$as_me:$LINENO: result: no" >&5
5289 echo "${ECHO_T}no" >&6
5293 if test -z "$CC"; then
5294 if test -n "$ac_tool_prefix"; then
5297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_CC+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 if test -n "$CC"; then
5305 ac_cv_prog_CC="$CC" # Let the user override the test.
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 if test -n "$CC"; then
5325 echo "$as_me:$LINENO: result: $CC" >&5
5326 echo "${ECHO_T}$CC" >&6
5328 echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5332 test -n "$CC" && break
5335 if test -z "$CC"; then
5339 # Extract the first word of "$ac_prog", so it can be a program name with args.
5340 set dummy $ac_prog; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 if test -n "$ac_ct_CC"; then
5347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_ac_ct_CC="$ac_prog"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5366 if test -n "$ac_ct_CC"; then
5367 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5368 echo "${ECHO_T}$ac_ct_CC" >&6
5370 echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5374 test -n "$ac_ct_CC" && break
5383 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5384 See \`config.log' for more details." >&5
5385 echo "$as_me: error: no acceptable C compiler found in \$PATH
5386 See \`config.log' for more details." >&2;}
5387 { (exit 1); exit 1; }; }
5389 # Provide some information about the compiler.
5390 echo "$as_me:$LINENO:" \
5391 "checking for C compiler version" >&5
5392 ac_compiler=`set X $ac_compile; echo $2`
5393 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5394 (eval $ac_compiler --version </dev/null >&5) 2>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }
5398 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5399 (eval $ac_compiler -v </dev/null >&5) 2>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }
5403 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5404 (eval $ac_compiler -V </dev/null >&5) 2>&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }
5409 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5410 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5411 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 cat >conftest.$ac_ext <<_ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5432 rm -f conftest.$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5461 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5464 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5465 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5466 GCC=`test $ac_compiler_gnu = yes && echo yes`
5467 ac_test_CFLAGS=${CFLAGS+set}
5468 ac_save_CFLAGS=$CFLAGS
5470 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5471 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5472 if test "${ac_cv_prog_cc_g+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5490 rm -f conftest.$ac_objext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492 (eval $ac_compile) 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
5499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; } &&
5505 { ac_try='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5520 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5521 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5522 if test "$ac_test_CFLAGS" = set; then
5523 CFLAGS=$ac_save_CFLAGS
5524 elif test $ac_cv_prog_cc_g = yes; then
5525 if test "$GCC" = yes; then
5531 if test "$GCC" = yes; then
5537 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5538 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5539 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 ac_cv_prog_cc_stdc=no
5544 cat >conftest.$ac_ext <<_ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5552 #include <sys/types.h>
5553 #include <sys/stat.h>
5554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5555 struct buf { int x; };
5556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5557 static char *e (p, i)
5563 static char *f (char * (*g) (char **, int), char **p, ...)
5568 s = g (p, va_arg (v,int));
5573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5574 function prototypes and stuff, but not '\xHH' hex character constants.
5575 These don't provoke an error unfortunately, instead are silently treated
5576 as 'x'. The following induces an error, until -std1 is added to get
5577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5578 array size at least. It's necessary to write '\x00'==0 to get something
5579 that's true only with -std1. */
5580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5582 int test (int i, double x);
5583 struct s1 {int (*f) (int a);};
5584 struct s2 {int (*f) (double a);};
5585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5591 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5596 # Don't try gcc -ansi; that turns off useful extensions and
5597 # breaks some systems' header files.
5598 # AIX -qlanglvl=ansi
5599 # Ultrix and OSF/1 -std1
5600 # HP-UX 10.20 and later -Ae
5601 # HP-UX older versions -Aa -D_HPUX_SOURCE
5602 # SVR4 -Xc -D__EXTENSIONS__
5603 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5605 CC="$ac_save_CC $ac_arg"
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_prog_cc_stdc=$ac_arg
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5634 rm -f conftest.err conftest.$ac_objext
5636 rm -f conftest.$ac_ext conftest.$ac_objext
5641 case "x$ac_cv_prog_cc_stdc" in
5643 echo "$as_me:$LINENO: result: none needed" >&5
5644 echo "${ECHO_T}none needed" >&6 ;;
5646 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5647 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5648 CC="$CC $ac_cv_prog_cc_stdc" ;;
5651 # Some people use a C++ compiler to compile C. Since we use `exit',
5652 # in C++ we need to declare it. In case someone uses the same compiler
5653 # for both compiling C and C++ we need to have the C++ compiler decide
5654 # the declaration of exit, since it's the most demanding environment.
5655 cat >conftest.$ac_ext <<_ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 for ac_declaration in \
5683 'extern "C" void std::exit (int) throw (); using std::exit;' \
5684 'extern "C" void std::exit (int); using std::exit;' \
5685 'extern "C" void exit (int) throw ();' \
5686 'extern "C" void exit (int);' \
5689 cat >conftest.$ac_ext <<_ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try='test -s conftest.$ac_objext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5779 if test -n "$ac_declaration"; then
5780 echo '#ifdef __cplusplus' >>confdefs.h
5781 echo $ac_declaration >>confdefs.h
5782 echo '#endif' >>confdefs.h
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5792 ac_cpp='$CPP $CPPFLAGS'
5793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798 for ac_prog in 'bison -y' byacc
5800 # Extract the first word of "$ac_prog", so it can be a program name with args.
5801 set dummy $ac_prog; ac_word=$2
5802 echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5804 if test "${ac_cv_prog_YACC+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 if test -n "$YACC"; then
5808 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_YACC="$ac_prog"
5818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 YACC=$ac_cv_prog_YACC
5827 if test -n "$YACC"; then
5828 echo "$as_me:$LINENO: result: $YACC" >&5
5829 echo "${ECHO_T}$YACC" >&6
5831 echo "$as_me:$LINENO: result: no" >&5
5832 echo "${ECHO_T}no" >&6
5835 test -n "$YACC" && break
5837 test -n "$YACC" || YACC="yacc"
5839 for ac_prog in flex lex
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy $ac_prog; ac_word=$2
5843 echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5845 if test "${ac_cv_prog_LEX+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 if test -n "$LEX"; then
5849 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_LEX="$ac_prog"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 if test -n "$LEX"; then
5869 echo "$as_me:$LINENO: result: $LEX" >&5
5870 echo "${ECHO_T}$LEX" >&6
5872 echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6
5876 test -n "$LEX" && break
5878 test -n "$LEX" || LEX=":"
5880 if test -z "$LEXLIB"
5882 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5883 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5884 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 ac_check_lib_save_LIBS=$LIBS
5889 cat >conftest.$ac_ext <<_ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5896 /* Override any gcc2 internal prototype to avoid an error. */
5900 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */
5911 rm -f conftest.$ac_objext conftest$ac_exeext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5913 (eval $ac_link) 2>conftest.er1
5915 grep -v '^ *+' conftest.er1 >conftest.err
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest$ac_exeext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_lib_fl_yywrap=yes
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 ac_cv_lib_fl_yywrap=no
5939 rm -f conftest.err conftest.$ac_objext \
5940 conftest$ac_exeext conftest.$ac_ext
5941 LIBS=$ac_check_lib_save_LIBS
5943 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5944 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5945 if test $ac_cv_lib_fl_yywrap = yes; then
5948 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5949 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5950 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 ac_check_lib_save_LIBS=$LIBS
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5962 /* Override any gcc2 internal prototype to avoid an error. */
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>conftest.er1
5981 grep -v '^ *+' conftest.er1 >conftest.err
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; } &&
5992 { ac_try='test -s conftest$ac_exeext'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_cv_lib_l_yywrap=yes
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_cv_lib_l_yywrap=no
6005 rm -f conftest.err conftest.$ac_objext \
6006 conftest$ac_exeext conftest.$ac_ext
6007 LIBS=$ac_check_lib_save_LIBS
6009 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6010 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6011 if test $ac_cv_lib_l_yywrap = yes; then
6019 if test "x$LEX" != "x:"; then
6020 echo "$as_me:$LINENO: checking lex output file root" >&5
6021 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6022 if test "${ac_cv_prog_lex_root+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 # The minimal lex program is just a single line: %%. But some broken lexes
6026 # (Solaris, I think it was) want two %% lines, so accommodate them.
6027 cat >conftest.l <<_ACEOF
6031 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6032 (eval $LEX conftest.l) 2>&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }
6036 if test -f lex.yy.c; then
6037 ac_cv_prog_lex_root=lex.yy
6038 elif test -f lexyy.c; then
6039 ac_cv_prog_lex_root=lexyy
6041 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6042 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6043 { (exit 1); exit 1; }; }
6046 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6047 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6049 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6051 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6052 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6053 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 # POSIX says lex can declare yytext either as a pointer or an array; the
6057 # default is implementation-dependent. Figure out which it is, since
6058 # not all implementations provide the %pointer and %array declarations.
6059 ac_cv_prog_lex_yytext_pointer=no
6060 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6062 LIBS="$LIBS $LEXLIB"
6063 cat >conftest.$ac_ext <<_ACEOF
6064 `cat $LEX_OUTPUT_ROOT.c`
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>conftest.er1
6070 grep -v '^ *+' conftest.er1 >conftest.err
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
6075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest$ac_exeext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_prog_lex_yytext_pointer=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6093 rm -f conftest.err conftest.$ac_objext \
6094 conftest$ac_exeext conftest.$ac_ext
6096 rm -f "${LEX_OUTPUT_ROOT}.c"
6099 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6100 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6101 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6103 cat >>confdefs.h <<\_ACEOF
6104 #define YYTEXT_POINTER 1
6110 if test "$LEX" = :; then
6111 LEX=${am_missing_run}flex
6114 ALL_LINGUAS="fr tr es"
6115 if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6118 echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120 if test "${ac_cv_prog_RANLIB+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 if test -n "$RANLIB"; then
6124 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 RANLIB=$ac_cv_prog_RANLIB
6143 if test -n "$RANLIB"; then
6144 echo "$as_me:$LINENO: result: $RANLIB" >&5
6145 echo "${ECHO_T}$RANLIB" >&6
6147 echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6
6152 if test -z "$ac_cv_prog_RANLIB"; then
6153 ac_ct_RANLIB=$RANLIB
6154 # Extract the first word of "ranlib", so it can be a program name with args.
6155 set dummy ranlib; ac_word=$2
6156 echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 if test -n "$ac_ct_RANLIB"; then
6162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171 ac_cv_prog_ac_ct_RANLIB="ranlib"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6182 if test -n "$ac_ct_RANLIB"; then
6183 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6184 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6186 echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6
6190 RANLIB=$ac_ct_RANLIB
6192 RANLIB="$ac_cv_prog_RANLIB"
6196 ac_cpp='$CPP $CPPFLAGS'
6197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6200 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6202 # On Suns, sometimes $CPP names a directory.
6203 if test -n "$CPP" && test -d "$CPP"; then
6206 if test -z "$CPP"; then
6207 if test "${ac_cv_prog_CPP+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 # Double quotes because CPP needs to be expanded
6211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6214 for ac_c_preproc_warn_flag in '' yes
6216 # Use a header file that comes with gcc, so configuring glibc
6217 # with a fresh cross-compiler works.
6218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219 # <limits.h> exists even on freestanding compilers.
6220 # On the NeXT, cc -E runs the code through the compiler's parser,
6221 # not just through cpp. "Syntax error" is here to catch this case.
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6229 # include <limits.h>
6231 # include <assert.h>
6235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6238 grep -v '^ *+' conftest.er1 >conftest.err
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } >/dev/null; then
6243 if test -s conftest.err; then
6244 ac_cpp_err=$ac_c_preproc_warn_flag
6245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6252 if test -z "$ac_cpp_err"; then
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 # Broken: fails on valid input.
6261 rm -f conftest.err conftest.$ac_ext
6263 # OK, works on sane cases. Now check whether non-existent headers
6264 # can be detected and how.
6265 cat >conftest.$ac_ext <<_ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 #include <ac_nonexistent.h>
6273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6276 grep -v '^ *+' conftest.er1 >conftest.err
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } >/dev/null; then
6281 if test -s conftest.err; then
6282 ac_cpp_err=$ac_c_preproc_warn_flag
6283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6290 if test -z "$ac_cpp_err"; then
6291 # Broken: success on invalid input.
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 # Passes both tests.
6301 rm -f conftest.err conftest.$ac_ext
6304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6305 rm -f conftest.err conftest.$ac_ext
6306 if $ac_preproc_ok; then
6318 echo "$as_me:$LINENO: result: $CPP" >&5
6319 echo "${ECHO_T}$CPP" >&6
6321 for ac_c_preproc_warn_flag in '' yes
6323 # Use a header file that comes with gcc, so configuring glibc
6324 # with a fresh cross-compiler works.
6325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6326 # <limits.h> exists even on freestanding compilers.
6327 # On the NeXT, cc -E runs the code through the compiler's parser,
6328 # not just through cpp. "Syntax error" is here to catch this case.
6329 cat >conftest.$ac_ext <<_ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6336 # include <limits.h>
6338 # include <assert.h>
6342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } >/dev/null; then
6350 if test -s conftest.err; then
6351 ac_cpp_err=$ac_c_preproc_warn_flag
6352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6359 if test -z "$ac_cpp_err"; then
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 # Broken: fails on valid input.
6368 rm -f conftest.err conftest.$ac_ext
6370 # OK, works on sane cases. Now check whether non-existent headers
6371 # can be detected and how.
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 #include <ac_nonexistent.h>
6380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6383 grep -v '^ *+' conftest.er1 >conftest.err
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } >/dev/null; then
6388 if test -s conftest.err; then
6389 ac_cpp_err=$ac_c_preproc_warn_flag
6390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6397 if test -z "$ac_cpp_err"; then
6398 # Broken: success on invalid input.
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 # Passes both tests.
6408 rm -f conftest.err conftest.$ac_ext
6411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6412 rm -f conftest.err conftest.$ac_ext
6413 if $ac_preproc_ok; then
6416 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6417 See \`config.log' for more details." >&5
6418 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6419 See \`config.log' for more details." >&2;}
6420 { (exit 1); exit 1; }; }
6424 ac_cpp='$CPP $CPPFLAGS'
6425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6430 echo "$as_me:$LINENO: checking for egrep" >&5
6431 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6432 if test "${ac_cv_prog_egrep+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6436 then ac_cv_prog_egrep='grep -E'
6437 else ac_cv_prog_egrep='egrep'
6440 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6441 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6442 EGREP=$ac_cv_prog_egrep
6445 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6446 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6447 if test "${ac_cv_header_stdc+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 cat >conftest.$ac_ext <<_ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6469 rm -f conftest.$ac_objext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1 >conftest.err
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try='test -s conftest.$ac_objext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 ac_cv_header_stdc=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 ac_cv_header_stdc=no
6497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6499 if test $ac_cv_header_stdc = yes; then
6500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6501 cat >conftest.$ac_ext <<_ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6511 $EGREP "memchr" >/dev/null 2>&1; then
6514 ac_cv_header_stdc=no
6520 if test $ac_cv_header_stdc = yes; then
6521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6522 cat >conftest.$ac_ext <<_ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532 $EGREP "free" >/dev/null 2>&1; then
6535 ac_cv_header_stdc=no
6541 if test $ac_cv_header_stdc = yes; then
6542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6543 if test "$cross_compiling" = yes; then
6546 cat >conftest.$ac_ext <<_ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6553 #if ((' ' & 0x0FF) == 0x020)
6554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6557 # define ISLOWER(c) \
6558 (('a' <= (c) && (c) <= 'i') \
6559 || ('j' <= (c) && (c) <= 'r') \
6560 || ('s' <= (c) && (c) <= 'z'))
6561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6569 for (i = 0; i < 256; i++)
6570 if (XOR (islower (i), ISLOWER (i))
6571 || toupper (i) != TOUPPER (i))
6576 rm -f conftest$ac_exeext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578 (eval $ac_link) 2>&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6589 echo "$as_me: program exited with status $ac_status" >&5
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_cv_header_stdc=no
6596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6600 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6601 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6602 if test $ac_cv_header_stdc = yes; then
6604 cat >>confdefs.h <<\_ACEOF
6605 #define STDC_HEADERS 1
6610 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6611 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6612 if test "${ac_cv_c_const+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6625 /* FIXME: Include the comments suggested by Paul. */
6627 /* Ultrix mips cc rejects this. */
6628 typedef int charset[2];
6630 /* SunOS 4.1.1 cc rejects this. */
6631 char const *const *ccp;
6633 /* NEC SVR4.0.2 mips cc rejects this. */
6634 struct point {int x, y;};
6635 static struct point const zero = {0,0};
6636 /* AIX XL C 1.02.0.0 rejects this.
6637 It does not let you subtract one const X* pointer from another in
6638 an arm of an if-expression whose if-part is not a constant
6640 const char *g = "string";
6641 ccp = &g + (g ? g-g : 0);
6642 /* HPUX 7.0 cc rejects these. */
6645 ccp = (char const *const *) p;
6646 { /* SCO 3.2v4 cc rejects this. */
6648 char const *s = 0 ? (char *) 0 : (char const *) 0;
6652 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6654 const int *foo = &x[0];
6657 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6658 typedef const int *iptr;
6662 { /* AIX XL C 1.02.0.0 rejects this saying
6663 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6664 struct s { int j; const int *ap[3]; };
6665 struct s *b; b->j = 5;
6667 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>conftest.er1
6680 grep -v '^ *+' conftest.er1 >conftest.err
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest.$ac_objext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6706 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6707 echo "${ECHO_T}$ac_cv_c_const" >&6
6708 if test $ac_cv_c_const = no; then
6710 cat >>confdefs.h <<\_ACEOF
6716 echo "$as_me:$LINENO: checking for inline" >&5
6717 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6718 if test "${ac_cv_c_inline+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 for ac_kw in inline __inline__ __inline; do
6723 cat >conftest.$ac_ext <<_ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6731 static $ac_kw foo_t static_foo () {return 0; }
6732 $ac_kw foo_t foo () {return 0; }
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>conftest.er1
6740 grep -v '^ *+' conftest.er1 >conftest.err
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 ac_cv_c_inline=$ac_kw; break
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6767 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6768 echo "${ECHO_T}$ac_cv_c_inline" >&6
6771 case $ac_cv_c_inline in
6774 case $ac_cv_c_inline in
6776 *) ac_val=$ac_cv_c_inline;;
6778 cat >>confdefs.h <<_ACEOF
6780 #define inline $ac_val
6786 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6796 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6797 inttypes.h stdint.h unistd.h
6799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6800 echo "$as_me:$LINENO: checking for $ac_header" >&5
6801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 $ac_includes_default
6813 #include <$ac_header>
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817 (eval $ac_compile) 2>conftest.er1
6819 grep -v '^ *+' conftest.er1 >conftest.err
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest.$ac_objext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 eval "$as_ac_Header=yes"
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6841 eval "$as_ac_Header=no"
6843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6848 cat >>confdefs.h <<_ACEOF
6849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6857 echo "$as_me:$LINENO: checking for off_t" >&5
6858 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6859 if test "${ac_cv_type_off_t+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 $ac_includes_default
6880 rm -f conftest.$ac_objext
6881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6882 (eval $ac_compile) 2>conftest.er1
6884 grep -v '^ *+' conftest.er1 >conftest.err
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
6889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest.$ac_objext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_type_off_t=yes
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6910 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6911 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6912 if test $ac_cv_type_off_t = yes; then
6916 cat >>confdefs.h <<_ACEOF
6922 echo "$as_me:$LINENO: checking for size_t" >&5
6923 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6924 if test "${ac_cv_type_size_t+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 cat >conftest.$ac_ext <<_ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6939 if (sizeof (size_t))
6945 rm -f conftest.$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>conftest.er1
6949 grep -v '^ *+' conftest.er1 >conftest.err
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; } &&
6960 { ac_try='test -s conftest.$ac_objext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 ac_cv_type_size_t=yes
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 ac_cv_type_size_t=no
6973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6975 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6976 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6977 if test $ac_cv_type_size_t = yes; then
6981 cat >>confdefs.h <<_ACEOF
6982 #define size_t unsigned
6987 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6988 # for constant arguments. Useless!
6989 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6990 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6991 if test "${ac_cv_working_alloca_h+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7004 char *p = (char *) alloca (2 * sizeof (int));
7009 rm -f conftest.$ac_objext conftest$ac_exeext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7011 (eval $ac_link) 2>conftest.er1
7013 grep -v '^ *+' conftest.er1 >conftest.err
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest$ac_exeext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_cv_working_alloca_h=yes
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 ac_cv_working_alloca_h=no
7037 rm -f conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7040 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7041 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7042 if test $ac_cv_working_alloca_h = yes; then
7044 cat >>confdefs.h <<\_ACEOF
7045 #define HAVE_ALLOCA_H 1
7050 echo "$as_me:$LINENO: checking for alloca" >&5
7051 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7052 if test "${ac_cv_func_alloca_works+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7062 # define alloca __builtin_alloca
7065 # include <malloc.h>
7066 # define alloca _alloca
7069 # include <alloca.h>
7074 # ifndef alloca /* predefined by HP cc +Olibcalls */
7085 char *p = (char *) alloca (1);
7090 rm -f conftest.$ac_objext conftest$ac_exeext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7092 (eval $ac_link) 2>conftest.er1
7094 grep -v '^ *+' conftest.er1 >conftest.err
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; } &&
7105 { ac_try='test -s conftest$ac_exeext'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 ac_cv_func_alloca_works=yes
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7116 ac_cv_func_alloca_works=no
7118 rm -f conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7121 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7122 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7124 if test $ac_cv_func_alloca_works = yes; then
7126 cat >>confdefs.h <<\_ACEOF
7127 #define HAVE_ALLOCA 1
7131 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7132 # that cause trouble. Some versions do not even contain alloca or
7133 # contain a buggy version. If you still want to use their alloca,
7134 # use ar to extract alloca.o from them instead of compiling alloca.c.
7136 ALLOCA=alloca.$ac_objext
7138 cat >>confdefs.h <<\_ACEOF
7143 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7144 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7145 if test "${ac_cv_os_cray+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 #if defined(CRAY) && ! defined(CRAY2)
7161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7162 $EGREP "webecray" >/dev/null 2>&1; then
7170 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7171 echo "${ECHO_T}$ac_cv_os_cray" >&6
7172 if test $ac_cv_os_cray = yes; then
7173 for ac_func in _getb67 GETB67 getb67; do
7174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7175 echo "$as_me:$LINENO: checking for $ac_func" >&5
7176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7177 if eval "test \"\${$as_ac_var+set}\" = set"; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7188 #define $ac_func innocuous_$ac_func
7190 /* System header to define __stub macros and hopefully few prototypes,
7191 which can conflict with char $ac_func (); below.
7192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7193 <limits.h> exists even on freestanding compilers. */
7196 # include <limits.h>
7198 # include <assert.h>
7203 /* Override any gcc2 internal prototype to avoid an error. */
7208 /* We use char because int might match the return type of a gcc2
7209 builtin and then its argument prototype would still apply. */
7211 /* The GNU C library defines this for functions which it implements
7212 to always fail with ENOSYS. Some functions are actually named
7213 something starting with __ and the normal name is an alias. */
7214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7217 char (*f) () = $ac_func;
7226 return f != $ac_func;
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7233 (eval $ac_link) 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; } &&
7246 { ac_try='test -s conftest$ac_exeext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 eval "$as_ac_var=yes"
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7257 eval "$as_ac_var=no"
7259 rm -f conftest.err conftest.$ac_objext \
7260 conftest$ac_exeext conftest.$ac_ext
7262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7264 if test `eval echo '${'$as_ac_var'}'` = yes; then
7266 cat >>confdefs.h <<_ACEOF
7267 #define CRAY_STACKSEG_END $ac_func
7276 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7277 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7278 if test "${ac_cv_c_stack_direction+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 if test "$cross_compiling" = yes; then
7282 ac_cv_c_stack_direction=0
7284 cat >conftest.$ac_ext <<_ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7291 find_stack_direction ()
7293 static char *addr = 0;
7298 return find_stack_direction ();
7301 return (&dummy > addr) ? 1 : -1;
7307 exit (find_stack_direction () < 0);
7310 rm -f conftest$ac_exeext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 ac_cv_c_stack_direction=1
7323 echo "$as_me: program exited with status $ac_status" >&5
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7328 ac_cv_c_stack_direction=-1
7330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7333 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7334 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7336 cat >>confdefs.h <<_ACEOF
7337 #define STACK_DIRECTION $ac_cv_c_stack_direction
7345 for ac_header in stdlib.h unistd.h
7347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7349 echo "$as_me:$LINENO: checking for $ac_header" >&5
7350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7357 # Is the header compilable?
7358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 $ac_includes_default
7367 #include <$ac_header>
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 (eval $ac_compile) 2>conftest.er1
7373 grep -v '^ *+' conftest.er1 >conftest.err
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest.$ac_objext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 ac_header_compiler=yes
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7395 ac_header_compiler=no
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7399 echo "${ECHO_T}$ac_header_compiler" >&6
7401 # Is the header present?
7402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7404 cat >conftest.$ac_ext <<_ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 #include <$ac_header>
7412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7415 grep -v '^ *+' conftest.er1 >conftest.err
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } >/dev/null; then
7420 if test -s conftest.err; then
7421 ac_cpp_err=$ac_c_preproc_warn_flag
7422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7429 if test -z "$ac_cpp_err"; then
7430 ac_header_preproc=yes
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_header_preproc=no
7437 rm -f conftest.err conftest.$ac_ext
7438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7439 echo "${ECHO_T}$ac_header_preproc" >&6
7441 # So? What about this header?
7442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7448 ac_header_preproc=yes
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7465 ## ------------------------------------------ ##
7466 ## Report this to the AC_PACKAGE_NAME lists. ##
7467 ## ------------------------------------------ ##
7470 sed "s/^/$as_me: WARNING: /" >&2
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 eval "$as_ac_Header=\$ac_header_preproc"
7480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485 cat >>confdefs.h <<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7494 for ac_func in getpagesize
7496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7497 echo "$as_me:$LINENO: checking for $ac_func" >&5
7498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7499 if eval "test \"\${$as_ac_var+set}\" = set"; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 cat >conftest.$ac_ext <<_ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7510 #define $ac_func innocuous_$ac_func
7512 /* System header to define __stub macros and hopefully few prototypes,
7513 which can conflict with char $ac_func (); below.
7514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7515 <limits.h> exists even on freestanding compilers. */
7518 # include <limits.h>
7520 # include <assert.h>
7525 /* Override any gcc2 internal prototype to avoid an error. */
7530 /* We use char because int might match the return type of a gcc2
7531 builtin and then its argument prototype would still apply. */
7533 /* The GNU C library defines this for functions which it implements
7534 to always fail with ENOSYS. Some functions are actually named
7535 something starting with __ and the normal name is an alias. */
7536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7539 char (*f) () = $ac_func;
7548 return f != $ac_func;
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>conftest.er1
7557 grep -v '^ *+' conftest.er1 >conftest.err
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; } &&
7568 { ac_try='test -s conftest$ac_exeext'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; }; then
7574 eval "$as_ac_var=yes"
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 eval "$as_ac_var=no"
7581 rm -f conftest.err conftest.$ac_objext \
7582 conftest$ac_exeext conftest.$ac_ext
7584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7586 if test `eval echo '${'$as_ac_var'}'` = yes; then
7587 cat >>confdefs.h <<_ACEOF
7588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7594 echo "$as_me:$LINENO: checking for working mmap" >&5
7595 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7596 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 if test "$cross_compiling" = yes; then
7600 ac_cv_func_mmap_fixed_mapped=no
7602 cat >conftest.$ac_ext <<_ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7608 $ac_includes_default
7609 /* malloc might have been renamed as rpl_malloc. */
7612 /* Thanks to Mike Haertel and Jim Avera for this test.
7613 Here is a matrix of mmap possibilities:
7614 mmap private not fixed
7615 mmap private fixed at somewhere currently unmapped
7616 mmap private fixed at somewhere already mapped
7617 mmap shared not fixed
7618 mmap shared fixed at somewhere currently unmapped
7619 mmap shared fixed at somewhere already mapped
7620 For private mappings, we should verify that changes cannot be read()
7621 back from the file, nor mmap's back from the file at a different
7622 address. (There have been systems where private was not correctly
7623 implemented like the infamous i386 svr4.0, and systems where the
7624 VM page cache was not coherent with the file system buffer cache
7625 like early versions of FreeBSD and possibly contemporary NetBSD.)
7626 For shared mappings, we should conversely verify that changes get
7627 propagated back to all the places they're supposed to be.
7629 Grep wants private fixed already mapped.
7630 The main things grep needs to know about mmap are:
7631 * does it exist and is it safe to write into the mmap'd area
7632 * how to use it (BSD variants) */
7635 #include <sys/mman.h>
7637 #if !STDC_HEADERS && !HAVE_STDLIB_H
7641 /* This mess was copied from the GNU getpagesize.h. */
7642 #if !HAVE_GETPAGESIZE
7643 /* Assume that all systems that can run configure have sys/param.h. */
7644 # if !HAVE_SYS_PARAM_H
7645 # define HAVE_SYS_PARAM_H 1
7648 # ifdef _SC_PAGESIZE
7649 # define getpagesize() sysconf(_SC_PAGESIZE)
7650 # else /* no _SC_PAGESIZE */
7651 # if HAVE_SYS_PARAM_H
7652 # include <sys/param.h>
7653 # ifdef EXEC_PAGESIZE
7654 # define getpagesize() EXEC_PAGESIZE
7655 # else /* no EXEC_PAGESIZE */
7657 # define getpagesize() NBPG * CLSIZE
7660 # endif /* no CLSIZE */
7661 # else /* no NBPG */
7663 # define getpagesize() NBPC
7664 # else /* no NBPC */
7666 # define getpagesize() PAGESIZE
7667 # endif /* PAGESIZE */
7668 # endif /* no NBPC */
7669 # endif /* no NBPG */
7670 # endif /* no EXEC_PAGESIZE */
7671 # else /* no HAVE_SYS_PARAM_H */
7672 # define getpagesize() 8192 /* punt totally */
7673 # endif /* no HAVE_SYS_PARAM_H */
7674 # endif /* no _SC_PAGESIZE */
7676 #endif /* no HAVE_GETPAGESIZE */
7681 char *data, *data2, *data3;
7685 pagesize = getpagesize ();
7687 /* First, make a file with some known garbage in it. */
7688 data = (char *) malloc (pagesize);
7691 for (i = 0; i < pagesize; ++i)
7692 *(data + i) = rand ();
7694 fd = creat ("conftest.mmap", 0600);
7697 if (write (fd, data, pagesize) != pagesize)
7701 /* Next, try to mmap the file at a fixed address which already has
7702 something else allocated at it. If we can, also make sure that
7703 we see the same garbage. */
7704 fd = open ("conftest.mmap", O_RDWR);
7707 data2 = (char *) malloc (2 * pagesize);
7710 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7711 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7712 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7714 for (i = 0; i < pagesize; ++i)
7715 if (*(data + i) != *(data2 + i))
7718 /* Finally, make sure that changes to the mapped area do not
7719 percolate back to the file as seen by read(). (This is a bug on
7720 some variants of i386 svr4.0.) */
7721 for (i = 0; i < pagesize; ++i)
7722 *(data2 + i) = *(data2 + i) + 1;
7723 data3 = (char *) malloc (pagesize);
7726 if (read (fd, data3, pagesize) != pagesize)
7728 for (i = 0; i < pagesize; ++i)
7729 if (*(data + i) != *(data3 + i))
7735 rm -f conftest$ac_exeext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737 (eval $ac_link) 2>&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 ac_cv_func_mmap_fixed_mapped=yes
7748 echo "$as_me: program exited with status $ac_status" >&5
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7753 ac_cv_func_mmap_fixed_mapped=no
7755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7758 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7759 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7760 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7762 cat >>confdefs.h <<\_ACEOF
7779 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7780 unistd.h values.h sys/param.h
7782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7784 echo "$as_me:$LINENO: checking for $ac_header" >&5
7785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7792 # Is the header compilable?
7793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7801 $ac_includes_default
7802 #include <$ac_header>
7804 rm -f conftest.$ac_objext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806 (eval $ac_compile) 2>conftest.er1
7808 grep -v '^ *+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest.$ac_objext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_header_compiler=yes
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7830 ac_header_compiler=no
7832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834 echo "${ECHO_T}$ac_header_compiler" >&6
7836 # Is the header present?
7837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 #include <$ac_header>
7847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7850 grep -v '^ *+' conftest.er1 >conftest.err
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } >/dev/null; then
7855 if test -s conftest.err; then
7856 ac_cpp_err=$ac_c_preproc_warn_flag
7857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7864 if test -z "$ac_cpp_err"; then
7865 ac_header_preproc=yes
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 ac_header_preproc=no
7872 rm -f conftest.err conftest.$ac_ext
7873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874 echo "${ECHO_T}$ac_header_preproc" >&6
7876 # So? What about this header?
7877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883 ac_header_preproc=yes
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7900 ## ------------------------------------------ ##
7901 ## Report this to the AC_PACKAGE_NAME lists. ##
7902 ## ------------------------------------------ ##
7905 sed "s/^/$as_me: WARNING: /" >&2
7908 echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 eval "$as_ac_Header=\$ac_header_preproc"
7915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7920 cat >>confdefs.h <<_ACEOF
7921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7938 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7939 __argz_count __argz_stringify __argz_next
7941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7942 echo "$as_me:$LINENO: checking for $ac_func" >&5
7943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7944 if eval "test \"\${$as_ac_var+set}\" = set"; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 cat >conftest.$ac_ext <<_ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7955 #define $ac_func innocuous_$ac_func
7957 /* System header to define __stub macros and hopefully few prototypes,
7958 which can conflict with char $ac_func (); below.
7959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7960 <limits.h> exists even on freestanding compilers. */
7963 # include <limits.h>
7965 # include <assert.h>
7970 /* Override any gcc2 internal prototype to avoid an error. */
7975 /* We use char because int might match the return type of a gcc2
7976 builtin and then its argument prototype would still apply. */
7978 /* The GNU C library defines this for functions which it implements
7979 to always fail with ENOSYS. Some functions are actually named
7980 something starting with __ and the normal name is an alias. */
7981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7984 char (*f) () = $ac_func;
7993 return f != $ac_func;
7998 rm -f conftest.$ac_objext conftest$ac_exeext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000 (eval $ac_link) 2>conftest.er1
8002 grep -v '^ *+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; } &&
8013 { ac_try='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 eval "$as_ac_var=yes"
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 eval "$as_ac_var=no"
8026 rm -f conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8031 if test `eval echo '${'$as_ac_var'}'` = yes; then
8032 cat >>confdefs.h <<_ACEOF
8033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8040 if test "${ac_cv_func_stpcpy+set}" != "set"; then
8042 for ac_func in stpcpy
8044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8045 echo "$as_me:$LINENO: checking for $ac_func" >&5
8046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8047 if eval "test \"\${$as_ac_var+set}\" = set"; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8058 #define $ac_func innocuous_$ac_func
8060 /* System header to define __stub macros and hopefully few prototypes,
8061 which can conflict with char $ac_func (); below.
8062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8063 <limits.h> exists even on freestanding compilers. */
8066 # include <limits.h>
8068 # include <assert.h>
8073 /* Override any gcc2 internal prototype to avoid an error. */
8078 /* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
8081 /* The GNU C library defines this for functions which it implements
8082 to always fail with ENOSYS. Some functions are actually named
8083 something starting with __ and the normal name is an alias. */
8084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8087 char (*f) () = $ac_func;
8096 return f != $ac_func;
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>conftest.er1
8105 grep -v '^ *+' conftest.er1 >conftest.err
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
8110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest$ac_exeext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 eval "$as_ac_var=yes"
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 eval "$as_ac_var=no"
8129 rm -f conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
8132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8134 if test `eval echo '${'$as_ac_var'}'` = yes; then
8135 cat >>confdefs.h <<_ACEOF
8136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8143 if test "${ac_cv_func_stpcpy}" = "yes"; then
8145 cat >>confdefs.h <<\_ACEOF
8146 #define HAVE_STPCPY 1
8151 if test $ac_cv_header_locale_h = yes; then
8152 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8153 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8154 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 cat >conftest.$ac_ext <<_ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174 (eval $ac_link) 2>conftest.er1
8176 grep -v '^ *+' conftest.er1 >conftest.err
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest$ac_exeext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 am_cv_val_LC_MESSAGES=yes
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 am_cv_val_LC_MESSAGES=no
8200 rm -f conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8203 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8204 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8205 if test $am_cv_val_LC_MESSAGES = yes; then
8207 cat >>confdefs.h <<\_ACEOF
8208 #define HAVE_LC_MESSAGES 1
8213 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8214 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8215 # Check whether --enable-nls or --disable-nls was given.
8216 if test "${enable_nls+set}" = set; then
8217 enableval="$enable_nls"
8222 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8223 echo "${ECHO_T}$USE_NLS" >&6
8226 USE_INCLUDED_LIBINTL=no
8228 if test "$USE_NLS" = "yes"; then
8229 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8230 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8232 # Check whether --with-included-gettext or --without-included-gettext was given.
8233 if test "${with_included_gettext+set}" = set; then
8234 withval="$with_included_gettext"
8235 nls_cv_force_use_gnu_gettext=$withval
8237 nls_cv_force_use_gnu_gettext=no
8239 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8240 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8242 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8243 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8245 nls_cv_header_libgt=
8248 if test "${ac_cv_header_libintl_h+set}" = set; then
8249 echo "$as_me:$LINENO: checking for libintl.h" >&5
8250 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8251 if test "${ac_cv_header_libintl_h+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8255 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8257 # Is the header compilable?
8258 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8259 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8260 cat >conftest.$ac_ext <<_ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 $ac_includes_default
8267 #include <libintl.h>
8269 rm -f conftest.$ac_objext
8270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8271 (eval $ac_compile) 2>conftest.er1
8273 grep -v '^ *+' conftest.er1 >conftest.err
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest.$ac_objext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_header_compiler=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 ac_header_compiler=no
8297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8299 echo "${ECHO_T}$ac_header_compiler" >&6
8301 # Is the header present?
8302 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8303 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 #include <libintl.h>
8312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8315 grep -v '^ *+' conftest.er1 >conftest.err
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } >/dev/null; then
8320 if test -s conftest.err; then
8321 ac_cpp_err=$ac_c_preproc_warn_flag
8322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8329 if test -z "$ac_cpp_err"; then
8330 ac_header_preproc=yes
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 ac_header_preproc=no
8337 rm -f conftest.err conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8339 echo "${ECHO_T}$ac_header_preproc" >&6
8341 # So? What about this header?
8342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8344 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8345 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8347 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8348 ac_header_preproc=yes
8351 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8352 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8354 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8356 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8357 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8358 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8360 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8362 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8365 ## ------------------------------------------ ##
8366 ## Report this to the AC_PACKAGE_NAME lists. ##
8367 ## ------------------------------------------ ##
8370 sed "s/^/$as_me: WARNING: /" >&2
8373 echo "$as_me:$LINENO: checking for libintl.h" >&5
8374 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8375 if test "${ac_cv_header_libintl_h+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 ac_cv_header_libintl_h=$ac_header_preproc
8380 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8381 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8384 if test $ac_cv_header_libintl_h = yes; then
8385 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8386 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8387 if test "${gt_cv_func_gettext_libc+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 cat >conftest.$ac_ext <<_ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 #include <libintl.h>
8400 return (int) gettext ("")
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest$ac_exeext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 gt_cv_func_gettext_libc=yes
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 gt_cv_func_gettext_libc=no
8433 rm -f conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8436 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8437 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8439 if test "$gt_cv_func_gettext_libc" != "yes"; then
8440 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8441 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8442 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 ac_check_lib_save_LIBS=$LIBS
8447 cat >conftest.$ac_ext <<_ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8454 /* Override any gcc2 internal prototype to avoid an error. */
8458 /* We use char because int might match the return type of a gcc2
8459 builtin and then its argument prototype would still apply. */
8460 char bindtextdomain ();
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471 (eval $ac_link) 2>conftest.er1
8473 grep -v '^ *+' conftest.er1 >conftest.err
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
8478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest$ac_exeext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_cv_lib_intl_bindtextdomain=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_cv_lib_intl_bindtextdomain=no
8497 rm -f conftest.err conftest.$ac_objext \
8498 conftest$ac_exeext conftest.$ac_ext
8499 LIBS=$ac_check_lib_save_LIBS
8501 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8502 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8503 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8504 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8505 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8506 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8519 return (int) gettext ("")
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>conftest.er1
8528 grep -v '^ *+' conftest.er1 >conftest.err
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest$ac_exeext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 gt_cv_func_gettext_libintl=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 gt_cv_func_gettext_libintl=no
8552 rm -f conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8555 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8556 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8561 if test "$gt_cv_func_gettext_libc" = "yes" \
8562 || test "$gt_cv_func_gettext_libintl" = "yes"; then
8564 cat >>confdefs.h <<\_ACEOF
8565 #define HAVE_GETTEXT 1
8568 # Extract the first word of "msgfmt", so it can be a program name with args.
8569 set dummy msgfmt; ac_word=$2
8570 echo "$as_me:$LINENO: checking for $ac_word" >&5
8571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8572 if test "${ac_cv_path_MSGFMT+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8581 for ac_dir in $PATH; do
8582 test -z "$ac_dir" && ac_dir=.
8583 if test -f $ac_dir/$ac_word; then
8584 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8585 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8591 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8595 MSGFMT="$ac_cv_path_MSGFMT"
8596 if test -n "$MSGFMT"; then
8597 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8598 echo "${ECHO_T}$MSGFMT" >&6
8600 echo "$as_me:$LINENO: result: no" >&5
8601 echo "${ECHO_T}no" >&6
8603 if test "$MSGFMT" != "no"; then
8605 for ac_func in dcgettext
8607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8608 echo "$as_me:$LINENO: checking for $ac_func" >&5
8609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8610 if eval "test \"\${$as_ac_var+set}\" = set"; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8621 #define $ac_func innocuous_$ac_func
8623 /* System header to define __stub macros and hopefully few prototypes,
8624 which can conflict with char $ac_func (); below.
8625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8626 <limits.h> exists even on freestanding compilers. */
8629 # include <limits.h>
8631 # include <assert.h>
8636 /* Override any gcc2 internal prototype to avoid an error. */
8641 /* We use char because int might match the return type of a gcc2
8642 builtin and then its argument prototype would still apply. */
8644 /* The GNU C library defines this for functions which it implements
8645 to always fail with ENOSYS. Some functions are actually named
8646 something starting with __ and the normal name is an alias. */
8647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8650 char (*f) () = $ac_func;
8659 return f != $ac_func;
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666 (eval $ac_link) 2>conftest.er1
8668 grep -v '^ *+' conftest.er1 >conftest.err
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; } &&
8679 { ac_try='test -s conftest$ac_exeext'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 eval "$as_ac_var=yes"
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8690 eval "$as_ac_var=no"
8692 rm -f conftest.err conftest.$ac_objext \
8693 conftest$ac_exeext conftest.$ac_ext
8695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8697 if test `eval echo '${'$as_ac_var'}'` = yes; then
8698 cat >>confdefs.h <<_ACEOF
8699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8705 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8706 set dummy gmsgfmt; ac_word=$2
8707 echo "$as_me:$LINENO: checking for $ac_word" >&5
8708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8709 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8724 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8735 GMSGFMT=$ac_cv_path_GMSGFMT
8737 if test -n "$GMSGFMT"; then
8738 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8739 echo "${ECHO_T}$GMSGFMT" >&6
8741 echo "$as_me:$LINENO: result: no" >&5
8742 echo "${ECHO_T}no" >&6
8745 # Extract the first word of "xgettext", so it can be a program name with args.
8746 set dummy xgettext; ac_word=$2
8747 echo "$as_me:$LINENO: checking for $ac_word" >&5
8748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8749 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8758 for ac_dir in $PATH; do
8759 test -z "$ac_dir" && ac_dir=.
8760 if test -f $ac_dir/$ac_word; then
8761 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8762 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8768 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8772 XGETTEXT="$ac_cv_path_XGETTEXT"
8773 if test -n "$XGETTEXT"; then
8774 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8775 echo "${ECHO_T}$XGETTEXT" >&6
8777 echo "$as_me:$LINENO: result: no" >&5
8778 echo "${ECHO_T}no" >&6
8781 cat >conftest.$ac_ext <<_ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8791 extern int _nl_msg_cat_cntr;
8792 return _nl_msg_cat_cntr
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799 (eval $ac_link) 2>conftest.er1
8801 grep -v '^ *+' conftest.er1 >conftest.err
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest$ac_exeext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8827 rm -f conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
8838 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8839 # Neither gettext nor catgets in included in the C library.
8840 # Fall back on GNU gettext library (assuming it is present).
8841 nls_cv_use_gnu_gettext=yes
8845 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8846 INTLOBJS="\$(GETTOBJS)"
8847 # Extract the first word of "msgfmt", so it can be a program name with args.
8848 set dummy msgfmt; ac_word=$2
8849 echo "$as_me:$LINENO: checking for $ac_word" >&5
8850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8851 if test "${ac_cv_path_MSGFMT+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8860 for ac_dir in $PATH; do
8861 test -z "$ac_dir" && ac_dir=.
8862 if test -f $ac_dir/$ac_word; then
8863 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8864 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8870 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8874 MSGFMT="$ac_cv_path_MSGFMT"
8875 if test -n "$MSGFMT"; then
8876 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8877 echo "${ECHO_T}$MSGFMT" >&6
8879 echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8883 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8884 set dummy gmsgfmt; ac_word=$2
8885 echo "$as_me:$LINENO: checking for $ac_word" >&5
8886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8887 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8902 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8909 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8913 GMSGFMT=$ac_cv_path_GMSGFMT
8915 if test -n "$GMSGFMT"; then
8916 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8917 echo "${ECHO_T}$GMSGFMT" >&6
8919 echo "$as_me:$LINENO: result: no" >&5
8920 echo "${ECHO_T}no" >&6
8923 # Extract the first word of "xgettext", so it can be a program name with args.
8924 set dummy xgettext; ac_word=$2
8925 echo "$as_me:$LINENO: checking for $ac_word" >&5
8926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8936 for ac_dir in $PATH; do
8937 test -z "$ac_dir" && ac_dir=.
8938 if test -f $ac_dir/$ac_word; then
8939 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8940 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8946 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8950 XGETTEXT="$ac_cv_path_XGETTEXT"
8951 if test -n "$XGETTEXT"; then
8952 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8953 echo "${ECHO_T}$XGETTEXT" >&6
8955 echo "$as_me:$LINENO: result: no" >&5
8956 echo "${ECHO_T}no" >&6
8960 USE_INCLUDED_LIBINTL=yes
8964 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8966 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8967 nls_cv_header_intl=libintl.h
8968 nls_cv_header_libgt=libgettext.h
8971 if test "$XGETTEXT" != ":"; then
8972 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8975 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8976 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8981 # We need to process the po/ directory.
8985 nls_cv_header_intl=libintl.h
8986 nls_cv_header_libgt=libgettext.h
8989 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8990 # because some of the sources are only built for this goal.
8991 if test "$PACKAGE" = gettext; then
8993 USE_INCLUDED_LIBINTL=yes
8996 for lang in $ALL_LINGUAS; do
8997 GMOFILES="$GMOFILES $lang.gmo"
8998 POFILES="$POFILES $lang.po"
9012 if test "x$CATOBJEXT" != "x"; then
9014 cat >>confdefs.h <<\_ACEOF
9015 #define ENABLE_NLS 1
9021 if test "x$CATOBJEXT" != "x"; then
9022 if test "x$ALL_LINGUAS" = "x"; then
9025 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9026 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9028 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9029 case "$ALL_LINGUAS" in
9030 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9033 LINGUAS=$NEW_LINGUAS
9034 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9035 echo "${ECHO_T}$LINGUAS" >&6
9038 if test -n "$LINGUAS"; then
9039 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9043 if test $ac_cv_header_locale_h = yes; then
9044 INCLUDE_LOCALE_H="#include <locale.h>"
9047 /* The system does not provide the header <locale.h>. Take care yourself. */"
9051 if test -f $srcdir/po2tbl.sed.in; then
9052 if test "$CATOBJEXT" = ".cat"; then
9053 if test "${ac_cv_header_linux_version_h+set}" = set; then
9054 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9055 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9056 if test "${ac_cv_header_linux_version_h+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9060 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9062 # Is the header compilable?
9063 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9064 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9065 cat >conftest.$ac_ext <<_ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9071 $ac_includes_default
9072 #include <linux/version.h>
9074 rm -f conftest.$ac_objext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076 (eval $ac_compile) 2>conftest.er1
9078 grep -v '^ *+' conftest.er1 >conftest.err
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest.$ac_objext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 ac_header_compiler=yes
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9100 ac_header_compiler=no
9102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9104 echo "${ECHO_T}$ac_header_compiler" >&6
9106 # Is the header present?
9107 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9108 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 #include <linux/version.h>
9117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9120 grep -v '^ *+' conftest.er1 >conftest.err
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } >/dev/null; then
9125 if test -s conftest.err; then
9126 ac_cpp_err=$ac_c_preproc_warn_flag
9127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9134 if test -z "$ac_cpp_err"; then
9135 ac_header_preproc=yes
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9140 ac_header_preproc=no
9142 rm -f conftest.err conftest.$ac_ext
9143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9144 echo "${ECHO_T}$ac_header_preproc" >&6
9146 # So? What about this header?
9147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9149 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9150 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9152 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9153 ac_header_preproc=yes
9156 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9157 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9159 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9161 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9163 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9165 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9167 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9170 ## ------------------------------------------ ##
9171 ## Report this to the AC_PACKAGE_NAME lists. ##
9172 ## ------------------------------------------ ##
9175 sed "s/^/$as_me: WARNING: /" >&2
9178 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9179 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9180 if test "${ac_cv_header_linux_version_h+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 ac_cv_header_linux_version_h=$ac_header_preproc
9185 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9186 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9189 if test $ac_cv_header_linux_version_h = yes; then
9197 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
9199 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
9200 $srcdir/po2tbl.sed.in > po2tbl.sed
9203 if test "$PACKAGE" = "gettext"; then
9213 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
9219 if test -f $srcdir/po/POTFILES.in; then
9220 test -d po || mkdir po
9221 if test "x$srcdir" != "x."; then
9222 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9223 posrcprefix="$srcdir/"
9225 posrcprefix="../$srcdir/"
9231 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9232 < $srcdir/po/POTFILES.in > po/POTFILES
9236 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9237 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9238 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9239 if test "${enable_maintainer_mode+set}" = set; then
9240 enableval="$enable_maintainer_mode"
9241 USE_MAINTAINER_MODE=$enableval
9243 USE_MAINTAINER_MODE=no
9245 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9246 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9249 if test $USE_MAINTAINER_MODE = yes; then
9250 MAINTAINER_MODE_TRUE=
9251 MAINTAINER_MODE_FALSE='#'
9253 MAINTAINER_MODE_TRUE='#'
9254 MAINTAINER_MODE_FALSE=
9257 MAINT=$MAINTAINER_MODE_TRUE
9271 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
9273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9275 echo "$as_me:$LINENO: checking for $ac_header" >&5
9276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9283 # Is the header compilable?
9284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9286 cat >conftest.$ac_ext <<_ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9292 $ac_includes_default
9293 #include <$ac_header>
9295 rm -f conftest.$ac_objext
9296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9297 (eval $ac_compile) 2>conftest.er1
9299 grep -v '^ *+' conftest.er1 >conftest.err
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; } &&
9310 { ac_try='test -s conftest.$ac_objext'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 ac_header_compiler=yes
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9321 ac_header_compiler=no
9323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9325 echo "${ECHO_T}$ac_header_compiler" >&6
9327 # Is the header present?
9328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9330 cat >conftest.$ac_ext <<_ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 #include <$ac_header>
9338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9341 grep -v '^ *+' conftest.er1 >conftest.err
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } >/dev/null; then
9346 if test -s conftest.err; then
9347 ac_cpp_err=$ac_c_preproc_warn_flag
9348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9355 if test -z "$ac_cpp_err"; then
9356 ac_header_preproc=yes
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 ac_header_preproc=no
9363 rm -f conftest.err conftest.$ac_ext
9364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9365 echo "${ECHO_T}$ac_header_preproc" >&6
9367 # So? What about this header?
9368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9374 ac_header_preproc=yes
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9391 ## ------------------------------------------ ##
9392 ## Report this to the AC_PACKAGE_NAME lists. ##
9393 ## ------------------------------------------ ##
9396 sed "s/^/$as_me: WARNING: /" >&2
9399 echo "$as_me:$LINENO: checking for $ac_header" >&5
9400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 eval "$as_ac_Header=\$ac_header_preproc"
9406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9411 cat >>confdefs.h <<_ACEOF
9412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9420 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
9421 # people who are not cross-compiling but are compiling cross-assemblers.
9422 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9423 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
9424 if test "${host}" = "${target}"; then
9429 cat >>confdefs.h <<\_ACEOF
9430 #define CROSS_COMPILE 1
9434 echo "$as_me:$LINENO: result: $cross_gas" >&5
9435 echo "${ECHO_T}$cross_gas" >&6
9437 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9438 # for constant arguments. Useless!
9439 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9440 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9441 if test "${ac_cv_working_alloca_h+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9454 char *p = (char *) alloca (2 * sizeof (int));
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461 (eval $ac_link) 2>conftest.er1
9463 grep -v '^ *+' conftest.er1 >conftest.err
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; } &&
9474 { ac_try='test -s conftest$ac_exeext'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 ac_cv_working_alloca_h=yes
9482 echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9485 ac_cv_working_alloca_h=no
9487 rm -f conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9490 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9491 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9492 if test $ac_cv_working_alloca_h = yes; then
9494 cat >>confdefs.h <<\_ACEOF
9495 #define HAVE_ALLOCA_H 1
9500 echo "$as_me:$LINENO: checking for alloca" >&5
9501 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9502 if test "${ac_cv_func_alloca_works+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 cat >conftest.$ac_ext <<_ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9512 # define alloca __builtin_alloca
9515 # include <malloc.h>
9516 # define alloca _alloca
9519 # include <alloca.h>
9524 # ifndef alloca /* predefined by HP cc +Olibcalls */
9535 char *p = (char *) alloca (1);
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9544 grep -v '^ *+' conftest.er1 >conftest.err
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_func_alloca_works=yes
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 ac_cv_func_alloca_works=no
9568 rm -f conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
9571 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9572 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9574 if test $ac_cv_func_alloca_works = yes; then
9576 cat >>confdefs.h <<\_ACEOF
9577 #define HAVE_ALLOCA 1
9581 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9582 # that cause trouble. Some versions do not even contain alloca or
9583 # contain a buggy version. If you still want to use their alloca,
9584 # use ar to extract alloca.o from them instead of compiling alloca.c.
9586 ALLOCA=alloca.$ac_objext
9588 cat >>confdefs.h <<\_ACEOF
9593 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9594 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9595 if test "${ac_cv_os_cray+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 #if defined(CRAY) && ! defined(CRAY2)
9611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9612 $EGREP "webecray" >/dev/null 2>&1; then
9620 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9621 echo "${ECHO_T}$ac_cv_os_cray" >&6
9622 if test $ac_cv_os_cray = yes; then
9623 for ac_func in _getb67 GETB67 getb67; do
9624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9625 echo "$as_me:$LINENO: checking for $ac_func" >&5
9626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9627 if eval "test \"\${$as_ac_var+set}\" = set"; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 cat >conftest.$ac_ext <<_ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9638 #define $ac_func innocuous_$ac_func
9640 /* System header to define __stub macros and hopefully few prototypes,
9641 which can conflict with char $ac_func (); below.
9642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9643 <limits.h> exists even on freestanding compilers. */
9646 # include <limits.h>
9648 # include <assert.h>
9653 /* Override any gcc2 internal prototype to avoid an error. */
9658 /* We use char because int might match the return type of a gcc2
9659 builtin and then its argument prototype would still apply. */
9661 /* The GNU C library defines this for functions which it implements
9662 to always fail with ENOSYS. Some functions are actually named
9663 something starting with __ and the normal name is an alias. */
9664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9667 char (*f) () = $ac_func;
9676 return f != $ac_func;
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>conftest.er1
9685 grep -v '^ *+' conftest.er1 >conftest.err
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
9690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 eval "$as_ac_var=yes"
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 eval "$as_ac_var=no"
9709 rm -f conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9714 if test `eval echo '${'$as_ac_var'}'` = yes; then
9716 cat >>confdefs.h <<_ACEOF
9717 #define CRAY_STACKSEG_END $ac_func
9726 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9727 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9728 if test "${ac_cv_c_stack_direction+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 if test "$cross_compiling" = yes; then
9732 ac_cv_c_stack_direction=0
9734 cat >conftest.$ac_ext <<_ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9741 find_stack_direction ()
9743 static char *addr = 0;
9748 return find_stack_direction ();
9751 return (&dummy > addr) ? 1 : -1;
9757 exit (find_stack_direction () < 0);
9760 rm -f conftest$ac_exeext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9762 (eval $ac_link) 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_c_stack_direction=1
9773 echo "$as_me: program exited with status $ac_status" >&5
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_c_stack_direction=-1
9780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9783 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9784 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9786 cat >>confdefs.h <<_ACEOF
9787 #define STACK_DIRECTION $ac_cv_c_stack_direction
9793 echo "$as_me:$LINENO: checking for inline" >&5
9794 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9795 if test "${ac_cv_c_inline+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 for ac_kw in inline __inline__ __inline; do
9800 cat >conftest.$ac_ext <<_ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9808 static $ac_kw foo_t static_foo () {return 0; }
9809 $ac_kw foo_t foo () {return 0; }
9813 rm -f conftest.$ac_objext
9814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9815 (eval $ac_compile) 2>conftest.er1
9817 grep -v '^ *+' conftest.er1 >conftest.err
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest.$ac_objext'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
9834 ac_cv_c_inline=$ac_kw; break
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9844 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9845 echo "${ECHO_T}$ac_cv_c_inline" >&6
9848 case $ac_cv_c_inline in
9851 case $ac_cv_c_inline in
9853 *) ac_val=$ac_cv_c_inline;;
9855 cat >>confdefs.h <<_ACEOF
9857 #define inline $ac_val
9864 # VMS doesn't have unlink.
9867 for ac_func in unlink remove
9869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9870 echo "$as_me:$LINENO: checking for $ac_func" >&5
9871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9872 if eval "test \"\${$as_ac_var+set}\" = set"; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9883 #define $ac_func innocuous_$ac_func
9885 /* System header to define __stub macros and hopefully few prototypes,
9886 which can conflict with char $ac_func (); below.
9887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9888 <limits.h> exists even on freestanding compilers. */
9891 # include <limits.h>
9893 # include <assert.h>
9898 /* Override any gcc2 internal prototype to avoid an error. */
9903 /* We use char because int might match the return type of a gcc2
9904 builtin and then its argument prototype would still apply. */
9906 /* The GNU C library defines this for functions which it implements
9907 to always fail with ENOSYS. Some functions are actually named
9908 something starting with __ and the normal name is an alias. */
9909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9912 char (*f) () = $ac_func;
9921 return f != $ac_func;
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>conftest.er1
9930 grep -v '^ *+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 eval "$as_ac_var=yes"
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 eval "$as_ac_var=no"
9954 rm -f conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9959 if test `eval echo '${'$as_ac_var'}'` = yes; then
9960 cat >>confdefs.h <<_ACEOF
9961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9968 # Some systems don't have sbrk().
9972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973 echo "$as_me:$LINENO: checking for $ac_func" >&5
9974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9975 if eval "test \"\${$as_ac_var+set}\" = set"; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9986 #define $ac_func innocuous_$ac_func
9988 /* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char $ac_func (); below.
9990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991 <limits.h> exists even on freestanding compilers. */
9994 # include <limits.h>
9996 # include <assert.h>
10001 /* Override any gcc2 internal prototype to avoid an error. */
10006 /* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
10009 /* The GNU C library defines this for functions which it implements
10010 to always fail with ENOSYS. Some functions are actually named
10011 something starting with __ and the normal name is an alias. */
10012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10015 char (*f) () = $ac_func;
10024 return f != $ac_func;
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10031 (eval $ac_link) 2>conftest.er1
10033 grep -v '^ *+' conftest.er1 >conftest.err
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } &&
10038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 eval "$as_ac_var=yes"
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 eval "$as_ac_var=no"
10057 rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10062 if test `eval echo '${'$as_ac_var'}'` = yes; then
10063 cat >>confdefs.h <<_ACEOF
10064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10071 # do we need the math library?
10072 case "${need_libm}" in
10076 *-*-beos* | *-*-cygwin* | *-*-pw32*)
10077 # These system don't have libm
10080 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
10081 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
10082 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 ac_check_lib_save_LIBS=$LIBS
10087 cat >conftest.$ac_ext <<_ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10094 /* Override any gcc2 internal prototype to avoid an error. */
10098 /* We use char because int might match the return type of a gcc2
10099 builtin and then its argument prototype would still apply. */
10100 char _mwvalidcheckl ();
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111 (eval $ac_link) 2>conftest.er1
10113 grep -v '^ *+' conftest.er1 >conftest.err
10115 cat conftest.err >&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try='test -s conftest$ac_exeext'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 ac_cv_lib_mw__mwvalidcheckl=yes
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 ac_cv_lib_mw__mwvalidcheckl=no
10137 rm -f conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10141 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
10142 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
10143 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
10147 echo "$as_me:$LINENO: checking for main in -lm" >&5
10148 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10149 if test "${ac_cv_lib_m_main+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 ac_check_lib_save_LIBS=$LIBS
10154 cat >conftest.$ac_ext <<_ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>conftest.er1
10174 grep -v '^ *+' conftest.er1 >conftest.err
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try='test -s conftest$ac_exeext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_cv_lib_m_main=yes
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_cv_lib_m_main=no
10198 rm -f conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10202 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10203 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10204 if test $ac_cv_lib_m_main = yes; then
10210 echo "$as_me:$LINENO: checking for main in -lm" >&5
10211 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10212 if test "${ac_cv_lib_m_main+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 ac_check_lib_save_LIBS=$LIBS
10217 cat >conftest.$ac_ext <<_ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235 (eval $ac_link) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try='test -s conftest$ac_exeext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_lib_m_main=yes
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_lib_m_main=no
10261 rm -f conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext conftest.$ac_ext
10263 LIBS=$ac_check_lib_save_LIBS
10265 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10266 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10267 if test $ac_cv_lib_m_main = yes; then
10278 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
10279 # enough, but on some of those systems, the assert macro relies on requoting
10280 # working properly!
10281 echo "$as_me:$LINENO: checking for working assert macro" >&5
10282 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
10283 if test "${gas_cv_assert_ok+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 #include <assert.h>
10298 /* check for requoting problems */
10299 static int a, b, c, d;
10301 assert (!strcmp(s, "foo bar baz quux"));
10302 /* check for newline handling */
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312 (eval $ac_link) 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest$ac_exeext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 gas_cv_assert_ok=yes
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 gas_cv_assert_ok=no
10338 rm -f conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
10341 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
10342 echo "${ECHO_T}$gas_cv_assert_ok" >&6
10343 test $gas_cv_assert_ok = yes ||
10344 cat >>confdefs.h <<\_ACEOF
10345 #define BROKEN_ASSERT 1
10350 # On some systems, the system header files may not declare malloc, realloc,
10351 # and free. There are places where gas needs these functions to have been
10352 # declared -- such as when taking their addresses.
10354 #ifdef HAVE_MEMORY_H
10355 #include <memory.h>
10357 #ifdef HAVE_STRING_H
10358 #include <string.h>
10360 #ifdef HAVE_STRINGS_H
10361 #include <strings.h>
10364 #ifdef HAVE_STDLIB_H
10365 #include <stdlib.h>
10367 #ifdef HAVE_UNISTD_H
10368 #include <unistd.h>
10372 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
10373 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
10374 if test "${gas_cv_decl_needed_strstr+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 cat >conftest.$ac_ext <<_ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10388 typedef char *(*f)();
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398 (eval $ac_link) 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest$ac_exeext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 gas_cv_decl_needed_strstr=no
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10422 gas_cv_decl_needed_strstr=yes
10424 rm -f conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10427 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
10428 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
10429 if test $gas_cv_decl_needed_strstr = yes; then
10431 cat >>confdefs.h <<\_ACEOF
10432 #define NEED_DECLARATION_STRSTR 1
10438 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
10439 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
10440 if test "${gas_cv_decl_needed_malloc+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10454 typedef char *(*f)();
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464 (eval $ac_link) 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest$ac_exeext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 gas_cv_decl_needed_malloc=no
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 gas_cv_decl_needed_malloc=yes
10490 rm -f conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10493 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
10494 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
10495 if test $gas_cv_decl_needed_malloc = yes; then
10497 cat >>confdefs.h <<\_ACEOF
10498 #define NEED_DECLARATION_MALLOC 1
10504 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
10505 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
10506 if test "${gas_cv_decl_needed_free+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10520 typedef void (*f)();
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530 (eval $ac_link) 2>conftest.er1
10532 grep -v '^ *+' conftest.er1 >conftest.err
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; } &&
10543 { ac_try='test -s conftest$ac_exeext'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 gas_cv_decl_needed_free=no
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 gas_cv_decl_needed_free=yes
10556 rm -f conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
10559 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10560 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10561 if test $gas_cv_decl_needed_free = yes; then
10563 cat >>confdefs.h <<\_ACEOF
10564 #define NEED_DECLARATION_FREE 1
10570 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10571 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10572 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10586 typedef char *(*f)();
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596 (eval $ac_link) 2>conftest.er1
10598 grep -v '^ *+' conftest.er1 >conftest.err
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest$ac_exeext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 gas_cv_decl_needed_sbrk=no
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 gas_cv_decl_needed_sbrk=yes
10622 rm -f conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
10625 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10626 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10627 if test $gas_cv_decl_needed_sbrk = yes; then
10629 cat >>confdefs.h <<\_ACEOF
10630 #define NEED_DECLARATION_SBRK 1
10636 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10637 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10638 if test "${gas_cv_decl_needed_environ+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 cat >conftest.$ac_ext <<_ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>conftest.er1
10664 grep -v '^ *+' conftest.er1 >conftest.err
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest$ac_exeext'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 gas_cv_decl_needed_environ=no
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 gas_cv_decl_needed_environ=yes
10688 rm -f conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10691 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10692 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10693 if test $gas_cv_decl_needed_environ = yes; then
10695 cat >>confdefs.h <<\_ACEOF
10696 #define NEED_DECLARATION_ENVIRON 1
10702 # Does errno.h declare errno, or do we have to add a separate declaration
10705 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10706 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10707 if test "${gas_cv_decl_needed_errno+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 cat >conftest.$ac_ext <<_ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10717 #ifdef HAVE_ERRNO_H
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735 (eval $ac_link) 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
10742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; } &&
10748 { ac_try='test -s conftest$ac_exeext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 gas_cv_decl_needed_errno=no
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 gas_cv_decl_needed_errno=yes
10761 rm -f conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10765 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10766 if test $gas_cv_decl_needed_errno = yes; then
10768 cat >>confdefs.h <<\_ACEOF
10769 #define NEED_DECLARATION_ERRNO 1
10777 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10779 ac_config_commands="$ac_config_commands default"
10782 cat >confcache <<\_ACEOF
10783 # This file is a shell script that caches the results of configure
10784 # tests run on this system so they can be shared between configure
10785 # scripts and configure runs, see configure's option --config-cache.
10786 # It is not useful on other systems. If it contains results you don't
10787 # want to keep, you may remove or edit it.
10789 # config.status only pays attention to the cache file if you give it
10790 # the --recheck option to rerun configure.
10792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10794 # following values.
10798 # The following way of writing the cache mishandles newlines in values,
10799 # but we know of no workaround that is simple, portable, and efficient.
10800 # So, don't put newlines in cache variables' values.
10801 # Ultrix sh set writes to stderr and can't be redirected directly,
10802 # and sets the high bit in the cache file unless we assign to the vars.
10805 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10807 # `set' does not quote correctly, so add quotes (double-quote
10808 # substitution turns \\\\ into \\, and sed turns \\ into \).
10811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10814 # `set' quotes correctly as required by POSIX, so do not add quotes.
10816 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10823 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10825 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10827 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10828 if test -w $cache_file; then
10829 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10830 cat confcache >$cache_file
10832 echo "not updating unwritable cache $cache_file"
10837 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10838 # Let make expand exec_prefix.
10839 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10841 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10842 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10843 # trailing colons and then remove the whole line if VPATH becomes empty
10844 # (actually we leave an empty line to preserve line numbers).
10845 if test "x$srcdir" = x.; then
10846 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10847 s/:*\$(srcdir):*/:/;
10848 s/:*\${srcdir}:*/:/;
10850 s/^\([^=]*=[ ]*\):*/\1/;
10856 DEFS=-DHAVE_CONFIG_H
10860 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10861 # 1. Remove the extension, and $U if already installed.
10862 ac_i=`echo "$ac_i" |
10863 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10865 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10866 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10868 LIBOBJS=$ac_libobjs
10870 LTLIBOBJS=$ac_ltlibobjs
10873 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10874 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10875 Usually this means the macro was only invoked conditionally." >&5
10876 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10877 Usually this means the macro was only invoked conditionally." >&2;}
10878 { (exit 1); exit 1; }; }
10880 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10881 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10882 Usually this means the macro was only invoked conditionally." >&5
10883 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10884 Usually this means the macro was only invoked conditionally." >&2;}
10885 { (exit 1); exit 1; }; }
10887 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10888 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10889 Usually this means the macro was only invoked conditionally." >&5
10890 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10891 Usually this means the macro was only invoked conditionally." >&2;}
10892 { (exit 1); exit 1; }; }
10895 : ${CONFIG_STATUS=./config.status}
10896 ac_clean_files_save=$ac_clean_files
10897 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10898 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10899 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10900 cat >$CONFIG_STATUS <<_ACEOF
10902 # Generated by $as_me.
10903 # Run this file to recreate the current configuration.
10904 # Compiler output produced by configure, useful for debugging
10905 # configure, is in config.log if it exists.
10908 ac_cs_recheck=false
10910 SHELL=\${CONFIG_SHELL-$SHELL}
10913 cat >>$CONFIG_STATUS <<\_ACEOF
10914 ## --------------------- ##
10915 ## M4sh Initialization. ##
10916 ## --------------------- ##
10918 # Be Bourne compatible
10919 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10922 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10923 # is contrary to our usage. Disable this feature.
10924 alias -g '${1+"$@"}'='"$@"'
10925 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10928 DUALCASE=1; export DUALCASE # for MKS sh
10930 # Support unset when possible.
10931 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10938 # Work around bugs in pre-3.0 UWIN ksh.
10939 $as_unset ENV MAIL MAILPATH
10946 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10947 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10948 LC_TELEPHONE LC_TIME
10950 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10951 eval $as_var=C; export $as_var
10957 # Required to use basename.
10958 if expr a : '\(a\)' >/dev/null 2>&1; then
10964 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10965 as_basename=basename
10971 # Name of the executable.
10972 as_me=`$as_basename "$0" ||
10973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10974 X"$0" : 'X\(//\)$' \| \
10975 X"$0" : 'X\(/\)$' \| \
10976 . : '\(.\)' 2>/dev/null ||
10978 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10979 /^X\/\(\/\/\)$/{ s//\1/; q; }
10980 /^X\/\(\/\).*/{ s//\1/; q; }
10984 # PATH needs CR, and LINENO needs CR and PATH.
10985 # Avoid depending upon Character Ranges.
10986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10989 as_cr_digits='0123456789'
10990 as_cr_alnum=$as_cr_Letters$as_cr_digits
10992 # The user is always right.
10993 if test "${PATH_SEPARATOR+set}" != set; then
10994 echo "#! /bin/sh" >conf$$.sh
10995 echo "exit 0" >>conf$$.sh
10997 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11006 as_lineno_1=$LINENO
11007 as_lineno_2=$LINENO
11008 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11009 test "x$as_lineno_1" != "x$as_lineno_2" &&
11010 test "x$as_lineno_3" = "x$as_lineno_2" || {
11011 # Find who we are. Look in the path if we contain no path at all
11014 *[\\/]* ) as_myself=$0 ;;
11015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016 for as_dir in $PATH
11019 test -z "$as_dir" && as_dir=.
11020 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11025 # We did not find ourselves, most probably we were run as `sh COMMAND'
11026 # in which case we are not to be found in the path.
11027 if test "x$as_myself" = x; then
11030 if test ! -f "$as_myself"; then
11031 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11032 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11033 { (exit 1); exit 1; }; }
11035 case $CONFIG_SHELL in
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11041 test -z "$as_dir" && as_dir=.
11042 for as_base in sh bash ksh sh5; do
11045 if ("$as_dir/$as_base" -c '
11046 as_lineno_1=$LINENO
11047 as_lineno_2=$LINENO
11048 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11049 test "x$as_lineno_1" != "x$as_lineno_2" &&
11050 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11051 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11052 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11053 CONFIG_SHELL=$as_dir/$as_base
11054 export CONFIG_SHELL
11055 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11063 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11064 # uniformly replaced by the line number. The first 'sed' inserts a
11065 # line-number line before each line; the second 'sed' does the real
11066 # work. The second script uses 'N' to pair each line-number line
11067 # with the numbered line, and appends trailing '-' during
11068 # substitution so that $LINENO is not a special case at line end.
11069 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11070 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11071 sed '=' <$as_myself |
11076 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11079 s,^['$as_cr_digits']*\n,,
11080 ' >$as_me.lineno &&
11081 chmod +x $as_me.lineno ||
11082 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11083 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11084 { (exit 1); exit 1; }; }
11086 # Don't try to exec as it changes $[0], causing all sort of problems
11087 # (the dirname of $[0] is not the place where we might find the
11088 # original and so on. Autoconf is especially sensible to this).
11090 # Exit status is that of the last command.
11095 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11096 *c*,-n*) ECHO_N= ECHO_C='
11098 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11099 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11102 if expr a : '\(a\)' >/dev/null 2>&1; then
11108 rm -f conf$$ conf$$.exe conf$$.file
11110 if ln -s conf$$.file conf$$ 2>/dev/null; then
11111 # We could just check for DJGPP; but this test a) works b) is more generic
11112 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11113 if test -f conf$$.exe; then
11114 # Don't use ln at all; we don't have any links
11119 elif ln conf$$.file conf$$ 2>/dev/null; then
11124 rm -f conf$$ conf$$.exe conf$$.file
11126 if mkdir -p . 2>/dev/null; then
11129 test -d ./-p && rmdir ./-p
11133 as_executable_p="test -f"
11135 # Sed expression to map a string onto a valid CPP name.
11136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11138 # Sed expression to map a string onto a valid variable name.
11139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11143 # We need space, tab and new line, in precisely that order.
11153 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11154 # report actual input values of CONFIG_FILES etc. instead of their
11155 # values after options handling. Logging --version etc. is OK.
11159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11160 ## Running $as_me. ##
11165 This file was extended by $as_me, which was
11166 generated by GNU Autoconf 2.59. Invocation command line was
11168 CONFIG_FILES = $CONFIG_FILES
11169 CONFIG_HEADERS = $CONFIG_HEADERS
11170 CONFIG_LINKS = $CONFIG_LINKS
11171 CONFIG_COMMANDS = $CONFIG_COMMANDS
11175 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11179 # Files that config.status was made for.
11180 if test -n "$ac_config_files"; then
11181 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11184 if test -n "$ac_config_headers"; then
11185 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11188 if test -n "$ac_config_links"; then
11189 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11192 if test -n "$ac_config_commands"; then
11193 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11196 cat >>$CONFIG_STATUS <<\_ACEOF
11199 \`$as_me' instantiates files from templates according to the
11200 current configuration.
11202 Usage: $0 [OPTIONS] [FILE]...
11204 -h, --help print this help, then exit
11205 -V, --version print version number, then exit
11206 -q, --quiet do not print progress messages
11207 -d, --debug don't remove temporary files
11208 --recheck update $as_me by reconfiguring in the same conditions
11209 --file=FILE[:TEMPLATE]
11210 instantiate the configuration file FILE
11211 --header=FILE[:TEMPLATE]
11212 instantiate the configuration header FILE
11214 Configuration files:
11217 Configuration headers:
11220 Configuration commands:
11223 Report bugs to <bug-autoconf@gnu.org>."
11226 cat >>$CONFIG_STATUS <<_ACEOF
11229 configured by $0, generated by GNU Autoconf 2.59,
11230 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11232 Copyright (C) 2003 Free Software Foundation, Inc.
11233 This config.status script is free software; the Free Software Foundation
11234 gives unlimited permission to copy, distribute and modify it."
11239 cat >>$CONFIG_STATUS <<\_ACEOF
11240 # If no file are specified by the user, then we need to provide default
11241 # value. By we need to know if files were specified by the user.
11247 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11248 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11256 *) # This is not an option, so the user has probably given explicit
11259 ac_need_defaults=false;;
11263 # Handling of the options.
11265 cat >>$CONFIG_STATUS <<\_ACEOF
11266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11268 --version | --vers* | -V )
11269 echo "$ac_cs_version"; exit 0 ;;
11271 # Conflict between --help and --header
11272 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11273 Try \`$0 --help' for more information." >&5
11274 echo "$as_me: error: ambiguous option: $1
11275 Try \`$0 --help' for more information." >&2;}
11276 { (exit 1); exit 1; }; };;
11277 --help | --hel | -h )
11278 echo "$ac_cs_usage"; exit 0 ;;
11279 --debug | --d* | -d )
11281 --file | --fil | --fi | --f )
11283 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11284 ac_need_defaults=false;;
11285 --header | --heade | --head | --hea )
11287 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11288 ac_need_defaults=false;;
11289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11290 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11293 # This is an error.
11294 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11295 Try \`$0 --help' for more information." >&5
11296 echo "$as_me: error: unrecognized option: $1
11297 Try \`$0 --help' for more information." >&2;}
11298 { (exit 1); exit 1; }; } ;;
11300 *) ac_config_targets="$ac_config_targets $1" ;;
11306 ac_configure_extra_args=
11308 if $ac_cs_silent; then
11310 ac_configure_extra_args="$ac_configure_extra_args --silent"
11314 cat >>$CONFIG_STATUS <<_ACEOF
11315 if \$ac_cs_recheck; then
11316 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11317 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11322 cat >>$CONFIG_STATUS <<_ACEOF
11324 # INIT-COMMANDS section.
11327 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11328 target_cpu_type=${target_cpu_type}
11329 cgen_cpu_prefix=${cgen_cpu_prefix}
11330 obj_format=${obj_format}
11337 cat >>$CONFIG_STATUS <<\_ACEOF
11338 for ac_config_target in $ac_config_targets
11340 case "$ac_config_target" in
11341 # Handling of arguments.
11342 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
11343 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
11344 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11345 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11346 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11347 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11348 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11349 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11350 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11351 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11352 { (exit 1); exit 1; }; };;
11356 # If the user did not use the arguments to specify the items to instantiate,
11357 # then the envvar interface is used. Set only those that are not.
11358 # We use the long form for the default assignment because of an extremely
11359 # bizarre bug on SunOS 4.1.3.
11360 if $ac_need_defaults; then
11361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11366 # Have a temporary directory for convenience. Make it in the build tree
11367 # simply because there is no reason to put it here, and in addition,
11368 # creating and moving files from /tmp can sometimes cause problems.
11369 # Create a temporary directory, and hook for its removal unless debugging.
11372 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11373 trap '{ (exit 1); exit 1; }' 1 2 13 15
11376 # Create a (secure) tmp directory for tmp files.
11379 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11380 test -n "$tmp" && test -d "$tmp"
11383 tmp=./confstat$$-$RANDOM
11384 (umask 077 && mkdir $tmp)
11387 echo "$me: cannot create a temporary directory in ." >&2
11388 { (exit 1); exit 1; }
11393 cat >>$CONFIG_STATUS <<_ACEOF
11396 # CONFIG_FILES section.
11399 # No need to generate the scripts if there are no CONFIG_FILES.
11400 # This happens for instance when ./config.status config.h
11401 if test -n "\$CONFIG_FILES"; then
11402 # Protect against being on the right side of a sed subst in config.status.
11403 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11404 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11405 s,@SHELL@,$SHELL,;t t
11406 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11407 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11408 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11409 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11410 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11411 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11412 s,@exec_prefix@,$exec_prefix,;t t
11413 s,@prefix@,$prefix,;t t
11414 s,@program_transform_name@,$program_transform_name,;t t
11415 s,@bindir@,$bindir,;t t
11416 s,@sbindir@,$sbindir,;t t
11417 s,@libexecdir@,$libexecdir,;t t
11418 s,@datadir@,$datadir,;t t
11419 s,@sysconfdir@,$sysconfdir,;t t
11420 s,@sharedstatedir@,$sharedstatedir,;t t
11421 s,@localstatedir@,$localstatedir,;t t
11422 s,@libdir@,$libdir,;t t
11423 s,@includedir@,$includedir,;t t
11424 s,@oldincludedir@,$oldincludedir,;t t
11425 s,@infodir@,$infodir,;t t
11426 s,@mandir@,$mandir,;t t
11427 s,@build_alias@,$build_alias,;t t
11428 s,@host_alias@,$host_alias,;t t
11429 s,@target_alias@,$target_alias,;t t
11430 s,@DEFS@,$DEFS,;t t
11431 s,@ECHO_C@,$ECHO_C,;t t
11432 s,@ECHO_N@,$ECHO_N,;t t
11433 s,@ECHO_T@,$ECHO_T,;t t
11434 s,@LIBS@,$LIBS,;t t
11435 s,@build@,$build,;t t
11436 s,@build_cpu@,$build_cpu,;t t
11437 s,@build_vendor@,$build_vendor,;t t
11438 s,@build_os@,$build_os,;t t
11439 s,@host@,$host,;t t
11440 s,@host_cpu@,$host_cpu,;t t
11441 s,@host_vendor@,$host_vendor,;t t
11442 s,@host_os@,$host_os,;t t
11443 s,@target@,$target,;t t
11444 s,@target_cpu@,$target_cpu,;t t
11445 s,@target_vendor@,$target_vendor,;t t
11446 s,@target_os@,$target_os,;t t
11448 s,@CFLAGS@,$CFLAGS,;t t
11449 s,@LDFLAGS@,$LDFLAGS,;t t
11450 s,@CPPFLAGS@,$CPPFLAGS,;t t
11451 s,@ac_ct_CC@,$ac_ct_CC,;t t
11452 s,@EXEEXT@,$EXEEXT,;t t
11453 s,@OBJEXT@,$OBJEXT,;t t
11454 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11455 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11456 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11457 s,@CYGPATH_W@,$CYGPATH_W,;t t
11458 s,@PACKAGE@,$PACKAGE,;t t
11459 s,@VERSION@,$VERSION,;t t
11460 s,@ACLOCAL@,$ACLOCAL,;t t
11461 s,@AUTOCONF@,$AUTOCONF,;t t
11462 s,@AUTOMAKE@,$AUTOMAKE,;t t
11463 s,@AUTOHEADER@,$AUTOHEADER,;t t
11464 s,@MAKEINFO@,$MAKEINFO,;t t
11465 s,@install_sh@,$install_sh,;t t
11466 s,@STRIP@,$STRIP,;t t
11467 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11468 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11469 s,@mkdir_p@,$mkdir_p,;t t
11471 s,@SET_MAKE@,$SET_MAKE,;t t
11472 s,@am__leading_dot@,$am__leading_dot,;t t
11473 s,@AMTAR@,$AMTAR,;t t
11474 s,@am__tar@,$am__tar,;t t
11475 s,@am__untar@,$am__untar,;t t
11476 s,@DEPDIR@,$DEPDIR,;t t
11477 s,@am__include@,$am__include,;t t
11478 s,@am__quote@,$am__quote,;t t
11479 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11480 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11481 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11482 s,@CCDEPMODE@,$CCDEPMODE,;t t
11483 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11484 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11485 s,@LN_S@,$LN_S,;t t
11486 s,@RANLIB@,$RANLIB,;t t
11487 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11488 s,@LIBTOOL@,$LIBTOOL,;t t
11489 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11490 s,@GDBINIT@,$GDBINIT,;t t
11491 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
11492 s,@extra_objects@,$extra_objects,;t t
11493 s,@target_cpu_type@,$target_cpu_type,;t t
11494 s,@obj_format@,$obj_format,;t t
11495 s,@te_file@,$te_file,;t t
11496 s,@install_tooldir@,$install_tooldir,;t t
11497 s,@atof@,$atof,;t t
11498 s,@BFDLIB@,$BFDLIB,;t t
11499 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
11500 s,@BFDVER_H@,$BFDVER_H,;t t
11501 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
11502 s,@YACC@,$YACC,;t t
11504 s,@LEXLIB@,$LEXLIB,;t t
11505 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11507 s,@EGREP@,$EGREP,;t t
11508 s,@ALLOCA@,$ALLOCA,;t t
11509 s,@USE_NLS@,$USE_NLS,;t t
11510 s,@MSGFMT@,$MSGFMT,;t t
11511 s,@GMSGFMT@,$GMSGFMT,;t t
11512 s,@XGETTEXT@,$XGETTEXT,;t t
11513 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11514 s,@CATALOGS@,$CATALOGS,;t t
11515 s,@CATOBJEXT@,$CATOBJEXT,;t t
11516 s,@DATADIRNAME@,$DATADIRNAME,;t t
11517 s,@GMOFILES@,$GMOFILES,;t t
11518 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11519 s,@INTLDEPS@,$INTLDEPS,;t t
11520 s,@INTLLIBS@,$INTLLIBS,;t t
11521 s,@INTLOBJS@,$INTLOBJS,;t t
11522 s,@POFILES@,$POFILES,;t t
11523 s,@POSUB@,$POSUB,;t t
11524 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11525 s,@GT_NO@,$GT_NO,;t t
11526 s,@GT_YES@,$GT_YES,;t t
11527 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11529 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11530 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11531 s,@MAINT@,$MAINT,;t t
11532 s,@LIBM@,$LIBM,;t t
11533 s,@LIBOBJS@,$LIBOBJS,;t t
11534 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11539 cat >>$CONFIG_STATUS <<\_ACEOF
11540 # Split the substitutions into bite-sized pieces for seds with
11541 # small command number limits, like on Digital OSF/1 and HP-UX.
11542 ac_max_sed_lines=48
11543 ac_sed_frag=1 # Number of current file.
11544 ac_beg=1 # First line for current file.
11545 ac_end=$ac_max_sed_lines # Line after last line for current file.
11548 while $ac_more_lines; do
11549 if test $ac_beg -gt 1; then
11550 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11552 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11554 if test ! -s $tmp/subs.frag; then
11555 ac_more_lines=false
11557 # The purpose of the label and of the branching condition is to
11558 # speed up the sed processing (if there are no `@' at all, there
11559 # is no need to browse any of the substitutions).
11560 # These are the two extra sed commands mentioned above.
11562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11563 if test -z "$ac_sed_cmds"; then
11564 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11566 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11568 ac_sed_frag=`expr $ac_sed_frag + 1`
11570 ac_end=`expr $ac_end + $ac_max_sed_lines`
11573 if test -z "$ac_sed_cmds"; then
11576 fi # test -n "$CONFIG_FILES"
11579 cat >>$CONFIG_STATUS <<\_ACEOF
11580 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11583 - | *:- | *:-:* ) # input from stdin
11585 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11587 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11589 * ) ac_file_in=$ac_file.in ;;
11592 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11593 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11595 X"$ac_file" : 'X\(//\)[^/]' \| \
11596 X"$ac_file" : 'X\(//\)$' \| \
11597 X"$ac_file" : 'X\(/\)' \| \
11598 . : '\(.\)' 2>/dev/null ||
11600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11602 /^X\(\/\/\)$/{ s//\1/; q; }
11603 /^X\(\/\).*/{ s//\1/; q; }
11605 { if $as_mkdir_p; then
11610 while test ! -d "$as_dir"; do
11611 as_dirs="$as_dir $as_dirs"
11612 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11614 X"$as_dir" : 'X\(//\)[^/]' \| \
11615 X"$as_dir" : 'X\(//\)$' \| \
11616 X"$as_dir" : 'X\(/\)' \| \
11617 . : '\(.\)' 2>/dev/null ||
11619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11621 /^X\(\/\/\)$/{ s//\1/; q; }
11622 /^X\(\/\).*/{ s//\1/; q; }
11625 test ! -n "$as_dirs" || mkdir $as_dirs
11626 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11627 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11628 { (exit 1); exit 1; }; }; }
11632 if test "$ac_dir" != .; then
11633 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11634 # A "../" for each directory in $ac_dir_suffix.
11635 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11637 ac_dir_suffix= ac_top_builddir=
11641 .) # No --srcdir option. We are building in place.
11643 if test -z "$ac_top_builddir"; then
11646 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11648 [\\/]* | ?:[\\/]* ) # Absolute path.
11649 ac_srcdir=$srcdir$ac_dir_suffix;
11650 ac_top_srcdir=$srcdir ;;
11651 *) # Relative path.
11652 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11653 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11656 # Do not use `cd foo && pwd` to compute absolute paths, because
11657 # the directories may not exist.
11659 .) ac_abs_builddir="$ac_dir";;
11662 .) ac_abs_builddir=`pwd`;;
11663 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11664 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11667 case $ac_abs_builddir in
11668 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11670 case ${ac_top_builddir}. in
11671 .) ac_abs_top_builddir=$ac_abs_builddir;;
11672 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11673 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11676 case $ac_abs_builddir in
11677 .) ac_abs_srcdir=$ac_srcdir;;
11680 .) ac_abs_srcdir=$ac_abs_builddir;;
11681 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11682 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11685 case $ac_abs_builddir in
11686 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11688 case $ac_top_srcdir in
11689 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11690 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11691 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11697 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11698 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11701 # Let's still pretend it is `configure' which instantiates (i.e., don't
11702 # use $as_me), people would be surprised to read:
11703 # /* config.h. Generated by config.status. */
11704 if test x"$ac_file" = x-; then
11707 configure_input="$ac_file. "
11709 configure_input=$configure_input"Generated from `echo $ac_file_in |
11710 sed 's,.*/,,'` by configure."
11712 # First look for the input files in the build tree, otherwise in the
11714 ac_file_inputs=`IFS=:
11715 for f in $ac_file_in; do
11717 -) echo $tmp/stdin ;;
11719 # Absolute (can't be DOS-style, as IFS=:)
11720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11721 echo "$as_me: error: cannot find input file: $f" >&2;}
11722 { (exit 1); exit 1; }; }
11725 if test -f "$f"; then
11728 elif test -f "$srcdir/$f"; then
11733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11734 echo "$as_me: error: cannot find input file: $f" >&2;}
11735 { (exit 1); exit 1; }; }
11738 done` || { (exit 1); exit 1; }
11740 if test x"$ac_file" != x-; then
11741 { echo "$as_me:$LINENO: creating $ac_file" >&5
11742 echo "$as_me: creating $ac_file" >&6;}
11746 cat >>$CONFIG_STATUS <<_ACEOF
11750 cat >>$CONFIG_STATUS <<\_ACEOF
11752 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11753 s,@configure_input@,$configure_input,;t t
11754 s,@srcdir@,$ac_srcdir,;t t
11755 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11756 s,@top_srcdir@,$ac_top_srcdir,;t t
11757 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11758 s,@builddir@,$ac_builddir,;t t
11759 s,@abs_builddir@,$ac_abs_builddir,;t t
11760 s,@top_builddir@,$ac_top_builddir,;t t
11761 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11762 s,@INSTALL@,$ac_INSTALL,;t t
11763 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11765 if test x"$ac_file" != x-; then
11766 mv $tmp/out $ac_file
11774 cat >>$CONFIG_STATUS <<\_ACEOF
11777 # CONFIG_HEADER section.
11780 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11781 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11783 # ac_d sets the value in "#define NAME VALUE" lines.
11784 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11785 ac_dB='[ ].*$,\1#\2'
11788 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11789 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11790 ac_uB='$,\1#\2define\3'
11794 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11797 - | *:- | *:-:* ) # input from stdin
11799 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11800 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11801 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11803 * ) ac_file_in=$ac_file.in ;;
11806 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11807 echo "$as_me: creating $ac_file" >&6;}
11809 # First look for the input files in the build tree, otherwise in the
11811 ac_file_inputs=`IFS=:
11812 for f in $ac_file_in; do
11814 -) echo $tmp/stdin ;;
11816 # Absolute (can't be DOS-style, as IFS=:)
11817 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11818 echo "$as_me: error: cannot find input file: $f" >&2;}
11819 { (exit 1); exit 1; }; }
11820 # Do quote $f, to prevent DOS paths from being IFS'd.
11823 if test -f "$f"; then
11826 elif test -f "$srcdir/$f"; then
11831 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11832 echo "$as_me: error: cannot find input file: $f" >&2;}
11833 { (exit 1); exit 1; }; }
11836 done` || { (exit 1); exit 1; }
11837 # Remove the trailing spaces.
11838 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11842 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11843 # `conftest.undefs', that substitutes the proper values into
11844 # config.h.in to produce config.h. The first handles `#define'
11845 # templates, and the second `#undef' templates.
11846 # And first: Protect against being on the right side of a sed subst in
11847 # config.status. Protect against being in an unquoted here document
11848 # in config.status.
11849 rm -f conftest.defines conftest.undefs
11850 # Using a here document instead of a string reduces the quoting nightmare.
11851 # Putting comments in sed scripts is not portable.
11853 # `end' is used to avoid that the second main sed command (meant for
11854 # 0-ary CPP macros) applies to n-ary macro definitions.
11855 # See the Autoconf documentation for `clear'.
11856 cat >confdef2sed.sed <<\_ACEOF
11861 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11863 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11866 # If some macros were called several times there might be several times
11867 # the same #defines, which is useless. Nevertheless, we may not want to
11868 # sort them, since we want the *last* AC-DEFINE to be honored.
11869 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11870 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11871 rm -f confdef2sed.sed
11873 # This sed command replaces #undef with comments. This is necessary, for
11874 # example, in the case of _POSIX_SOURCE, which is predefined and required
11875 # on some systems where configure will not decide to define it.
11876 cat >>conftest.undefs <<\_ACEOF
11877 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11880 # Break up conftest.defines because some shells have a limit on the size
11881 # of here documents, and old seds have small limits too (100 cmds).
11882 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11883 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11884 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11885 echo ' :' >>$CONFIG_STATUS
11886 rm -f conftest.tail
11887 while grep . conftest.defines >/dev/null
11889 # Write a limited-size here document to $tmp/defines.sed.
11890 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11891 # Speed up: don't consider the non `#define' lines.
11892 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11893 # Work around the forget-to-reset-the-flag bug.
11894 echo 't clr' >>$CONFIG_STATUS
11895 echo ': clr' >>$CONFIG_STATUS
11896 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11898 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11900 mv $tmp/out $tmp/in
11902 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11903 rm -f conftest.defines
11904 mv conftest.tail conftest.defines
11906 rm -f conftest.defines
11907 echo ' fi # grep' >>$CONFIG_STATUS
11908 echo >>$CONFIG_STATUS
11910 # Break up conftest.undefs because some shells have a limit on the size
11911 # of here documents, and old seds have small limits too (100 cmds).
11912 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11913 rm -f conftest.tail
11914 while grep . conftest.undefs >/dev/null
11916 # Write a limited-size here document to $tmp/undefs.sed.
11917 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11918 # Speed up: don't consider the non `#undef'
11919 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11920 # Work around the forget-to-reset-the-flag bug.
11921 echo 't clr' >>$CONFIG_STATUS
11922 echo ': clr' >>$CONFIG_STATUS
11923 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11925 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11927 mv $tmp/out $tmp/in
11929 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11930 rm -f conftest.undefs
11931 mv conftest.tail conftest.undefs
11933 rm -f conftest.undefs
11935 cat >>$CONFIG_STATUS <<\_ACEOF
11936 # Let's still pretend it is `configure' which instantiates (i.e., don't
11937 # use $as_me), people would be surprised to read:
11938 # /* config.h. Generated by config.status. */
11939 if test x"$ac_file" = x-; then
11940 echo "/* Generated by configure. */" >$tmp/config.h
11942 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11944 cat $tmp/in >>$tmp/config.h
11946 if test x"$ac_file" != x-; then
11947 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11948 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11949 echo "$as_me: $ac_file is unchanged" >&6;}
11951 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11953 X"$ac_file" : 'X\(//\)[^/]' \| \
11954 X"$ac_file" : 'X\(//\)$' \| \
11955 X"$ac_file" : 'X\(/\)' \| \
11956 . : '\(.\)' 2>/dev/null ||
11958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11960 /^X\(\/\/\)$/{ s//\1/; q; }
11961 /^X\(\/\).*/{ s//\1/; q; }
11963 { if $as_mkdir_p; then
11968 while test ! -d "$as_dir"; do
11969 as_dirs="$as_dir $as_dirs"
11970 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11972 X"$as_dir" : 'X\(//\)[^/]' \| \
11973 X"$as_dir" : 'X\(//\)$' \| \
11974 X"$as_dir" : 'X\(/\)' \| \
11975 . : '\(.\)' 2>/dev/null ||
11977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11979 /^X\(\/\/\)$/{ s//\1/; q; }
11980 /^X\(\/\).*/{ s//\1/; q; }
11983 test ! -n "$as_dirs" || mkdir $as_dirs
11984 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11985 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11986 { (exit 1); exit 1; }; }; }
11989 mv $tmp/config.h $ac_file
11993 rm -f $tmp/config.h
11995 # Compute $ac_file's index in $config_headers.
11997 for _am_header in $config_headers :; do
11998 case $_am_header in
11999 $ac_file | $ac_file:* )
12002 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12005 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12006 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12007 X$ac_file : 'X\(//\)[^/]' \| \
12008 X$ac_file : 'X\(//\)$' \| \
12009 X$ac_file : 'X\(/\)' \| \
12010 . : '\(.\)' 2>/dev/null ||
12012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12014 /^X\(\/\/\)$/{ s//\1/; q; }
12015 /^X\(\/\).*/{ s//\1/; q; }
12016 s/.*/./; q'`/stamp-h$_am_stamp_count
12019 cat >>$CONFIG_STATUS <<\_ACEOF
12022 # CONFIG_COMMANDS section.
12024 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12025 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12026 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12027 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12028 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12029 X"$ac_dest" : 'X\(//\)[^/]' \| \
12030 X"$ac_dest" : 'X\(//\)$' \| \
12031 X"$ac_dest" : 'X\(/\)' \| \
12032 . : '\(.\)' 2>/dev/null ||
12034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12036 /^X\(\/\/\)$/{ s//\1/; q; }
12037 /^X\(\/\).*/{ s//\1/; q; }
12039 { if $as_mkdir_p; then
12044 while test ! -d "$as_dir"; do
12045 as_dirs="$as_dir $as_dirs"
12046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12048 X"$as_dir" : 'X\(//\)[^/]' \| \
12049 X"$as_dir" : 'X\(//\)$' \| \
12050 X"$as_dir" : 'X\(/\)' \| \
12051 . : '\(.\)' 2>/dev/null ||
12053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12055 /^X\(\/\/\)$/{ s//\1/; q; }
12056 /^X\(\/\).*/{ s//\1/; q; }
12059 test ! -n "$as_dirs" || mkdir $as_dirs
12060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12062 { (exit 1); exit 1; }; }; }
12066 if test "$ac_dir" != .; then
12067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12068 # A "../" for each directory in $ac_dir_suffix.
12069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12071 ac_dir_suffix= ac_top_builddir=
12075 .) # No --srcdir option. We are building in place.
12077 if test -z "$ac_top_builddir"; then
12080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12082 [\\/]* | ?:[\\/]* ) # Absolute path.
12083 ac_srcdir=$srcdir$ac_dir_suffix;
12084 ac_top_srcdir=$srcdir ;;
12085 *) # Relative path.
12086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12090 # Do not use `cd foo && pwd` to compute absolute paths, because
12091 # the directories may not exist.
12093 .) ac_abs_builddir="$ac_dir";;
12096 .) ac_abs_builddir=`pwd`;;
12097 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12098 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12101 case $ac_abs_builddir in
12102 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12104 case ${ac_top_builddir}. in
12105 .) ac_abs_top_builddir=$ac_abs_builddir;;
12106 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12107 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12110 case $ac_abs_builddir in
12111 .) ac_abs_srcdir=$ac_srcdir;;
12114 .) ac_abs_srcdir=$ac_abs_builddir;;
12115 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12116 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12119 case $ac_abs_builddir in
12120 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12122 case $ac_top_srcdir in
12123 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12124 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12125 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12130 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12131 echo "$as_me: executing $ac_dest commands" >&6;}
12133 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12134 # Strip MF so we end up with the name of the file.
12135 mf=`echo "$mf" | sed -e 's/:.*$//'`
12136 # Check whether this is an Automake generated Makefile or not.
12137 # We used to match only the files named `Makefile.in', but
12138 # some people rename them; so instead we look at the file content.
12139 # Grep'ing the first line is not enough: some people post-process
12140 # each Makefile.in and add a new line on top of each file to say so.
12141 # So let's grep whole file.
12142 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12143 dirpart=`(dirname "$mf") 2>/dev/null ||
12144 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12145 X"$mf" : 'X\(//\)[^/]' \| \
12146 X"$mf" : 'X\(//\)$' \| \
12147 X"$mf" : 'X\(/\)' \| \
12148 . : '\(.\)' 2>/dev/null ||
12150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12152 /^X\(\/\/\)$/{ s//\1/; q; }
12153 /^X\(\/\).*/{ s//\1/; q; }
12158 # Extract the definition of DEPDIR, am__include, and am__quote
12159 # from the Makefile without running `make'.
12160 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12161 test -z "$DEPDIR" && continue
12162 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12163 test -z "am__include" && continue
12164 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12165 # When using ansi2knr, U may be empty or an underscore; expand it
12166 U=`sed -n 's/^U = //p' < "$mf"`
12167 # Find all dependency output files, they are included files with
12168 # $(DEPDIR) in their names. We invoke sed twice because it is the
12169 # simplest approach to changing $(DEPDIR) to its actual value in the
12171 for file in `sed -n "
12172 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12173 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12174 # Make sure the directory exists.
12175 test -f "$dirpart/$file" && continue
12176 fdir=`(dirname "$file") 2>/dev/null ||
12177 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12178 X"$file" : 'X\(//\)[^/]' \| \
12179 X"$file" : 'X\(//\)$' \| \
12180 X"$file" : 'X\(/\)' \| \
12181 . : '\(.\)' 2>/dev/null ||
12183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12185 /^X\(\/\/\)$/{ s//\1/; q; }
12186 /^X\(\/\).*/{ s//\1/; q; }
12188 { if $as_mkdir_p; then
12189 mkdir -p $dirpart/$fdir
12191 as_dir=$dirpart/$fdir
12193 while test ! -d "$as_dir"; do
12194 as_dirs="$as_dir $as_dirs"
12195 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12197 X"$as_dir" : 'X\(//\)[^/]' \| \
12198 X"$as_dir" : 'X\(//\)$' \| \
12199 X"$as_dir" : 'X\(/\)' \| \
12200 . : '\(.\)' 2>/dev/null ||
12202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12204 /^X\(\/\/\)$/{ s//\1/; q; }
12205 /^X\(\/\).*/{ s//\1/; q; }
12208 test ! -n "$as_dirs" || mkdir $as_dirs
12209 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12210 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12211 { (exit 1); exit 1; }; }; }
12213 # echo "creating $dirpart/$file"
12214 echo '# dummy' > "$dirpart/$file"
12218 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
12219 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
12220 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
12221 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
12222 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
12223 if test "x$cgen_cpu_prefix" != x ; then
12224 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
12227 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12232 cat >>$CONFIG_STATUS <<\_ACEOF
12234 { (exit 0); exit 0; }
12236 chmod +x $CONFIG_STATUS
12237 ac_clean_files=$ac_clean_files_save
12240 # configure is writing to config.log, and then calls config.status.
12241 # config.status does its own redirection, appending to config.log.
12242 # Unfortunately, on DOS this fails, as config.log is still kept open
12243 # by configure, so config.status won't be able to write to it; its
12244 # output is simply discarded. So we exec the FD to /dev/null,
12245 # effectively closing config.log, so it can be properly (re)opened and
12246 # appended to by config.status. When coming back to configure, we
12247 # need to make the FD available again.
12248 if test "$no_create" != yes; then
12250 ac_config_status_args=
12251 test "$silent" = yes &&
12252 ac_config_status_args="$ac_config_status_args --quiet"
12254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12257 # would make configure fail if this is the last instruction.
12258 $ac_cs_success || { (exit 1); exit 1; }