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 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
423 ac_unique_file="libbfd.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 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 AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
465 # Initialize some variables set by options.
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name=s,x,x,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
580 -help | --help | --hel | --he | -h)
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 # Obsolete; use --without-fp.
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
710 -site=* | --site=* | --sit=*)
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 -version | --version | --versio | --versi | --vers | -V)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
996 if test -n "$ac_init_help"; then
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --disable-largefile omit support for large files
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1014 --enable-targets alternative target configurations
1015 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1016 --enable-secureplt Default to creating read-only plt entries
1017 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1018 --enable-werror treat compile warnings as errors
1019 --enable-build-warnings enable build-time compiler warnings
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-install-libbfd controls installation of libbfd and related headers
1023 --disable-nls do not use Native Language Support
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1028 --with-pic try to use only PIC/non-PIC objects [default=use
1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1031 --with-mmap try using mmap for BFD input files if available
1032 --with-separate-debug-dir=DIR
1033 Look for global separate debug info in DIR
1034 [default=LIBDIR/debug]
1035 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1037 --with-bugurl=URL Direct users to URL to report a bug
1039 Some influential environment variables:
1040 CC C compiler command
1041 CFLAGS C compiler flags
1042 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1043 nonstandard directory <lib dir>
1044 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045 headers in a nonstandard directory <include dir>
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1054 if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1061 if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066 ac_dir_suffix= ac_top_builddir=
1070 .) # No --srcdir option. We are building in place.
1072 if test -z "$ac_top_builddir"; then
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1085 # Do not use `cd foo && pwd` to compute absolute paths, because
1086 # the directories may not exist.
1088 .) ac_abs_builddir="$ac_dir";;
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1096 case $ac_abs_builddir in
1097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1105 case $ac_abs_builddir in
1106 .) ac_abs_srcdir=$ac_srcdir;;
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1135 $ac_configure --help
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1143 test -n "$ac_init_help" && exit 0
1144 if $ac_init_version; then
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1158 It was created by $as_me, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1218 ac_must_keep_next=false
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1247 -* ) ac_must_keep_next=true ;;
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1276 # The following way of writing the cache mishandles newlines in values,
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1299 for ac_var in $ac_subst_vars
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1306 if test -n "$ac_subst_files"; then
1313 for ac_var in $ac_subst_files
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -s confdefs.h; then
1328 sed "/^$/d" confdefs.h | sort
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1349 # Predefined preprocessor variables.
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1411 # Check that the precious variables saved in the cache have kept the same
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438 ac_cache_corrupted=:
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1463 if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1508 elif test -f $ac_dir/install.sh; then
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1512 elif test -f $ac_dir/shtool; then
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1518 if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1523 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527 # Make sure we can run config.sub.
1528 $ac_config_sub sun4 >/dev/null 2>&1 ||
1529 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1533 echo "$as_me:$LINENO: checking build system type" >&5
1534 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535 if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 ac_cv_build_alias=$build_alias
1539 test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541 test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1551 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552 echo "${ECHO_T}$ac_cv_build" >&6
1554 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559 echo "$as_me:$LINENO: checking host system type" >&5
1560 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561 if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 ac_cv_host_alias=$host_alias
1565 test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1573 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574 echo "${ECHO_T}$ac_cv_host" >&6
1576 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581 echo "$as_me:$LINENO: checking target system type" >&5
1582 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583 if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 ac_cv_target_alias=$target_alias
1587 test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1595 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596 echo "${ECHO_T}$ac_cv_target" >&6
1597 target=$ac_cv_target
1598 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603 # The aliases save the names the user supplied, while $host etc.
1604 # will get canonicalized.
1605 test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1608 program_prefix=${target_alias}-
1610 ac_cpp='$CPP $CPPFLAGS'
1611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$ac_cv_prog_CC"; then
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654 set dummy gcc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1693 if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}cc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$ac_cv_prog_CC"; then
1733 # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1774 if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1808 if test $# != 0; then
1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1819 if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1828 if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1867 test -n "$CC" && break
1870 if test -z "$CC"; then
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909 test -n "$ac_ct_CC" && break
1918 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: no acceptable C compiler found in \$PATH
1923 See \`config.log' for more details." >&2;}
1924 { (exit 1); exit 1; }; }; }
1926 # Provide some information about the compiler.
1927 echo "$as_me:$LINENO:" \
1928 "checking for C compiler version" >&5
1929 ac_compiler=`set X $ac_compile; echo $2`
1930 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931 (eval $ac_compiler --version </dev/null >&5) 2>&5
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936 (eval $ac_compiler -v </dev/null >&5) 2>&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941 (eval $ac_compiler -V </dev/null >&5) 2>&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1946 cat >conftest.$ac_ext <<_ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1961 ac_clean_files_save=$ac_clean_files
1962 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963 # Try to create an executable without -o first, disregard a.out.
1964 # It will help us diagnose broken compilers, and finding out an intuition
1966 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970 (eval $ac_link_default) 2>&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # Find the output, starting from the most likely. This scheme is
1975 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1978 # Be careful to initialize this variable, since it used to be cached.
1979 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1981 # b.out is created by i960 compilers.
1982 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1984 test -f "$ac_file" || continue
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1989 # This is the source file.
1992 # We found the default executable, but exeext='' is most
1996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997 # FIXME: I believe we export ac_cv_exeext for Libtool,
1998 # but it would be cool to find out if it's true. Does anybody
1999 # maintain Libtool? --akim.
2007 echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2012 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: C compiler cannot create executables
2015 See \`config.log' for more details." >&2;}
2016 { (exit 77); exit 77; }; }; }
2019 ac_exeext=$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_file" >&5
2021 echo "${ECHO_T}$ac_file" >&6
2023 # Check the compiler produces executables we can run. If not, either
2024 # the compiler is broken, or we cross compile.
2025 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028 # If not cross compiling, check that we can run a simple program.
2029 if test "$cross_compiling" != yes; then
2030 if { ac_try='./$ac_file'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2038 if test "$cross_compiling" = maybe; then
2041 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2044 If you meant to cross compile, use \`--host'.
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'.
2048 See \`config.log' for more details." >&2;}
2049 { (exit 1); exit 1; }; }; }
2053 echo "$as_me:$LINENO: result: yes" >&5
2054 echo "${ECHO_T}yes" >&6
2056 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2057 ac_clean_files=$ac_clean_files_save
2058 # Check the compiler produces executables we can run. If not, either
2059 # the compiler is broken, or we cross compile.
2060 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063 echo "${ECHO_T}$cross_compiling" >&6
2065 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2073 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2074 # work properly (i.e., refer to `conftest.exe'), while it won't with
2076 for ac_file in conftest.exe conftest conftest.*; do
2077 test -f "$ac_file" || continue
2079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2087 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }; }
2096 rm -f conftest$ac_cv_exeext
2097 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098 echo "${ECHO_T}$ac_cv_exeext" >&6
2100 rm -f conftest.$ac_ext
2101 EXEEXT=$ac_cv_exeext
2103 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105 if test "${ac_cv_objext+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 cat >conftest.$ac_ext <<_ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2123 rm -f conftest.o conftest.obj
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2137 echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2140 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2141 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }; }
2149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2151 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152 echo "${ECHO_T}$ac_cv_objext" >&6
2153 OBJEXT=$ac_cv_objext
2155 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 cat >conftest.$ac_ext <<_ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>conftest.er1
2182 grep -v '^ *+' conftest.er1 >conftest.err
2184 cat conftest.err >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2211 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213 GCC=`test $ac_compiler_gnu = yes && echo yes`
2214 ac_test_CFLAGS=${CFLAGS+set}
2215 ac_save_CFLAGS=$CFLAGS
2217 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_g+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 cat >conftest.$ac_ext <<_ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2241 grep -v '^ *+' conftest.er1 >conftest.err
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272 elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2279 if test "$GCC" = yes; then
2285 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 ac_cv_prog_cc_stdc=no
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2300 #include <sys/types.h>
2301 #include <sys/stat.h>
2302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2303 struct buf { int x; };
2304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305 static char *e (p, i)
2311 static char *f (char * (*g) (char **, int), char **p, ...)
2316 s = g (p, va_arg (v,int));
2321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2322 function prototypes and stuff, but not '\xHH' hex character constants.
2323 These don't provoke an error unfortunately, instead are silently treated
2324 as 'x'. The following induces an error, until -std1 is added to get
2325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2326 array size at least. It's necessary to write '\x00'==0 to get something
2327 that's true only with -std1. */
2328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2330 int test (int i, double x);
2331 struct s1 {int (*f) (int a);};
2332 struct s2 {int (*f) (double a);};
2333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2344 # Don't try gcc -ansi; that turns off useful extensions and
2345 # breaks some systems' header files.
2346 # AIX -qlanglvl=ansi
2347 # Ultrix and OSF/1 -std1
2348 # HP-UX 10.20 and later -Ae
2349 # HP-UX older versions -Aa -D_HPUX_SOURCE
2350 # SVR4 -Xc -D__EXTENSIONS__
2351 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2358 grep -v '^ *+' conftest.er1 >conftest.err
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_stdc=$ac_arg
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2383 rm -f conftest.err conftest.$ac_objext
2385 rm -f conftest.$ac_ext conftest.$ac_objext
2390 case "x$ac_cv_prog_cc_stdc" in
2392 echo "$as_me:$LINENO: result: none needed" >&5
2393 echo "${ECHO_T}none needed" >&6 ;;
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397 CC="$CC $ac_cv_prog_cc_stdc" ;;
2400 # Some people use a C++ compiler to compile C. Since we use `exit',
2401 # in C++ we need to declare it. In case someone uses the same compiler
2402 # for both compiling C and C++ we need to have the C++ compiler decide
2403 # the declaration of exit, since it's the most demanding environment.
2404 cat >conftest.$ac_ext <<_ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2413 grep -v '^ *+' conftest.er1 >conftest.err
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 for ac_declaration in \
2433 'extern "C" void std::exit (int) throw (); using std::exit;' \
2434 'extern "C" void std::exit (int); using std::exit;' \
2435 'extern "C" void exit (int) throw ();' \
2436 'extern "C" void exit (int);' \
2439 cat >conftest.$ac_ext <<_ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2459 grep -v '^ *+' conftest.er1 >conftest.err
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1 >conftest.err
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 if test -n "$ac_declaration"; then
2532 echo '#ifdef __cplusplus' >>confdefs.h
2533 echo $ac_declaration >>confdefs.h
2534 echo '#endif' >>confdefs.h
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2551 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2552 if test "${ac_cv_search_strerror+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 ac_func_search_save_LIBS=$LIBS
2556 ac_cv_search_strerror=no
2557 cat >conftest.$ac_ext <<_ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2564 /* Override any gcc2 internal prototype to avoid an error. */
2568 /* We use char because int might match the return type of a gcc2
2569 builtin and then its argument prototype would still apply. */
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581 (eval $ac_link) 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest$ac_exeext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_cv_search_strerror="none required"
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
2609 if test "$ac_cv_search_strerror" = no; then
2610 for ac_lib in cposix; do
2611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2612 cat >conftest.$ac_ext <<_ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2619 /* Override any gcc2 internal prototype to avoid an error. */
2623 /* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2634 rm -f conftest.$ac_objext conftest$ac_exeext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636 (eval $ac_link) 2>conftest.er1
2638 grep -v '^ *+' conftest.er1 >conftest.err
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest$ac_exeext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_search_strerror="-l$ac_lib"
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2667 LIBS=$ac_func_search_save_LIBS
2669 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2670 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2671 if test "$ac_cv_search_strerror" != no; then
2672 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2677 am__api_version="1.9"
2678 # Find a good install program. We prefer a C program (faster),
2679 # so one script is as good as another. But avoid the broken or
2680 # incompatible versions:
2681 # SysV /etc/install, /usr/sbin/install
2682 # SunOS /usr/etc/install
2683 # IRIX /sbin/install
2685 # AmigaOS /C/install, which installs bootblocks on floppy discs
2686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2689 # OS/2's system install, which has a completely different semantic
2690 # ./install, which can be erroneously created by make from ./install.sh.
2691 # Reject install programs that cannot install multiple files.
2692 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2693 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2694 if test -z "$INSTALL"; then
2695 if test "${ac_cv_path_install+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir=.
2703 # Account for people who put trailing slashes in PATH elements.
2705 ./ | .// | /cC/* | \
2706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2713 for ac_prog in ginstall scoinst install; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2716 if test $ac_prog = install &&
2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # AIX install. It has an incompatible calling convention.
2720 elif test $ac_prog = install &&
2721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # program-specific install script used by HP pwplus--don't use.
2725 rm -rf conftest.one conftest.two conftest.dir
2726 echo one > conftest.one
2727 echo two > conftest.two
2729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730 test -s conftest.one && test -s conftest.two &&
2731 test -s conftest.dir/conftest.one &&
2732 test -s conftest.dir/conftest.two
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2745 rm -rf conftest.one conftest.two conftest.dir
2748 if test "${ac_cv_path_install+set}" = set; then
2749 INSTALL=$ac_cv_path_install
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2758 echo "$as_me:$LINENO: result: $INSTALL" >&5
2759 echo "${ECHO_T}$INSTALL" >&6
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2773 echo timestamp > conftest.file
2774 # Do `set' in a subshell so we don't clobber the current shell's
2775 # arguments. Must try -L first in case configure is actually a
2776 # symlink; some systems play weird games with the mod time of symlinks
2777 # (eg FreeBSD returns the mod time of the symlink's containing
2780 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2781 if test "$*" = "X"; then
2783 set X `ls -t $srcdir/configure conftest.file`
2786 if test "$*" != "X $srcdir/configure conftest.file" \
2787 && test "$*" != "X conftest.file $srcdir/configure"; then
2789 # If neither matched, then we have a broken ls. This can happen
2790 # if, for instance, CONFIG_SHELL is bash and it inherits a
2791 # broken ls alias from the environment. This has actually
2792 # happened. Such a system could not be considered "sane".
2793 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2794 alias in your environment" >&5
2795 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2796 alias in your environment" >&2;}
2797 { (exit 1); exit 1; }; }
2800 test "$2" = conftest.file
2806 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2807 Check your system clock" >&5
2808 echo "$as_me: error: newly created file is older than distributed files!
2809 Check your system clock" >&2;}
2810 { (exit 1); exit 1; }; }
2812 echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6
2814 test "$program_prefix" != NONE &&
2815 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2816 # Use a double $ so make ignores it.
2817 test "$program_suffix" != NONE &&
2818 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2819 # Double any \ or $. echo might interpret backslashes.
2820 # By default was `s,x,x', remove it if useless.
2821 cat <<\_ACEOF >conftest.sed
2822 s/[\\$]/&&/g;s/;s,x,x,$//
2824 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2830 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2831 # Use eval to expand $SHELL
2832 if eval "$MISSING --run true"; then
2833 am_missing_run="$MISSING --run "
2836 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2837 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2840 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2841 # We used to keeping the `.' as first argument, in order to
2842 # allow $(mkdir_p) to be used without argument. As in
2843 # $(mkdir_p) $(somedir)
2844 # where $(somedir) is conditionally defined. However this is wrong
2846 # 1. if the package is installed by a user who cannot write `.'
2847 # make install will fail,
2848 # 2. the above comment should most certainly read
2849 # $(mkdir_p) $(DESTDIR)$(somedir)
2850 # so it does not work when $(somedir) is undefined and
2851 # $(DESTDIR) is not.
2852 # To support the latter case, we have to write
2853 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2854 # so the `.' trick is pointless.
2855 mkdir_p='mkdir -p --'
2857 # On NextStep and OpenStep, the `mkdir' command does not
2858 # recognize any option. It will interpret all options as
2859 # directories to create, and then abort because `.' already
2861 for d in ./-p ./--version;
2863 test -d $d && rmdir $d
2865 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2866 if test -f "$ac_aux_dir/mkinstalldirs"; then
2867 mkdir_p='$(mkinstalldirs)'
2869 mkdir_p='$(install_sh) -d'
2873 for ac_prog in gawk mawk nawk awk
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_AWK+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$AWK"; then
2883 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_AWK="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 if test -n "$AWK"; then
2903 echo "$as_me:$LINENO: result: $AWK" >&5
2904 echo "${ECHO_T}$AWK" >&6
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2910 test -n "$AWK" && break
2913 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2915 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2916 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 cat >conftest.make <<\_ACEOF
2921 @echo 'ac_maketemp="$(MAKE)"'
2923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2924 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2925 if test -n "$ac_maketemp"; then
2926 eval ac_cv_prog_make_${ac_make}_set=yes
2928 eval ac_cv_prog_make_${ac_make}_set=no
2932 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6
2937 echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2939 SET_MAKE="MAKE=${MAKE-make}"
2942 rm -rf .tst 2>/dev/null
2943 mkdir .tst 2>/dev/null
2944 if test -d .tst; then
2949 rmdir .tst 2>/dev/null
2951 DEPDIR="${am__leading_dot}deps"
2953 ac_config_commands="$ac_config_commands depfiles"
2956 am_make=${MAKE-make}
2957 cat > confinc << 'END'
2962 # If we don't find an include directive, just comment out the code.
2963 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2968 # First try GNU make style include.
2969 echo "include confinc" > confmf
2970 # We grep out `Entering directory' and `Leaving directory'
2971 # messages which can occur if `w' ends up in MAKEFLAGS.
2972 # In particular we don't look at `^make:' because GNU make might
2973 # be invoked under some other name (usually "gmake"), in which
2974 # case it prints its new name instead of `make'.
2975 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2980 # Now try BSD make style include.
2981 if test "$am__include" = "#"; then
2982 echo '.include "confinc"' > confmf
2983 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2984 am__include=.include
2991 echo "$as_me:$LINENO: result: $_am_result" >&5
2992 echo "${ECHO_T}$_am_result" >&6
2993 rm -f confinc confmf
2995 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996 if test "${enable_dependency_tracking+set}" = set; then
2997 enableval="$enable_dependency_tracking"
3000 if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3006 if test "x$enable_dependency_tracking" != xno; then
3016 # test to see if srcdir already configured
3017 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3018 test -f $srcdir/config.status; then
3019 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3020 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3021 { (exit 1); exit 1; }; }
3024 # test whether we have cygpath
3025 if test -z "$CYGPATH_W"; then
3026 if (cygpath --version) >/dev/null 2>/dev/null; then
3027 CYGPATH_W='cygpath -w'
3034 # Define the identity of the package.
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE "$PACKAGE"
3044 cat >>confdefs.h <<_ACEOF
3045 #define VERSION "$VERSION"
3048 # Some tools Automake needs.
3050 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3053 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3056 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3059 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3062 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3064 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3066 # Installed binaries are usually stripped using `strip' when the user
3067 # run `make install-strip'. However `strip' might not be the right
3068 # tool to use in cross-compilation environments, therefore Automake
3069 # will honor the `STRIP' environment variable to overrule this program.
3070 if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}strip; ac_word=$2
3074 echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_prog_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 STRIP=$ac_cv_prog_STRIP
3099 if test -n "$STRIP"; then
3100 echo "$as_me:$LINENO: result: $STRIP" >&5
3101 echo "${ECHO_T}$STRIP" >&6
3103 echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3108 if test -z "$ac_cv_prog_STRIP"; then
3110 # Extract the first word of "strip", so it can be a program name with args.
3111 set dummy strip; ac_word=$2
3112 echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 if test -n "$ac_ct_STRIP"; then
3118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_STRIP="strip"
3128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3137 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3138 if test -n "$ac_ct_STRIP"; then
3139 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3140 echo "${ECHO_T}$ac_ct_STRIP" >&6
3142 echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3148 STRIP="$ac_cv_prog_STRIP"
3152 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3154 # We need awk for the "check" target. The system "awk" is bad on
3156 # Always define AMTAR for backward compatibility.
3158 AMTAR=${AMTAR-"${am_missing_run}tar"}
3160 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3165 depcc="$CC" am_compiler_list=
3167 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3168 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3169 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3173 # We make a subdir and do the tests there. Otherwise we can end up
3174 # making bogus files that we don't know about and never remove. For
3175 # instance it was reported that on HP-UX the gcc test will end up
3176 # making a dummy file named `D' -- because `-MD' means `put the output
3179 # Copy depcomp to subdir because otherwise we won't find it if we're
3180 # using a relative directory.
3181 cp "$am_depcomp" conftest.dir
3183 # We will build objects and dependencies in a subdirectory because
3184 # it helps to detect inapplicable dependency modes. For instance
3185 # both Tru64's cc and ICC support -MD to output dependencies as a
3186 # side effect of compilation, but ICC will put the dependencies in
3187 # the current directory while Tru64 will put them in the object
3191 am_cv_CC_dependencies_compiler_type=none
3192 if test "$am_compiler_list" = ""; then
3193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3195 for depmode in $am_compiler_list; do
3196 # Setup a source with many dependencies, because some compilers
3197 # like to wrap large dependency lists on column 80 (with \), and
3198 # we should not choose a depcomp mode which is confused by this.
3200 # We need to recreate these files for each test, as the compiler may
3201 # overwrite some of them when testing with obscure command lines.
3202 # This happens at least with the AIX C compiler.
3204 for i in 1 2 3 4 5 6; do
3205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3207 # Solaris 8's {/usr,}/bin/sh.
3208 touch sub/conftst$i.h
3210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3214 # after this tag, mechanisms are not by side-effect, so they'll
3215 # only be used when explicitly requested
3216 if test "x$enable_dependency_tracking" = xyes; then
3224 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3225 # mode. It turns out that the SunPro C++ compiler does not properly
3226 # handle `-M -o', and we need to detect this.
3227 if depmode=$depmode \
3228 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3230 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3231 >/dev/null 2>conftest.err &&
3232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3233 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3235 # icc doesn't choke on unknown options, it will just issue warnings
3236 # or remarks (even with -Werror). So we grep stderr for any message
3237 # that says an option was ignored or not supported.
3238 # When given -MP, icc 7.0 and 7.1 complain thusly:
3239 # icc: Command line warning: ignoring option '-M'; no argument required
3240 # The diagnosis changed in icc 8.0:
3241 # icc: Command line remark: option '-MP' not supported
3242 if (grep 'ignoring option' conftest.err ||
3243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3244 am_cv_CC_dependencies_compiler_type=$depmode
3253 am_cv_CC_dependencies_compiler_type=none
3257 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3264 test "x$enable_dependency_tracking" != xno \
3265 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3267 am__fastdepCC_FALSE='#'
3269 am__fastdepCC_TRUE='#'
3270 am__fastdepCC_FALSE=
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}ar; ac_word=$2
3279 echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281 if test "${ac_cv_prog_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 if test -n "$AR"; then
3285 ac_cv_prog_AR="$AR" # Let the user override the test.
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_AR="${ac_tool_prefix}ar"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 if test -n "$AR"; then
3305 echo "$as_me:$LINENO: result: $AR" >&5
3306 echo "${ECHO_T}$AR" >&6
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3313 if test -z "$ac_cv_prog_AR"; then
3315 # Extract the first word of "ar", so it can be a program name with args.
3316 set dummy ar; ac_word=$2
3317 echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 if test -n "$ac_ct_AR"; then
3323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_AR="ar"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3342 if test -n "$ac_ct_AR"; then
3343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3344 echo "${ECHO_T}$ac_ct_AR" >&6
3346 echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 RANLIB=$ac_cv_prog_RANLIB
3383 if test -n "$RANLIB"; then
3384 echo "$as_me:$LINENO: result: $RANLIB" >&5
3385 echo "${ECHO_T}$RANLIB" >&6
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3392 if test -z "$ac_cv_prog_RANLIB"; then
3393 ac_ct_RANLIB=$RANLIB
3394 # Extract the first word of "ranlib", so it can be a program name with args.
3395 set dummy ranlib; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 if test -n "$ac_ct_RANLIB"; then
3402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_RANLIB="ranlib"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3422 if test -n "$ac_ct_RANLIB"; then
3423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3424 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3426 echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3430 RANLIB=$ac_ct_RANLIB
3432 RANLIB="$ac_cv_prog_RANLIB"
3436 # Check whether --enable-shared or --disable-shared was given.
3437 if test "${enable_shared+set}" = set; then
3438 enableval="$enable_shared"
3439 p=${PACKAGE-default}
3441 yes) enable_shared=yes ;;
3442 no) enable_shared=no ;;
3445 # Look at the argument we got. We use all the common list separators.
3446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3447 for pkg in $enableval; do
3449 if test "X$pkg" = "X$p"; then
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3476 echo "$as_me:$LINENO: checking for $ac_word" >&5
3477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478 if test "${ac_cv_prog_CC+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 if test -n "$CC"; then
3502 echo "$as_me:$LINENO: result: $CC" >&5
3503 echo "${ECHO_T}$CC" >&6
3505 echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3510 if test -z "$ac_cv_prog_CC"; then
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513 set dummy gcc; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_CC="gcc"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541 echo "${ECHO_T}$ac_ct_CC" >&6
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3552 if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}cc; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_prog_CC+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}cc"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 if test -n "$CC"; then
3582 echo "$as_me:$LINENO: result: $CC" >&5
3583 echo "${ECHO_T}$CC" >&6
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3590 if test -z "$ac_cv_prog_CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 echo "$as_me:$LINENO: checking for $ac_word" >&5
3595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC="cc"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3621 echo "${ECHO_T}$ac_ct_CC" >&6
3623 echo "$as_me:$LINENO: result: no" >&5
3624 echo "${ECHO_T}no" >&6
3633 if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635 set dummy cc; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 if test $ac_prog_rejected = yes; then
3664 # We found a bogon in the path, so make sure we never use it.
3665 set dummy $ac_cv_prog_CC
3667 if test $# != 0; then
3668 # We chose a different compiler from the bogus one.
3669 # However, it has the same basename, so the bogon will be chosen
3670 # first if we set CC to just the basename; use the full file name.
3672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3678 if test -n "$CC"; then
3679 echo "$as_me:$LINENO: result: $CC" >&5
3680 echo "${ECHO_T}$CC" >&6
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3687 if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693 echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_prog_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 if test -n "$CC"; then
3719 echo "$as_me:$LINENO: result: $CC" >&5
3720 echo "${ECHO_T}$CC" >&6
3722 echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3726 test -n "$CC" && break
3729 if test -z "$CC"; then
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762 echo "${ECHO_T}$ac_ct_CC" >&6
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 test -n "$ac_ct_CC" && break
3777 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3780 See \`config.log' for more details." >&5
3781 echo "$as_me: error: no acceptable C compiler found in \$PATH
3782 See \`config.log' for more details." >&2;}
3783 { (exit 1); exit 1; }; }; }
3785 # Provide some information about the compiler.
3786 echo "$as_me:$LINENO:" \
3787 "checking for C compiler version" >&5
3788 ac_compiler=`set X $ac_compile; echo $2`
3789 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3790 (eval $ac_compiler --version </dev/null >&5) 2>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }
3794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3795 (eval $ac_compiler -v </dev/null >&5) 2>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }
3799 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3800 (eval $ac_compiler -V </dev/null >&5) 2>&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }
3805 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3806 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3807 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3828 rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>conftest.er1
3832 grep -v '^ *+' conftest.er1 >conftest.err
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3861 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3862 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3863 GCC=`test $ac_compiler_gnu = yes && echo yes`
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3867 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3868 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3869 if test "${ac_cv_prog_cc_g+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3887 rm -f conftest.$ac_objext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>conftest.er1
3891 grep -v '^ *+' conftest.er1 >conftest.err
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3918 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3919 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3920 if test "$ac_test_CFLAGS" = set; then
3921 CFLAGS=$ac_save_CFLAGS
3922 elif test $ac_cv_prog_cc_g = yes; then
3923 if test "$GCC" = yes; then
3929 if test "$GCC" = yes; then
3935 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3936 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3937 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 ac_cv_prog_cc_stdc=no
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3950 #include <sys/types.h>
3951 #include <sys/stat.h>
3952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3953 struct buf { int x; };
3954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3955 static char *e (p, i)
3961 static char *f (char * (*g) (char **, int), char **p, ...)
3966 s = g (p, va_arg (v,int));
3971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3972 function prototypes and stuff, but not '\xHH' hex character constants.
3973 These don't provoke an error unfortunately, instead are silently treated
3974 as 'x'. The following induces an error, until -std1 is added to get
3975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3976 array size at least. It's necessary to write '\x00'==0 to get something
3977 that's true only with -std1. */
3978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3980 int test (int i, double x);
3981 struct s1 {int (*f) (int a);};
3982 struct s2 {int (*f) (double a);};
3983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3989 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3994 # Don't try gcc -ansi; that turns off useful extensions and
3995 # breaks some systems' header files.
3996 # AIX -qlanglvl=ansi
3997 # Ultrix and OSF/1 -std1
3998 # HP-UX 10.20 and later -Ae
3999 # HP-UX older versions -Aa -D_HPUX_SOURCE
4000 # SVR4 -Xc -D__EXTENSIONS__
4001 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4003 CC="$ac_save_CC $ac_arg"
4004 rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>conftest.er1
4008 grep -v '^ *+' conftest.er1 >conftest.err
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 ac_cv_prog_cc_stdc=$ac_arg
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4033 rm -f conftest.err conftest.$ac_objext
4035 rm -f conftest.$ac_ext conftest.$ac_objext
4040 case "x$ac_cv_prog_cc_stdc" in
4042 echo "$as_me:$LINENO: result: none needed" >&5
4043 echo "${ECHO_T}none needed" >&6 ;;
4045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4046 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4047 CC="$CC $ac_cv_prog_cc_stdc" ;;
4050 # Some people use a C++ compiler to compile C. Since we use `exit',
4051 # in C++ we need to declare it. In case someone uses the same compiler
4052 # for both compiling C and C++ we need to have the C++ compiler decide
4053 # the declaration of exit, since it's the most demanding environment.
4054 cat >conftest.$ac_ext <<_ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 for ac_declaration in \
4083 'extern "C" void std::exit (int) throw (); using std::exit;' \
4084 'extern "C" void std::exit (int); using std::exit;' \
4085 'extern "C" void exit (int) throw ();' \
4086 'extern "C" void exit (int);' \
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4105 rm -f conftest.$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
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"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4181 if test -n "$ac_declaration"; then
4182 echo '#ifdef __cplusplus' >>confdefs.h
4183 echo $ac_declaration >>confdefs.h
4184 echo '#endif' >>confdefs.h
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 cat >>confdefs.h <<\_ACEOF
4201 #define _GNU_SOURCE 1
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4216 if test -z "$CPP"; then
4217 if test "${ac_cv_prog_CPP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4224 for ac_c_preproc_warn_flag in '' yes
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4239 # include <limits.h>
4241 # include <assert.h>
4245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4248 grep -v '^ *+' conftest.er1 >conftest.err
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } >/dev/null; then
4253 if test -s conftest.err; then
4254 ac_cpp_err=$ac_c_preproc_warn_flag
4255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4262 if test -z "$ac_cpp_err"; then
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 # Broken: fails on valid input.
4271 rm -f conftest.err conftest.$ac_ext
4273 # OK, works on sane cases. Now check whether non-existent headers
4274 # can be detected and how.
4275 cat >conftest.$ac_ext <<_ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <ac_nonexistent.h>
4283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } >/dev/null; then
4291 if test -s conftest.err; then
4292 ac_cpp_err=$ac_c_preproc_warn_flag
4293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4300 if test -z "$ac_cpp_err"; then
4301 # Broken: success on invalid input.
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4307 # Passes both tests.
4311 rm -f conftest.err conftest.$ac_ext
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then
4328 echo "$as_me:$LINENO: result: $CPP" >&5
4329 echo "${ECHO_T}$CPP" >&6
4331 for ac_c_preproc_warn_flag in '' yes
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4346 # include <limits.h>
4348 # include <assert.h>
4352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4355 grep -v '^ *+' conftest.er1 >conftest.err
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
4362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4369 if test -z "$ac_cpp_err"; then
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 # Broken: fails on valid input.
4378 rm -f conftest.err conftest.$ac_ext
4380 # OK, works on sane cases. Now check whether non-existent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 #include <ac_nonexistent.h>
4390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4393 grep -v '^ *+' conftest.er1 >conftest.err
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4407 if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 # Passes both tests.
4418 rm -f conftest.err conftest.$ac_ext
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then
4426 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429 See \`config.log' for more details." >&5
4430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431 See \`config.log' for more details." >&2;}
4432 { (exit 1); exit 1; }; }; }
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442 echo "$as_me:$LINENO: checking for egrep" >&5
4443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4444 if test "${ac_cv_prog_egrep+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4448 then ac_cv_prog_egrep='grep -E'
4449 else ac_cv_prog_egrep='egrep'
4452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4454 EGREP=$ac_cv_prog_egrep
4457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459 if test "${ac_cv_header_stdc+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4485 grep -v '^ *+' conftest.er1 >conftest.err
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_header_stdc=yes
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_header_stdc=no
4510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4512 if test $ac_cv_header_stdc = yes; then
4513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 $EGREP "memchr" >/dev/null 2>&1; then
4527 ac_cv_header_stdc=no
4533 if test $ac_cv_header_stdc = yes; then
4534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4535 cat >conftest.$ac_ext <<_ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "free" >/dev/null 2>&1; then
4548 ac_cv_header_stdc=no
4554 if test $ac_cv_header_stdc = yes; then
4555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556 if test "$cross_compiling" = yes; then
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4566 #if ((' ' & 0x0FF) == 0x020)
4567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4570 # define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4589 rm -f conftest$ac_exeext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4602 echo "$as_me: program exited with status $ac_status" >&5
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_cv_header_stdc=no
4609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615 if test $ac_cv_header_stdc = yes; then
4617 cat >>confdefs.h <<\_ACEOF
4618 #define STDC_HEADERS 1
4623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634 inttypes.h stdint.h unistd.h
4636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 cat >conftest.$ac_ext <<_ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 $ac_includes_default
4650 #include <$ac_header>
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4656 grep -v '^ *+' conftest.er1 >conftest.err
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 eval "$as_ac_Header=yes"
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 eval "$as_ac_Header=no"
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686 cat >>confdefs.h <<_ACEOF
4687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696 if test "${ac_cv_header_minix_config_h+set}" = set; then
4697 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4699 if test "${ac_cv_header_minix_config_h+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4703 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4705 # Is the header compilable?
4706 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4707 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4708 cat >conftest.$ac_ext <<_ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 $ac_includes_default
4715 #include <minix/config.h>
4717 rm -f conftest.$ac_objext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4721 grep -v '^ *+' conftest.er1 >conftest.err
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_header_compiler=yes
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 ac_header_compiler=no
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4748 echo "${ECHO_T}$ac_header_compiler" >&6
4750 # Is the header present?
4751 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4752 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #include <minix/config.h>
4761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4764 grep -v '^ *+' conftest.er1 >conftest.err
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null; then
4769 if test -s conftest.err; then
4770 ac_cpp_err=$ac_c_preproc_warn_flag
4771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4778 if test -z "$ac_cpp_err"; then
4779 ac_header_preproc=yes
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 ac_header_preproc=no
4786 rm -f conftest.err conftest.$ac_ext
4787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788 echo "${ECHO_T}$ac_header_preproc" >&6
4790 # So? What about this header?
4791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4793 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4794 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4796 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4797 ac_header_preproc=yes
4800 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4801 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4802 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4803 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4804 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4805 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4807 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4808 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4809 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4811 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4814 ## ------------------------------------------ ##
4815 ## Report this to the AC_PACKAGE_NAME lists. ##
4816 ## ------------------------------------------ ##
4819 sed "s/^/$as_me: WARNING: /" >&2
4822 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4823 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4824 if test "${ac_cv_header_minix_config_h+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 ac_cv_header_minix_config_h=$ac_header_preproc
4829 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4830 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4833 if test $ac_cv_header_minix_config_h = yes; then
4840 if test "$MINIX" = yes; then
4842 cat >>confdefs.h <<\_ACEOF
4843 #define _POSIX_SOURCE 1
4847 cat >>confdefs.h <<\_ACEOF
4848 #define _POSIX_1_SOURCE 2
4852 cat >>confdefs.h <<\_ACEOF
4860 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4861 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4862 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4872 # define __EXTENSIONS__ 1
4873 $ac_includes_default
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4886 grep -v '^ *+' conftest.er1 >conftest.err
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_safe_to_define___extensions__=yes
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 ac_cv_safe_to_define___extensions__=no
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4914 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4915 test $ac_cv_safe_to_define___extensions__ = yes &&
4916 cat >>confdefs.h <<\_ACEOF
4917 #define __EXTENSIONS__ 1
4920 cat >>confdefs.h <<\_ACEOF
4921 #define _ALL_SOURCE 1
4924 cat >>confdefs.h <<\_ACEOF
4925 #define _GNU_SOURCE 1
4928 cat >>confdefs.h <<\_ACEOF
4929 #define _POSIX_PTHREAD_SEMANTICS 1
4932 cat >>confdefs.h <<\_ACEOF
4933 #define _TANDEM_SOURCE 1
4937 # Check whether --enable-largefile or --disable-largefile was given.
4938 if test "${enable_largefile+set}" = set; then
4939 enableval="$enable_largefile"
4942 if test "$enable_largefile" != no; then
4944 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4945 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4946 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 ac_cv_sys_largefile_CC=no
4950 if test "$GCC" != yes; then
4953 # IRIX 6.2 and later do not support large files by default,
4954 # so use the C compiler's -n32 option if that helps.
4955 cat >conftest.$ac_ext <<_ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4961 #include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4978 rm -f conftest.$ac_objext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>conftest.er1
4982 grep -v '^ *+' conftest.er1 >conftest.err
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -z "$ac_c_werror_flag"
4988 || test ! -s conftest.err'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5006 rm -f conftest.err conftest.$ac_objext
5008 rm -f conftest.$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_sys_largefile_CC=' -n32'; break
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5036 rm -f conftest.err conftest.$ac_objext
5040 rm -f conftest.$ac_ext
5043 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5044 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5045 if test "$ac_cv_sys_largefile_CC" != no; then
5046 CC=$CC$ac_cv_sys_largefile_CC
5049 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5050 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5051 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 ac_cv_sys_file_offset_bits=no
5056 cat >conftest.$ac_ext <<_ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5062 #include <sys/types.h>
5063 /* Check that off_t can represent 2**63 - 1 correctly.
5064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5065 since some C++ compilers masquerading as C compilers
5066 incorrectly reject 9223372036854775807. */
5067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5069 && LARGE_OFF_T % 2147483647 == 1)
5079 rm -f conftest.$ac_objext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>conftest.er1
5083 grep -v '^ *+' conftest.er1 >conftest.err
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try='test -z "$ac_c_werror_flag"
5089 || test ! -s conftest.err'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 cat >conftest.$ac_ext <<_ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #define _FILE_OFFSET_BITS 64
5115 #include <sys/types.h>
5116 /* Check that off_t can represent 2**63 - 1 correctly.
5117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5118 since some C++ compilers masquerading as C compilers
5119 incorrectly reject 9223372036854775807. */
5120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5122 && LARGE_OFF_T % 2147483647 == 1)
5132 rm -f conftest.$ac_objext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>conftest.er1
5136 grep -v '^ *+' conftest.er1 >conftest.err
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -z "$ac_c_werror_flag"
5142 || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_sys_file_offset_bits=64; break
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5164 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5165 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5166 if test "$ac_cv_sys_file_offset_bits" != no; then
5168 cat >>confdefs.h <<_ACEOF
5169 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5174 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5175 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5176 if test "${ac_cv_sys_large_files+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 ac_cv_sys_large_files=no
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <sys/types.h>
5188 /* Check that off_t can represent 2**63 - 1 correctly.
5189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5190 since some C++ compilers masquerading as C compilers
5191 incorrectly reject 9223372036854775807. */
5192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5194 && LARGE_OFF_T % 2147483647 == 1)
5204 rm -f conftest.$ac_objext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>conftest.er1
5208 grep -v '^ *+' conftest.er1 >conftest.err
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest.$ac_objext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 #define _LARGE_FILES 1
5240 #include <sys/types.h>
5241 /* Check that off_t can represent 2**63 - 1 correctly.
5242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5243 since some C++ compilers masquerading as C compilers
5244 incorrectly reject 9223372036854775807. */
5245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5247 && LARGE_OFF_T % 2147483647 == 1)
5257 rm -f conftest.$ac_objext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_cv_sys_large_files=1; break
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5290 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5291 if test "$ac_cv_sys_large_files" != no; then
5293 cat >>confdefs.h <<_ACEOF
5294 #define _LARGE_FILES $ac_cv_sys_large_files
5304 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5305 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5310 macro_version='2.2.6'
5311 macro_revision='1.3012'
5325 ltmain="$ac_aux_dir/ltmain.sh"
5327 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5328 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5329 if test "${lt_cv_path_SED+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 # Loop through the user's path and test for sed and gsed.
5333 # Then use that list of sed's as ones to test for truncation.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for lt_ac_prog in sed gsed; do
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5342 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5350 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5351 # along with /bin/sed that truncates output.
5352 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5353 test ! -f $lt_ac_sed && continue
5354 cat /dev/null > conftest.in
5356 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5357 # Check for GNU sed and select it if it is found.
5358 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5359 lt_cv_path_SED=$lt_ac_sed
5363 cat conftest.in conftest.in >conftest.tmp
5364 mv conftest.tmp conftest.in
5365 cp conftest.in conftest.nl
5367 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5368 cmp -s conftest.out conftest.nl || break
5369 # 10000 chars as input seems more than enough
5370 test $lt_ac_count -gt 10 && break
5371 lt_ac_count=`expr $lt_ac_count + 1`
5372 if test $lt_ac_count -gt $lt_ac_max; then
5373 lt_ac_max=$lt_ac_count
5374 lt_cv_path_SED=$lt_ac_sed
5383 echo "$as_me:$LINENO: result: $SED" >&5
5384 echo "${ECHO_T}$SED" >&6
5386 test -z "$SED" && SED=sed
5387 Xsed="$SED -e 1s/^X//"
5399 echo "$as_me:$LINENO: checking for fgrep" >&5
5400 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5401 if test "${ac_cv_prog_fgrep+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5405 then ac_cv_prog_fgrep='grep -F'
5406 else ac_cv_prog_fgrep='fgrep'
5409 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5410 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5411 FGREP=$ac_cv_prog_fgrep
5414 test -z "$GREP" && GREP=grep
5434 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5435 if test "${with_gnu_ld+set}" = set; then
5436 withval="$with_gnu_ld"
5437 test "$withval" = no || with_gnu_ld=yes
5442 if test "$GCC" = yes; then
5443 # Check if gcc -print-prog-name=ld gives a path.
5444 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5445 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5448 # gcc leaves a trailing carriage return which upsets mingw
5449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5454 # Accept absolute paths.
5456 re_direlt='/[^/][^/]*/\.\./'
5457 # Canonicalize the pathname of ld
5458 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5459 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5460 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5462 test -z "$LD" && LD="$ac_prog"
5465 # If it fails, then pretend we aren't using GCC.
5469 # If it is relative, then search for the first ld in PATH.
5473 elif test "$with_gnu_ld" = yes; then
5474 echo "$as_me:$LINENO: checking for GNU ld" >&5
5475 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5477 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5478 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5480 if test "${lt_cv_path_LD+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 if test -z "$LD"; then
5484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5485 for ac_dir in $PATH; do
5487 test -z "$ac_dir" && ac_dir=.
5488 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5489 lt_cv_path_LD="$ac_dir/$ac_prog"
5490 # Check to see if the program is GNU ld. I'd rather use --version,
5491 # but apparently some variants of GNU ld only accept -v.
5492 # Break only if it was the GNU/non-GNU ld that we prefer.
5493 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5494 *GNU* | *'with BFD'*)
5495 test "$with_gnu_ld" != no && break
5498 test "$with_gnu_ld" != yes && break
5505 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5510 if test -n "$LD"; then
5511 echo "$as_me:$LINENO: result: $LD" >&5
5512 echo "${ECHO_T}$LD" >&6
5514 echo "$as_me:$LINENO: result: no" >&5
5515 echo "${ECHO_T}no" >&6
5517 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5518 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5519 { (exit 1); exit 1; }; }
5520 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5521 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5522 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5526 case `$LD -v 2>&1 </dev/null` in
5527 *GNU* | *'with BFD'*)
5528 lt_cv_prog_gnu_ld=yes
5531 lt_cv_prog_gnu_ld=no
5535 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5536 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5537 with_gnu_ld=$lt_cv_prog_gnu_ld
5547 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5548 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5549 if test "${lt_cv_path_NM+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 if test -n "$NM"; then
5553 # Let the user override the test.
5556 lt_nm_to_check="${ac_tool_prefix}nm"
5557 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5558 lt_nm_to_check="$lt_nm_to_check nm"
5560 for lt_tmp_nm in $lt_nm_to_check; do
5561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5562 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5564 test -z "$ac_dir" && ac_dir=.
5565 tmp_nm="$ac_dir/$lt_tmp_nm"
5566 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5567 # Check to see if the nm accepts a BSD-compat flag.
5568 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5569 # nm: unknown option "B" ignored
5570 # Tru64's nm complains that /dev/null is an invalid object file
5571 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5572 */dev/null* | *'Invalid file or object type'*)
5573 lt_cv_path_NM="$tmp_nm -B"
5577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5579 lt_cv_path_NM="$tmp_nm -p"
5583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5584 continue # so that we can try to find one that supports BSD flags
5593 : ${lt_cv_path_NM=no}
5596 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5597 echo "${ECHO_T}$lt_cv_path_NM" >&6
5598 if test "$lt_cv_path_NM" != "no"; then
5601 # Didn't find any BSD compatible name lister, look for dumpbin.
5602 if test -n "$ac_tool_prefix"; then
5603 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 if test -n "$DUMPBIN"; then
5613 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 DUMPBIN=$ac_cv_prog_DUMPBIN
5632 if test -n "$DUMPBIN"; then
5633 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5634 echo "${ECHO_T}$DUMPBIN" >&6
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5640 test -n "$DUMPBIN" && break
5643 if test -z "$DUMPBIN"; then
5644 ac_ct_DUMPBIN=$DUMPBIN
5645 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5647 # Extract the first word of "$ac_prog", so it can be a program name with args.
5648 set dummy $ac_prog; ac_word=$2
5649 echo "$as_me:$LINENO: checking for $ac_word" >&5
5650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 if test -n "$ac_ct_DUMPBIN"; then
5655 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5674 if test -n "$ac_ct_DUMPBIN"; then
5675 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5676 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5678 echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5682 test -n "$ac_ct_DUMPBIN" && break
5684 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5686 DUMPBIN=$ac_ct_DUMPBIN
5690 if test "$DUMPBIN" != ":"; then
5694 test -z "$NM" && NM=nm
5701 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5702 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5703 if test "${lt_cv_nm_interface+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 lt_cv_nm_interface="BSD nm"
5707 echo "int some_variable = 0;" > conftest.$ac_ext
5708 (eval echo "\"\$as_me:5708: $ac_compile\"" >&5)
5709 (eval "$ac_compile" 2>conftest.err)
5710 cat conftest.err >&5
5711 (eval echo "\"\$as_me:5711: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5712 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5713 cat conftest.err >&5
5714 (eval echo "\"\$as_me:5714: output\"" >&5)
5715 cat conftest.out >&5
5716 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5717 lt_cv_nm_interface="MS dumpbin"
5721 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5722 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5724 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5725 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5727 if test "$LN_S" = "ln -s"; then
5728 echo "$as_me:$LINENO: result: yes" >&5
5729 echo "${ECHO_T}yes" >&6
5731 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5732 echo "${ECHO_T}no, using $LN_S" >&6
5735 # find the maximum length of command line arguments
5736 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5737 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5738 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 # On DJGPP, this test can blow up pretty badly due to problems in libc
5747 # (any single argument exceeding 2000 bytes causes a buffer overrun
5748 # during glob expansion). Even if it were fixed, the result of this
5749 # check would be larger than it should be.
5750 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5754 # Under GNU Hurd, this test is not required because there is
5755 # no limit to the length of command line arguments.
5756 # Libtool will interpret -1 as no limit whatsoever
5757 lt_cv_sys_max_cmd_len=-1;
5760 cygwin* | mingw* | cegcc*)
5761 # On Win9x/ME, this test blows up -- it succeeds, but takes
5762 # about 5 minutes as the teststring grows exponentially.
5763 # Worse, since 9x/ME are not pre-emptively multitasking,
5764 # you end up with a "frozen" computer, even though with patience
5765 # the test eventually succeeds (with a max line length of 256k).
5766 # Instead, let's just punt: use the minimum linelength reported by
5767 # all of the supported platforms: 8192 (on NT/2K/XP).
5768 lt_cv_sys_max_cmd_len=8192;
5772 # On AmigaOS with pdksh, this test takes hours, literally.
5773 # So we just punt and use a minimum line length of 8192.
5774 lt_cv_sys_max_cmd_len=8192;
5777 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5778 # This has been around since 386BSD, at least. Likely further.
5779 if test -x /sbin/sysctl; then
5780 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5781 elif test -x /usr/sbin/sysctl; then
5782 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5784 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5786 # And add a safety zone
5787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5792 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5793 lt_cv_sys_max_cmd_len=196608
5797 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5798 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5799 # nice to cause kernel panics so lets avoid the loop below.
5800 # First set a reasonable default.
5801 lt_cv_sys_max_cmd_len=16384
5803 if test -x /sbin/sysconfig; then
5804 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5805 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5810 lt_cv_sys_max_cmd_len=102400
5812 sysv5* | sco5v6* | sysv4.2uw2*)
5813 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5814 if test -n "$kargmax"; then
5815 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5817 lt_cv_sys_max_cmd_len=32768
5821 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5822 if test -n "$lt_cv_sys_max_cmd_len"; then
5823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5826 # Make teststring a little bigger before we do anything with it.
5827 # a 1K string should be a reasonable start.
5828 for i in 1 2 3 4 5 6 7 8 ; do
5829 teststring=$teststring$teststring
5831 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5832 # If test is not a shell built-in, we'll probably end up computing a
5833 # maximum length that is only half of the actual maximum length, but
5835 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5836 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5837 test $i != 17 # 1/2 MB should be enough
5840 teststring=$teststring$teststring
5842 # Only check the string length outside the loop.
5843 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5845 # Add a significant safety factor because C++ compilers can tack on
5846 # massive amounts of additional arguments before passing them to the
5847 # linker. It appears as though 1/2 is a usable value.
5848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5855 if test -n $lt_cv_sys_max_cmd_len ; then
5856 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5857 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5859 echo "$as_me:$LINENO: result: none" >&5
5860 echo "${ECHO_T}none" >&6
5862 max_cmd_len=$lt_cv_sys_max_cmd_len
5873 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5874 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5875 # Try some XSI features
5878 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5880 && eval 'test $(( 1 + 1 )) -eq 2 \
5881 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5883 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5884 echo "${ECHO_T}$xsi_shell" >&6
5887 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5888 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5890 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5892 && lt_shell_append=yes
5893 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5894 echo "${ECHO_T}$lt_shell_append" >&6
5897 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5907 # test EBCDIC or ASCII
5908 case `echo X|tr X '\101'` in
5909 A) # ASCII based system
5910 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5911 lt_SP2NL='tr \040 \012'
5912 lt_NL2SP='tr \015\012 \040\040'
5914 *) # EBCDIC based system
5915 lt_SP2NL='tr \100 \n'
5916 lt_NL2SP='tr \r\n \100\100'
5928 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5929 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5930 if test "${lt_cv_ld_reload_flag+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 lt_cv_ld_reload_flag='-r'
5935 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5936 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5937 reload_flag=$lt_cv_ld_reload_flag
5938 case $reload_flag in
5940 *) reload_flag=" $reload_flag" ;;
5942 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5945 if test "$GCC" = yes; then
5946 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5948 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5961 if test -n "$ac_tool_prefix"; then
5962 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5963 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5964 echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 if test -n "$OBJDUMP"; then
5970 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 OBJDUMP=$ac_cv_prog_OBJDUMP
5989 if test -n "$OBJDUMP"; then
5990 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5991 echo "${ECHO_T}$OBJDUMP" >&6
5993 echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5998 if test -z "$ac_cv_prog_OBJDUMP"; then
5999 ac_ct_OBJDUMP=$OBJDUMP
6000 # Extract the first word of "objdump", so it can be a program name with args.
6001 set dummy objdump; ac_word=$2
6002 echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6004 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 if test -n "$ac_ct_OBJDUMP"; then
6008 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6027 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6028 if test -n "$ac_ct_OBJDUMP"; then
6029 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6030 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6032 echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6
6036 OBJDUMP=$ac_ct_OBJDUMP
6038 OBJDUMP="$ac_cv_prog_OBJDUMP"
6041 test -z "$OBJDUMP" && OBJDUMP=objdump
6051 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6052 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6053 if test "${lt_cv_deplibs_check_method+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 lt_cv_file_magic_cmd='$MAGIC_CMD'
6057 lt_cv_file_magic_test_file=
6058 lt_cv_deplibs_check_method='unknown'
6059 # Need to set the preceding variable on all platforms that support
6060 # interlibrary dependencies.
6061 # 'none' -- dependencies not supported.
6062 # `unknown' -- same as none, but documents that we really don't know.
6063 # 'pass_all' -- all dependencies passed with no checks.
6064 # 'test_compile' -- check by making test program.
6065 # 'file_magic [[regex]]' -- check by looking for files in library path
6066 # which responds to the $file_magic_cmd with a given extended regex.
6067 # If you have `file' or equivalent on your system and you're not sure
6068 # whether `pass_all' will *always* work, you probably want this one.
6072 lt_cv_deplibs_check_method=pass_all
6076 lt_cv_deplibs_check_method=pass_all
6080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6081 lt_cv_file_magic_cmd='/usr/bin/file -L'
6082 lt_cv_file_magic_test_file=/shlib/libc.so
6086 # func_win32_libid is a shell function defined in ltmain.sh
6087 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6088 lt_cv_file_magic_cmd='func_win32_libid'
6092 # Base MSYS/MinGW do not provide the 'file' command needed by
6093 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6094 # unless we find 'file', for example because we are cross-compiling.
6095 if ( file / ) >/dev/null 2>&1; then
6096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6097 lt_cv_file_magic_cmd='func_win32_libid'
6099 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6100 lt_cv_file_magic_cmd='$OBJDUMP -f'
6105 # use the weaker test based on 'objdump'. See mingw*.
6106 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6107 lt_cv_file_magic_cmd='$OBJDUMP -f'
6110 darwin* | rhapsody*)
6111 lt_cv_deplibs_check_method=pass_all
6114 freebsd* | dragonfly*)
6115 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6118 # Not sure whether the presence of OpenBSD here was a mistake.
6119 # Let's accept both of them until this is cleared up.
6120 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6121 lt_cv_file_magic_cmd=/usr/bin/file
6122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6126 lt_cv_deplibs_check_method=pass_all
6131 lt_cv_deplibs_check_method=pass_all
6134 hpux10.20* | hpux11*)
6135 lt_cv_file_magic_cmd=/usr/bin/file
6138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6139 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6143 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6146 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6147 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6153 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6157 irix5* | irix6* | nonstopux*)
6159 *-32|*"-32 ") libmagic=32-bit;;
6160 *-n32|*"-n32 ") libmagic=N32;;
6161 *-64|*"-64 ") libmagic=64-bit;;
6162 *) libmagic=never-match;;
6164 lt_cv_deplibs_check_method=pass_all
6167 # This must be Linux ELF.
6168 linux* | k*bsd*-gnu)
6169 lt_cv_deplibs_check_method=pass_all
6173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6182 lt_cv_file_magic_cmd=/usr/bin/file
6183 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6187 lt_cv_deplibs_check_method=pass_all
6191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6198 osf3* | osf4* | osf5*)
6199 lt_cv_deplibs_check_method=pass_all
6203 lt_cv_deplibs_check_method=pass_all
6207 lt_cv_deplibs_check_method=pass_all
6210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6211 lt_cv_deplibs_check_method=pass_all
6215 case $host_vendor in
6217 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]'
6218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6221 lt_cv_deplibs_check_method=pass_all
6224 lt_cv_file_magic_cmd='/bin/file'
6225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6228 lt_cv_file_magic_cmd='/bin/file'
6229 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6230 lt_cv_file_magic_test_file=/lib/libc.so
6233 lt_cv_deplibs_check_method=pass_all
6236 lt_cv_deplibs_check_method=pass_all
6242 lt_cv_deplibs_check_method=pass_all
6247 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6248 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6249 file_magic_cmd=$lt_cv_file_magic_cmd
6250 deplibs_check_method=$lt_cv_deplibs_check_method
6251 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6264 if test -n "$ac_tool_prefix"; then
6265 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6266 set dummy ${ac_tool_prefix}ar; ac_word=$2
6267 echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6269 if test "${ac_cv_prog_AR+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 if test -n "$AR"; then
6273 ac_cv_prog_AR="$AR" # Let the user override the test.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282 ac_cv_prog_AR="${ac_tool_prefix}ar"
6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 if test -n "$AR"; then
6293 echo "$as_me:$LINENO: result: $AR" >&5
6294 echo "${ECHO_T}$AR" >&6
6296 echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6
6301 if test -z "$ac_cv_prog_AR"; then
6303 # Extract the first word of "ar", so it can be a program name with args.
6304 set dummy ar; ac_word=$2
6305 echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6307 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 if test -n "$ac_ct_AR"; then
6311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_ac_ct_AR="ar"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6330 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6331 if test -n "$ac_ct_AR"; then
6332 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6333 echo "${ECHO_T}$ac_ct_AR" >&6
6335 echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6
6344 test -z "$AR" && AR=ar
6345 test -z "$AR_FLAGS" && AR_FLAGS=cru
6357 if test -n "$ac_tool_prefix"; then
6358 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6359 set dummy ${ac_tool_prefix}strip; ac_word=$2
6360 echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6362 if test "${ac_cv_prog_STRIP+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 if test -n "$STRIP"; then
6366 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 STRIP=$ac_cv_prog_STRIP
6385 if test -n "$STRIP"; then
6386 echo "$as_me:$LINENO: result: $STRIP" >&5
6387 echo "${ECHO_T}$STRIP" >&6
6389 echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6
6394 if test -z "$ac_cv_prog_STRIP"; then
6396 # Extract the first word of "strip", so it can be a program name with args.
6397 set dummy strip; ac_word=$2
6398 echo "$as_me:$LINENO: checking for $ac_word" >&5
6399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6400 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 if test -n "$ac_ct_STRIP"; then
6404 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_ac_ct_STRIP="strip"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6423 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6424 if test -n "$ac_ct_STRIP"; then
6425 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6426 echo "${ECHO_T}$ac_ct_STRIP" >&6
6428 echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6
6434 STRIP="$ac_cv_prog_STRIP"
6437 test -z "$STRIP" && STRIP=:
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6447 echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6449 if test "${ac_cv_prog_RANLIB+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 if test -n "$RANLIB"; then
6453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 RANLIB=$ac_cv_prog_RANLIB
6472 if test -n "$RANLIB"; then
6473 echo "$as_me:$LINENO: result: $RANLIB" >&5
6474 echo "${ECHO_T}$RANLIB" >&6
6476 echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6
6481 if test -z "$ac_cv_prog_RANLIB"; then
6482 ac_ct_RANLIB=$RANLIB
6483 # Extract the first word of "ranlib", so it can be a program name with args.
6484 set dummy ranlib; ac_word=$2
6485 echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6487 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 if test -n "$ac_ct_RANLIB"; then
6491 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_ac_ct_RANLIB="ranlib"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6510 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6511 if test -n "$ac_ct_RANLIB"; then
6512 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6513 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6515 echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6
6519 RANLIB=$ac_ct_RANLIB
6521 RANLIB="$ac_cv_prog_RANLIB"
6524 test -z "$RANLIB" && RANLIB=:
6531 # Determine commands to create old-style static archives.
6532 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6533 old_postinstall_cmds='chmod 644 $oldlib'
6534 old_postuninstall_cmds=
6536 if test -n "$RANLIB"; then
6539 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6542 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6545 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6581 # If no C compiler was specified, use CC.
6584 # If no C compiler flags were specified, use CFLAGS.
6585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6587 # Allow CC to be a program name with arguments.
6591 # Check for command to grab the raw symbol name followed by C symbol from nm.
6592 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6593 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6594 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 # These are sane defaults that work on at least a few old systems.
6599 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6601 # Character class describing NM global symbol codes.
6602 symcode='[BCDEGRST]'
6604 # Regexp to match symbols that can be accessed directly from C.
6605 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6607 # Define system-specific variables.
6612 cygwin* | mingw* | pw32* | cegcc*)
6613 symcode='[ABCDGISTW]'
6616 if test "$host_cpu" = ia64; then
6617 symcode='[ABCDEGRST]'
6621 symcode='[BCDEGRST]'
6624 symcode='[BCDEGQRST]'
6635 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6643 # If we're using GNU nm, then use its standard symbol codes.
6644 case `$NM -V 2>&1` in
6645 *GNU* | *'with BFD'*)
6646 symcode='[ABCDGIRSTW]' ;;
6649 # Transform an extracted symbol line into a proper C declaration.
6650 # Some systems (esp. on ia64) link data and code symbols differently,
6651 # so use this general approach.
6652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6654 # Transform an extracted symbol line into symbol name and symbol address
6655 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6656 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6658 # Handle CRLF in mingw tool chain
6662 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6666 # Try without a prefix underscore, then with it.
6667 for ac_symprfx in "" "_"; do
6669 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6670 symxfrm="\\1 $ac_symprfx\\2 \\2"
6672 # Write the raw and C identifiers.
6673 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6674 # Fake it for dumpbin and say T for any non-static function
6675 # and D for any global variable.
6676 # Also find C++ and __fastcall symbols from MSVC++,
6677 # which start with @ or ?.
6678 lt_cv_sys_global_symbol_pipe="$AWK '"\
6679 " {last_section=section; section=\$ 3};"\
6680 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6681 " \$ 0!~/External *\|/{next};"\
6682 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6683 " {if(hide[section]) next};"\
6684 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6685 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6686 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6687 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6688 " ' prfx=^$ac_symprfx"
6690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6693 # Check to see that the pipe works correctly.
6697 cat > conftest.$ac_ext <<_LT_EOF
6702 void nm_test_func(void);
6703 void nm_test_func(void){}
6707 int main(){nm_test_var='a';nm_test_func();return(0);}
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; then
6715 # Now try to grab the symbols.
6717 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6718 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && test -s "$nlist"; then
6722 # Try sorting and uniquifying the output.
6723 if sort "$nlist" | uniq > "$nlist"T; then
6724 mv -f "$nlist"T "$nlist"
6729 # Make sure that we snagged all the symbols we need.
6730 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6732 cat <<_LT_EOF > conftest.$ac_ext
6738 # Now generate the symbol file.
6739 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6741 cat <<_LT_EOF >> conftest.$ac_ext
6743 /* The mapping between symbol names and symbols. */
6748 lt__PROGRAM__LTX_preloaded_symbols[] =
6750 { "@PROGRAM@", (void *) 0 },
6752 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6753 cat <<\_LT_EOF >> conftest.$ac_ext
6757 /* This works around a problem in FreeBSD linker */
6758 #ifdef FREEBSD_WORKAROUND
6759 static const void *lt_preloaded_setup() {
6760 return lt__PROGRAM__LTX_preloaded_symbols;
6768 # Now try linking the two files.
6769 mv conftest.$ac_objext conftstm.$ac_objext
6770 lt_save_LIBS="$LIBS"
6771 lt_save_CFLAGS="$CFLAGS"
6772 LIBS="conftstm.$ac_objext"
6773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6781 LIBS="$lt_save_LIBS"
6782 CFLAGS="$lt_save_CFLAGS"
6784 echo "cannot find nm_test_func in $nlist" >&5
6787 echo "cannot find nm_test_var in $nlist" >&5
6790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6793 echo "$progname: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6796 rm -rf conftest* conftst*
6798 # Do not use the global_symbol_pipe unless it works.
6799 if test "$pipe_works" = yes; then
6802 lt_cv_sys_global_symbol_pipe=
6808 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6809 lt_cv_sys_global_symbol_to_cdecl=
6811 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6812 echo "$as_me:$LINENO: result: failed" >&5
6813 echo "${ECHO_T}failed" >&6
6815 echo "$as_me:$LINENO: result: ok" >&5
6816 echo "${ECHO_T}ok" >&6
6840 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6841 if test "${enable_libtool_lock+set}" = set; then
6842 enableval="$enable_libtool_lock"
6845 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6847 # Some flags need to be propagated to the compiler or linker for good
6851 # Find out which ABI we are using.
6852 echo 'int i;' > conftest.$ac_ext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; then
6858 case `/usr/bin/file conftest.$ac_objext` in
6870 # Find out which ABI we are using.
6871 echo '#line 6871 "configure"' > conftest.$ac_ext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; then
6877 if test "$lt_cv_prog_gnu_ld" = yes; then
6878 case `/usr/bin/file conftest.$ac_objext` in
6880 LD="${LD-ld} -melf32bsmip"
6883 LD="${LD-ld} -melf32bmipn32"
6886 LD="${LD-ld} -melf64bmip"
6890 case `/usr/bin/file conftest.$ac_objext` in
6906 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6907 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6908 # Find out which ABI we are using.
6909 echo 'int i;' > conftest.$ac_ext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911 (eval $ac_compile) 2>&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; then
6915 case `/usr/bin/file conftest.o` in
6918 x86_64-*kfreebsd*-gnu)
6919 LD="${LD-ld} -m elf_i386_fbsd"
6922 LD="${LD-ld} -m elf_i386"
6924 ppc64-*linux*|powerpc64-*linux*)
6925 LD="${LD-ld} -m elf32ppclinux"
6928 LD="${LD-ld} -m elf_s390"
6931 LD="${LD-ld} -m elf32_sparc"
6937 x86_64-*kfreebsd*-gnu)
6938 LD="${LD-ld} -m elf_x86_64_fbsd"
6941 LD="${LD-ld} -m elf_x86_64"
6943 ppc*-*linux*|powerpc*-*linux*)
6944 LD="${LD-ld} -m elf64ppc"
6946 s390*-*linux*|s390*-*tpf*)
6947 LD="${LD-ld} -m elf64_s390"
6950 LD="${LD-ld} -m elf64_sparc"
6960 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6961 SAVE_CFLAGS="$CFLAGS"
6962 CFLAGS="$CFLAGS -belf"
6963 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6964 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6965 if test "${lt_cv_cc_needs_belf+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 ac_cpp='$CPP $CPPFLAGS'
6970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974 cat >conftest.$ac_ext <<_ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6989 rm -f conftest.$ac_objext conftest$ac_exeext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991 (eval $ac_link) 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag"
6999 || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 lt_cv_cc_needs_belf=yes
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 lt_cv_cc_needs_belf=no
7018 rm -f conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7028 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7031 CFLAGS="$SAVE_CFLAGS"
7035 # Find out which ABI we are using.
7036 echo 'int i;' > conftest.$ac_ext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; then
7042 case `/usr/bin/file conftest.o` in
7044 case $lt_cv_prog_gnu_ld in
7045 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7059 need_locks="$enable_libtool_lock"
7063 rhapsody* | darwin*)
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7067 echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7069 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 if test -n "$DSYMUTIL"; then
7073 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7092 if test -n "$DSYMUTIL"; then
7093 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7094 echo "${ECHO_T}$DSYMUTIL" >&6
7096 echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6
7101 if test -z "$ac_cv_prog_DSYMUTIL"; then
7102 ac_ct_DSYMUTIL=$DSYMUTIL
7103 # Extract the first word of "dsymutil", so it can be a program name with args.
7104 set dummy dsymutil; ac_word=$2
7105 echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test -n "$ac_ct_DSYMUTIL"; then
7111 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7130 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7131 if test -n "$ac_ct_DSYMUTIL"; then
7132 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7133 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7135 echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6
7139 DSYMUTIL=$ac_ct_DSYMUTIL
7141 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 if test -n "$NMEDIT"; then
7153 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 NMEDIT=$ac_cv_prog_NMEDIT
7172 if test -n "$NMEDIT"; then
7173 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7174 echo "${ECHO_T}$NMEDIT" >&6
7176 echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7181 if test -z "$ac_cv_prog_NMEDIT"; then
7182 ac_ct_NMEDIT=$NMEDIT
7183 # Extract the first word of "nmedit", so it can be a program name with args.
7184 set dummy nmedit; ac_word=$2
7185 echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 if test -n "$ac_ct_NMEDIT"; then
7191 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7210 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7211 if test -n "$ac_ct_NMEDIT"; then
7212 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7213 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7219 NMEDIT=$ac_ct_NMEDIT
7221 NMEDIT="$ac_cv_prog_NMEDIT"
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7227 echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229 if test "${ac_cv_prog_LIPO+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 if test -n "$LIPO"; then
7233 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 LIPO=$ac_cv_prog_LIPO
7252 if test -n "$LIPO"; then
7253 echo "$as_me:$LINENO: result: $LIPO" >&5
7254 echo "${ECHO_T}$LIPO" >&6
7256 echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7261 if test -z "$ac_cv_prog_LIPO"; then
7263 # Extract the first word of "lipo", so it can be a program name with args.
7264 set dummy lipo; ac_word=$2
7265 echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 if test -n "$ac_ct_LIPO"; then
7271 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_ac_ct_LIPO="lipo"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7290 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7291 if test -n "$ac_ct_LIPO"; then
7292 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7293 echo "${ECHO_T}$ac_ct_LIPO" >&6
7295 echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7301 LIPO="$ac_cv_prog_LIPO"
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}otool; ac_word=$2
7307 echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_prog_OTOOL+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 if test -n "$OTOOL"; then
7313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 OTOOL=$ac_cv_prog_OTOOL
7332 if test -n "$OTOOL"; then
7333 echo "$as_me:$LINENO: result: $OTOOL" >&5
7334 echo "${ECHO_T}$OTOOL" >&6
7336 echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7341 if test -z "$ac_cv_prog_OTOOL"; then
7343 # Extract the first word of "otool", so it can be a program name with args.
7344 set dummy otool; ac_word=$2
7345 echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 if test -n "$ac_ct_OTOOL"; then
7351 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_OTOOL="otool"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7370 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7371 if test -n "$ac_ct_OTOOL"; then
7372 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7373 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7375 echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7381 OTOOL="$ac_cv_prog_OTOOL"
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7386 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7387 echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7389 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 if test -n "$OTOOL64"; then
7393 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 OTOOL64=$ac_cv_prog_OTOOL64
7412 if test -n "$OTOOL64"; then
7413 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7414 echo "${ECHO_T}$OTOOL64" >&6
7416 echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6
7421 if test -z "$ac_cv_prog_OTOOL64"; then
7422 ac_ct_OTOOL64=$OTOOL64
7423 # Extract the first word of "otool64", so it can be a program name with args.
7424 set dummy otool64; ac_word=$2
7425 echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7427 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 if test -n "$ac_ct_OTOOL64"; then
7431 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_ac_ct_OTOOL64="otool64"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7450 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7451 if test -n "$ac_ct_OTOOL64"; then
7452 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7453 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7455 echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6
7459 OTOOL64=$ac_ct_OTOOL64
7461 OTOOL64="$ac_cv_prog_OTOOL64"
7490 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7491 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7492 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 lt_cv_apple_cc_single_mod=no
7496 if test -z "${LT_MULTI_MODULE}"; then
7497 # By default we will add the -single_module flag. You can override
7498 # by either setting the environment variable LT_MULTI_MODULE
7499 # non-empty at configure time, or by adding -multi_module to the
7501 rm -rf libconftest.dylib*
7502 echo "int foo(void){return 1;}" > conftest.c
7503 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504 -dynamiclib -Wl,-single_module conftest.c" >&5
7505 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7508 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7509 lt_cv_apple_cc_single_mod=yes
7511 cat conftest.err >&5
7513 rm -rf libconftest.dylib*
7517 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7518 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7519 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7520 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7521 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 lt_cv_ld_exported_symbols_list=no
7525 save_LDFLAGS=$LDFLAGS
7526 echo "_main" > conftest.sym
7527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7528 cat >conftest.$ac_ext <<_ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7543 rm -f conftest.$ac_objext conftest$ac_exeext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>conftest.er1
7547 grep -v '^ *+' conftest.er1 >conftest.err
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } &&
7552 { ac_try='test -z "$ac_c_werror_flag"
7553 || test ! -s conftest.err'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; } &&
7559 { ac_try='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 lt_cv_ld_exported_symbols_list=yes
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 lt_cv_ld_exported_symbols_list=no
7572 rm -f conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
7574 LDFLAGS="$save_LDFLAGS"
7577 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7578 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7580 rhapsody* | darwin1.[012])
7581 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7584 darwin*) # darwin 5.x on
7585 # if running on 10.5 or later, the deployment target defaults
7586 # to the OS version, if on x86, and 10.4, the deployment
7587 # target defaults to 10.4. Don't you love it?
7588 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7589 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7598 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7599 _lt_dar_single_mod='$single_module'
7601 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7602 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7606 if test "$DSYMUTIL" != ":"; then
7607 _lt_dsymutil='~$DSYMUTIL $lib || :'
7615 for ac_header in dlfcn.h
7617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7618 echo "$as_me:$LINENO: checking for $ac_header" >&5
7619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 $ac_includes_default
7631 #include <$ac_header>
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7637 grep -v '^ *+' conftest.er1 >conftest.err
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 eval "$as_ac_Header=yes"
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7660 eval "$as_ac_Header=no"
7662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7667 cat >>confdefs.h <<_ACEOF
7668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7688 # Check whether --enable-static or --disable-static was given.
7689 if test "${enable_static+set}" = set; then
7690 enableval="$enable_static"
7691 p=${PACKAGE-default}
7693 yes) enable_static=yes ;;
7694 no) enable_static=no ;;
7697 # Look at the argument we got. We use all the common list separators.
7698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7699 for pkg in $enableval; do
7701 if test "X$pkg" = "X$p"; then
7720 # Check whether --with-pic or --without-pic was given.
7721 if test "${with_pic+set}" = set; then
7728 test -z "$pic_mode" && pic_mode=default
7736 # Check whether --enable-fast-install or --disable-fast-install was given.
7737 if test "${enable_fast_install+set}" = set; then
7738 enableval="$enable_fast_install"
7739 p=${PACKAGE-default}
7741 yes) enable_fast_install=yes ;;
7742 no) enable_fast_install=no ;;
7744 enable_fast_install=no
7745 # Look at the argument we got. We use all the common list separators.
7746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7747 for pkg in $enableval; do
7749 if test "X$pkg" = "X$p"; then
7750 enable_fast_install=yes
7757 enable_fast_install=yes
7769 # This can be used to rebuild libtool when needed
7770 LIBTOOL_DEPS="$ltmain"
7772 # Always use our own libtool.
7773 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7799 test -z "$LN_S" && LN_S="ln -s"
7814 if test -n "${ZSH_VERSION+set}" ; then
7815 setopt NO_GLOB_SUBST
7818 echo "$as_me:$LINENO: checking for objdir" >&5
7819 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7820 if test "${lt_cv_objdir+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 rm -f .libs 2>/dev/null
7824 mkdir .libs 2>/dev/null
7825 if test -d .libs; then
7828 # MS-DOS does not allow filenames that begin with a dot.
7831 rmdir .libs 2>/dev/null
7833 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7834 echo "${ECHO_T}$lt_cv_objdir" >&6
7835 objdir=$lt_cv_objdir
7841 cat >>confdefs.h <<_ACEOF
7842 #define LT_OBJDIR "$lt_cv_objdir/"
7863 # AIX sometimes has problems with the GCC collect2 program. For some
7864 # reason, if we set the COLLECT_NAMES environment variable, the problems
7865 # vanish in a puff of smoke.
7866 if test "X${COLLECT_NAMES+set}" != Xset; then
7868 export COLLECT_NAMES
7873 # Sed substitution that helps us do robust quoting. It backslashifies
7874 # metacharacters that are still active within double-quoted strings.
7875 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7877 # Same as above, but do not quote variable references.
7878 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7880 # Sed substitution to delay expansion of an escaped shell variable in a
7881 # double_quote_subst'ed string.
7882 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7884 # Sed substitution to delay expansion of an escaped single quote.
7885 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7887 # Sed substitution to avoid accidental globbing in evaled expressions
7888 no_glob_subst='s/\*/\\\*/g'
7892 can_build_shared=yes
7894 # All known linkers require a `.a' archive for static linking (except MSVC,
7895 # which needs '.lib').
7898 with_gnu_ld="$lt_cv_prog_gnu_ld"
7901 old_CFLAGS="$CFLAGS"
7903 # Set sane defaults for various variables
7904 test -z "$CC" && CC=cc
7905 test -z "$LTCC" && LTCC=$CC
7906 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7907 test -z "$LD" && LD=ld
7908 test -z "$ac_objext" && ac_objext=o
7910 for cc_temp in $compiler""; do
7912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7918 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7921 # Only perform the check for file, if the check method requires it
7922 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7923 case $deplibs_check_method in
7925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7926 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7927 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7936 lt_save_MAGIC_CMD="$MAGIC_CMD"
7937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7938 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7939 for ac_dir in $ac_dummy; do
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/${ac_tool_prefix}file; then
7943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7944 if test -n "$file_magic_test_file"; then
7945 case $deplibs_check_method in
7947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7950 $EGREP "$file_magic_regex" > /dev/null; then
7955 *** Warning: the command libtool uses to detect shared libraries,
7956 *** $file_magic_cmd, produces output that libtool cannot recognize.
7957 *** The result is that libtool may fail to recognize shared libraries
7958 *** as such. This will affect the creation of libtool libraries that
7959 *** depend on shared libraries, but programs linked with such libtool
7960 *** libraries will work regardless of this problem. Nevertheless, you
7961 *** may want to report the problem to your system manager and/or to
7962 *** bug-libtool@gnu.org
7972 MAGIC_CMD="$lt_save_MAGIC_CMD"
7977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7978 if test -n "$MAGIC_CMD"; then
7979 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7980 echo "${ECHO_T}$MAGIC_CMD" >&6
7982 echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6
7990 if test -z "$lt_cv_path_MAGIC_CMD"; then
7991 if test -n "$ac_tool_prefix"; then
7992 echo "$as_me:$LINENO: checking for file" >&5
7993 echo $ECHO_N "checking for file... $ECHO_C" >&6
7994 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8002 lt_save_MAGIC_CMD="$MAGIC_CMD"
8003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8004 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8005 for ac_dir in $ac_dummy; do
8007 test -z "$ac_dir" && ac_dir=.
8008 if test -f $ac_dir/file; then
8009 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8010 if test -n "$file_magic_test_file"; then
8011 case $deplibs_check_method in
8013 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8016 $EGREP "$file_magic_regex" > /dev/null; then
8021 *** Warning: the command libtool uses to detect shared libraries,
8022 *** $file_magic_cmd, produces output that libtool cannot recognize.
8023 *** The result is that libtool may fail to recognize shared libraries
8024 *** as such. This will affect the creation of libtool libraries that
8025 *** depend on shared libraries, but programs linked with such libtool
8026 *** libraries will work regardless of this problem. Nevertheless, you
8027 *** may want to report the problem to your system manager and/or to
8028 *** bug-libtool@gnu.org
8038 MAGIC_CMD="$lt_save_MAGIC_CMD"
8043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044 if test -n "$MAGIC_CMD"; then
8045 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8046 echo "${ECHO_T}$MAGIC_CMD" >&6
8048 echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6
8062 # Use C for the default configuration in the libtool script
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072 # Source file extension for C test sources.
8075 # Object file extension for compiled C test sources.
8079 # Code to be used in simple compile tests
8080 lt_simple_compile_test_code="int some_variable = 0;"
8082 # Code to be used in simple link tests
8083 lt_simple_link_test_code='int main(){return(0);}'
8091 # If no C compiler was specified, use CC.
8094 # If no C compiler flags were specified, use CFLAGS.
8095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8097 # Allow CC to be a program name with arguments.
8100 # Save the default compiler, since it gets overwritten when the other
8101 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8102 compiler_DEFAULT=$CC
8104 # save warnings/boilerplate of simple test code
8105 ac_outfile=conftest.$ac_objext
8106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8108 _lt_compiler_boilerplate=`cat conftest.err`
8111 ac_outfile=conftest.$ac_objext
8112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8114 _lt_linker_boilerplate=`cat conftest.err`
8119 ## There is no encapsulation within the following macros, do not change
8120 ## the running order or otherwise move them around unless you know exactly
8121 ## what you are doing...
8122 if test -n "$compiler"; then
8124 lt_prog_compiler_no_builtin_flag=
8126 if test "$GCC" = yes; then
8127 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8129 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8130 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8131 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 lt_cv_prog_compiler_rtti_exceptions=no
8135 ac_outfile=conftest.$ac_objext
8136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8137 lt_compiler_flag="-fno-rtti -fno-exceptions"
8138 # Insert the option either (1) after the last *FLAGS variable, or
8139 # (2) before a word containing "conftest.", or (3) at the end.
8140 # Note that $ac_compile itself does not contain backslashes and begins
8141 # with a dollar sign (not a hyphen), so the echo should work correctly.
8142 # The option is referenced via a variable to avoid confusing sed.
8143 lt_compile=`echo "$ac_compile" | $SED \
8144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8146 -e 's:$: $lt_compiler_flag:'`
8147 (eval echo "\"\$as_me:8147: $lt_compile\"" >&5)
8148 (eval "$lt_compile" 2>conftest.err)
8150 cat conftest.err >&5
8151 echo "$as_me:8151: \$? = $ac_status" >&5
8152 if (exit $ac_status) && test -s "$ac_outfile"; then
8153 # The compiler can only warn and ignore the option if not recognized
8154 # So say no if there are warnings other than the usual output.
8155 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8158 lt_cv_prog_compiler_rtti_exceptions=yes
8164 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8165 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8167 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8168 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8180 lt_prog_compiler_wl=
8181 lt_prog_compiler_pic=
8182 lt_prog_compiler_static=
8184 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8185 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8187 if test "$GCC" = yes; then
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_static='-static'
8193 # All AIX code is PIC.
8194 if test "$host_cpu" = ia64; then
8195 # AIX 5 now supports IA64 processor
8196 lt_prog_compiler_static='-Bstatic'
8203 # see comment about AmigaOS4 .so support
8204 lt_prog_compiler_pic='-fPIC'
8207 # FIXME: we need at least 68020 code to build shared libraries, but
8208 # adding the `-m68020' flag to GCC prevents building anything better,
8210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8215 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8216 # PIC is the default for these OSes.
8219 mingw* | cygwin* | pw32* | os2* | cegcc*)
8220 # This hack is so that the source file can tell whether it is being
8221 # built for inclusion in a dll (and should export symbols for example).
8222 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8223 # (--disable-auto-import) libraries
8224 lt_prog_compiler_pic='-DDLL_EXPORT'
8227 darwin* | rhapsody*)
8228 # PIC is the default on this platform
8229 # Common symbols not allowed in MH_DYLIB files
8230 lt_prog_compiler_pic='-fno-common'
8234 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8235 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8236 # sets the default TLS model and affects inlining.
8242 lt_prog_compiler_pic='-fPIC'
8248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8249 # Instead, we relocate shared libraries at runtime.
8253 # Just because we use GCC doesn't mean we suddenly get shared libraries
8254 # on systems that don't support them.
8255 lt_prog_compiler_can_build_shared=no
8260 # QNX uses GNU C++, but need to define -shared option too, otherwise
8262 lt_prog_compiler_pic='-fPIC -shared'
8266 if test -d /usr/nec; then
8267 lt_prog_compiler_pic=-Kconform_pic
8272 lt_prog_compiler_pic='-fPIC'
8276 # PORTME Check for flag to pass linker flags through the system compiler.
8279 lt_prog_compiler_wl='-Wl,'
8280 if test "$host_cpu" = ia64; then
8281 # AIX 5 now supports IA64 processor
8282 lt_prog_compiler_static='-Bstatic'
8284 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8288 mingw* | cygwin* | pw32* | os2* | cegcc*)
8289 # This hack is so that the source file can tell whether it is being
8290 # built for inclusion in a dll (and should export symbols for example).
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
8294 hpux9* | hpux10* | hpux11*)
8295 lt_prog_compiler_wl='-Wl,'
8296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8303 lt_prog_compiler_pic='+Z'
8306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8307 lt_prog_compiler_static='${wl}-a ${wl}archive'
8310 irix5* | irix6* | nonstopux*)
8311 lt_prog_compiler_wl='-Wl,'
8312 # PIC (with -KPIC) is the default.
8313 lt_prog_compiler_static='-non_shared'
8316 linux* | k*bsd*-gnu)
8317 case $cc_basename in
8318 # old Intel for x86_64 which still supported -KPIC.
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-static'
8324 # icc used to be incompatible with GCC.
8325 # ICC 10 doesn't accept -KPIC any more.
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-fPIC'
8329 lt_prog_compiler_static='-static'
8331 # Lahey Fortran 8.1.
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='--shared'
8335 lt_prog_compiler_static='--static'
8337 pgcc* | pgf77* | pgf90* | pgf95*)
8338 # Portland Group compilers (*not* the Pentium gcc compiler,
8339 # which looks to be a dead project)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-fpic'
8342 lt_prog_compiler_static='-Bstatic'
8345 lt_prog_compiler_wl='-Wl,'
8346 # All Alpha code is PIC.
8347 lt_prog_compiler_static='-non_shared'
8350 # IBM XL C 8.0/Fortran 10.1 on PPC
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-qpic'
8353 lt_prog_compiler_static='-qstaticlink'
8356 case `$CC -V 2>&1 | sed 5q` in
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_wl='-Wl,'
8364 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 lt_prog_compiler_wl=''
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8382 lt_prog_compiler_pic='-fPIC -shared'
8385 osf3* | osf4* | osf5*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # All OSF/1 code is PIC.
8388 lt_prog_compiler_static='-non_shared'
8392 lt_prog_compiler_static='-non_shared'
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8398 case $cc_basename in
8400 lt_prog_compiler_wl='-Qoption ld ';;
8402 lt_prog_compiler_wl='-Wl,';;
8407 lt_prog_compiler_wl='-Qoption ld '
8408 lt_prog_compiler_pic='-PIC'
8409 lt_prog_compiler_static='-Bstatic'
8412 sysv4 | sysv4.2uw2* | sysv4.3*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8419 if test -d /usr/nec ;then
8420 lt_prog_compiler_pic='-Kconform_pic'
8421 lt_prog_compiler_static='-Bstatic'
8425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_can_build_shared=no
8437 lt_prog_compiler_pic='-pic'
8438 lt_prog_compiler_static='-Bstatic'
8442 lt_prog_compiler_can_build_shared=no
8448 # For platforms which do not support PIC, -DPIC is meaningless:
8450 lt_prog_compiler_pic=
8453 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8456 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8457 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8465 # Check to make sure the PIC flag actually works.
8467 if test -n "$lt_prog_compiler_pic"; then
8468 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8469 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8470 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 lt_cv_prog_compiler_pic_works=no
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8477 # Insert the option either (1) after the last *FLAGS variable, or
8478 # (2) before a word containing "conftest.", or (3) at the end.
8479 # Note that $ac_compile itself does not contain backslashes and begins
8480 # with a dollar sign (not a hyphen), so the echo should work correctly.
8481 # The option is referenced via a variable to avoid confusing sed.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
8486 (eval echo "\"\$as_me:8486: $lt_compile\"" >&5)
8487 (eval "$lt_compile" 2>conftest.err)
8489 cat conftest.err >&5
8490 echo "$as_me:8490: \$? = $ac_status" >&5
8491 if (exit $ac_status) && test -s "$ac_outfile"; then
8492 # The compiler can only warn and ignore the option if not recognized
8493 # So say no if there are warnings other than the usual output.
8494 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8497 lt_cv_prog_compiler_pic_works=yes
8503 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8504 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8506 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8507 case $lt_prog_compiler_pic in
8509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8512 lt_prog_compiler_pic=
8513 lt_prog_compiler_can_build_shared=no
8524 # Check to make sure the static flag actually works.
8526 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8527 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8528 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8529 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 lt_cv_prog_compiler_static_works=no
8533 save_LDFLAGS="$LDFLAGS"
8534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8537 # The linker can only warn and ignore the option if not recognized
8538 # So say no if there are warnings
8539 if test -s conftest.err; then
8540 # Append any errors to the config.log.
8541 cat conftest.err 1>&5
8542 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8544 if diff conftest.exp conftest.er2 >/dev/null; then
8545 lt_cv_prog_compiler_static_works=yes
8548 lt_cv_prog_compiler_static_works=yes
8552 LDFLAGS="$save_LDFLAGS"
8555 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8556 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8558 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8561 lt_prog_compiler_static=
8570 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8571 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8572 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 lt_cv_prog_compiler_c_o=no
8576 $RM -r conftest 2>/dev/null
8580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8582 lt_compiler_flag="-o out/conftest2.$ac_objext"
8583 # Insert the option either (1) after the last *FLAGS variable, or
8584 # (2) before a word containing "conftest.", or (3) at the end.
8585 # Note that $ac_compile itself does not contain backslashes and begins
8586 # with a dollar sign (not a hyphen), so the echo should work correctly.
8587 lt_compile=`echo "$ac_compile" | $SED \
8588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590 -e 's:$: $lt_compiler_flag:'`
8591 (eval echo "\"\$as_me:8591: $lt_compile\"" >&5)
8592 (eval "$lt_compile" 2>out/conftest.err)
8594 cat out/conftest.err >&5
8595 echo "$as_me:8595: \$? = $ac_status" >&5
8596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8598 # The compiler can only warn and ignore the option if not recognized
8599 # So say no if there are warnings
8600 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8603 lt_cv_prog_compiler_c_o=yes
8608 # SGI C++ compiler will create directory out/ii_files/ for
8609 # template instantiation
8610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8611 $RM out/* && rmdir out
8617 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8618 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8625 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8626 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8627 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 lt_cv_prog_compiler_c_o=no
8631 $RM -r conftest 2>/dev/null
8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8637 lt_compiler_flag="-o out/conftest2.$ac_objext"
8638 # Insert the option either (1) after the last *FLAGS variable, or
8639 # (2) before a word containing "conftest.", or (3) at the end.
8640 # Note that $ac_compile itself does not contain backslashes and begins
8641 # with a dollar sign (not a hyphen), so the echo should work correctly.
8642 lt_compile=`echo "$ac_compile" | $SED \
8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645 -e 's:$: $lt_compiler_flag:'`
8646 (eval echo "\"\$as_me:8646: $lt_compile\"" >&5)
8647 (eval "$lt_compile" 2>out/conftest.err)
8649 cat out/conftest.err >&5
8650 echo "$as_me:8650: \$? = $ac_status" >&5
8651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8653 # The compiler can only warn and ignore the option if not recognized
8654 # So say no if there are warnings
8655 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8658 lt_cv_prog_compiler_c_o=yes
8663 # SGI C++ compiler will create directory out/ii_files/ for
8664 # template instantiation
8665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8666 $RM out/* && rmdir out
8672 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8673 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8678 hard_links="nottested"
8679 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8680 # do not overwrite the value of need_locks provided by the user
8681 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8682 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8687 ln conftest.a conftest.b 2>&5 || hard_links=no
8688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8689 echo "$as_me:$LINENO: result: $hard_links" >&5
8690 echo "${ECHO_T}$hard_links" >&6
8691 if test "$hard_links" = no; then
8692 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8693 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8705 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8706 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8709 allow_undefined_flag=
8710 always_export_symbols=no
8712 archive_expsym_cmds=
8713 compiler_needs_object=no
8714 enable_shared_with_static_runtimes=no
8715 export_dynamic_flag_spec=
8716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8717 hardcode_automatic=no
8719 hardcode_direct_absolute=no
8720 hardcode_libdir_flag_spec=
8721 hardcode_libdir_flag_spec_ld=
8722 hardcode_libdir_separator=
8724 hardcode_shlibpath_var=unsupported
8726 link_all_deplibs=unknown
8729 old_archive_from_new_cmds=
8730 old_archive_from_expsyms_cmds=
8731 thread_safe_flag_spec=
8732 whole_archive_flag_spec=
8733 # include_expsyms should be a list of space-separated symbols to be *always*
8734 # included in the symbol list
8736 # exclude_expsyms can be an extended regexp of symbols to exclude
8737 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8738 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8739 # as well as any symbol that contains `d'.
8740 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8741 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8742 # platforms (ab)use it in PIC code, but their linkers get confused if
8743 # the symbol is explicitly referenced. Since portable code cannot
8744 # rely on this symbol name, it's probably fine to never include it in
8745 # preloaded symbol tables.
8746 # Exclude shared library initialization/finalization symbols.
8747 extract_expsyms_cmds=
8750 cygwin* | mingw* | pw32* | cegcc*)
8751 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8752 # When not using gcc, we currently assume that we are using
8753 # Microsoft Visual C++.
8754 if test "$GCC" != yes; then
8759 # we just hope/assume this is gcc and not c89 (= MSVC++)
8768 if test "$with_gnu_ld" = yes; then
8769 # If archive_cmds runs LD, not CC, wlarc should be empty
8772 # Set some defaults for GNU ld with shared library support. These
8773 # are reset later if shared libraries are not supported. Putting them
8774 # here allows them to be overridden if necessary.
8775 runpath_var=LD_RUN_PATH
8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777 export_dynamic_flag_spec='${wl}--export-dynamic'
8778 # ancient GNU ld didn't support --whole-archive et. al.
8779 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8780 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8782 whole_archive_flag_spec=
8784 supports_anon_versioning=no
8785 case `$LD -v 2>&1` in
8786 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8789 *\ 2.11.*) ;; # other 2.11 versions
8790 *) supports_anon_versioning=yes ;;
8793 # See if GNU ld supports shared libraries.
8796 # On AIX/PPC, the GNU linker is very broken
8797 if test "$host_cpu" != ia64; then
8801 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8802 *** to be unable to reliably create shared libraries on AIX.
8803 *** Therefore, libtool is disabling shared libraries support. If you
8804 *** really care for shared libraries, you may want to modify your PATH
8805 *** so that a non-GNU linker is found, and then restart.
8814 # see comment about AmigaOS4 .so support
8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816 archive_expsym_cmds=''
8819 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_minus_L=yes
8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828 allow_undefined_flag=unsupported
8829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8830 # support --undefined. This deserves some investigation. FIXME
8831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 cygwin* | mingw* | pw32* | cegcc*)
8838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8839 # as there is no search path for DLLs.
8840 hardcode_libdir_flag_spec='-L$libdir'
8841 allow_undefined_flag=unsupported
8842 always_export_symbols=no
8843 enable_shared_with_static_runtimes=yes
8844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848 # If the export-symbols file already is a .def file (1st line
8849 # is EXPORTS), use it as is; otherwise, prepend...
8850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8851 cp $export_symbols $output_objdir/$soname.def;
8853 echo EXPORTS > $output_objdir/$soname.def;
8854 cat $export_symbols >> $output_objdir/$soname.def;
8856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864 hardcode_shlibpath_var=no
8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866 export_dynamic_flag_spec='${wl}-E'
8867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8868 # Instead, shared libraries are loaded at an image base (0x10000000 by
8869 # default) and relocated if they conflict, which is a slow very memory
8870 # consuming and fragmenting process. To avoid this, we pick a random,
8871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8874 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8877 gnu* | linux* | tpf* | k*bsd*-gnu)
8879 if test "$host_os" = linux-dietlibc; then
8880 case $cc_basename in
8881 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8884 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8885 && test "$tmp_diet" = no
8888 tmp_sharedflag='-shared'
8889 case $cc_basename,$host_cpu in
8890 pgcc*) # Portland Group C compiler
8891 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8892 tmp_addflag=' $pic_flag'
8894 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8895 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8896 tmp_addflag=' $pic_flag -Mnomain' ;;
8897 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8898 tmp_addflag=' -i_dynamic' ;;
8899 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8900 tmp_addflag=' -i_dynamic -nofor_main' ;;
8901 ifc* | ifort*) # Intel Fortran compiler
8902 tmp_addflag=' -nofor_main' ;;
8903 lf95*) # Lahey Fortran 8.1
8904 whole_archive_flag_spec=
8905 tmp_sharedflag='--shared' ;;
8906 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8907 tmp_sharedflag='-qmkshrobj'
8910 case `$CC -V 2>&1 | sed 5q` in
8911 *Sun\ C*) # Sun C 5.9
8912 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8913 compiler_needs_object=yes
8914 tmp_sharedflag='-G' ;;
8915 *Sun\ F*) # Sun Fortran 8.3
8916 tmp_sharedflag='-G' ;;
8918 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920 if test "x$supports_anon_versioning" = xyes; then
8921 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8922 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8923 echo "local: *; };" >> $output_objdir/$libname.ver~
8924 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8927 case $cc_basename in
8929 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8930 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8931 hardcode_libdir_flag_spec=
8932 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8933 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8934 if test "x$supports_anon_versioning" = xyes; then
8935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8937 echo "local: *; };" >> $output_objdir/$libname.ver~
8938 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8949 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8958 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8962 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8963 *** create shared libraries on Solaris systems. Therefore, libtool
8964 *** is disabling shared libraries support. We urge you to upgrade GNU
8965 *** binutils to release 2.9.1 or newer. Another option is to modify
8966 *** your PATH or compiler configuration so that the native linker is
8967 *** used, and then restart.
8970 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8979 case `$LD -v 2>&1` in
8980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8984 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8985 *** reliably create shared libraries on SCO systems. Therefore, libtool
8986 *** is disabling shared libraries support. We urge you to upgrade GNU
8987 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8988 *** your PATH or compiler configuration so that the native linker is
8989 *** used, and then restart.
8994 # For security reasons, it is highly recommended that you always
8995 # use absolute paths for naming shared libraries, and exclude the
8996 # DT_RUNPATH tag from executables and libraries. But doing so
8997 # requires that you compile everything twice, which is a pain.
8998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_shlibpath_var=no
9017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9026 if test "$ld_shlibs" = no; then
9028 hardcode_libdir_flag_spec=
9029 export_dynamic_flag_spec=
9030 whole_archive_flag_spec=
9033 # PORTME fill in a description of your system's linker (not GNU ld)
9036 allow_undefined_flag=unsupported
9037 always_export_symbols=yes
9038 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9039 # Note: this linker hardcodes the directories in LIBPATH if there
9040 # are no directories specified by -L.
9041 hardcode_minus_L=yes
9042 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9043 # Neither direct hardcoding nor static linking is supported with a
9045 hardcode_direct=unsupported
9050 if test "$host_cpu" = ia64; then
9051 # On IA64, the linker does run time linking by default, so we don't
9052 # have to do anything special.
9053 aix_use_runtimelinking=no
9054 exp_sym_flag='-Bexport'
9057 # If we're using GNU nm, then we don't want the "-C" option.
9058 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9059 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9060 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9062 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9064 aix_use_runtimelinking=no
9066 # Test if we are trying to use run time linking or normal
9067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9068 # need to do runtime linking.
9069 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9070 for ld_flag in $LDFLAGS; do
9071 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9072 aix_use_runtimelinking=yes
9079 exp_sym_flag='-bexport'
9080 no_entry_flag='-bnoentry'
9083 # When large executables or shared objects are built, AIX ld can
9084 # have problems creating the table of contents. If linking a library
9085 # or program results in "error TOC overflow" add -mminimal-toc to
9086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9091 hardcode_direct_absolute=yes
9092 hardcode_libdir_separator=':'
9093 link_all_deplibs=yes
9094 file_list_spec='${wl}-f,'
9096 if test "$GCC" = yes; then
9097 case $host_os in aix4.[012]|aix4.[012].*)
9098 # We only want to do this on AIX 4.2 and lower, the check
9099 # below for broken collect2 doesn't work under 4.3+
9100 collect2name=`${CC} -print-prog-name=collect2`
9101 if test -f "$collect2name" &&
9102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9104 # We have reworked collect2
9107 # We have old collect2
9108 hardcode_direct=unsupported
9109 # It fails to find uninstalled libraries when the uninstalled
9110 # path is not listed in the libpath. Setting hardcode_minus_L
9111 # to unsupported forces relinking
9112 hardcode_minus_L=yes
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 hardcode_libdir_separator=
9118 shared_flag='-shared'
9119 if test "$aix_use_runtimelinking" = yes; then
9120 shared_flag="$shared_flag "'${wl}-G'
9124 if test "$host_cpu" = ia64; then
9125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9126 # chokes on -Wl,-G. The following line is correct:
9129 if test "$aix_use_runtimelinking" = yes; then
9130 shared_flag='${wl}-G'
9132 shared_flag='${wl}-bM:SRE'
9137 export_dynamic_flag_spec='${wl}-bexpall'
9138 # It seems that -bexpall does not export symbols beginning with
9139 # underscore (_), so it is better to generate a list of symbols to export.
9140 always_export_symbols=yes
9141 if test "$aix_use_runtimelinking" = yes; then
9142 # Warning - without using the other runtime loading flags (-brtl),
9143 # -berok will link without error, but may produce a broken library.
9144 allow_undefined_flag='-berok'
9145 # Determine the default libpath from the value encoded in an
9147 cat >conftest.$ac_ext <<_ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>conftest.er1
9166 grep -v '^ *+' conftest.er1 >conftest.err
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest$ac_exeext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9185 lt_aix_libpath_sed='
9186 /Import File Strings/,/^$/ {
9192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9193 # Check for a 64-bit object if we didn't find anything.
9194 if test -z "$aix_libpath"; then
9195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9202 rm -f conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9207 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9209 if test "$host_cpu" = ia64; then
9210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9211 allow_undefined_flag="-z nodefs"
9212 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9214 # Determine the default libpath from the value encoded in an
9216 cat >conftest.$ac_ext <<_ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9231 rm -f conftest.$ac_objext conftest$ac_exeext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>conftest.er1
9235 grep -v '^ *+' conftest.er1 >conftest.err
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -z "$ac_c_werror_flag"
9241 || test ! -s conftest.err'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; } &&
9247 { ac_try='test -s conftest$ac_exeext'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9254 lt_aix_libpath_sed='
9255 /Import File Strings/,/^$/ {
9261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262 # Check for a 64-bit object if we didn't find anything.
9263 if test -z "$aix_libpath"; then
9264 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9271 rm -f conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9276 # Warning - without using the other run time loading flags,
9277 # -berok will link without error, but may produce a broken library.
9278 no_undefined_flag=' ${wl}-bernotok'
9279 allow_undefined_flag=' ${wl}-berok'
9280 # Exported symbols can be pulled into shared objects from archives
9281 whole_archive_flag_spec='$convenience'
9282 archive_cmds_need_lc=yes
9283 # This is similar to how AIX traditionally builds its shared libraries.
9284 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9292 # see comment about AmigaOS4 .so support
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds=''
9297 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_minus_L=yes
9305 export_dynamic_flag_spec=-rdynamic
9308 cygwin* | mingw* | pw32* | cegcc*)
9309 # When not using gcc, we currently assume that we are using
9310 # Microsoft Visual C++.
9311 # hardcode_libdir_flag_spec is actually meaningless, as there is
9312 # no search path for DLLs.
9313 hardcode_libdir_flag_spec=' '
9314 allow_undefined_flag=unsupported
9315 # Tell ltmain to make .lib files, not .a files.
9317 # Tell ltmain to make .dll files, not .so files.
9319 # FIXME: Setting linknames here is a bad hack.
9320 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9321 # The linker will automatically build a .lib file if we build a DLL.
9322 old_archive_from_new_cmds='true'
9323 # FIXME: Should let the user specify the lib program.
9324 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9325 fix_srcfile_path='`cygpath -w "$srcfile"`'
9326 enable_shared_with_static_runtimes=yes
9329 darwin* | rhapsody*)
9332 archive_cmds_need_lc=no
9334 hardcode_automatic=yes
9335 hardcode_shlibpath_var=unsupported
9336 whole_archive_flag_spec=''
9337 link_all_deplibs=yes
9338 allow_undefined_flag="$_lt_dar_allow_undefined"
9339 case $cc_basename in
9340 ifort*) _lt_dar_can_shared=yes ;;
9341 *) _lt_dar_can_shared=$GCC ;;
9343 if test "$_lt_dar_can_shared" = "yes"; then
9344 output_verbose_link_cmd=echo
9345 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9346 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9347 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9348 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 hardcode_shlibpath_var=no
9366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9367 # support. Future versions do this automatically, but an explicit c++rt0.o
9368 # does not break anything, and helps significantly (at the cost of a little
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9372 hardcode_libdir_flag_spec='-R$libdir'
9374 hardcode_shlibpath_var=no
9377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9381 hardcode_minus_L=yes
9382 hardcode_shlibpath_var=no
9385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9386 freebsd* | dragonfly*)
9387 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9388 hardcode_libdir_flag_spec='-R$libdir'
9390 hardcode_shlibpath_var=no
9394 if test "$GCC" = yes; then
9395 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9397 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_separator=:
9403 # hardcode_minus_L: Not really in the search PATH,
9404 # but as the default location of the library.
9405 hardcode_minus_L=yes
9406 export_dynamic_flag_spec='${wl}-E'
9410 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9411 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9415 if test "$with_gnu_ld" = no; then
9416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9417 hardcode_libdir_flag_spec_ld='+b $libdir'
9418 hardcode_libdir_separator=:
9420 hardcode_direct_absolute=yes
9421 export_dynamic_flag_spec='${wl}-E'
9422 # hardcode_minus_L: Not really in the search PATH,
9423 # but as the default location of the library.
9424 hardcode_minus_L=yes
9429 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9432 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9438 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9444 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9447 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9454 if test "$with_gnu_ld" = no; then
9455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456 hardcode_libdir_separator=:
9461 hardcode_shlibpath_var=no
9465 hardcode_direct_absolute=yes
9466 export_dynamic_flag_spec='${wl}-E'
9468 # hardcode_minus_L: Not really in the search PATH,
9469 # but as the default location of the library.
9470 hardcode_minus_L=yes
9476 irix5* | irix6* | nonstopux*)
9477 if test "$GCC" = yes; then
9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9479 # Try to use the -exported_symbol ld option, if it does not
9480 # work, assume that -exports_file does not work either and
9481 # implicitly export all symbols.
9482 save_LDFLAGS="$LDFLAGS"
9483 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9484 cat >conftest.$ac_ext <<_ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9491 grep -v '^ *+' conftest.er1 >conftest.err
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
9496 { ac_try='test -z "$ac_c_werror_flag"
9497 || test ! -s conftest.err'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9516 rm -f conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LDFLAGS="$save_LDFLAGS"
9520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9521 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9523 archive_cmds_need_lc='no'
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525 hardcode_libdir_separator=:
9527 link_all_deplibs=yes
9531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9536 hardcode_libdir_flag_spec='-R$libdir'
9538 hardcode_shlibpath_var=no
9542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546 hardcode_shlibpath_var=no
9553 if test -f /usr/libexec/ld.so; then
9555 hardcode_shlibpath_var=no
9556 hardcode_direct_absolute=yes
9557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9559 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9561 export_dynamic_flag_spec='${wl}-E'
9564 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9566 hardcode_libdir_flag_spec='-R$libdir'
9569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_minus_L=yes
9582 allow_undefined_flag=unsupported
9583 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9584 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9588 if test "$GCC" = yes; then
9589 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9590 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9592 allow_undefined_flag=' -expect_unresolved \*'
9593 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9595 archive_cmds_need_lc='no'
9596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597 hardcode_libdir_separator=:
9600 osf4* | osf5*) # as osf3* with the addition of -msym flag
9601 if test "$GCC" = yes; then
9602 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9603 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 allow_undefined_flag=' -expect_unresolved \*'
9607 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9608 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9609 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9611 # Both c and cxx compiler support -rpath directly
9612 hardcode_libdir_flag_spec='-rpath $libdir'
9614 archive_cmds_need_lc='no'
9615 hardcode_libdir_separator=:
9619 no_undefined_flag=' -z defs'
9620 if test "$GCC" = yes; then
9622 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9624 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9626 case `$CC -V 2>&1` in
9629 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9631 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9635 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9637 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9641 hardcode_libdir_flag_spec='-R$libdir'
9642 hardcode_shlibpath_var=no
9644 solaris2.[0-5] | solaris2.[0-5].*) ;;
9646 # The compiler driver will combine and reorder linker options,
9647 # but understands `-z linker_flag'. GCC discards it without `$wl',
9648 # but is careful enough not to reorder.
9649 # Supported since Solaris 2.6 (maybe 2.5.1?)
9650 if test "$GCC" = yes; then
9651 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9653 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9657 link_all_deplibs=yes
9661 if test "x$host_vendor" = xsequent; then
9662 # Use $CC to link under sequent, because it throws in some extra .o
9663 # files that make .init and .fini sections work.
9664 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_libdir_flag_spec='-L$libdir'
9670 hardcode_minus_L=yes
9671 hardcode_shlibpath_var=no
9675 case $host_vendor in
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_direct=yes # is this really true???
9681 ## LD is ld it makes a PLAMLIB
9682 ## CC just makes a GrossModule.
9683 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9684 reload_cmds='$CC -r -o $output$reload_objs'
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9692 runpath_var='LD_RUN_PATH'
9693 hardcode_shlibpath_var=no
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_shlibpath_var=no
9699 export_dynamic_flag_spec='-Bexport'
9703 if test -d /usr/nec; then
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_shlibpath_var=no
9706 runpath_var=LD_RUN_PATH
9707 hardcode_runpath_var=yes
9712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9713 no_undefined_flag='${wl}-z,text'
9714 archive_cmds_need_lc=no
9715 hardcode_shlibpath_var=no
9716 runpath_var='LD_RUN_PATH'
9718 if test "$GCC" = yes; then
9719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 sysv5* | sco3.2v5* | sco5v6*)
9728 # Note: We can NOT use -z defs as we might desire, because we do not
9729 # link with -lc, and that would cause any symbols used from libc to
9730 # always be unresolved, which means just about no library would
9731 # ever link correctly. If we're not using GNU ld we use -z text
9732 # though, which does catch some bad symbols but isn't as heavy-handed
9734 no_undefined_flag='${wl}-z,text'
9735 allow_undefined_flag='${wl}-z,nodefs'
9736 archive_cmds_need_lc=no
9737 hardcode_shlibpath_var=no
9738 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9739 hardcode_libdir_separator=':'
9740 link_all_deplibs=yes
9741 export_dynamic_flag_spec='${wl}-Bexport'
9742 runpath_var='LD_RUN_PATH'
9744 if test "$GCC" = yes; then
9745 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_shlibpath_var=no
9764 if test x$host_vendor = xsni; then
9766 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9767 export_dynamic_flag_spec='${wl}-Blargedynsym'
9773 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9774 echo "${ECHO_T}$ld_shlibs" >&6
9775 test "$ld_shlibs" = no && can_build_shared=no
9777 with_gnu_ld=$with_gnu_ld
9794 # Do we need to explicitly link libc?
9796 case "x$archive_cmds_need_lc" in
9798 # Assume -lc should be added
9799 archive_cmds_need_lc=yes
9801 if test "$enable_shared" = yes && test "$GCC" = yes; then
9802 case $archive_cmds in
9804 # FIXME: we may have to deal with multi-command sequences.
9807 # Test whether the compiler implicitly links with -lc since on some
9808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9809 # to ld, don't add -lc before -lgcc.
9810 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9811 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } 2>conftest.err; then
9822 libobjs=conftest.$ac_objext
9824 wl=$lt_prog_compiler_wl
9825 pic_flag=$lt_prog_compiler_pic
9831 lt_save_allow_undefined_flag=$allow_undefined_flag
9832 allow_undefined_flag=
9833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9834 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }
9839 archive_cmds_need_lc=no
9841 archive_cmds_need_lc=yes
9843 allow_undefined_flag=$lt_save_allow_undefined_flag
9845 cat conftest.err 1>&5
9848 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9849 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10015 if test "$GCC" = yes; then
10017 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10018 *) lt_awk_arg="/^libraries:/" ;;
10020 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10021 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10022 # if the path contains ";" then we assume it to be the separator
10023 # otherwise default to the standard path separator (i.e. ":") - it is
10024 # assumed that no part of a normal pathname contains ";" but that should
10025 # okay in the real world where ";" in dirpaths is itself problematic.
10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10028 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10030 # Ok, now we have the path, separated by spaces, we can step through it
10031 # and add multilib dir if necessary.
10032 lt_tmp_lt_search_path_spec=
10033 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10034 for lt_sys_path in $lt_search_path_spec; do
10035 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10038 test -d "$lt_sys_path" && \
10039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10042 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10043 BEGIN {RS=" "; FS="/|\n";} {
10046 for (lt_i = NF; lt_i > 0; lt_i--) {
10047 if ($lt_i != "" && $lt_i != ".") {
10048 if ($lt_i == "..") {
10051 if (lt_count == 0) {
10052 lt_foo="/" $lt_i lt_foo;
10059 if (lt_foo != "") { lt_freq[lt_foo]++; }
10060 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10062 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10066 library_names_spec=
10067 libname_spec='lib$name'
10071 postuninstall_cmds=
10075 shlibpath_overrides_runpath=unknown
10077 dynamic_linker="$host_os ld.so"
10078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10079 need_lib_prefix=unknown
10080 hardcode_into_libs=no
10082 # when you set need_version to no, make sure it does not cause -set_version
10083 # flags to be left without arguments
10084 need_version=unknown
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10090 shlibpath_var=LIBPATH
10092 # AIX 3 has no versioning support, so we append a major version to the name.
10093 soname_spec='${libname}${release}${shared_ext}$major'
10100 hardcode_into_libs=yes
10101 if test "$host_cpu" = ia64; then
10102 # AIX 5 supports IA64
10103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10104 shlibpath_var=LD_LIBRARY_PATH
10106 # With GCC up to 2.95.x, collect2 would create an import file
10107 # for dependence libraries. The import file would start with
10108 # the line `#! .'. This would cause the generated library to
10109 # depend on `.', always an invalid library. This was fixed in
10110 # development snapshots of GCC prior to 3.0.
10112 aix4 | aix4.[01] | aix4.[01].*)
10113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10115 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10118 can_build_shared=no
10122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10123 # soname into executable. Probably we can add versioning support to
10124 # collect2, so additional links can be useful in future.
10125 if test "$aix_use_runtimelinking" = yes; then
10126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10127 # instead of lib<name>.a to let people know that these are not
10128 # typical AIX shared libraries.
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 # We preserve .a as extension for shared libraries through AIX4.2
10132 # and later when we are not doing run time linking.
10133 library_names_spec='${libname}${release}.a $libname.a'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LIBPATH
10143 # Since July 2007 AmigaOS4 officially supports .so libraries.
10144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 library_names_spec='$libname.ixlibrary $libname.a'
10149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10150 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10156 library_names_spec='${libname}${shared_ext}'
10157 dynamic_linker="$host_os ld.so"
10158 shlibpath_var=LIBRARY_PATH
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10170 # the default ld.so.conf also contains /usr/contrib/lib and
10171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10172 # libtool to hard-code these into programs
10175 cygwin* | mingw* | pw32* | cegcc*)
10176 version_type=windows
10181 case $GCC,$host_os in
10182 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10183 library_names_spec='$libname.dll.a'
10184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10185 postinstall_cmds='base_file=`basename \${file}`~
10186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10187 dldir=$destdir/`dirname \$dlpath`~
10188 test -d \$dldir || mkdir -p \$dldir~
10189 $install_prog $dir/$dlname \$dldir/$dlname~
10190 chmod a+x \$dldir/$dlname~
10191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10195 dlpath=$dir/\$dldll~
10197 shlibpath_overrides_runpath=yes
10201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10206 # MinGW DLLs use traditional 'lib' prefix
10207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10210 # It is most probably a Windows format PATH printed by
10211 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10212 # path with ; separators, and with drive letters. We can handle the
10213 # drive letters (cygwin fileutils understands them), so leave them,
10214 # especially as we might pass files found there to a mingw objdump,
10215 # which wouldn't understand a cygwinified path. Ahh.
10216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10218 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10222 # pw32 DLLs use 'pw' prefix rather than 'lib'
10223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10232 dynamic_linker='Win32 ld.exe'
10233 # FIXME: first we should search . and the directory the executable is in
10237 darwin* | rhapsody*)
10238 dynamic_linker="$host_os dyld"
10239 version_type=darwin
10242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10243 soname_spec='${libname}${release}${major}$shared_ext'
10244 shlibpath_overrides_runpath=yes
10245 shlibpath_var=DYLD_LIBRARY_PATH
10246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10265 freebsd* | dragonfly*)
10266 # DragonFly does not have aout. When/if they implement a new
10267 # versioning mechanism, adjust this.
10268 if test -x /usr/bin/objformat; then
10269 objformat=`/usr/bin/objformat`
10272 freebsd[123]*) objformat=aout ;;
10273 *) objformat=elf ;;
10276 version_type=freebsd-$objformat
10277 case $version_type in
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10288 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=yes
10293 freebsd3.[01]* | freebsdelf3.[01]*)
10294 shlibpath_overrides_runpath=yes
10295 hardcode_into_libs=yes
10297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10299 shlibpath_overrides_runpath=no
10300 hardcode_into_libs=yes
10302 *) # from 4.6 on, and DragonFly
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 hardcode_into_libs=yes
10319 hpux9* | hpux10* | hpux11*)
10320 # Give a soname corresponding to the major version so that dld.sl refuses to
10321 # link against other versions.
10328 hardcode_into_libs=yes
10329 dynamic_linker="$host_os dld.so"
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 if test "X$HPUX_IA64_MODE" = X32; then
10335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.sl"
10345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=SHLIB_PATH
10356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10362 postinstall_cmds='chmod 555 $lib'
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=no
10374 hardcode_into_libs=yes
10377 irix5* | irix6* | nonstopux*)
10379 nonstopux*) version_type=nonstopux ;;
10381 if test "$lt_cv_prog_gnu_ld" = yes; then
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10392 irix5* | nonstopux*)
10393 libsuff= shlibsuff=
10396 case $LD in # libtool.m4 will add one of these switches to LD
10397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10398 libsuff= shlibsuff= libmagic=32-bit;;
10399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10400 libsuff=32 shlibsuff=N32 libmagic=N32;;
10401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10403 *) libsuff= shlibsuff= libmagic=never-match;;
10407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10408 shlibpath_overrides_runpath=no
10409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10411 hardcode_into_libs=yes
10414 # No shared lib support for Linux oldld, aout, or coff.
10415 linux*oldld* | linux*aout* | linux*coff*)
10419 # This must be Linux ELF.
10420 linux* | k*bsd*-gnu)
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10429 # Some binutils ld are patched to set DT_RUNPATH
10430 save_LDFLAGS=$LDFLAGS
10431 save_libdir=$libdir
10432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10434 cat >conftest.$ac_ext <<_ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10451 (eval $ac_link) 2>conftest.er1
10453 grep -v '^ *+' conftest.er1 >conftest.err
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
10458 { ac_try='test -z "$ac_c_werror_flag"
10459 || test ! -s conftest.err'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; } &&
10465 { ac_try='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10472 shlibpath_overrides_runpath=yes
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10480 rm -f conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LDFLAGS=$save_LDFLAGS
10483 libdir=$save_libdir
10485 # This implies no fast_install, which is unacceptable.
10486 # Some rework will be needed to allow for fast_install
10487 # before this can be enabled.
10488 hardcode_into_libs=yes
10490 # Append ld.so.conf contents to the search path
10491 if test -f /etc/ld.so.conf; then
10492 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10496 # We used to test for /lib/ld.so.1 and disable shared libraries on
10497 # powerpc, because MkLinux only supported shared libraries with the
10498 # GNU dynamic linker. Since this was broken with cross compilers,
10499 # most powerpc-linux boxes support dynamic linking these days and
10500 # people can always --disable-shared, the test was removed, and we
10501 # assume the GNU/Linux dynamic linker is in use.
10502 dynamic_linker='GNU/Linux ld.so'
10509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10512 dynamic_linker='NetBSD (a.out) ld.so'
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 dynamic_linker='NetBSD ld.elf_so'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes
10520 hardcode_into_libs=yes
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 shlibpath_var=LD_LIBRARY_PATH
10527 shlibpath_overrides_runpath=yes
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 soname_spec='${libname}${release}${shared_ext}$major'
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=no
10538 hardcode_into_libs=yes
10539 dynamic_linker='ldqnx.so'
10544 sys_lib_dlsearch_path_spec="/usr/lib"
10546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10549 *) need_version=no ;;
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10556 openbsd2.[89] | openbsd2.[89].*)
10557 shlibpath_overrides_runpath=no
10560 shlibpath_overrides_runpath=yes
10564 shlibpath_overrides_runpath=yes
10569 libname_spec='$name'
10572 library_names_spec='$libname${shared_ext} $libname.a'
10573 dynamic_linker='OS/2 ld.exe'
10574 shlibpath_var=LIBPATH
10577 osf3* | osf4* | osf5*)
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=yes
10600 hardcode_into_libs=yes
10601 # ldd complains unless libraries are executable
10602 postinstall_cmds='chmod +x $lib'
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=yes
10611 if test "$with_gnu_ld" = yes; then
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 case $host_vendor in
10624 shlibpath_overrides_runpath=no
10626 runpath_var=LD_RUN_PATH
10634 shlibpath_overrides_runpath=no
10635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10641 if test -d /usr/nec ;then
10643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10644 soname_spec='$libname${shared_ext}.$major'
10645 shlibpath_var=LD_LIBRARY_PATH
10649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10650 version_type=freebsd-elf
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10657 hardcode_into_libs=yes
10658 if test "$with_gnu_ld" = yes; then
10659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10668 sys_lib_dlsearch_path_spec='/usr/lib'
10672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=no
10679 hardcode_into_libs=yes
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10693 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10694 echo "${ECHO_T}$dynamic_linker" >&6
10695 test "$dynamic_linker" = no && can_build_shared=no
10697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10698 if test "$GCC" = yes; then
10699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10702 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10703 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10705 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10706 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10795 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10796 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10798 if test -n "$hardcode_libdir_flag_spec" ||
10799 test -n "$runpath_var" ||
10800 test "X$hardcode_automatic" = "Xyes" ; then
10802 # We can hardcode non-existent directories.
10803 if test "$hardcode_direct" != no &&
10804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10805 # have to relink, otherwise we might link with an installed library
10806 # when we should be linking with a yet-to-be-installed one
10807 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10808 test "$hardcode_minus_L" != no; then
10809 # Linking always hardcodes the temporary library directory.
10810 hardcode_action=relink
10812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10813 hardcode_action=immediate
10816 # We cannot hardcode anything, or else we can only hardcode existing
10818 hardcode_action=unsupported
10820 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10821 echo "${ECHO_T}$hardcode_action" >&6
10823 if test "$hardcode_action" = relink ||
10824 test "$inherit_rpath" = yes; then
10825 # Fast installation is not supported
10826 enable_fast_install=no
10827 elif test "$shlibpath_overrides_runpath" = yes ||
10828 test "$enable_shared" = no; then
10829 # Fast installation is not necessary
10830 enable_fast_install=needless
10838 if test "x$enable_dlopen" != xyes; then
10839 enable_dlopen=unknown
10840 enable_dlopen_self=unknown
10841 enable_dlopen_self_static=unknown
10848 lt_cv_dlopen="load_add_on"
10850 lt_cv_dlopen_self=yes
10853 mingw* | pw32* | cegcc*)
10854 lt_cv_dlopen="LoadLibrary"
10859 lt_cv_dlopen="dlopen"
10864 # if libdl is installed we need to link against it
10865 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 ac_check_lib_save_LIBS=$LIBS
10872 cat >conftest.$ac_ext <<_ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10879 /* Override any gcc2 internal prototype to avoid an error. */
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>conftest.er1
10898 grep -v '^ *+' conftest.er1 >conftest.err
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag"
10904 || test ! -s conftest.err'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; } &&
10910 { ac_try='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_lib_dl_dlopen=yes
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 ac_cv_lib_dl_dlopen=no
10923 rm -f conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10927 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10928 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10929 if test $ac_cv_lib_dl_dlopen = yes; then
10930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10933 lt_cv_dlopen="dyld"
10935 lt_cv_dlopen_self=yes
10942 echo "$as_me:$LINENO: checking for shl_load" >&5
10943 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10944 if test "${ac_cv_func_shl_load+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 cat >conftest.$ac_ext <<_ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10955 #define shl_load innocuous_shl_load
10957 /* System header to define __stub macros and hopefully few prototypes,
10958 which can conflict with char shl_load (); below.
10959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10960 <limits.h> exists even on freestanding compilers. */
10963 # include <limits.h>
10965 # include <assert.h>
10970 /* Override any gcc2 internal prototype to avoid an error. */
10975 /* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10978 /* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
10981 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10984 char (*f) () = shl_load;
10993 return f != shl_load;
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest$ac_exeext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_func_shl_load=yes
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_cv_func_shl_load=no
11027 rm -f conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11030 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11031 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11032 if test $ac_cv_func_shl_load = yes; then
11033 lt_cv_dlopen="shl_load"
11035 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11036 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11037 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 ac_check_lib_save_LIBS=$LIBS
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11049 /* Override any gcc2 internal prototype to avoid an error. */
11053 /* We use char because int might match the return type of a gcc2
11054 builtin and then its argument prototype would still apply. */
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>conftest.er1
11068 grep -v '^ *+' conftest.er1 >conftest.err
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try='test -z "$ac_c_werror_flag"
11074 || test ! -s conftest.err'
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; } &&
11080 { ac_try='test -s conftest$ac_exeext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
11086 ac_cv_lib_dld_shl_load=yes
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 ac_cv_lib_dld_shl_load=no
11093 rm -f conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095 LIBS=$ac_check_lib_save_LIBS
11097 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11098 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11099 if test $ac_cv_lib_dld_shl_load = yes; then
11100 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11102 echo "$as_me:$LINENO: checking for dlopen" >&5
11103 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11104 if test "${ac_cv_func_dlopen+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11115 #define dlopen innocuous_dlopen
11117 /* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char dlopen (); below.
11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120 <limits.h> exists even on freestanding compilers. */
11123 # include <limits.h>
11125 # include <assert.h>
11130 /* Override any gcc2 internal prototype to avoid an error. */
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11138 /* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11144 char (*f) () = dlopen;
11153 return f != dlopen;
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>conftest.er1
11162 grep -v '^ *+' conftest.er1 >conftest.err
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -z "$ac_c_werror_flag"
11168 || test ! -s conftest.err'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; } &&
11174 { ac_try='test -s conftest$ac_exeext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 ac_cv_func_dlopen=yes
11182 echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11185 ac_cv_func_dlopen=no
11187 rm -f conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11190 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11191 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11192 if test $ac_cv_func_dlopen = yes; then
11193 lt_cv_dlopen="dlopen"
11195 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 ac_check_lib_save_LIBS=$LIBS
11202 cat >conftest.$ac_ext <<_ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11209 /* Override any gcc2 internal prototype to avoid an error. */
11213 /* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>conftest.er1
11228 grep -v '^ *+' conftest.er1 >conftest.err
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag"
11234 || test ! -s conftest.err'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_lib_dl_dlopen=yes
11248 echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11251 ac_cv_lib_dl_dlopen=no
11253 rm -f conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_lib_save_LIBS
11257 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11258 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11259 if test $ac_cv_lib_dl_dlopen = yes; then
11260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11262 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11263 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11264 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 ac_check_lib_save_LIBS=$LIBS
11268 LIBS="-lsvld $LIBS"
11269 cat >conftest.$ac_ext <<_ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11276 /* Override any gcc2 internal prototype to avoid an error. */
11280 /* We use char because int might match the return type of a gcc2
11281 builtin and then its argument prototype would still apply. */
11291 rm -f conftest.$ac_objext conftest$ac_exeext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>conftest.er1
11295 grep -v '^ *+' conftest.er1 >conftest.err
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -z "$ac_c_werror_flag"
11301 || test ! -s conftest.err'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_lib_svld_dlopen=yes
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_cv_lib_svld_dlopen=no
11320 rm -f conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11324 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11325 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11326 if test $ac_cv_lib_svld_dlopen = yes; then
11327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11329 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11330 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11331 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 ac_check_lib_save_LIBS=$LIBS
11336 cat >conftest.$ac_ext <<_ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11343 /* Override any gcc2 internal prototype to avoid an error. */
11347 /* We use char because int might match the return type of a gcc2
11348 builtin and then its argument prototype would still apply. */
11358 rm -f conftest.$ac_objext conftest$ac_exeext
11359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360 (eval $ac_link) 2>conftest.er1
11362 grep -v '^ *+' conftest.er1 >conftest.err
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } &&
11367 { ac_try='test -z "$ac_c_werror_flag"
11368 || test ! -s conftest.err'
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; } &&
11374 { ac_try='test -s conftest$ac_exeext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 ac_cv_lib_dld_dld_link=yes
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_cv_lib_dld_dld_link=no
11387 rm -f conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11391 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11392 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11393 if test $ac_cv_lib_dld_dld_link = yes; then
11394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11415 if test "x$lt_cv_dlopen" != xno; then
11421 case $lt_cv_dlopen in
11423 save_CPPFLAGS="$CPPFLAGS"
11424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11426 save_LDFLAGS="$LDFLAGS"
11427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11430 LIBS="$lt_cv_dlopen_libs $LIBS"
11432 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11433 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11434 if test "${lt_cv_dlopen_self+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 if test "$cross_compiling" = yes; then :
11438 lt_cv_dlopen_self=cross
11440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11441 lt_status=$lt_dlunknown
11442 cat > conftest.$ac_ext <<_LT_EOF
11443 #line 11443 "configure"
11444 #include "confdefs.h"
11453 # define LT_DLGLOBAL RTLD_GLOBAL
11456 # define LT_DLGLOBAL DL_GLOBAL
11458 # define LT_DLGLOBAL 0
11462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11463 find out it does not work in some platform. */
11464 #ifndef LT_DLLAZY_OR_NOW
11466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11469 # define LT_DLLAZY_OR_NOW DL_LAZY
11472 # define LT_DLLAZY_OR_NOW RTLD_NOW
11475 # define LT_DLLAZY_OR_NOW DL_NOW
11477 # define LT_DLLAZY_OR_NOW 0
11484 void fnord() { int i=42;}
11487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11488 int status = $lt_dlunknown;
11492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11494 /* dlclose (self); */
11502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11503 (eval $ac_link) 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11507 (./conftest; exit; ) >&5 2>/dev/null
11509 case x$lt_status in
11510 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11511 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11512 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11515 # compilation failed
11516 lt_cv_dlopen_self=no
11523 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11524 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11526 if test "x$lt_cv_dlopen_self" = xyes; then
11527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11528 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11529 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11530 if test "${lt_cv_dlopen_self_static+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 if test "$cross_compiling" = yes; then :
11534 lt_cv_dlopen_self_static=cross
11536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537 lt_status=$lt_dlunknown
11538 cat > conftest.$ac_ext <<_LT_EOF
11539 #line 11539 "configure"
11540 #include "confdefs.h"
11549 # define LT_DLGLOBAL RTLD_GLOBAL
11552 # define LT_DLGLOBAL DL_GLOBAL
11554 # define LT_DLGLOBAL 0
11558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559 find out it does not work in some platform. */
11560 #ifndef LT_DLLAZY_OR_NOW
11562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11565 # define LT_DLLAZY_OR_NOW DL_LAZY
11568 # define LT_DLLAZY_OR_NOW RTLD_NOW
11571 # define LT_DLLAZY_OR_NOW DL_NOW
11573 # define LT_DLLAZY_OR_NOW 0
11580 void fnord() { int i=42;}
11583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11584 int status = $lt_dlunknown;
11588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11589 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11590 /* dlclose (self); */
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599 (eval $ac_link) 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11603 (./conftest; exit; ) >&5 2>/dev/null
11605 case x$lt_status in
11606 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11607 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11608 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11611 # compilation failed
11612 lt_cv_dlopen_self_static=no
11619 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11620 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11623 CPPFLAGS="$save_CPPFLAGS"
11624 LDFLAGS="$save_LDFLAGS"
11629 case $lt_cv_dlopen_self in
11630 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11631 *) enable_dlopen_self=unknown ;;
11634 case $lt_cv_dlopen_self_static in
11635 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11636 *) enable_dlopen_self_static=unknown ;;
11658 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11659 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11660 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11661 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11662 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11663 echo "$as_me:$LINENO: result: yes" >&5
11664 echo "${ECHO_T}yes" >&6
11666 # FIXME - insert some real tests, host_os isn't really good enough
11669 if test -n "$STRIP" ; then
11670 striplib="$STRIP -x"
11671 old_striplib="$STRIP -S"
11672 echo "$as_me:$LINENO: result: yes" >&5
11673 echo "${ECHO_T}yes" >&6
11675 echo "$as_me:$LINENO: result: no" >&5
11676 echo "${ECHO_T}no" >&6
11680 echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6
11697 # Report which library types will actually be built
11698 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11699 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11700 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11701 echo "${ECHO_T}$can_build_shared" >&6
11703 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11704 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11705 test "$can_build_shared" = "no" && enable_shared=no
11707 # On AIX, shared libraries and static libraries use the same namespace, and
11708 # are all built from PIC.
11711 test "$enable_shared" = yes && enable_static=no
11712 if test -n "$RANLIB"; then
11713 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11714 postinstall_cmds='$RANLIB $lib'
11719 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11720 test "$enable_shared" = yes && enable_static=no
11724 echo "$as_me:$LINENO: result: $enable_shared" >&5
11725 echo "${ECHO_T}$enable_shared" >&6
11727 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11728 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11729 # Make sure either enable_shared or enable_static is yes.
11730 test "$enable_shared" = yes || enable_static=yes
11731 echo "$as_me:$LINENO: result: $enable_static" >&5
11732 echo "${ECHO_T}$enable_static" >&6
11739 ac_cpp='$CPP $CPPFLAGS'
11740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11758 ac_config_commands="$ac_config_commands libtool"
11763 # Only expand once:
11767 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11768 if test "${enable_64_bit_bfd+set}" = set; then
11769 enableval="$enable_64_bit_bfd"
11770 case "${enableval}" in
11771 yes) want64=true ;;
11772 no) want64=false ;;
11773 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11774 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11775 { (exit 1); exit 1; }; } ;;
11780 # Check whether --enable-targets or --disable-targets was given.
11781 if test "${enable_targets+set}" = set; then
11782 enableval="$enable_targets"
11783 case "${enableval}" in
11784 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11785 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11786 { (exit 1); exit 1; }; }
11788 no) enable_targets= ;;
11789 *) enable_targets=$enableval ;;
11792 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11793 if test "${enable_commonbfdlib+set}" = set; then
11794 enableval="$enable_commonbfdlib"
11795 case "${enableval}" in
11796 yes) commonbfdlib=true ;;
11797 no) commonbfdlib=false ;;
11798 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11799 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11800 { (exit 1); exit 1; }; } ;;
11804 # Check whether --with-mmap or --without-mmap was given.
11805 if test "${with_mmap+set}" = set; then
11806 withval="$with_mmap"
11807 case "${withval}" in
11808 yes) want_mmap=true ;;
11809 no) want_mmap=false ;;
11810 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11811 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11812 { (exit 1); exit 1; }; } ;;
11817 # Check whether --enable-secureplt or --disable-secureplt was given.
11818 if test "${enable_secureplt+set}" = set; then
11819 enableval="$enable_secureplt"
11820 case "${enableval}" in
11821 yes) use_secureplt=true ;;
11822 no) use_secureplt=false ;;
11823 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11824 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11825 { (exit 1); exit 1; }; } ;;
11828 use_secureplt=false
11829 fi; if test $use_secureplt = true; then
11831 cat >>confdefs.h <<\_ACEOF
11832 #define USE_SECUREPLT 1
11837 DEBUGDIR=${libdir}/debug
11839 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11840 if test "${with_separate_debug_dir+set}" = set; then
11841 withval="$with_separate_debug_dir"
11842 DEBUGDIR="${withval}"
11846 # Check to see if we should allow the generation of
11847 # symbols with the ELF standard's STT_COMMON type.
11848 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11849 if test "${enable_elf_stt_common+set}" = set; then
11850 enableval="$enable_elf_stt_common"
11851 case "${enableval}" in
11852 yes) want_elf_stt_common=true ;;
11853 no) want_elf_stt_common=false ;;
11854 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11855 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11856 { (exit 1); exit 1; }; } ;;
11859 # We have to choose a default behaviour. For native builds we could
11860 # test whether the loader supports the STT_COMMON type, but that would
11861 # mean that built binaries could not be exported to older systems where
11862 # the loader does not support it. So by default we always choose to
11863 # disable this feature.
11864 want_elf_stt_common=false
11865 fi; if test $want_elf_stt_common = true; then
11867 cat >>confdefs.h <<\_ACEOF
11868 #define USE_STT_COMMON 1
11875 # Check whether --with-pkgversion or --without-pkgversion was given.
11876 if test "${with_pkgversion+set}" = set; then
11877 withval="$with_pkgversion"
11879 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11880 echo "$as_me: error: package version not specified" >&2;}
11881 { (exit 1); exit 1; }; } ;;
11883 *) PKGVERSION="($withval) " ;;
11886 PKGVERSION="(GNU Binutils) "
11893 # Check whether --with-bugurl or --without-bugurl was given.
11894 if test "${with_bugurl+set}" = set; then
11895 withval="$with_bugurl"
11897 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11898 echo "$as_me: error: bug URL not specified" >&2;}
11899 { (exit 1); exit 1; }; } ;;
11902 *) BUGURL="$withval"
11906 BUGURL="http://www.sourceware.org/bugzilla/"
11915 REPORT_BUGS_TO="<$BUGURL>"
11916 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11924 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11926 # Check whether --enable-werror or --disable-werror was given.
11927 if test "${enable_werror+set}" = set; then
11928 enableval="$enable_werror"
11929 case "${enableval}" in
11930 yes | y) ERROR_ON_WARNING="yes" ;;
11931 no | n) ERROR_ON_WARNING="no" ;;
11932 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11933 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11934 { (exit 1); exit 1; }; } ;;
11938 # Enable -Wno-format by default when using gcc on mingw
11941 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11942 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11948 # Enable -Werror by default when using gcc
11949 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11950 ERROR_ON_WARNING=yes
11954 if test "${ERROR_ON_WARNING}" = yes ; then
11955 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11956 NO_WERROR="-Wno-error"
11959 if test "${GCC}" = yes ; then
11960 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11963 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11964 if test "${enable_build_warnings+set}" = set; then
11965 enableval="$enable_build_warnings"
11966 case "${enableval}" in
11967 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11968 no) if test "${GCC}" = yes ; then
11971 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11972 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11973 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11974 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11975 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11979 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11980 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11987 ac_config_headers="$ac_config_headers config.h:config.in"
11990 if test -z "$target" ; then
11991 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11992 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11993 { (exit 1); exit 1; }; }
11996 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11997 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11998 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11999 if test "${enable_maintainer_mode+set}" = set; then
12000 enableval="$enable_maintainer_mode"
12001 USE_MAINTAINER_MODE=$enableval
12003 USE_MAINTAINER_MODE=no
12005 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12006 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12009 if test $USE_MAINTAINER_MODE = yes; then
12010 MAINTAINER_MODE_TRUE=
12011 MAINTAINER_MODE_FALSE='#'
12013 MAINTAINER_MODE_TRUE='#'
12014 MAINTAINER_MODE_FALSE=
12017 MAINT=$MAINTAINER_MODE_TRUE
12023 GENINSRC_NEVER_TRUE=
12024 GENINSRC_NEVER_FALSE='#'
12026 GENINSRC_NEVER_TRUE='#'
12027 GENINSRC_NEVER_FALSE=
12030 case ${build_alias} in
12031 "") build_noncanonical=${build} ;;
12032 *) build_noncanonical=${build_alias} ;;
12035 case ${host_alias} in
12036 "") host_noncanonical=${build_noncanonical} ;;
12037 *) host_noncanonical=${host_alias} ;;
12040 case ${target_alias} in
12041 "") target_noncanonical=${host_noncanonical} ;;
12042 *) target_noncanonical=${target_alias} ;;
12045 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12046 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12047 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12048 if test "${enable_install_libbfd+set}" = set; then
12049 enableval="$enable_install_libbfd"
12050 install_libbfd_p=$enableval
12052 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12053 install_libbfd_p=yes
12055 install_libbfd_p=no
12058 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12059 echo "${ECHO_T}$install_libbfd_p" >&6
12062 if test $install_libbfd_p = yes; then
12063 INSTALL_LIBBFD_TRUE=
12064 INSTALL_LIBBFD_FALSE='#'
12066 INSTALL_LIBBFD_TRUE='#'
12067 INSTALL_LIBBFD_FALSE=
12070 # Need _noncanonical variables for this.
12075 # libbfd.a is a host library containing target dependent code
12076 bfdlibdir='$(libdir)'
12077 bfdincludedir='$(includedir)'
12078 if test "${host}" != "${target}"; then
12079 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12080 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12090 bfd_default_target_size=32
12094 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
12095 # If we haven't got the data from the intl directory,
12096 # assume NLS is disabled.
12105 if test -f ../intl/config.intl; then
12106 . ../intl/config.intl
12108 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12109 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12110 if test x"$USE_NLS" != xyes; then
12111 echo "$as_me:$LINENO: result: no" >&5
12112 echo "${ECHO_T}no" >&6
12114 echo "$as_me:$LINENO: result: yes" >&5
12115 echo "${ECHO_T}yes" >&6
12117 cat >>confdefs.h <<\_ACEOF
12118 #define ENABLE_NLS 1
12122 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12123 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12124 # Look for .po and .gmo files in the source directory.
12127 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12128 # If there aren't any .gmo files the shell will give us the
12129 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12131 case "$cat" in *\**)
12134 # The quadruple backslash is collapsed to a double backslash
12135 # by the backticks, then collapsed again by the double quotes,
12136 # leaving us with one backslash in the sed expression (right
12137 # before the dot that mustn't act as a wildcard).
12138 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12139 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12140 # The user is allowed to set LINGUAS to a list of languages to
12141 # install catalogs for. If it's empty that means "all of them."
12142 if test "x$LINGUAS" = x; then
12143 CATALOGS="$CATALOGS $cat"
12144 XLINGUAS="$XLINGUAS $lang"
12146 case "$LINGUAS" in *$lang*)
12147 CATALOGS="$CATALOGS $cat"
12148 XLINGUAS="$XLINGUAS $lang"
12153 LINGUAS="$XLINGUAS"
12154 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12155 echo "${ECHO_T}$LINGUAS" >&6
12169 if test -n "$ac_aux_dir"; then
12170 case "$ac_aux_dir" in
12171 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12172 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12175 if test -z "$MKINSTALLDIRS"; then
12176 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12181 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12182 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12183 # Check whether --enable-nls or --disable-nls was given.
12184 if test "${enable_nls+set}" = set; then
12185 enableval="$enable_nls"
12190 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12191 echo "${ECHO_T}$USE_NLS" >&6
12198 # Prepare PATH_SEPARATOR.
12199 # The user is always right.
12200 if test "${PATH_SEPARATOR+set}" != set; then
12201 echo "#! /bin/sh" >conf$$.sh
12202 echo "exit 0" >>conf$$.sh
12204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12212 # Find out how to test for executable files. Don't use a zero-byte file,
12213 # as systems may use methods other than mode bits to determine executability.
12214 cat >conf$$.file <<_ASEOF
12218 chmod +x conf$$.file
12219 if test -x conf$$.file >/dev/null 2>&1; then
12220 ac_executable_p="test -x"
12222 ac_executable_p="test -f"
12226 # Extract the first word of "msgfmt", so it can be a program name with args.
12227 set dummy msgfmt; ac_word=$2
12228 echo "$as_me:$LINENO: checking for $ac_word" >&5
12229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230 if test "${ac_cv_path_MSGFMT+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12238 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12239 for ac_dir in $PATH; do
12241 test -z "$ac_dir" && ac_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12244 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12245 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12246 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12253 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12257 MSGFMT="$ac_cv_path_MSGFMT"
12258 if test "$MSGFMT" != ":"; then
12259 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12260 echo "${ECHO_T}$MSGFMT" >&6
12262 echo "$as_me:$LINENO: result: no" >&5
12263 echo "${ECHO_T}no" >&6
12266 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12267 set dummy gmsgfmt; ac_word=$2
12268 echo "$as_me:$LINENO: checking for $ac_word" >&5
12269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12270 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12296 GMSGFMT=$ac_cv_path_GMSGFMT
12298 if test -n "$GMSGFMT"; then
12299 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12300 echo "${ECHO_T}$GMSGFMT" >&6
12302 echo "$as_me:$LINENO: result: no" >&5
12303 echo "${ECHO_T}no" >&6
12308 # Prepare PATH_SEPARATOR.
12309 # The user is always right.
12310 if test "${PATH_SEPARATOR+set}" != set; then
12311 echo "#! /bin/sh" >conf$$.sh
12312 echo "exit 0" >>conf$$.sh
12314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12322 # Find out how to test for executable files. Don't use a zero-byte file,
12323 # as systems may use methods other than mode bits to determine executability.
12324 cat >conf$$.file <<_ASEOF
12328 chmod +x conf$$.file
12329 if test -x conf$$.file >/dev/null 2>&1; then
12330 ac_executable_p="test -x"
12332 ac_executable_p="test -f"
12336 # Extract the first word of "xgettext", so it can be a program name with args.
12337 set dummy xgettext; ac_word=$2
12338 echo "$as_me:$LINENO: checking for $ac_word" >&5
12339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12340 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 case "$XGETTEXT" in
12345 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12348 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12349 for ac_dir in $PATH; do
12351 test -z "$ac_dir" && ac_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12354 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12355 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12356 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12363 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12367 XGETTEXT="$ac_cv_path_XGETTEXT"
12368 if test "$XGETTEXT" != ":"; then
12369 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12370 echo "${ECHO_T}$XGETTEXT" >&6
12372 echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6
12379 # Prepare PATH_SEPARATOR.
12380 # The user is always right.
12381 if test "${PATH_SEPARATOR+set}" != set; then
12382 echo "#! /bin/sh" >conf$$.sh
12383 echo "exit 0" >>conf$$.sh
12385 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12393 # Find out how to test for executable files. Don't use a zero-byte file,
12394 # as systems may use methods other than mode bits to determine executability.
12395 cat >conf$$.file <<_ASEOF
12399 chmod +x conf$$.file
12400 if test -x conf$$.file >/dev/null 2>&1; then
12401 ac_executable_p="test -x"
12403 ac_executable_p="test -f"
12407 # Extract the first word of "msgmerge", so it can be a program name with args.
12408 set dummy msgmerge; ac_word=$2
12409 echo "$as_me:$LINENO: checking for $ac_word" >&5
12410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12411 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 case "$MSGMERGE" in
12416 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12419 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12420 for ac_dir in $PATH; do
12422 test -z "$ac_dir" && ac_dir=.
12423 for ac_exec_ext in '' $ac_executable_extensions; do
12424 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12425 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12426 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12433 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12437 MSGMERGE="$ac_cv_path_MSGMERGE"
12438 if test "$MSGMERGE" != ":"; then
12439 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12440 echo "${ECHO_T}$MSGMERGE" >&6
12442 echo "$as_me:$LINENO: result: no" >&5
12443 echo "${ECHO_T}no" >&6
12447 if test "$GMSGFMT" != ":"; then
12448 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12449 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12452 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12453 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12454 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12459 if test "$XGETTEXT" != ":"; then
12460 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12461 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12464 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12465 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12471 ac_config_commands="$ac_config_commands default-1"
12475 # Permit host specific settings.
12476 . ${srcdir}/configure.host
12479 # Find a good install program. We prefer a C program (faster),
12480 # so one script is as good as another. But avoid the broken or
12481 # incompatible versions:
12482 # SysV /etc/install, /usr/sbin/install
12483 # SunOS /usr/etc/install
12484 # IRIX /sbin/install
12486 # AmigaOS /C/install, which installs bootblocks on floppy discs
12487 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12488 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12489 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12490 # OS/2's system install, which has a completely different semantic
12491 # ./install, which can be erroneously created by make from ./install.sh.
12492 # Reject install programs that cannot install multiple files.
12493 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12494 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12495 if test -z "$INSTALL"; then
12496 if test "${ac_cv_path_install+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12503 test -z "$as_dir" && as_dir=.
12504 # Account for people who put trailing slashes in PATH elements.
12506 ./ | .// | /cC/* | \
12507 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12508 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12511 # OSF1 and SCO ODT 3.0 have their own names for install.
12512 # Don't use installbsd from OSF since it installs stuff as root
12514 for ac_prog in ginstall scoinst install; do
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12517 if test $ac_prog = install &&
12518 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12519 # AIX install. It has an incompatible calling convention.
12521 elif test $ac_prog = install &&
12522 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12523 # program-specific install script used by HP pwplus--don't use.
12526 rm -rf conftest.one conftest.two conftest.dir
12527 echo one > conftest.one
12528 echo two > conftest.two
12530 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12531 test -s conftest.one && test -s conftest.two &&
12532 test -s conftest.dir/conftest.one &&
12533 test -s conftest.dir/conftest.two
12535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12546 rm -rf conftest.one conftest.two conftest.dir
12549 if test "${ac_cv_path_install+set}" = set; then
12550 INSTALL=$ac_cv_path_install
12552 # As a last resort, use the slow shell script. Don't cache a
12553 # value for INSTALL within a source directory, because that will
12554 # break other packages using the cache if that directory is
12555 # removed, or if the value is a relative name.
12556 INSTALL=$ac_install_sh
12559 echo "$as_me:$LINENO: result: $INSTALL" >&5
12560 echo "${ECHO_T}$INSTALL" >&6
12562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12563 # It thinks the first close brace ends the variable substitution.
12564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12571 BFD_HOST_64BIT_LONG=0
12572 BFD_HOST_64BIT_LONG_LONG=0
12573 BFD_HOST_64_BIT_DEFINED=0
12576 BFD_HOSTPTR_T="unsigned long"
12578 echo "$as_me:$LINENO: checking for long long" >&5
12579 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12580 if test "${ac_cv_type_long_long+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 $ac_includes_default
12593 if ((long long *) 0)
12595 if (sizeof (long long))
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12605 grep -v '^ *+' conftest.er1 >conftest.err
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 ac_cv_type_long_long=yes
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ac_cv_type_long_long=no
12630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12633 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12635 echo "$as_me:$LINENO: checking size of long long" >&5
12636 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12637 if test "${ac_cv_sizeof_long_long+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 if test "$ac_cv_type_long_long" = yes; then
12641 # The cast to unsigned long works around a bug in the HP C Compiler
12642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12644 # This bug is HP SR number 8606223364.
12645 if test "$cross_compiling" = yes; then
12646 # Depending upon the size, compute the lo and hi bounds.
12647 cat >conftest.$ac_ext <<_ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 $ac_includes_default
12657 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12664 rm -f conftest.$ac_objext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12666 (eval $ac_compile) 2>conftest.er1
12668 grep -v '^ *+' conftest.er1 >conftest.err
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
12673 { ac_try='test -z "$ac_c_werror_flag"
12674 || test ! -s conftest.err'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest.$ac_objext'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12688 cat >conftest.$ac_ext <<_ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12694 $ac_includes_default
12698 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12705 rm -f conftest.$ac_objext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>conftest.er1
12709 grep -v '^ *+' conftest.er1 >conftest.err
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
12714 { ac_try='test -z "$ac_c_werror_flag"
12715 || test ! -s conftest.err'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest.$ac_objext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 ac_hi=$ac_mid; break
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 ac_lo=`expr $ac_mid + 1`
12733 if test $ac_lo -le $ac_mid; then
12737 ac_mid=`expr 2 '*' $ac_mid + 1`
12739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 cat >conftest.$ac_ext <<_ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12755 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>conftest.er1
12766 grep -v '^ *+' conftest.er1 >conftest.err
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -z "$ac_c_werror_flag"
12772 || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12786 cat >conftest.$ac_ext <<_ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 $ac_includes_default
12796 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12803 rm -f conftest.$ac_objext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest.$ac_objext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_lo=$ac_mid; break
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_hi=`expr '(' $ac_mid ')' - 1`
12831 if test $ac_mid -le $ac_hi; then
12835 ac_mid=`expr 2 '*' $ac_mid`
12837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12848 # Binary search between lo and hi bounds.
12849 while test "x$ac_lo" != "x$ac_hi"; do
12850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12851 cat >conftest.$ac_ext <<_ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857 $ac_includes_default
12861 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12868 rm -f conftest.$ac_objext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>conftest.er1
12872 grep -v '^ *+' conftest.er1 >conftest.err
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -z "$ac_c_werror_flag"
12878 || test ! -s conftest.err'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 ac_lo=`expr '(' $ac_mid ')' + 1`
12897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12900 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12901 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12902 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12903 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12904 See \`config.log' for more details." >&5
12905 echo "$as_me: error: cannot compute sizeof (long long), 77
12906 See \`config.log' for more details." >&2;}
12907 { (exit 1); exit 1; }; }; } ;;
12910 if test "$cross_compiling" = yes; then
12911 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12912 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12913 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12914 See \`config.log' for more details." >&5
12915 echo "$as_me: error: cannot run test program while cross compiling
12916 See \`config.log' for more details." >&2;}
12917 { (exit 1); exit 1; }; }; }
12919 cat >conftest.$ac_ext <<_ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 $ac_includes_default
12926 long longval () { return (long) (sizeof (long long)); }
12927 unsigned long ulongval () { return (long) (sizeof (long long)); }
12929 #include <stdlib.h>
12934 FILE *f = fopen ("conftest.val", "w");
12937 if (((long) (sizeof (long long))) < 0)
12939 long i = longval ();
12940 if (i != ((long) (sizeof (long long))))
12942 fprintf (f, "%ld\n", i);
12946 unsigned long i = ulongval ();
12947 if (i != ((long) (sizeof (long long))))
12949 fprintf (f, "%lu\n", i);
12951 exit (ferror (f) || fclose (f) != 0);
12957 rm -f conftest$ac_exeext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12959 (eval $ac_link) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 ac_cv_sizeof_long_long=`cat conftest.val`
12970 echo "$as_me: program exited with status $ac_status" >&5
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12974 ( exit $ac_status )
12975 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12976 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12977 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12978 See \`config.log' for more details." >&5
12979 echo "$as_me: error: cannot compute sizeof (long long), 77
12980 See \`config.log' for more details." >&2;}
12981 { (exit 1); exit 1; }; }; }
12983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12988 ac_cv_sizeof_long_long=0
12991 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12992 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12993 cat >>confdefs.h <<_ACEOF
12994 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12998 echo "$as_me:$LINENO: checking for void *" >&5
12999 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13000 if test "${ac_cv_type_void_p+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 $ac_includes_default
13015 if (sizeof (void *))
13021 rm -f conftest.$ac_objext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023 (eval $ac_compile) 2>conftest.er1
13025 grep -v '^ *+' conftest.er1 >conftest.err
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_type_void_p=yes
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ac_cv_type_void_p=no
13050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13052 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13053 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13055 echo "$as_me:$LINENO: checking size of void *" >&5
13056 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13057 if test "${ac_cv_sizeof_void_p+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 if test "$ac_cv_type_void_p" = yes; then
13061 # The cast to unsigned long works around a bug in the HP C Compiler
13062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13064 # This bug is HP SR number 8606223364.
13065 if test "$cross_compiling" = yes; then
13066 # Depending upon the size, compute the lo and hi bounds.
13067 cat >conftest.$ac_ext <<_ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 $ac_includes_default
13077 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13084 rm -f conftest.$ac_objext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086 (eval $ac_compile) 2>conftest.er1
13088 grep -v '^ *+' conftest.er1 >conftest.err
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -z "$ac_c_werror_flag"
13094 || test ! -s conftest.err'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest.$ac_objext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13108 cat >conftest.$ac_ext <<_ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13114 $ac_includes_default
13118 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13125 rm -f conftest.$ac_objext
13126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127 (eval $ac_compile) 2>conftest.er1
13129 grep -v '^ *+' conftest.er1 >conftest.err
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag"
13135 || test ! -s conftest.err'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest.$ac_objext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_hi=$ac_mid; break
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_lo=`expr $ac_mid + 1`
13153 if test $ac_lo -le $ac_mid; then
13157 ac_mid=`expr 2 '*' $ac_mid + 1`
13159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 cat >conftest.$ac_ext <<_ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 $ac_includes_default
13175 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13182 rm -f conftest.$ac_objext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13186 grep -v '^ *+' conftest.er1 >conftest.err
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_c_werror_flag"
13192 || test ! -s conftest.err'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13206 cat >conftest.$ac_ext <<_ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212 $ac_includes_default
13216 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13223 rm -f conftest.$ac_objext
13224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>conftest.er1
13227 grep -v '^ *+' conftest.er1 >conftest.err
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
13232 { ac_try='test -z "$ac_c_werror_flag"
13233 || test ! -s conftest.err'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 ac_lo=$ac_mid; break
13247 echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13250 ac_hi=`expr '(' $ac_mid ')' - 1`
13251 if test $ac_mid -le $ac_hi; then
13255 ac_mid=`expr 2 '*' $ac_mid`
13257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268 # Binary search between lo and hi bounds.
13269 while test "x$ac_lo" != "x$ac_hi"; do
13270 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 $ac_includes_default
13281 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290 (eval $ac_compile) 2>conftest.er1
13292 grep -v '^ *+' conftest.er1 >conftest.err
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } &&
13297 { ac_try='test -z "$ac_c_werror_flag"
13298 || test ! -s conftest.err'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest.$ac_objext'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 ac_lo=`expr '(' $ac_mid ')' + 1`
13317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13320 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13321 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13322 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13323 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13324 See \`config.log' for more details." >&5
13325 echo "$as_me: error: cannot compute sizeof (void *), 77
13326 See \`config.log' for more details." >&2;}
13327 { (exit 1); exit 1; }; }; } ;;
13330 if test "$cross_compiling" = yes; then
13331 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13332 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13333 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13334 See \`config.log' for more details." >&5
13335 echo "$as_me: error: cannot run test program while cross compiling
13336 See \`config.log' for more details." >&2;}
13337 { (exit 1); exit 1; }; }; }
13339 cat >conftest.$ac_ext <<_ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13345 $ac_includes_default
13346 long longval () { return (long) (sizeof (void *)); }
13347 unsigned long ulongval () { return (long) (sizeof (void *)); }
13349 #include <stdlib.h>
13354 FILE *f = fopen ("conftest.val", "w");
13357 if (((long) (sizeof (void *))) < 0)
13359 long i = longval ();
13360 if (i != ((long) (sizeof (void *))))
13362 fprintf (f, "%ld\n", i);
13366 unsigned long i = ulongval ();
13367 if (i != ((long) (sizeof (void *))))
13369 fprintf (f, "%lu\n", i);
13371 exit (ferror (f) || fclose (f) != 0);
13377 rm -f conftest$ac_exeext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379 (eval $ac_link) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_sizeof_void_p=`cat conftest.val`
13390 echo "$as_me: program exited with status $ac_status" >&5
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ( exit $ac_status )
13395 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13396 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13398 See \`config.log' for more details." >&5
13399 echo "$as_me: error: cannot compute sizeof (void *), 77
13400 See \`config.log' for more details." >&2;}
13401 { (exit 1); exit 1; }; }; }
13403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13408 ac_cv_sizeof_void_p=0
13411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13412 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13413 cat >>confdefs.h <<_ACEOF
13414 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13418 echo "$as_me:$LINENO: checking for long" >&5
13419 echo $ECHO_N "checking for long... $ECHO_C" >&6
13420 if test "${ac_cv_type_long+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 $ac_includes_default
13441 rm -f conftest.$ac_objext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>conftest.er1
13445 grep -v '^ *+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
13450 { ac_try='test -z "$ac_c_werror_flag"
13451 || test ! -s conftest.err'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest.$ac_objext'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 ac_cv_type_long=yes
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13472 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13473 echo "${ECHO_T}$ac_cv_type_long" >&6
13475 echo "$as_me:$LINENO: checking size of long" >&5
13476 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13477 if test "${ac_cv_sizeof_long+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 if test "$ac_cv_type_long" = yes; then
13481 # The cast to unsigned long works around a bug in the HP C Compiler
13482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13484 # This bug is HP SR number 8606223364.
13485 if test "$cross_compiling" = yes; then
13486 # Depending upon the size, compute the lo and hi bounds.
13487 cat >conftest.$ac_ext <<_ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13493 $ac_includes_default
13497 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13504 rm -f conftest.$ac_objext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>conftest.er1
13508 grep -v '^ *+' conftest.er1 >conftest.err
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
13513 { ac_try='test -z "$ac_c_werror_flag"
13514 || test ! -s conftest.err'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest.$ac_objext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13528 cat >conftest.$ac_ext <<_ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13534 $ac_includes_default
13538 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13545 rm -f conftest.$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -z "$ac_c_werror_flag"
13555 || test ! -s conftest.err'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest.$ac_objext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_hi=$ac_mid; break
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13572 ac_lo=`expr $ac_mid + 1`
13573 if test $ac_lo -le $ac_mid; then
13577 ac_mid=`expr 2 '*' $ac_mid + 1`
13579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13585 cat >conftest.$ac_ext <<_ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 $ac_includes_default
13595 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
13606 grep -v '^ *+' conftest.er1 >conftest.err
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13626 cat >conftest.$ac_ext <<_ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632 $ac_includes_default
13636 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13643 rm -f conftest.$ac_objext
13644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>conftest.er1
13647 grep -v '^ *+' conftest.er1 >conftest.err
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag"
13653 || test ! -s conftest.err'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_lo=$ac_mid; break
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ac_hi=`expr '(' $ac_mid ')' - 1`
13671 if test $ac_mid -le $ac_hi; then
13675 ac_mid=`expr 2 '*' $ac_mid`
13677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13688 # Binary search between lo and hi bounds.
13689 while test "x$ac_lo" != "x$ac_hi"; do
13690 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13691 cat >conftest.$ac_ext <<_ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697 $ac_includes_default
13701 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13708 rm -f conftest.$ac_objext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710 (eval $ac_compile) 2>conftest.er1
13712 grep -v '^ *+' conftest.er1 >conftest.err
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
13717 { ac_try='test -z "$ac_c_werror_flag"
13718 || test ! -s conftest.err'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13735 ac_lo=`expr '(' $ac_mid ')' + 1`
13737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13740 ?*) ac_cv_sizeof_long=$ac_lo;;
13741 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13742 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13744 See \`config.log' for more details." >&5
13745 echo "$as_me: error: cannot compute sizeof (long), 77
13746 See \`config.log' for more details." >&2;}
13747 { (exit 1); exit 1; }; }; } ;;
13750 if test "$cross_compiling" = yes; then
13751 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13752 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13753 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13754 See \`config.log' for more details." >&5
13755 echo "$as_me: error: cannot run test program while cross compiling
13756 See \`config.log' for more details." >&2;}
13757 { (exit 1); exit 1; }; }; }
13759 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 $ac_includes_default
13766 long longval () { return (long) (sizeof (long)); }
13767 unsigned long ulongval () { return (long) (sizeof (long)); }
13769 #include <stdlib.h>
13774 FILE *f = fopen ("conftest.val", "w");
13777 if (((long) (sizeof (long))) < 0)
13779 long i = longval ();
13780 if (i != ((long) (sizeof (long))))
13782 fprintf (f, "%ld\n", i);
13786 unsigned long i = ulongval ();
13787 if (i != ((long) (sizeof (long))))
13789 fprintf (f, "%lu\n", i);
13791 exit (ferror (f) || fclose (f) != 0);
13797 rm -f conftest$ac_exeext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_cv_sizeof_long=`cat conftest.val`
13810 echo "$as_me: program exited with status $ac_status" >&5
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13814 ( exit $ac_status )
13815 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13816 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13818 See \`config.log' for more details." >&5
13819 echo "$as_me: error: cannot compute sizeof (long), 77
13820 See \`config.log' for more details." >&2;}
13821 { (exit 1); exit 1; }; }; }
13823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13828 ac_cv_sizeof_long=0
13831 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13832 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13833 cat >>confdefs.h <<_ACEOF
13834 #define SIZEOF_LONG $ac_cv_sizeof_long
13839 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13843 if test "x${ac_cv_sizeof_long}" = "x8"; then
13844 BFD_HOST_64BIT_LONG=1
13845 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13846 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13847 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13848 BFD_HOST_64BIT_LONG_LONG=1
13849 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13850 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13851 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13852 BFD_HOSTPTR_T="unsigned long long"
13856 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13857 BFD_HOST_64_BIT_DEFINED=1
13858 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13859 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13869 # Put a plausible default for CC_FOR_BUILD in Makefile.
13870 if test -z "$CC_FOR_BUILD"; then
13871 if test "x$cross_compiling" = "xno"; then
13872 CC_FOR_BUILD='$(CC)'
13878 # Also set EXEEXT_FOR_BUILD.
13879 if test "x$cross_compiling" = "xno"; then
13880 EXEEXT_FOR_BUILD='$(EXEEXT)'
13882 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13883 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13884 if test "${bfd_cv_build_exeext+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 echo 'int main () { return 0; }' > conftest.c
13889 bfd_cv_build_exeext=
13890 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13891 for file in conftest.*; do
13893 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13894 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13898 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13900 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13901 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13902 EXEEXT_FOR_BUILD=""
13903 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13914 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
13916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13918 echo "$as_me:$LINENO: checking for $ac_header" >&5
13919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13926 # Is the header compilable?
13927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 $ac_includes_default
13936 #include <$ac_header>
13938 rm -f conftest.$ac_objext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13940 (eval $ac_compile) 2>conftest.er1
13942 grep -v '^ *+' conftest.er1 >conftest.err
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_header_compiler=yes
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13965 ac_header_compiler=no
13967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13969 echo "${ECHO_T}$ac_header_compiler" >&6
13971 # Is the header present?
13972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 #include <$ac_header>
13982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13985 grep -v '^ *+' conftest.er1 >conftest.err
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } >/dev/null; then
13990 if test -s conftest.err; then
13991 ac_cpp_err=$ac_c_preproc_warn_flag
13992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13999 if test -z "$ac_cpp_err"; then
14000 ac_header_preproc=yes
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_header_preproc=no
14007 rm -f conftest.err conftest.$ac_ext
14008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14009 echo "${ECHO_T}$ac_header_preproc" >&6
14011 # So? What about this header?
14012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14018 ac_header_preproc=yes
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14035 ## ------------------------------------------ ##
14036 ## Report this to the AC_PACKAGE_NAME lists. ##
14037 ## ------------------------------------------ ##
14040 sed "s/^/$as_me: WARNING: /" >&2
14043 echo "$as_me:$LINENO: checking for $ac_header" >&5
14044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 eval "$as_ac_Header=\$ac_header_preproc"
14050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14055 cat >>confdefs.h <<_ACEOF
14056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14066 for ac_header in fcntl.h sys/file.h sys/time.h
14068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070 echo "$as_me:$LINENO: checking for $ac_header" >&5
14071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14078 # Is the header compilable?
14079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14081 cat >conftest.$ac_ext <<_ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 $ac_includes_default
14088 #include <$ac_header>
14090 rm -f conftest.$ac_objext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092 (eval $ac_compile) 2>conftest.er1
14094 grep -v '^ *+' conftest.er1 >conftest.err
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
14099 { ac_try='test -z "$ac_c_werror_flag"
14100 || test ! -s conftest.err'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_header_compiler=yes
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 ac_header_compiler=no
14119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14121 echo "${ECHO_T}$ac_header_compiler" >&6
14123 # Is the header present?
14124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14126 cat >conftest.$ac_ext <<_ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 #include <$ac_header>
14134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14137 grep -v '^ *+' conftest.er1 >conftest.err
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } >/dev/null; then
14142 if test -s conftest.err; then
14143 ac_cpp_err=$ac_c_preproc_warn_flag
14144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14151 if test -z "$ac_cpp_err"; then
14152 ac_header_preproc=yes
14154 echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14157 ac_header_preproc=no
14159 rm -f conftest.err conftest.$ac_ext
14160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14161 echo "${ECHO_T}$ac_header_preproc" >&6
14163 # So? What about this header?
14164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14170 ac_header_preproc=yes
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14187 ## ------------------------------------------ ##
14188 ## Report this to the AC_PACKAGE_NAME lists. ##
14189 ## ------------------------------------------ ##
14192 sed "s/^/$as_me: WARNING: /" >&2
14195 echo "$as_me:$LINENO: checking for $ac_header" >&5
14196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 eval "$as_ac_Header=\$ac_header_preproc"
14202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14207 cat >>confdefs.h <<_ACEOF
14208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14217 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14219 acx_cv_header_stdint=stddef.h
14220 acx_cv_header_stdint_kind="(already complete)"
14221 for i in stdint.h $inttype_headers; do
14222 unset ac_cv_type_uintptr_t
14223 unset ac_cv_type_uintmax_t
14224 unset ac_cv_type_int_least32_t
14225 unset ac_cv_type_int_fast32_t
14226 unset ac_cv_type_uint64_t
14227 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14228 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14229 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14230 if test "${ac_cv_type_uintmax_t+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 #include <sys/types.h>
14245 if ((uintmax_t *) 0)
14247 if (sizeof (uintmax_t))
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_type_uintmax_t=yes
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_cv_type_uintmax_t=no
14282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14284 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14285 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14286 if test $ac_cv_type_uintmax_t = yes; then
14287 acx_cv_header_stdint=$i
14292 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14293 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14294 if test "${ac_cv_type_uintptr_t+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 cat >conftest.$ac_ext <<_ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 #include <sys/types.h>
14309 if ((uintptr_t *) 0)
14311 if (sizeof (uintptr_t))
14317 rm -f conftest.$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14321 grep -v '^ *+' conftest.er1 >conftest.err
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_type_uintptr_t=yes
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 ac_cv_type_uintptr_t=no
14346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14348 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14349 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14350 if test $ac_cv_type_uintptr_t = yes; then
14353 acx_cv_header_stdint_kind="(mostly complete)"
14356 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14357 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14358 if test "${ac_cv_type_int_least32_t+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 cat >conftest.$ac_ext <<_ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 #include <sys/types.h>
14373 if ((int_least32_t *) 0)
14375 if (sizeof (int_least32_t))
14381 rm -f conftest.$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383 (eval $ac_compile) 2>conftest.er1
14385 grep -v '^ *+' conftest.er1 >conftest.err
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -z "$ac_c_werror_flag"
14391 || test ! -s conftest.err'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest.$ac_objext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_type_int_least32_t=yes
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_type_int_least32_t=no
14410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14412 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14413 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14414 if test $ac_cv_type_int_least32_t = yes; then
14417 acx_cv_header_stdint_kind="(mostly complete)"
14420 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14421 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14422 if test "${ac_cv_type_int_fast32_t+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 #include <sys/types.h>
14437 if ((int_fast32_t *) 0)
14439 if (sizeof (int_fast32_t))
14445 rm -f conftest.$ac_objext
14446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>conftest.er1
14449 grep -v '^ *+' conftest.er1 >conftest.err
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_c_werror_flag"
14455 || test ! -s conftest.err'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest.$ac_objext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 ac_cv_type_int_fast32_t=yes
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 ac_cv_type_int_fast32_t=no
14474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14476 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14477 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14478 if test $ac_cv_type_int_fast32_t = yes; then
14481 acx_cv_header_stdint_kind="(mostly complete)"
14484 echo "$as_me:$LINENO: checking for uint64_t" >&5
14485 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14486 if test "${ac_cv_type_uint64_t+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 cat >conftest.$ac_ext <<_ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 #include <sys/types.h>
14501 if ((uint64_t *) 0)
14503 if (sizeof (uint64_t))
14509 rm -f conftest.$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>conftest.er1
14513 grep -v '^ *+' conftest.er1 >conftest.err
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_c_werror_flag"
14519 || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest.$ac_objext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_cv_type_uint64_t=yes
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 ac_cv_type_uint64_t=no
14538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14540 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14541 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14542 if test $ac_cv_type_uint64_t = yes; then
14545 acx_cv_header_stdint_kind="(lacks uint64_t)"
14550 if test "$acx_cv_header_stdint" = stddef.h; then
14551 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14552 for i in stdint.h $inttype_headers; do
14553 unset ac_cv_type_uintptr_t
14554 unset ac_cv_type_uint32_t
14555 unset ac_cv_type_uint64_t
14556 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14557 echo "$as_me:$LINENO: checking for uint32_t" >&5
14558 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14559 if test "${ac_cv_type_uint32_t+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #include <sys/types.h>
14574 if ((uint32_t *) 0)
14576 if (sizeof (uint32_t))
14582 rm -f conftest.$ac_objext
14583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584 (eval $ac_compile) 2>conftest.er1
14586 grep -v '^ *+' conftest.er1 >conftest.err
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -z "$ac_c_werror_flag"
14592 || test ! -s conftest.err'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_cv_type_uint32_t=yes
14606 echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14609 ac_cv_type_uint32_t=no
14611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14613 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14614 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14615 if test $ac_cv_type_uint32_t = yes; then
14616 acx_cv_header_stdint=$i
14621 echo "$as_me:$LINENO: checking for uint64_t" >&5
14622 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14623 if test "${ac_cv_type_uint64_t+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 cat >conftest.$ac_ext <<_ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14632 #include <sys/types.h>
14638 if ((uint64_t *) 0)
14640 if (sizeof (uint64_t))
14646 rm -f conftest.$ac_objext
14647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14648 (eval $ac_compile) 2>conftest.er1
14650 grep -v '^ *+' conftest.er1 >conftest.err
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -z "$ac_c_werror_flag"
14656 || test ! -s conftest.err'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_cv_type_uint64_t=yes
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 ac_cv_type_uint64_t=no
14675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14677 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14678 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14680 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14681 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14682 if test "${ac_cv_type_uintptr_t+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 cat >conftest.$ac_ext <<_ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 #include <sys/types.h>
14697 if ((uintptr_t *) 0)
14699 if (sizeof (uintptr_t))
14705 rm -f conftest.$ac_objext
14706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14707 (eval $ac_compile) 2>conftest.er1
14709 grep -v '^ *+' conftest.er1 >conftest.err
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
14714 { ac_try='test -z "$ac_c_werror_flag"
14715 || test ! -s conftest.err'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 ac_cv_type_uintptr_t=yes
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_cv_type_uintptr_t=no
14734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14736 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14737 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14742 if test "$acx_cv_header_stdint" = stddef.h; then
14743 acx_cv_header_stdint_kind="(u_intXX_t style)"
14744 for i in sys/types.h $inttype_headers; do
14745 unset ac_cv_type_u_int32_t
14746 unset ac_cv_type_u_int64_t
14747 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14748 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14749 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14750 if test "${ac_cv_type_u_int32_t+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 cat >conftest.$ac_ext <<_ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 #include <sys/types.h>
14765 if ((u_int32_t *) 0)
14767 if (sizeof (u_int32_t))
14773 rm -f conftest.$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>conftest.er1
14777 grep -v '^ *+' conftest.er1 >conftest.err
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try='test -z "$ac_c_werror_flag"
14783 || test ! -s conftest.err'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_cv_type_u_int32_t=yes
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 ac_cv_type_u_int32_t=no
14802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14804 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14805 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14806 if test $ac_cv_type_u_int32_t = yes; then
14807 acx_cv_header_stdint=$i
14812 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14813 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14814 if test "${ac_cv_type_u_int64_t+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 cat >conftest.$ac_ext <<_ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 #include <sys/types.h>
14829 if ((u_int64_t *) 0)
14831 if (sizeof (u_int64_t))
14837 rm -f conftest.$ac_objext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839 (eval $ac_compile) 2>conftest.er1
14841 grep -v '^ *+' conftest.er1 >conftest.err
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } &&
14846 { ac_try='test -z "$ac_c_werror_flag"
14847 || test ! -s conftest.err'
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 ac_cv_type_u_int64_t=yes
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14864 ac_cv_type_u_int64_t=no
14866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14868 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14869 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14874 if test "$acx_cv_header_stdint" = stddef.h; then
14875 acx_cv_header_stdint_kind="(using manual detection)"
14878 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14879 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14880 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14881 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14882 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14884 # ----------------- Summarize what we found so far
14886 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14887 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14889 case `$as_basename bfd_stdint.h ||
14890 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14891 Xbfd_stdint.h : 'X\(//\)$' \| \
14892 Xbfd_stdint.h : 'X\(/\)$' \| \
14893 . : '\(.\)' 2>/dev/null ||
14894 echo X/bfd_stdint.h |
14895 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14896 /^X\/\(\/\/\)$/{ s//\1/; q; }
14897 /^X\/\(\/\).*/{ s//\1/; q; }
14899 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14900 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14901 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14902 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14906 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14907 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14909 # ----------------- done included file, check C basic types --------
14911 # Lacking an uintptr_t? Test size of void *
14912 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14913 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14914 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14915 if test "${ac_cv_type_void_p+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 cat >conftest.$ac_ext <<_ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 $ac_includes_default
14930 if (sizeof (void *))
14936 rm -f conftest.$ac_objext
14937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938 (eval $ac_compile) 2>conftest.er1
14940 grep -v '^ *+' conftest.er1 >conftest.err
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
14945 { ac_try='test -z "$ac_c_werror_flag"
14946 || test ! -s conftest.err'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; } &&
14952 { ac_try='test -s conftest.$ac_objext'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_cv_type_void_p=yes
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 ac_cv_type_void_p=no
14965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14967 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14968 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14970 echo "$as_me:$LINENO: checking size of void *" >&5
14971 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14972 if test "${ac_cv_sizeof_void_p+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 if test "$ac_cv_type_void_p" = yes; then
14976 # The cast to unsigned long works around a bug in the HP C Compiler
14977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14979 # This bug is HP SR number 8606223364.
14980 if test "$cross_compiling" = yes; then
14981 # Depending upon the size, compute the lo and hi bounds.
14982 cat >conftest.$ac_ext <<_ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 $ac_includes_default
14992 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14999 rm -f conftest.$ac_objext
15000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001 (eval $ac_compile) 2>conftest.er1
15003 grep -v '^ *+' conftest.er1 >conftest.err
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
15008 { ac_try='test -z "$ac_c_werror_flag"
15009 || test ! -s conftest.err'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15023 cat >conftest.$ac_ext <<_ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $ac_includes_default
15033 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15044 grep -v '^ *+' conftest.er1 >conftest.err
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_hi=$ac_mid; break
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_lo=`expr $ac_mid + 1`
15068 if test $ac_lo -le $ac_mid; then
15072 ac_mid=`expr 2 '*' $ac_mid + 1`
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 $ac_includes_default
15090 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15097 rm -f conftest.$ac_objext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>conftest.er1
15101 grep -v '^ *+' conftest.er1 >conftest.err
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -z "$ac_c_werror_flag"
15107 || test ! -s conftest.err'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try='test -s conftest.$ac_objext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15121 cat >conftest.$ac_ext <<_ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127 $ac_includes_default
15131 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15138 rm -f conftest.$ac_objext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15140 (eval $ac_compile) 2>conftest.er1
15142 grep -v '^ *+' conftest.er1 >conftest.err
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag"
15148 || test ! -s conftest.err'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_lo=$ac_mid; break
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_hi=`expr '(' $ac_mid ')' - 1`
15166 if test $ac_mid -le $ac_hi; then
15170 ac_mid=`expr 2 '*' $ac_mid`
15172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15183 # Binary search between lo and hi bounds.
15184 while test "x$ac_lo" != "x$ac_hi"; do
15185 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 $ac_includes_default
15196 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15203 rm -f conftest.$ac_objext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205 (eval $ac_compile) 2>conftest.er1
15207 grep -v '^ *+' conftest.er1 >conftest.err
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
15212 { ac_try='test -z "$ac_c_werror_flag"
15213 || test ! -s conftest.err'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; } &&
15219 { ac_try='test -s conftest.$ac_objext'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 ac_lo=`expr '(' $ac_mid ')' + 1`
15232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15235 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15236 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15237 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15239 See \`config.log' for more details." >&5
15240 echo "$as_me: error: cannot compute sizeof (void *), 77
15241 See \`config.log' for more details." >&2;}
15242 { (exit 1); exit 1; }; }; } ;;
15245 if test "$cross_compiling" = yes; then
15246 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15247 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15248 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15249 See \`config.log' for more details." >&5
15250 echo "$as_me: error: cannot run test program while cross compiling
15251 See \`config.log' for more details." >&2;}
15252 { (exit 1); exit 1; }; }; }
15254 cat >conftest.$ac_ext <<_ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260 $ac_includes_default
15261 long longval () { return (long) (sizeof (void *)); }
15262 unsigned long ulongval () { return (long) (sizeof (void *)); }
15264 #include <stdlib.h>
15269 FILE *f = fopen ("conftest.val", "w");
15272 if (((long) (sizeof (void *))) < 0)
15274 long i = longval ();
15275 if (i != ((long) (sizeof (void *))))
15277 fprintf (f, "%ld\n", i);
15281 unsigned long i = ulongval ();
15282 if (i != ((long) (sizeof (void *))))
15284 fprintf (f, "%lu\n", i);
15286 exit (ferror (f) || fclose (f) != 0);
15292 rm -f conftest$ac_exeext
15293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15294 (eval $ac_link) 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 ac_cv_sizeof_void_p=`cat conftest.val`
15305 echo "$as_me: program exited with status $ac_status" >&5
15306 echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15309 ( exit $ac_status )
15310 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15311 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15312 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15313 See \`config.log' for more details." >&5
15314 echo "$as_me: error: cannot compute sizeof (void *), 77
15315 See \`config.log' for more details." >&2;}
15316 { (exit 1); exit 1; }; }; }
15318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15323 ac_cv_sizeof_void_p=0
15326 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15327 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15328 cat >>confdefs.h <<_ACEOF
15329 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15335 # Lacking an uint64_t? Test size of long
15336 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15337 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15338 echo $ECHO_N "checking for long... $ECHO_C" >&6
15339 if test "${ac_cv_type_long+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 cat >conftest.$ac_ext <<_ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 $ac_includes_default
15360 rm -f conftest.$ac_objext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362 (eval $ac_compile) 2>conftest.er1
15364 grep -v '^ *+' conftest.er1 >conftest.err
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
15369 { ac_try='test -z "$ac_c_werror_flag"
15370 || test ! -s conftest.err'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; } &&
15376 { ac_try='test -s conftest.$ac_objext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_cv_type_long=yes
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15391 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15392 echo "${ECHO_T}$ac_cv_type_long" >&6
15394 echo "$as_me:$LINENO: checking size of long" >&5
15395 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15396 if test "${ac_cv_sizeof_long+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 if test "$ac_cv_type_long" = yes; then
15400 # The cast to unsigned long works around a bug in the HP C Compiler
15401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15403 # This bug is HP SR number 8606223364.
15404 if test "$cross_compiling" = yes; then
15405 # Depending upon the size, compute the lo and hi bounds.
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 $ac_includes_default
15416 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15423 rm -f conftest.$ac_objext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15425 (eval $ac_compile) 2>conftest.er1
15427 grep -v '^ *+' conftest.er1 >conftest.err
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest.$ac_objext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15447 cat >conftest.$ac_ext <<_ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 $ac_includes_default
15457 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15464 rm -f conftest.$ac_objext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>conftest.er1
15468 grep -v '^ *+' conftest.er1 >conftest.err
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -z "$ac_c_werror_flag"
15474 || test ! -s conftest.err'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; } &&
15480 { ac_try='test -s conftest.$ac_objext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_hi=$ac_mid; break
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 ac_lo=`expr $ac_mid + 1`
15492 if test $ac_lo -le $ac_mid; then
15496 ac_mid=`expr 2 '*' $ac_mid + 1`
15498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 cat >conftest.$ac_ext <<_ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 $ac_includes_default
15514 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15521 rm -f conftest.$ac_objext
15522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15523 (eval $ac_compile) 2>conftest.er1
15525 grep -v '^ *+' conftest.er1 >conftest.err
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -z "$ac_c_werror_flag"
15531 || test ! -s conftest.err'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; } &&
15537 { ac_try='test -s conftest.$ac_objext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 $ac_includes_default
15555 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>conftest.er1
15566 grep -v '^ *+' conftest.er1 >conftest.err
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try='test -z "$ac_c_werror_flag"
15572 || test ! -s conftest.err'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; } &&
15578 { ac_try='test -s conftest.$ac_objext'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_lo=$ac_mid; break
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_hi=`expr '(' $ac_mid ')' - 1`
15590 if test $ac_mid -le $ac_hi; then
15594 ac_mid=`expr 2 '*' $ac_mid`
15596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15607 # Binary search between lo and hi bounds.
15608 while test "x$ac_lo" != "x$ac_hi"; do
15609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 $ac_includes_default
15620 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15627 rm -f conftest.$ac_objext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>conftest.er1
15631 grep -v '^ *+' conftest.er1 >conftest.err
15633 cat conftest.err >&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -z "$ac_c_werror_flag"
15637 || test ! -s conftest.err'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_lo=`expr '(' $ac_mid ')' + 1`
15656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15659 ?*) ac_cv_sizeof_long=$ac_lo;;
15660 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15661 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15663 See \`config.log' for more details." >&5
15664 echo "$as_me: error: cannot compute sizeof (long), 77
15665 See \`config.log' for more details." >&2;}
15666 { (exit 1); exit 1; }; }; } ;;
15669 if test "$cross_compiling" = yes; then
15670 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15671 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15672 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15673 See \`config.log' for more details." >&5
15674 echo "$as_me: error: cannot run test program while cross compiling
15675 See \`config.log' for more details." >&2;}
15676 { (exit 1); exit 1; }; }; }
15678 cat >conftest.$ac_ext <<_ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 $ac_includes_default
15685 long longval () { return (long) (sizeof (long)); }
15686 unsigned long ulongval () { return (long) (sizeof (long)); }
15688 #include <stdlib.h>
15693 FILE *f = fopen ("conftest.val", "w");
15696 if (((long) (sizeof (long))) < 0)
15698 long i = longval ();
15699 if (i != ((long) (sizeof (long))))
15701 fprintf (f, "%ld\n", i);
15705 unsigned long i = ulongval ();
15706 if (i != ((long) (sizeof (long))))
15708 fprintf (f, "%lu\n", i);
15710 exit (ferror (f) || fclose (f) != 0);
15716 rm -f conftest$ac_exeext
15717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15718 (eval $ac_link) 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_cv_sizeof_long=`cat conftest.val`
15729 echo "$as_me: program exited with status $ac_status" >&5
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ( exit $ac_status )
15734 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15735 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15737 See \`config.log' for more details." >&5
15738 echo "$as_me: error: cannot compute sizeof (long), 77
15739 See \`config.log' for more details." >&2;}
15740 { (exit 1); exit 1; }; }; }
15742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15747 ac_cv_sizeof_long=0
15750 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15751 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15752 cat >>confdefs.h <<_ACEOF
15753 #define SIZEOF_LONG $ac_cv_sizeof_long
15759 if test $acx_cv_header_stdint = stddef.h; then
15760 # Lacking a good header? Test size of everything and deduce all types.
15761 echo "$as_me:$LINENO: checking for int" >&5
15762 echo $ECHO_N "checking for int... $ECHO_C" >&6
15763 if test "${ac_cv_type_int+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 cat >conftest.$ac_ext <<_ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 $ac_includes_default
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15788 grep -v '^ *+' conftest.er1 >conftest.err
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try='test -z "$ac_c_werror_flag"
15794 || test ! -s conftest.err'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15815 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15816 echo "${ECHO_T}$ac_cv_type_int" >&6
15818 echo "$as_me:$LINENO: checking size of int" >&5
15819 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15820 if test "${ac_cv_sizeof_int+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 if test "$ac_cv_type_int" = yes; then
15824 # The cast to unsigned long works around a bug in the HP C Compiler
15825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15827 # This bug is HP SR number 8606223364.
15828 if test "$cross_compiling" = yes; then
15829 # Depending upon the size, compute the lo and hi bounds.
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 $ac_includes_default
15840 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15847 rm -f conftest.$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>conftest.er1
15851 grep -v '^ *+' conftest.er1 >conftest.err
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15871 cat >conftest.$ac_ext <<_ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15881 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15888 rm -f conftest.$ac_objext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890 (eval $ac_compile) 2>conftest.er1
15892 grep -v '^ *+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
15897 { ac_try='test -z "$ac_c_werror_flag"
15898 || test ! -s conftest.err'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 ac_hi=$ac_mid; break
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15915 ac_lo=`expr $ac_mid + 1`
15916 if test $ac_lo -le $ac_mid; then
15920 ac_mid=`expr 2 '*' $ac_mid + 1`
15922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 cat >conftest.$ac_ext <<_ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 $ac_includes_default
15938 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15945 rm -f conftest.$ac_objext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947 (eval $ac_compile) 2>conftest.er1
15949 grep -v '^ *+' conftest.er1 >conftest.err
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -z "$ac_c_werror_flag"
15955 || test ! -s conftest.err'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15969 cat >conftest.$ac_ext <<_ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15975 $ac_includes_default
15979 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15986 rm -f conftest.$ac_objext
15987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15988 (eval $ac_compile) 2>conftest.er1
15990 grep -v '^ *+' conftest.er1 >conftest.err
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
15995 { ac_try='test -z "$ac_c_werror_flag"
15996 || test ! -s conftest.err'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; } &&
16002 { ac_try='test -s conftest.$ac_objext'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 ac_lo=$ac_mid; break
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ac_hi=`expr '(' $ac_mid ')' - 1`
16014 if test $ac_mid -le $ac_hi; then
16018 ac_mid=`expr 2 '*' $ac_mid`
16020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16031 # Binary search between lo and hi bounds.
16032 while test "x$ac_lo" != "x$ac_hi"; do
16033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16034 cat >conftest.$ac_ext <<_ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 $ac_includes_default
16044 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16051 rm -f conftest.$ac_objext
16052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16053 (eval $ac_compile) 2>conftest.er1
16055 grep -v '^ *+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -z "$ac_c_werror_flag"
16061 || test ! -s conftest.err'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; } &&
16067 { ac_try='test -s conftest.$ac_objext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 ac_lo=`expr '(' $ac_mid ')' + 1`
16080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16083 ?*) ac_cv_sizeof_int=$ac_lo;;
16084 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16085 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16087 See \`config.log' for more details." >&5
16088 echo "$as_me: error: cannot compute sizeof (int), 77
16089 See \`config.log' for more details." >&2;}
16090 { (exit 1); exit 1; }; }; } ;;
16093 if test "$cross_compiling" = yes; then
16094 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16095 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16096 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16097 See \`config.log' for more details." >&5
16098 echo "$as_me: error: cannot run test program while cross compiling
16099 See \`config.log' for more details." >&2;}
16100 { (exit 1); exit 1; }; }; }
16102 cat >conftest.$ac_ext <<_ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 $ac_includes_default
16109 long longval () { return (long) (sizeof (int)); }
16110 unsigned long ulongval () { return (long) (sizeof (int)); }
16112 #include <stdlib.h>
16117 FILE *f = fopen ("conftest.val", "w");
16120 if (((long) (sizeof (int))) < 0)
16122 long i = longval ();
16123 if (i != ((long) (sizeof (int))))
16125 fprintf (f, "%ld\n", i);
16129 unsigned long i = ulongval ();
16130 if (i != ((long) (sizeof (int))))
16132 fprintf (f, "%lu\n", i);
16134 exit (ferror (f) || fclose (f) != 0);
16140 rm -f conftest$ac_exeext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16142 (eval $ac_link) 2>&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_sizeof_int=`cat conftest.val`
16153 echo "$as_me: program exited with status $ac_status" >&5
16154 echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 ( exit $ac_status )
16158 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16159 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16160 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16161 See \`config.log' for more details." >&5
16162 echo "$as_me: error: cannot compute sizeof (int), 77
16163 See \`config.log' for more details." >&2;}
16164 { (exit 1); exit 1; }; }; }
16166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16174 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16175 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16176 cat >>confdefs.h <<_ACEOF
16177 #define SIZEOF_INT $ac_cv_sizeof_int
16181 echo "$as_me:$LINENO: checking for short" >&5
16182 echo $ECHO_N "checking for short... $ECHO_C" >&6
16183 if test "${ac_cv_type_short+set}" = set; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 cat >conftest.$ac_ext <<_ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 $ac_includes_default
16198 if (sizeof (short))
16204 rm -f conftest.$ac_objext
16205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16206 (eval $ac_compile) 2>conftest.er1
16208 grep -v '^ *+' conftest.er1 >conftest.err
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
16213 { ac_try='test -z "$ac_c_werror_flag"
16214 || test ! -s conftest.err'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try='test -s conftest.$ac_objext'
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_cv_type_short=yes
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ac_cv_type_short=no
16233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16235 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16236 echo "${ECHO_T}$ac_cv_type_short" >&6
16238 echo "$as_me:$LINENO: checking size of short" >&5
16239 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16240 if test "${ac_cv_sizeof_short+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 if test "$ac_cv_type_short" = yes; then
16244 # The cast to unsigned long works around a bug in the HP C Compiler
16245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16247 # This bug is HP SR number 8606223364.
16248 if test "$cross_compiling" = yes; then
16249 # Depending upon the size, compute the lo and hi bounds.
16250 cat >conftest.$ac_ext <<_ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16256 $ac_includes_default
16260 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16267 rm -f conftest.$ac_objext
16268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16269 (eval $ac_compile) 2>conftest.er1
16271 grep -v '^ *+' conftest.er1 >conftest.err
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } &&
16276 { ac_try='test -z "$ac_c_werror_flag"
16277 || test ! -s conftest.err'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; } &&
16283 { ac_try='test -s conftest.$ac_objext'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16291 cat >conftest.$ac_ext <<_ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16297 $ac_includes_default
16301 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16308 rm -f conftest.$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>conftest.er1
16312 grep -v '^ *+' conftest.er1 >conftest.err
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag"
16318 || test ! -s conftest.err'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest.$ac_objext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_hi=$ac_mid; break
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 ac_lo=`expr $ac_mid + 1`
16336 if test $ac_lo -le $ac_mid; then
16340 ac_mid=`expr 2 '*' $ac_mid + 1`
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 cat >conftest.$ac_ext <<_ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16354 $ac_includes_default
16358 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16365 rm -f conftest.$ac_objext
16366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367 (eval $ac_compile) 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
16374 { ac_try='test -z "$ac_c_werror_flag"
16375 || test ! -s conftest.err'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16389 cat >conftest.$ac_ext <<_ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16395 $ac_includes_default
16399 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16406 rm -f conftest.$ac_objext
16407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16408 (eval $ac_compile) 2>conftest.er1
16410 grep -v '^ *+' conftest.er1 >conftest.err
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -z "$ac_c_werror_flag"
16416 || test ! -s conftest.err'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 ac_lo=$ac_mid; break
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_hi=`expr '(' $ac_mid ')' - 1`
16434 if test $ac_mid -le $ac_hi; then
16438 ac_mid=`expr 2 '*' $ac_mid`
16440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16443 echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16451 # Binary search between lo and hi bounds.
16452 while test "x$ac_lo" != "x$ac_hi"; do
16453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16454 cat >conftest.$ac_ext <<_ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h. */
16460 $ac_includes_default
16464 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16471 rm -f conftest.$ac_objext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473 (eval $ac_compile) 2>conftest.er1
16475 grep -v '^ *+' conftest.er1 >conftest.err
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -z "$ac_c_werror_flag"
16481 || test ! -s conftest.err'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_lo=`expr '(' $ac_mid ')' + 1`
16500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16503 ?*) ac_cv_sizeof_short=$ac_lo;;
16504 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16505 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16506 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16507 See \`config.log' for more details." >&5
16508 echo "$as_me: error: cannot compute sizeof (short), 77
16509 See \`config.log' for more details." >&2;}
16510 { (exit 1); exit 1; }; }; } ;;
16513 if test "$cross_compiling" = yes; then
16514 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16515 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16516 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16517 See \`config.log' for more details." >&5
16518 echo "$as_me: error: cannot run test program while cross compiling
16519 See \`config.log' for more details." >&2;}
16520 { (exit 1); exit 1; }; }; }
16522 cat >conftest.$ac_ext <<_ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h. */
16528 $ac_includes_default
16529 long longval () { return (long) (sizeof (short)); }
16530 unsigned long ulongval () { return (long) (sizeof (short)); }
16532 #include <stdlib.h>
16537 FILE *f = fopen ("conftest.val", "w");
16540 if (((long) (sizeof (short))) < 0)
16542 long i = longval ();
16543 if (i != ((long) (sizeof (short))))
16545 fprintf (f, "%ld\n", i);
16549 unsigned long i = ulongval ();
16550 if (i != ((long) (sizeof (short))))
16552 fprintf (f, "%lu\n", i);
16554 exit (ferror (f) || fclose (f) != 0);
16560 rm -f conftest$ac_exeext
16561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16562 (eval $ac_link) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_cv_sizeof_short=`cat conftest.val`
16573 echo "$as_me: program exited with status $ac_status" >&5
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ( exit $ac_status )
16578 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16579 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16580 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16581 See \`config.log' for more details." >&5
16582 echo "$as_me: error: cannot compute sizeof (short), 77
16583 See \`config.log' for more details." >&2;}
16584 { (exit 1); exit 1; }; }; }
16586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16591 ac_cv_sizeof_short=0
16594 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16595 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16596 cat >>confdefs.h <<_ACEOF
16597 #define SIZEOF_SHORT $ac_cv_sizeof_short
16601 echo "$as_me:$LINENO: checking for char" >&5
16602 echo $ECHO_N "checking for char... $ECHO_C" >&6
16603 if test "${ac_cv_type_char+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 cat >conftest.$ac_ext <<_ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16612 $ac_includes_default
16624 rm -f conftest.$ac_objext
16625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16626 (eval $ac_compile) 2>conftest.er1
16628 grep -v '^ *+' conftest.er1 >conftest.err
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try='test -z "$ac_c_werror_flag"
16634 || test ! -s conftest.err'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; } &&
16640 { ac_try='test -s conftest.$ac_objext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16646 ac_cv_type_char=yes
16648 echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16655 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16656 echo "${ECHO_T}$ac_cv_type_char" >&6
16658 echo "$as_me:$LINENO: checking size of char" >&5
16659 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16660 if test "${ac_cv_sizeof_char+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 if test "$ac_cv_type_char" = yes; then
16664 # The cast to unsigned long works around a bug in the HP C Compiler
16665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16667 # This bug is HP SR number 8606223364.
16668 if test "$cross_compiling" = yes; then
16669 # Depending upon the size, compute the lo and hi bounds.
16670 cat >conftest.$ac_ext <<_ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16676 $ac_includes_default
16680 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16687 rm -f conftest.$ac_objext
16688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16689 (eval $ac_compile) 2>conftest.er1
16691 grep -v '^ *+' conftest.er1 >conftest.err
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag"
16697 || test ! -s conftest.err'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest.$ac_objext'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; }; then
16711 cat >conftest.$ac_ext <<_ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 $ac_includes_default
16721 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16728 rm -f conftest.$ac_objext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16730 (eval $ac_compile) 2>conftest.er1
16732 grep -v '^ *+' conftest.er1 >conftest.err
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
16737 { ac_try='test -z "$ac_c_werror_flag"
16738 || test ! -s conftest.err'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 ac_hi=$ac_mid; break
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 ac_lo=`expr $ac_mid + 1`
16756 if test $ac_lo -le $ac_mid; then
16760 ac_mid=`expr 2 '*' $ac_mid + 1`
16762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 cat >conftest.$ac_ext <<_ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 $ac_includes_default
16778 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16785 rm -f conftest.$ac_objext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16787 (eval $ac_compile) 2>conftest.er1
16789 grep -v '^ *+' conftest.er1 >conftest.err
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag"
16795 || test ! -s conftest.err'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest.$ac_objext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 $ac_includes_default
16819 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16826 rm -f conftest.$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>conftest.er1
16830 grep -v '^ *+' conftest.er1 >conftest.err
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest.$ac_objext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_lo=$ac_mid; break
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_hi=`expr '(' $ac_mid ')' - 1`
16854 if test $ac_mid -le $ac_hi; then
16858 ac_mid=`expr 2 '*' $ac_mid`
16860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16871 # Binary search between lo and hi bounds.
16872 while test "x$ac_lo" != "x$ac_hi"; do
16873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16874 cat >conftest.$ac_ext <<_ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h. */
16880 $ac_includes_default
16884 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16891 rm -f conftest.$ac_objext
16892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16893 (eval $ac_compile) 2>conftest.er1
16895 grep -v '^ *+' conftest.er1 >conftest.err
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } &&
16900 { ac_try='test -z "$ac_c_werror_flag"
16901 || test ! -s conftest.err'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; } &&
16907 { ac_try='test -s conftest.$ac_objext'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_lo=`expr '(' $ac_mid ')' + 1`
16920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16923 ?*) ac_cv_sizeof_char=$ac_lo;;
16924 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16925 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16927 See \`config.log' for more details." >&5
16928 echo "$as_me: error: cannot compute sizeof (char), 77
16929 See \`config.log' for more details." >&2;}
16930 { (exit 1); exit 1; }; }; } ;;
16933 if test "$cross_compiling" = yes; then
16934 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16935 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16936 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16937 See \`config.log' for more details." >&5
16938 echo "$as_me: error: cannot run test program while cross compiling
16939 See \`config.log' for more details." >&2;}
16940 { (exit 1); exit 1; }; }; }
16942 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 $ac_includes_default
16949 long longval () { return (long) (sizeof (char)); }
16950 unsigned long ulongval () { return (long) (sizeof (char)); }
16952 #include <stdlib.h>
16957 FILE *f = fopen ("conftest.val", "w");
16960 if (((long) (sizeof (char))) < 0)
16962 long i = longval ();
16963 if (i != ((long) (sizeof (char))))
16965 fprintf (f, "%ld\n", i);
16969 unsigned long i = ulongval ();
16970 if (i != ((long) (sizeof (char))))
16972 fprintf (f, "%lu\n", i);
16974 exit (ferror (f) || fclose (f) != 0);
16980 rm -f conftest$ac_exeext
16981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16982 (eval $ac_link) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_sizeof_char=`cat conftest.val`
16993 echo "$as_me: program exited with status $ac_status" >&5
16994 echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16997 ( exit $ac_status )
16998 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16999 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17001 See \`config.log' for more details." >&5
17002 echo "$as_me: error: cannot compute sizeof (char), 77
17003 See \`config.log' for more details." >&2;}
17004 { (exit 1); exit 1; }; }; }
17006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17011 ac_cv_sizeof_char=0
17014 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17015 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17016 cat >>confdefs.h <<_ACEOF
17017 #define SIZEOF_CHAR $ac_cv_sizeof_char
17022 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17023 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17024 case "$ac_cv_sizeof_char" in
17025 1) acx_cv_type_int8_t=char ;;
17026 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17027 echo "$as_me: error: no 8-bit type" >&2;}
17028 { (exit please report a bug); exit please report a bug; }; }
17030 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17031 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17033 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17034 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17035 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17036 2:*) acx_cv_type_int16_t=int ;;
17037 *:2) acx_cv_type_int16_t=short ;;
17038 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17039 echo "$as_me: error: no 16-bit type" >&2;}
17040 { (exit please report a bug); exit please report a bug; }; }
17042 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17043 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17045 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17046 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17047 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17048 4:*) acx_cv_type_int32_t=int ;;
17049 *:4) acx_cv_type_int32_t=long ;;
17050 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17051 echo "$as_me: error: no 32-bit type" >&2;}
17052 { (exit please report a bug); exit please report a bug; }; }
17054 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17055 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17058 # These tests are here to make the output prettier
17060 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17061 case "$ac_cv_sizeof_long" in
17062 8) acx_cv_type_int64_t=long ;;
17064 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17065 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17066 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17067 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17070 # Now we can use the above types
17072 if test "$ac_cv_type_uintptr_t" != yes; then
17073 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17074 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17075 case $ac_cv_sizeof_void_p in
17076 2) acx_cv_type_intptr_t=int16_t ;;
17077 4) acx_cv_type_intptr_t=int32_t ;;
17078 8) acx_cv_type_intptr_t=int64_t ;;
17079 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17080 echo "$as_me: error: no equivalent for intptr_t" >&2;}
17081 { (exit please report a bug); exit please report a bug; }; }
17083 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17084 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17087 # ----------------- done all checks, emit header -------------
17088 ac_config_commands="$ac_config_commands bfd_stdint.h"
17092 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17093 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17094 if test "${ac_cv_header_time+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 cat >conftest.$ac_ext <<_ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 #include <sys/types.h>
17104 #include <sys/time.h>
17110 if ((struct tm *) 0)
17116 rm -f conftest.$ac_objext
17117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118 (eval $ac_compile) 2>conftest.er1
17120 grep -v '^ *+' conftest.er1 >conftest.err
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
17125 { ac_try='test -z "$ac_c_werror_flag"
17126 || test ! -s conftest.err'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_cv_header_time=yes
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17143 ac_cv_header_time=no
17145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17147 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17148 echo "${ECHO_T}$ac_cv_header_time" >&6
17149 if test $ac_cv_header_time = yes; then
17151 cat >>confdefs.h <<\_ACEOF
17152 #define TIME_WITH_SYS_TIME 1
17162 ac_header_dirent=no
17163 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17164 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17165 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17166 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 #include <sys/types.h>
17188 rm -f conftest.$ac_objext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190 (eval $ac_compile) 2>conftest.er1
17192 grep -v '^ *+' conftest.er1 >conftest.err
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -z "$ac_c_werror_flag"
17198 || test ! -s conftest.err'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 eval "$as_ac_Header=yes"
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 eval "$as_ac_Header=no"
17217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17222 cat >>confdefs.h <<_ACEOF
17223 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17226 ac_header_dirent=$ac_hdr; break
17230 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17231 if test $ac_header_dirent = dirent.h; then
17232 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17233 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17234 if test "${ac_cv_search_opendir+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17237 ac_func_search_save_LIBS=$LIBS
17238 ac_cv_search_opendir=no
17239 cat >conftest.$ac_ext <<_ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17246 /* Override any gcc2 internal prototype to avoid an error. */
17250 /* We use char because int might match the return type of a gcc2
17251 builtin and then its argument prototype would still apply. */
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17263 (eval $ac_link) 2>conftest.er1
17265 grep -v '^ *+' conftest.er1 >conftest.err
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
17270 { ac_try='test -z "$ac_c_werror_flag"
17271 || test ! -s conftest.err'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; } &&
17277 { ac_try='test -s conftest$ac_exeext'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_cv_search_opendir="none required"
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17289 rm -f conftest.err conftest.$ac_objext \
17290 conftest$ac_exeext conftest.$ac_ext
17291 if test "$ac_cv_search_opendir" = no; then
17292 for ac_lib in dir; do
17293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17301 /* Override any gcc2 internal prototype to avoid an error. */
17305 /* We use char because int might match the return type of a gcc2
17306 builtin and then its argument prototype would still apply. */
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17318 (eval $ac_link) 2>conftest.er1
17320 grep -v '^ *+' conftest.er1 >conftest.err
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_search_opendir="-l$ac_lib"
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17345 rm -f conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17349 LIBS=$ac_func_search_save_LIBS
17351 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17352 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17353 if test "$ac_cv_search_opendir" != no; then
17354 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17359 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17360 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17361 if test "${ac_cv_search_opendir+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 ac_func_search_save_LIBS=$LIBS
17365 ac_cv_search_opendir=no
17366 cat >conftest.$ac_ext <<_ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17373 /* Override any gcc2 internal prototype to avoid an error. */
17377 /* We use char because int might match the return type of a gcc2
17378 builtin and then its argument prototype would still apply. */
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17390 (eval $ac_link) 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest$ac_exeext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_search_opendir="none required"
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17416 rm -f conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418 if test "$ac_cv_search_opendir" = no; then
17419 for ac_lib in x; do
17420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17421 cat >conftest.$ac_ext <<_ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17428 /* Override any gcc2 internal prototype to avoid an error. */
17432 /* We use char because int might match the return type of a gcc2
17433 builtin and then its argument prototype would still apply. */
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445 (eval $ac_link) 2>conftest.er1
17447 grep -v '^ *+' conftest.er1 >conftest.err
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
17452 { ac_try='test -z "$ac_c_werror_flag"
17453 || test ! -s conftest.err'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_cv_search_opendir="-l$ac_lib"
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17472 rm -f conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
17476 LIBS=$ac_func_search_save_LIBS
17478 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17479 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17480 if test "$ac_cv_search_opendir" != no; then
17481 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17487 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17488 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17489 if test "${gcc_cv_header_string+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 #include <string.h>
17499 #include <strings.h>
17508 rm -f conftest.$ac_objext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 gcc_cv_header_string=yes
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 gcc_cv_header_string=no
17537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17539 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17540 echo "${ECHO_T}$gcc_cv_header_string" >&6
17541 if test $gcc_cv_header_string = yes; then
17543 cat >>confdefs.h <<\_ACEOF
17544 #define STRING_WITH_STRINGS 1
17557 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
17559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560 echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17562 if eval "test \"\${$as_ac_var+set}\" = set"; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 cat >conftest.$ac_ext <<_ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573 #define $ac_func innocuous_$ac_func
17575 /* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17581 # include <limits.h>
17583 # include <assert.h>
17588 /* Override any gcc2 internal prototype to avoid an error. */
17593 /* We use char because int might match the return type of a gcc2
17594 builtin and then its argument prototype would still apply. */
17596 /* The GNU C library defines this for functions which it implements
17597 to always fail with ENOSYS. Some functions are actually named
17598 something starting with __ and the normal name is an alias. */
17599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17602 char (*f) () = $ac_func;
17611 return f != $ac_func;
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17618 (eval $ac_link) 2>conftest.er1
17620 grep -v '^ *+' conftest.er1 >conftest.err
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag"
17626 || test ! -s conftest.err'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 eval "$as_ac_var=yes"
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 eval "$as_ac_var=no"
17645 rm -f conftest.err conftest.$ac_objext \
17646 conftest$ac_exeext conftest.$ac_ext
17648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17650 if test `eval echo '${'$as_ac_var'}'` = yes; then
17651 cat >>confdefs.h <<_ACEOF
17652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17659 for ac_func in strtoull
17661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17662 echo "$as_me:$LINENO: checking for $ac_func" >&5
17663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17664 if eval "test \"\${$as_ac_var+set}\" = set"; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17667 cat >conftest.$ac_ext <<_ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17675 #define $ac_func innocuous_$ac_func
17677 /* System header to define __stub macros and hopefully few prototypes,
17678 which can conflict with char $ac_func (); below.
17679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17680 <limits.h> exists even on freestanding compilers. */
17683 # include <limits.h>
17685 # include <assert.h>
17690 /* Override any gcc2 internal prototype to avoid an error. */
17695 /* We use char because int might match the return type of a gcc2
17696 builtin and then its argument prototype would still apply. */
17698 /* The GNU C library defines this for functions which it implements
17699 to always fail with ENOSYS. Some functions are actually named
17700 something starting with __ and the normal name is an alias. */
17701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17704 char (*f) () = $ac_func;
17713 return f != $ac_func;
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17722 grep -v '^ *+' conftest.er1 >conftest.err
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 eval "$as_ac_var=yes"
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 eval "$as_ac_var=no"
17747 rm -f conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17752 if test `eval echo '${'$as_ac_var'}'` = yes; then
17753 cat >>confdefs.h <<_ACEOF
17754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17761 echo "$as_me:$LINENO: checking whether basename is declared" >&5
17762 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17763 if test "${ac_cv_have_decl_basename+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 cat >conftest.$ac_ext <<_ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17777 char *p = (char *) basename;
17784 rm -f conftest.$ac_objext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17786 (eval $ac_compile) 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest.$ac_objext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_have_decl_basename=yes
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ac_cv_have_decl_basename=no
17813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17815 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17816 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17817 if test $ac_cv_have_decl_basename = yes; then
17819 cat >>confdefs.h <<_ACEOF
17820 #define HAVE_DECL_BASENAME 1
17825 cat >>confdefs.h <<_ACEOF
17826 #define HAVE_DECL_BASENAME 0
17833 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17834 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17835 if test "${ac_cv_have_decl_ftello+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 $ac_includes_default
17849 char *p = (char *) ftello;
17856 rm -f conftest.$ac_objext
17857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17858 (eval $ac_compile) 2>conftest.er1
17860 grep -v '^ *+' conftest.er1 >conftest.err
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_have_decl_ftello=yes
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17883 ac_cv_have_decl_ftello=no
17885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17887 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17888 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17889 if test $ac_cv_have_decl_ftello = yes; then
17891 cat >>confdefs.h <<_ACEOF
17892 #define HAVE_DECL_FTELLO 1
17897 cat >>confdefs.h <<_ACEOF
17898 #define HAVE_DECL_FTELLO 0
17905 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17906 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17907 if test "${ac_cv_have_decl_ftello64+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 $ac_includes_default
17921 char *p = (char *) ftello64;
17928 rm -f conftest.$ac_objext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17930 (eval $ac_compile) 2>conftest.er1
17932 grep -v '^ *+' conftest.er1 >conftest.err
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_c_werror_flag"
17938 || test ! -s conftest.err'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_cv_have_decl_ftello64=yes
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 ac_cv_have_decl_ftello64=no
17957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17959 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17960 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17961 if test $ac_cv_have_decl_ftello64 = yes; then
17963 cat >>confdefs.h <<_ACEOF
17964 #define HAVE_DECL_FTELLO64 1
17969 cat >>confdefs.h <<_ACEOF
17970 #define HAVE_DECL_FTELLO64 0
17977 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17978 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17979 if test "${ac_cv_have_decl_fseeko+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 cat >conftest.$ac_ext <<_ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 $ac_includes_default
17993 char *p = (char *) fseeko;
18000 rm -f conftest.$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18004 grep -v '^ *+' conftest.er1 >conftest.err
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_have_decl_fseeko=yes
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_cv_have_decl_fseeko=no
18029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18031 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18032 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18033 if test $ac_cv_have_decl_fseeko = yes; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define HAVE_DECL_FSEEKO 1
18041 cat >>confdefs.h <<_ACEOF
18042 #define HAVE_DECL_FSEEKO 0
18049 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18050 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18051 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 cat >conftest.$ac_ext <<_ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h. */
18060 $ac_includes_default
18065 char *p = (char *) fseeko64;
18072 rm -f conftest.$ac_objext
18073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18074 (eval $ac_compile) 2>conftest.er1
18076 grep -v '^ *+' conftest.er1 >conftest.err
18078 cat conftest.err >&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } &&
18081 { ac_try='test -z "$ac_c_werror_flag"
18082 || test ! -s conftest.err'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; } &&
18088 { ac_try='test -s conftest.$ac_objext'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_have_decl_fseeko64=yes
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18099 ac_cv_have_decl_fseeko64=no
18101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18103 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18104 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18105 if test $ac_cv_have_decl_fseeko64 = yes; then
18107 cat >>confdefs.h <<_ACEOF
18108 #define HAVE_DECL_FSEEKO64 1
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_DECL_FSEEKO64 0
18124 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18126 cat >>confdefs.h <<\_ACEOF
18127 #define USE_BINARY_FOPEN 1
18132 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18133 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18134 if test "${ac_cv_have_decl_ffs+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 cat >conftest.$ac_ext <<_ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18143 $ac_includes_default
18148 char *p = (char *) ffs;
18155 rm -f conftest.$ac_objext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18157 (eval $ac_compile) 2>conftest.er1
18159 grep -v '^ *+' conftest.er1 >conftest.err
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_c_werror_flag"
18165 || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest.$ac_objext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 ac_cv_have_decl_ffs=yes
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 ac_cv_have_decl_ffs=no
18184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18186 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18187 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18188 if test $ac_cv_have_decl_ffs = yes; then
18190 cat >>confdefs.h <<_ACEOF
18191 #define HAVE_DECL_FFS 1
18196 cat >>confdefs.h <<_ACEOF
18197 #define HAVE_DECL_FFS 0
18204 echo "$as_me:$LINENO: checking whether free is declared" >&5
18205 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18206 if test "${ac_cv_have_decl_free+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 $ac_includes_default
18220 char *p = (char *) free;
18227 rm -f conftest.$ac_objext
18228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>conftest.er1
18231 grep -v '^ *+' conftest.er1 >conftest.err
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_have_decl_free=yes
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_cv_have_decl_free=no
18256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18258 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18259 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18260 if test $ac_cv_have_decl_free = yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define HAVE_DECL_FREE 1
18268 cat >>confdefs.h <<_ACEOF
18269 #define HAVE_DECL_FREE 0
18276 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18277 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18278 if test "${ac_cv_have_decl_getenv+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 cat >conftest.$ac_ext <<_ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 $ac_includes_default
18292 char *p = (char *) getenv;
18299 rm -f conftest.$ac_objext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18301 (eval $ac_compile) 2>conftest.er1
18303 grep -v '^ *+' conftest.er1 >conftest.err
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
18308 { ac_try='test -z "$ac_c_werror_flag"
18309 || test ! -s conftest.err'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest.$ac_objext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_have_decl_getenv=yes
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 ac_cv_have_decl_getenv=no
18328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18331 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18332 if test $ac_cv_have_decl_getenv = yes; then
18334 cat >>confdefs.h <<_ACEOF
18335 #define HAVE_DECL_GETENV 1
18340 cat >>confdefs.h <<_ACEOF
18341 #define HAVE_DECL_GETENV 0
18348 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18349 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18350 if test "${ac_cv_have_decl_malloc+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 cat >conftest.$ac_ext <<_ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18359 $ac_includes_default
18364 char *p = (char *) malloc;
18371 rm -f conftest.$ac_objext
18372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18373 (eval $ac_compile) 2>conftest.er1
18375 grep -v '^ *+' conftest.er1 >conftest.err
18377 cat conftest.err >&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
18380 { ac_try='test -z "$ac_c_werror_flag"
18381 || test ! -s conftest.err'
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
18393 ac_cv_have_decl_malloc=yes
18395 echo "$as_me: failed program was:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18398 ac_cv_have_decl_malloc=no
18400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18402 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18403 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18404 if test $ac_cv_have_decl_malloc = yes; then
18406 cat >>confdefs.h <<_ACEOF
18407 #define HAVE_DECL_MALLOC 1
18412 cat >>confdefs.h <<_ACEOF
18413 #define HAVE_DECL_MALLOC 0
18420 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18421 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18422 if test "${ac_cv_have_decl_realloc+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 cat >conftest.$ac_ext <<_ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 $ac_includes_default
18436 char *p = (char *) realloc;
18443 rm -f conftest.$ac_objext
18444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18445 (eval $ac_compile) 2>conftest.er1
18447 grep -v '^ *+' conftest.er1 >conftest.err
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_c_werror_flag"
18453 || test ! -s conftest.err'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest.$ac_objext'
18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 ac_cv_have_decl_realloc=yes
18467 echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18470 ac_cv_have_decl_realloc=no
18472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18474 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18475 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18476 if test $ac_cv_have_decl_realloc = yes; then
18478 cat >>confdefs.h <<_ACEOF
18479 #define HAVE_DECL_REALLOC 1
18484 cat >>confdefs.h <<_ACEOF
18485 #define HAVE_DECL_REALLOC 0
18492 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18493 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18494 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 cat >conftest.$ac_ext <<_ACEOF
18500 cat confdefs.h >>conftest.$ac_ext
18501 cat >>conftest.$ac_ext <<_ACEOF
18502 /* end confdefs.h. */
18503 $ac_includes_default
18508 char *p = (char *) stpcpy;
18515 rm -f conftest.$ac_objext
18516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18517 (eval $ac_compile) 2>conftest.er1
18519 grep -v '^ *+' conftest.er1 >conftest.err
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag"
18525 || test ! -s conftest.err'
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest.$ac_objext'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_cv_have_decl_stpcpy=yes
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 ac_cv_have_decl_stpcpy=no
18544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18546 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18547 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18548 if test $ac_cv_have_decl_stpcpy = yes; then
18550 cat >>confdefs.h <<_ACEOF
18551 #define HAVE_DECL_STPCPY 1
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_DECL_STPCPY 0
18564 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18565 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18566 if test "${ac_cv_have_decl_strstr+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 cat >conftest.$ac_ext <<_ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 $ac_includes_default
18580 char *p = (char *) strstr;
18587 rm -f conftest.$ac_objext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18589 (eval $ac_compile) 2>conftest.er1
18591 grep -v '^ *+' conftest.er1 >conftest.err
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try='test -z "$ac_c_werror_flag"
18597 || test ! -s conftest.err'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest.$ac_objext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_cv_have_decl_strstr=yes
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18614 ac_cv_have_decl_strstr=no
18616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18618 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18619 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18620 if test $ac_cv_have_decl_strstr = yes; then
18622 cat >>confdefs.h <<_ACEOF
18623 #define HAVE_DECL_STRSTR 1
18628 cat >>confdefs.h <<_ACEOF
18629 #define HAVE_DECL_STRSTR 0
18636 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18637 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18638 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 cat >conftest.$ac_ext <<_ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18647 $ac_includes_default
18652 char *p = (char *) snprintf;
18659 rm -f conftest.$ac_objext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661 (eval $ac_compile) 2>conftest.er1
18663 grep -v '^ *+' conftest.er1 >conftest.err
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
18668 { ac_try='test -z "$ac_c_werror_flag"
18669 || test ! -s conftest.err'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; } &&
18675 { ac_try='test -s conftest.$ac_objext'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_have_decl_snprintf=yes
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 ac_cv_have_decl_snprintf=no
18688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18690 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18691 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18692 if test $ac_cv_have_decl_snprintf = yes; then
18694 cat >>confdefs.h <<_ACEOF
18695 #define HAVE_DECL_SNPRINTF 1
18700 cat >>confdefs.h <<_ACEOF
18701 #define HAVE_DECL_SNPRINTF 0
18708 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18709 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18710 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 cat >conftest.$ac_ext <<_ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719 $ac_includes_default
18724 char *p = (char *) vsnprintf;
18731 rm -f conftest.$ac_objext
18732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18733 (eval $ac_compile) 2>conftest.er1
18735 grep -v '^ *+' conftest.er1 >conftest.err
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
18740 { ac_try='test -z "$ac_c_werror_flag"
18741 || test ! -s conftest.err'
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; } &&
18747 { ac_try='test -s conftest.$ac_objext'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_cv_have_decl_vsnprintf=yes
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18758 ac_cv_have_decl_vsnprintf=no
18760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18762 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18763 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18764 if test $ac_cv_have_decl_vsnprintf = yes; then
18766 cat >>confdefs.h <<_ACEOF
18767 #define HAVE_DECL_VSNPRINTF 1
18772 cat >>confdefs.h <<_ACEOF
18773 #define HAVE_DECL_VSNPRINTF 0
18781 # Link in zlib if we can. This allows us to read compressed debug sections.
18782 # This is used only by compress.c.
18783 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18784 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18785 if test "${ac_cv_search_zlibVersion+set}" = set; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18788 ac_func_search_save_LIBS=$LIBS
18789 ac_cv_search_zlibVersion=no
18790 cat >conftest.$ac_ext <<_ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18797 /* Override any gcc2 internal prototype to avoid an error. */
18801 /* We use char because int might match the return type of a gcc2
18802 builtin and then its argument prototype would still apply. */
18803 char zlibVersion ();
18812 rm -f conftest.$ac_objext conftest$ac_exeext
18813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18814 (eval $ac_link) 2>conftest.er1
18816 grep -v '^ *+' conftest.er1 >conftest.err
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
18821 { ac_try='test -z "$ac_c_werror_flag"
18822 || test ! -s conftest.err'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; } &&
18828 { ac_try='test -s conftest$ac_exeext'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
18834 ac_cv_search_zlibVersion="none required"
18836 echo "$as_me: failed program was:" >&5
18837 sed 's/^/| /' conftest.$ac_ext >&5
18840 rm -f conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18842 if test "$ac_cv_search_zlibVersion" = no; then
18843 for ac_lib in z; do
18844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18845 cat >conftest.$ac_ext <<_ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18852 /* Override any gcc2 internal prototype to avoid an error. */
18856 /* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18858 char zlibVersion ();
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 2>conftest.er1
18871 grep -v '^ *+' conftest.er1 >conftest.err
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_cv_search_zlibVersion="-l$ac_lib"
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18896 rm -f conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18900 LIBS=$ac_func_search_save_LIBS
18902 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18903 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18904 if test "$ac_cv_search_zlibVersion" != no; then
18905 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18907 for ac_header in zlib.h
18909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18911 echo "$as_me:$LINENO: checking for $ac_header" >&5
18912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18919 # Is the header compilable?
18920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 $ac_includes_default
18929 #include <$ac_header>
18931 rm -f conftest.$ac_objext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18933 (eval $ac_compile) 2>conftest.er1
18935 grep -v '^ *+' conftest.er1 >conftest.err
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try='test -z "$ac_c_werror_flag"
18941 || test ! -s conftest.err'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest.$ac_objext'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 ac_header_compiler=yes
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18958 ac_header_compiler=no
18960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18962 echo "${ECHO_T}$ac_header_compiler" >&6
18964 # Is the header present?
18965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18967 cat >conftest.$ac_ext <<_ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18973 #include <$ac_header>
18975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18978 grep -v '^ *+' conftest.er1 >conftest.err
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } >/dev/null; then
18983 if test -s conftest.err; then
18984 ac_cpp_err=$ac_c_preproc_warn_flag
18985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18992 if test -z "$ac_cpp_err"; then
18993 ac_header_preproc=yes
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ac_header_preproc=no
19000 rm -f conftest.err conftest.$ac_ext
19001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19002 echo "${ECHO_T}$ac_header_preproc" >&6
19004 # So? What about this header?
19005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19011 ac_header_preproc=yes
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19021 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19028 ## ------------------------------------------ ##
19029 ## Report this to the AC_PACKAGE_NAME lists. ##
19030 ## ------------------------------------------ ##
19033 sed "s/^/$as_me: WARNING: /" >&2
19036 echo "$as_me:$LINENO: checking for $ac_header" >&5
19037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 eval "$as_ac_Header=\$ac_header_preproc"
19043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19048 cat >>confdefs.h <<_ACEOF
19049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19059 # If we are configured native, pick a core file support file.
19063 if test "${target}" = "${host}"; then
19065 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
19069 COREFILE=trad-core.lo
19070 TRAD_HEADER='"hosts/alphalinux.h"'
19072 alpha*-*-netbsd* | alpha*-*-openbsd*)
19073 COREFILE=netbsd-core.lo
19075 alpha*-*-*) COREFILE=osf-core.lo ;;
19076 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19078 arm-*-netbsd* | arm-*-openbsd*)
19079 COREFILE=netbsd-core.lo
19081 arm-*-riscix) COREFILE=trad-core.lo ;;
19082 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19083 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19084 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19085 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19086 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
19087 hppa*-*-netbsd* | hppa*-*-openbsd*)
19088 COREFILE=netbsd-core.lo
19092 COREFILE=trad-core.lo
19093 TRAD_HEADER='"hosts/i370linux.h"'
19096 i[3-7]86-sequent-bsd*)
19097 COREFILE=trad-core.lo
19098 TRAD_HEADER='"hosts/symmetry.h"'
19100 i[3-7]86-sequent-sysv4*) ;;
19101 i[3-7]86-sequent-sysv*)
19102 COREFILE=trad-core.lo
19103 TRAD_HEADER='"hosts/symmetry.h"'
19108 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
19109 COREFILE=trad-core.lo
19110 TRAD_HEADER='"hosts/i386bsd.h"'
19112 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
19114 TRAD_HEADER='"hosts/i386bsd.h"'
19116 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
19117 COREFILE=netbsd-core.lo
19119 i[3-7]86-esix-sysv3*)
19120 COREFILE=trad-core.lo
19121 TRAD_HEADER='"hosts/esix.h"'
19123 i[3-7]86-*-sco3.2v5*)
19124 COREFILE=sco5-core.lo
19126 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
19127 COREFILE=trad-core.lo
19128 TRAD_HEADER='"hosts/i386sco.h"'
19131 COREFILE=trad-core.lo
19132 TRAD_HEADER='"hosts/i386mach3.h"'
19134 i[3-7]86-*-linux-*)
19135 COREFILE=trad-core.lo
19136 TRAD_HEADER='"hosts/i386linux.h"'
19138 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19139 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
19140 i860-*-mach3* | i860-*-osf1*)
19141 COREFILE=trad-core.lo
19142 TRAD_HEADER='"hosts/i860mach3.h"'
19144 mips-*-netbsd* | mips*-*-openbsd*)
19145 COREFILE=netbsd-core.lo
19148 COREFILE=trad-core.lo
19149 TRAD_HEADER='"hosts/decstation.h"'
19151 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19152 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19153 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
19155 mips-*-sysv* | mips-*-riscos*)
19156 COREFILE=trad-core.lo
19157 TRAD_HEADER='"hosts/riscos.h"'
19160 COREFILE=trad-core.lo
19161 TRAD_HEADER='"hosts/news-mips.h"'
19164 COREFILE=trad-core.lo
19165 TRAD_HEADER='"hosts/dpx2.h"'
19167 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19169 COREFILE=trad-core.lo
19170 TRAD_HEADER='"hosts/hp300bsd.h"'
19173 COREFILE=trad-core.lo
19174 TRAD_HEADER='"hosts/m68klinux.h"'
19176 m68*-motorola-sysv*)
19177 COREFILE=trad-core.lo
19178 TRAD_HEADER='"hosts/delta68.h"'
19181 COREFILE=trad-core.lo
19182 TRAD_HEADER='"hosts/news.h"'
19184 m68*-*-netbsd* | m68*-*-openbsd*)
19185 COREFILE=netbsd-core.lo
19188 COREFILE=trad-core.lo
19189 TRAD_HEADER='"hosts/m68kaux.h"'
19193 m88*-motorola-sysv*)
19194 COREFILE=ptrace-core.lo
19197 COREFILE=trad-core.lo
19198 TRAD_HEADER='"hosts/m88kmach3.h"'
19201 COREFILE=netbsd-core.lo
19204 COREFILE=trad-core.lo
19205 TRAD_HEADER='"hosts/pc532mach.h"'
19207 ns32k-*-netbsd* | ns32k-*-openbsd*)
19208 COREFILE=netbsd-core.lo
19211 COREFILE=lynx-core.lo
19213 rs6000-*-aix5.* | powerpc-*-aix5.*)
19214 COREFILE=rs6000-core.lo
19215 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19217 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
19218 COREFILE=rs6000-core.lo
19219 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
19220 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19221 # have c_impl as a member of struct core_dumpx
19222 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19223 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19234 struct core_dumpx c; c.c_impl = 0;
19239 rm -f conftest.$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -z "$ac_c_werror_flag"
19249 || test ! -s conftest.err'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE_ST_C_IMPL 1
19266 echo "$as_me:$LINENO: result: yes" >&5
19267 echo "${ECHO_T}yes" >&6
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 echo "$as_me:$LINENO: result: no" >&5
19273 echo "${ECHO_T}no" >&6
19275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19277 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19278 rs6000-*-*) COREFILE=rs6000-core.lo ;;
19279 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19280 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19281 powerpc-*-beos*) ;;
19282 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19284 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
19285 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
19286 s390*-*-*) COREFILE=trad-core.lo ;;
19287 sh*-*-netbsd* | sh*-*-openbsd*)
19288 COREFILE=netbsd-core.lo
19290 sparc-*-netbsd* | sparc*-*-openbsd*)
19291 COREFILE=netbsd-core.lo
19294 COREFILE=trad-core.lo
19295 TRAD_HEADER='"hosts/tahoe.h"'
19297 vax-*-netbsd* | vax-*-openbsd*)
19298 COREFILE=netbsd-core.lo
19301 COREFILE=trad-core.lo
19302 TRAD_HEADER='"hosts/vaxult2.h"'
19305 COREFILE=trad-core.lo
19306 TRAD_HEADER='"hosts/vaxult2.h"'
19309 COREFILE=trad-core.lo
19310 TRAD_HEADER='"hosts/vaxlinux.h"'
19313 COREFILE=trad-core.lo
19314 TRAD_HEADER='"hosts/vaxbsd.h"'
19316 x86_64-*-netbsd* | x86_64-*-openbsd*)
19317 COREFILE=netbsd-core.lo
19321 case "$COREFILE" in
19322 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19323 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19324 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19325 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19326 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19327 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19328 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19329 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19330 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19331 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19332 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19335 # ELF corefile support has several flavors, but all of
19336 # them use something called <sys/procfs.h>
19338 for ac_header in sys/procfs.h
19340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19342 echo "$as_me:$LINENO: checking for $ac_header" >&5
19343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19350 # Is the header compilable?
19351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19353 cat >conftest.$ac_ext <<_ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359 $ac_includes_default
19360 #include <$ac_header>
19362 rm -f conftest.$ac_objext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19364 (eval $ac_compile) 2>conftest.er1
19366 grep -v '^ *+' conftest.er1 >conftest.err
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag"
19372 || test ! -s conftest.err'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest.$ac_objext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_header_compiler=yes
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_header_compiler=no
19391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19393 echo "${ECHO_T}$ac_header_compiler" >&6
19395 # Is the header present?
19396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19398 cat >conftest.$ac_ext <<_ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 #include <$ac_header>
19406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19409 grep -v '^ *+' conftest.er1 >conftest.err
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } >/dev/null; then
19414 if test -s conftest.err; then
19415 ac_cpp_err=$ac_c_preproc_warn_flag
19416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19423 if test -z "$ac_cpp_err"; then
19424 ac_header_preproc=yes
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ac_header_preproc=no
19431 rm -f conftest.err conftest.$ac_ext
19432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19433 echo "${ECHO_T}$ac_header_preproc" >&6
19435 # So? What about this header?
19436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19442 ac_header_preproc=yes
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19459 ## ------------------------------------------ ##
19460 ## Report this to the AC_PACKAGE_NAME lists. ##
19461 ## ------------------------------------------ ##
19464 sed "s/^/$as_me: WARNING: /" >&2
19467 echo "$as_me:$LINENO: checking for $ac_header" >&5
19468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19472 eval "$as_ac_Header=\$ac_header_preproc"
19474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19479 cat >>confdefs.h <<_ACEOF
19480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19487 if test "$ac_cv_header_sys_procfs_h" = yes; then
19488 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19489 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19490 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19493 cat >conftest.$ac_ext <<_ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19501 #include <sys/procfs.h>
19510 rm -f conftest.$ac_objext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19512 (eval $ac_compile) 2>conftest.er1
19514 grep -v '^ *+' conftest.er1 >conftest.err
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -z "$ac_c_werror_flag"
19520 || test ! -s conftest.err'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest.$ac_objext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 bfd_cv_have_sys_procfs_type_prstatus_t=no
19540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19543 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
19545 cat >>confdefs.h <<\_ACEOF
19546 #define HAVE_PRSTATUS_T 1
19550 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19551 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
19553 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19554 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19555 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 cat >conftest.$ac_ext <<_ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19566 #include <sys/procfs.h>
19575 rm -f conftest.$ac_objext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19577 (eval $ac_compile) 2>conftest.er1
19579 grep -v '^ *+' conftest.er1 >conftest.err
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
19584 { ac_try='test -z "$ac_c_werror_flag"
19585 || test ! -s conftest.err'
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; } &&
19591 { ac_try='test -s conftest.$ac_objext'
19592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593 (eval $ac_try) 2>&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; }; then
19597 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 bfd_cv_have_sys_procfs_type_prstatus32_t=no
19605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19608 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
19610 cat >>confdefs.h <<\_ACEOF
19611 #define HAVE_PRSTATUS32_T 1
19615 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19616 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
19618 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19619 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19620 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 cat >conftest.$ac_ext <<_ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19631 #include <sys/procfs.h>
19635 prstatus_t avar; void* aref = (void*) &avar.pr_who
19640 rm -f conftest.$ac_objext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642 (eval $ac_compile) 2>conftest.er1
19644 grep -v '^ *+' conftest.er1 >conftest.err
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } &&
19649 { ac_try='test -z "$ac_c_werror_flag"
19650 || test ! -s conftest.err'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest.$ac_objext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19667 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19673 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
19675 cat >>confdefs.h <<\_ACEOF
19676 #define HAVE_PRSTATUS_T_PR_WHO 1
19680 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19681 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
19683 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19684 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19685 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19696 #include <sys/procfs.h>
19700 prstatus32_t avar; void* aref = (void*) &avar.pr_who
19705 rm -f conftest.$ac_objext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707 (eval $ac_compile) 2>conftest.er1
19709 grep -v '^ *+' conftest.er1 >conftest.err
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag"
19715 || test ! -s conftest.err'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest.$ac_objext'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19738 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
19740 cat >>confdefs.h <<\_ACEOF
19741 #define HAVE_PRSTATUS32_T_PR_WHO 1
19745 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19746 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
19748 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19749 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19750 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 cat >conftest.$ac_ext <<_ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19761 #include <sys/procfs.h>
19770 rm -f conftest.$ac_objext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772 (eval $ac_compile) 2>conftest.er1
19774 grep -v '^ *+' conftest.er1 >conftest.err
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try='test -z "$ac_c_werror_flag"
19780 || test ! -s conftest.err'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 bfd_cv_have_sys_procfs_type_pstatus_t=no
19800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19805 cat >>confdefs.h <<\_ACEOF
19806 #define HAVE_PSTATUS_T 1
19810 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19811 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19813 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19814 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19815 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 cat >conftest.$ac_ext <<_ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19826 #include <sys/procfs.h>
19835 rm -f conftest.$ac_objext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837 (eval $ac_compile) 2>conftest.er1
19839 grep -v '^ *+' conftest.er1 >conftest.err
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 bfd_cv_have_sys_procfs_type_pxstatus_t=no
19865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19868 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
19870 cat >>confdefs.h <<\_ACEOF
19871 #define HAVE_PXSTATUS_T 1
19875 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19876 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
19878 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19879 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19880 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19891 #include <sys/procfs.h>
19900 rm -f conftest.$ac_objext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19902 (eval $ac_compile) 2>conftest.er1
19904 grep -v '^ *+' conftest.er1 >conftest.err
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
19909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 bfd_cv_have_sys_procfs_type_pstatus32_t=no
19930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19933 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
19935 cat >>confdefs.h <<\_ACEOF
19936 #define HAVE_PSTATUS32_T 1
19940 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19941 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
19943 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19944 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19945 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19948 cat >conftest.$ac_ext <<_ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19956 #include <sys/procfs.h>
19965 rm -f conftest.$ac_objext
19966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19967 (eval $ac_compile) 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } &&
19974 { ac_try='test -z "$ac_c_werror_flag"
19975 || test ! -s conftest.err'
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest.$ac_objext'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
19987 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19992 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
19995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19998 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
20000 cat >>confdefs.h <<\_ACEOF
20001 #define HAVE_PRPSINFO_T 1
20005 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20006 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
20008 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20009 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20010 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20021 #include <sys/procfs.h>
20030 rm -f conftest.$ac_objext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20032 (eval $ac_compile) 2>conftest.er1
20034 grep -v '^ *+' conftest.er1 >conftest.err
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try='test -z "$ac_c_werror_flag"
20040 || test ! -s conftest.err'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest.$ac_objext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
20052 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20057 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20063 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
20065 cat >>confdefs.h <<\_ACEOF
20066 #define HAVE_PRPSINFO32_T 1
20070 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20071 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
20073 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20074 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20075 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 cat >conftest.$ac_ext <<_ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20086 #include <sys/procfs.h>
20095 rm -f conftest.$ac_objext
20096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20097 (eval $ac_compile) 2>conftest.er1
20099 grep -v '^ *+' conftest.er1 >conftest.err
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
20104 { ac_try='test -z "$ac_c_werror_flag"
20105 || test ! -s conftest.err'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest.$ac_objext'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20117 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 bfd_cv_have_sys_procfs_type_psinfo_t=no
20125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20128 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
20130 cat >>confdefs.h <<\_ACEOF
20131 #define HAVE_PSINFO_T 1
20135 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20136 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
20138 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20139 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20140 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 cat >conftest.$ac_ext <<_ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20151 #include <sys/procfs.h>
20160 rm -f conftest.$ac_objext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20162 (eval $ac_compile) 2>conftest.er1
20164 grep -v '^ *+' conftest.er1 >conftest.err
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
20169 { ac_try='test -z "$ac_c_werror_flag"
20170 || test ! -s conftest.err'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest.$ac_objext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
20182 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20187 bfd_cv_have_sys_procfs_type_psinfo32_t=no
20190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20193 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
20195 cat >>confdefs.h <<\_ACEOF
20196 #define HAVE_PSINFO32_T 1
20200 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20201 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
20203 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20204 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20205 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
20208 cat >conftest.$ac_ext <<_ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20216 #include <sys/procfs.h>
20225 rm -f conftest.$ac_objext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>conftest.er1
20229 grep -v '^ *+' conftest.er1 >conftest.err
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20258 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
20260 cat >>confdefs.h <<\_ACEOF
20261 #define HAVE_LWPSTATUS_T 1
20265 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20266 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
20268 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20269 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20270 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20281 #include <sys/procfs.h>
20290 rm -f conftest.$ac_objext
20291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20292 (eval $ac_compile) 2>conftest.er1
20294 grep -v '^ *+' conftest.er1 >conftest.err
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
20299 { ac_try='test -z "$ac_c_werror_flag"
20300 || test ! -s conftest.err'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; } &&
20306 { ac_try='test -s conftest.$ac_objext'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20314 echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20323 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
20325 cat >>confdefs.h <<\_ACEOF
20326 #define HAVE_LWPXSTATUS_T 1
20330 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20331 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
20333 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20334 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20335 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 cat >conftest.$ac_ext <<_ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20346 #include <sys/procfs.h>
20350 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
20355 rm -f conftest.$ac_objext
20356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20388 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
20390 cat >>confdefs.h <<\_ACEOF
20391 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
20395 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20396 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
20398 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20399 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20400 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20411 #include <sys/procfs.h>
20415 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
20420 rm -f conftest.$ac_objext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>conftest.er1
20424 grep -v '^ *+' conftest.er1 >conftest.err
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest.$ac_objext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20453 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
20455 cat >>confdefs.h <<\_ACEOF
20456 #define HAVE_LWPSTATUS_T_PR_REG 1
20460 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20461 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
20463 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20464 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20465 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 cat >conftest.$ac_ext <<_ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20476 #include <sys/procfs.h>
20480 win32_pstatus_t avar
20485 rm -f conftest.$ac_objext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>conftest.er1
20489 grep -v '^ *+' conftest.er1 >conftest.err
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
20494 { ac_try='test -z "$ac_c_werror_flag"
20495 || test ! -s conftest.err'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20518 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
20520 cat >>confdefs.h <<\_ACEOF
20521 #define HAVE_WIN32_PSTATUS_T 1
20525 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20526 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
20532 if test -n "$TRAD_HEADER"; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define TRAD_HEADER $TRAD_HEADER
20540 # Horrible hacks to build DLLs on Windows.
20545 if test "$enable_shared" = "yes"; then
20546 WIN32LDFLAGS="-no-undefined"
20547 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20551 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
20553 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20554 if test -n "$x"; then
20555 WIN32LIBADD="-L../libiberty/pic -liberty"
20564 # Canonicalize the secondary target names.
20565 if test -n "$enable_targets" ; then
20566 for targ in `echo $enable_targets | sed 's/,/ /g'`
20568 result=`$ac_config_sub $targ 2>/dev/null`
20569 if test -n "$result" ; then
20570 canon_targets="$canon_targets $result"
20572 # Allow targets that config.sub doesn't recognize, like "all".
20573 canon_targets="$canon_targets $targ"
20584 for targ in $target $canon_targets
20586 if test "x$targ" = "xall"; then
20588 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
20590 . $srcdir/config.bfd
20591 if test "x$targ" = "x$target"; then
20592 defvec=$targ_defvec
20594 selvecs="$selvecs $targ_defvec $targ_selvecs"
20595 selarchs="$selarchs $targ_archs"
20596 TDEFINES="$TDEFINES $targ_cflags"
20601 # This processing still needs to be done if we're to decide properly whether
20602 # 64-bit support needs to be compiled in. Currently, it will be included if
20603 # the default or any other explicitly requested target requires it; it
20604 # will not be included on a 32-bit host if no 64-bit target is requested, and
20605 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
20608 # uniq the default and selected vectors in all the configured targets.
20610 for i in $selvecs ; do
20619 # uniq the associated vectors in all the configured targets.
20621 for i in $assocvecs ; do
20630 # uniq the architectures in all the configured targets.
20632 for i in $selarchs ; do
20640 # Target backend .o files.
20643 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
20645 for vec in $selvecs
20649 # This list is alphabetized to make it easy to compare
20650 # with the two vector lists in targets.c. For the same reason,
20651 # use one entry per line, even though this leads to long lines.
20652 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
20653 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20654 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20655 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20656 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20657 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
20658 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20659 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20660 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20661 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20662 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20663 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20664 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20665 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20666 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20667 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20668 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20669 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20670 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20671 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20672 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20673 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20674 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
20675 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
20676 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20677 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
20678 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20679 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20680 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20681 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20682 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20683 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20684 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
20685 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
20686 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20687 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20688 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20689 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20690 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20691 bfd_elf32_bigarm_symbian_vec)
20692 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20693 bfd_elf32_bigarm_vxworks_vec)
20694 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20695 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20696 bfd_elf32_bigmips_vxworks_vec)
20697 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20698 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
20699 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
20700 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20701 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
20702 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20703 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
20704 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
20705 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
20706 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20707 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20708 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
20709 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20710 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20711 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20712 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
20713 bfd_elf32_i386_dragonfly_vec)
20714 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20715 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20716 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20717 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20718 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20719 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20720 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
20721 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
20722 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
20723 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
20724 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
20725 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20726 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20727 bfd_elf32_littlearm_symbian_vec)
20728 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20729 bfd_elf32_littlearm_vxworks_vec)
20730 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20731 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20732 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20733 bfd_elf32_littlemips_vxworks_vec)
20734 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20735 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
20736 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20737 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20738 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20739 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20740 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20741 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20742 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20743 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20744 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20745 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20746 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20747 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20748 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20749 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
20750 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
20751 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
20752 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20753 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20754 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20755 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20756 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
20757 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
20758 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20759 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20760 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20761 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20762 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20763 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
20764 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20765 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20766 # FIXME: We include cofflink.lo not because it's needed for
20767 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20768 # which needs it but does not list it. Should be fixed in right place.
20769 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20770 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20771 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20772 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20773 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20774 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20775 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20776 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20777 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20778 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20779 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20780 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20781 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20782 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20783 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20784 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20785 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20786 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
20787 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20788 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20789 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20790 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
20791 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
20792 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
20793 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
20794 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20795 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20796 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20797 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20798 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20799 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20800 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20801 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20802 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20803 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20804 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20805 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20806 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20807 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
20808 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20809 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20810 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
20811 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20812 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20813 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20814 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20815 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20816 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20817 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20818 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20819 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20820 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20821 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20822 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20823 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
20824 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20825 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20826 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20827 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20828 cris_aout_vec) tb="$tb aout-cris.lo" ;;
20829 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
20830 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20831 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20832 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20833 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
20834 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20835 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20836 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20837 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20838 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20839 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20840 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20841 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20842 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20843 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
20844 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
20845 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20846 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
20847 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20848 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20849 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20850 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
20851 i386msdos_vec) tb="$tb i386msdos.lo" ;;
20852 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20853 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
20854 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20855 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
20856 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20857 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20858 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20859 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20860 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20861 ieee_vec) tb="$tb ieee.lo" ;;
20862 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20863 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
20864 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20865 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20866 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
20867 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
20868 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20869 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
20870 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
20871 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
20872 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
20873 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20874 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20875 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
20876 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20877 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20878 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20879 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20880 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20881 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
20882 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
20883 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
20884 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
20885 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
20886 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
20887 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
20888 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
20889 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
20890 pef_vec) tb="$tb pef.lo" ;;
20891 pef_xlib_vec) tb="$tb pef.lo" ;;
20892 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
20893 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20894 ppcboot_vec) tb="$tb ppcboot.lo" ;;
20895 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
20896 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20897 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20898 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20899 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20900 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20901 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20902 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20903 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20904 som_vec) tb="$tb som.lo" ;;
20905 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
20906 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20907 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20908 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20909 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20910 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
20911 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
20912 sym_vec) tb="$tb xsym.lo" ;;
20913 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20914 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
20915 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20916 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20917 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20918 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20919 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20920 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
20921 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
20922 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
20923 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
20924 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
20925 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
20926 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
20927 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
20928 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
20929 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
20930 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
20931 versados_vec) tb="$tb versados.lo" ;;
20932 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
20933 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20934 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20935 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
20936 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
20937 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
20939 # These appear out of order in targets.c
20940 srec_vec) tb="$tb srec.lo" ;;
20941 symbolsrec_vec) tb="$tb srec.lo" ;;
20942 tekhex_vec) tb="$tb tekhex.lo" ;;
20943 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20944 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20947 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20948 echo "$as_me: error: *** unknown target vector $vec" >&2;}
20949 { (exit 1); exit 1; }; } ;;
20952 if test ${target_size} = 64; then
20955 if test x"${vec}" = x"${defvec}"; then
20956 bfd_default_target_size=${target_size}
20960 # Target architecture .o files.
20961 # A couple of CPUs use shorter file names to avoid problems on DOS
20963 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
20965 # Weed out duplicate .o files.
20987 if test x${all_targets} = xtrue ; then
20988 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
20989 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
20993 test -n "$assocvecs" &&
20994 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
20995 else # all_targets is true
20996 # Only set these if they will be nonempty, for the clever echo.
20999 test -n "$selvecs" &&
21000 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21001 test -n "$selvecs" &&
21002 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21003 test -n "$selarchs" &&
21004 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21005 fi # all_targets is true
21007 case ${host64}-${target64}-${want64} in
21010 bfd64_libs='$(BFD64_LIBS)'
21011 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
21012 if test $BFD_HOST_64_BIT_DEFINED = 0; then
21013 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21014 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21015 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21016 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
21018 if test -n "$GCC" ; then
21020 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21021 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
21022 # Add more tests for gcc versions with non-working 64-bit support here.
21023 cat >conftest.$ac_ext <<_ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 :__GNUC__:__GNUC_MINOR__:__i386__:
21031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21032 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
21034 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21035 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
21037 echo "$as_me:$LINENO: result: no" >&5
21038 echo "${ECHO_T}no" >&6
21042 if test $bad_64bit_gcc = yes ; then
21043 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21044 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21045 { (exit 1); exit 1; }; }
21051 all_backends='$(BFD32_BACKENDS)'
21062 # Determine the host dependant file_ptr a.k.a. off_t type. In order
21063 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21064 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21065 # Hopefully a reasonable assumption since fseeko et.al. should be
21066 # upward compatible.
21072 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
21074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21075 echo "$as_me:$LINENO: checking for $ac_func" >&5
21076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21077 if eval "test \"\${$as_ac_var+set}\" = set"; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 cat >conftest.$ac_ext <<_ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21088 #define $ac_func innocuous_$ac_func
21090 /* System header to define __stub macros and hopefully few prototypes,
21091 which can conflict with char $ac_func (); below.
21092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21093 <limits.h> exists even on freestanding compilers. */
21096 # include <limits.h>
21098 # include <assert.h>
21103 /* Override any gcc2 internal prototype to avoid an error. */
21108 /* We use char because int might match the return type of a gcc2
21109 builtin and then its argument prototype would still apply. */
21111 /* The GNU C library defines this for functions which it implements
21112 to always fail with ENOSYS. Some functions are actually named
21113 something starting with __ and the normal name is an alias. */
21114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21117 char (*f) () = $ac_func;
21126 return f != $ac_func;
21131 rm -f conftest.$ac_objext conftest$ac_exeext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21133 (eval $ac_link) 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_c_werror_flag"
21141 || test ! -s conftest.err'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest$ac_exeext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 eval "$as_ac_var=yes"
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 eval "$as_ac_var=no"
21160 rm -f conftest.err conftest.$ac_objext \
21161 conftest$ac_exeext conftest.$ac_ext
21163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21165 if test `eval echo '${'$as_ac_var'}'` = yes; then
21166 cat >>confdefs.h <<_ACEOF
21167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21173 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21174 echo "$as_me:$LINENO: checking for off_t" >&5
21175 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21176 if test "${ac_cv_type_off_t+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 $ac_includes_default
21191 if (sizeof (off_t))
21197 rm -f conftest.$ac_objext
21198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21199 (eval $ac_compile) 2>conftest.er1
21201 grep -v '^ *+' conftest.er1 >conftest.err
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
21206 { ac_try='test -z "$ac_c_werror_flag"
21207 || test ! -s conftest.err'
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; } &&
21213 { ac_try='test -s conftest.$ac_objext'
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; }; then
21219 ac_cv_type_off_t=yes
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21224 ac_cv_type_off_t=no
21226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21228 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21229 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21231 echo "$as_me:$LINENO: checking size of off_t" >&5
21232 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21233 if test "${ac_cv_sizeof_off_t+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21236 if test "$ac_cv_type_off_t" = yes; then
21237 # The cast to unsigned long works around a bug in the HP C Compiler
21238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21240 # This bug is HP SR number 8606223364.
21241 if test "$cross_compiling" = yes; then
21242 # Depending upon the size, compute the lo and hi bounds.
21243 cat >conftest.$ac_ext <<_ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21249 $ac_includes_default
21253 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21260 rm -f conftest.$ac_objext
21261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21262 (eval $ac_compile) 2>conftest.er1
21264 grep -v '^ *+' conftest.er1 >conftest.err
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
21269 { ac_try='test -z "$ac_c_werror_flag"
21270 || test ! -s conftest.err'
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; } &&
21276 { ac_try='test -s conftest.$ac_objext'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21284 cat >conftest.$ac_ext <<_ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 $ac_includes_default
21294 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21301 rm -f conftest.$ac_objext
21302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21303 (eval $ac_compile) 2>conftest.er1
21305 grep -v '^ *+' conftest.er1 >conftest.err
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } &&
21310 { ac_try='test -z "$ac_c_werror_flag"
21311 || test ! -s conftest.err'
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; } &&
21317 { ac_try='test -s conftest.$ac_objext'
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 ac_hi=$ac_mid; break
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328 ac_lo=`expr $ac_mid + 1`
21329 if test $ac_lo -le $ac_mid; then
21333 ac_mid=`expr 2 '*' $ac_mid + 1`
21335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21338 echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21341 cat >conftest.$ac_ext <<_ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 $ac_includes_default
21351 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21358 rm -f conftest.$ac_objext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21360 (eval $ac_compile) 2>conftest.er1
21362 grep -v '^ *+' conftest.er1 >conftest.err
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try='test -z "$ac_c_werror_flag"
21368 || test ! -s conftest.err'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest.$ac_objext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 $ac_includes_default
21392 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21399 rm -f conftest.$ac_objext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21401 (eval $ac_compile) 2>conftest.er1
21403 grep -v '^ *+' conftest.er1 >conftest.err
21405 cat conftest.err >&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } &&
21408 { ac_try='test -z "$ac_c_werror_flag"
21409 || test ! -s conftest.err'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
21415 { ac_try='test -s conftest.$ac_objext'
21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421 ac_lo=$ac_mid; break
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_hi=`expr '(' $ac_mid ')' - 1`
21427 if test $ac_mid -le $ac_hi; then
21431 ac_mid=`expr 2 '*' $ac_mid`
21433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21436 echo "$as_me: failed program was:" >&5
21437 sed 's/^/| /' conftest.$ac_ext >&5
21441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21444 # Binary search between lo and hi bounds.
21445 while test "x$ac_lo" != "x$ac_hi"; do
21446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21447 cat >conftest.$ac_ext <<_ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 $ac_includes_default
21457 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21464 rm -f conftest.$ac_objext
21465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466 (eval $ac_compile) 2>conftest.er1
21468 grep -v '^ *+' conftest.er1 >conftest.err
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
21473 { ac_try='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try='test -s conftest.$ac_objext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_lo=`expr '(' $ac_mid ')' + 1`
21493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21496 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21497 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21498 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21499 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21500 See \`config.log' for more details." >&5
21501 echo "$as_me: error: cannot compute sizeof (off_t), 77
21502 See \`config.log' for more details." >&2;}
21503 { (exit 1); exit 1; }; }; } ;;
21506 if test "$cross_compiling" = yes; then
21507 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21508 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21509 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21510 See \`config.log' for more details." >&5
21511 echo "$as_me: error: cannot run test program while cross compiling
21512 See \`config.log' for more details." >&2;}
21513 { (exit 1); exit 1; }; }; }
21515 cat >conftest.$ac_ext <<_ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 $ac_includes_default
21522 long longval () { return (long) (sizeof (off_t)); }
21523 unsigned long ulongval () { return (long) (sizeof (off_t)); }
21525 #include <stdlib.h>
21530 FILE *f = fopen ("conftest.val", "w");
21533 if (((long) (sizeof (off_t))) < 0)
21535 long i = longval ();
21536 if (i != ((long) (sizeof (off_t))))
21538 fprintf (f, "%ld\n", i);
21542 unsigned long i = ulongval ();
21543 if (i != ((long) (sizeof (off_t))))
21545 fprintf (f, "%lu\n", i);
21547 exit (ferror (f) || fclose (f) != 0);
21553 rm -f conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555 (eval $ac_link) 2>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_cv_sizeof_off_t=`cat conftest.val`
21566 echo "$as_me: program exited with status $ac_status" >&5
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ( exit $ac_status )
21571 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21572 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21574 See \`config.log' for more details." >&5
21575 echo "$as_me: error: cannot compute sizeof (off_t), 77
21576 See \`config.log' for more details." >&2;}
21577 { (exit 1); exit 1; }; }; }
21579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21584 ac_cv_sizeof_off_t=0
21587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21588 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
21589 cat >>confdefs.h <<_ACEOF
21590 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21595 echo "$as_me:$LINENO: checking file_ptr type" >&5
21596 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
21597 bfd_file_ptr="long"
21598 bfd_ufile_ptr="unsigned long"
21599 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21600 -o x"${ac_cv_sizeof_off_t}" = x8; then
21601 bfd_file_ptr=BFD_HOST_64_BIT
21602 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21604 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21605 echo "${ECHO_T}$bfd_file_ptr" >&6
21611 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21612 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
21613 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
21614 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21615 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21620 for ac_header in stdlib.h unistd.h
21622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21624 echo "$as_me:$LINENO: checking for $ac_header" >&5
21625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21632 # Is the header compilable?
21633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21635 cat >conftest.$ac_ext <<_ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 $ac_includes_default
21642 #include <$ac_header>
21644 rm -f conftest.$ac_objext
21645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21646 (eval $ac_compile) 2>conftest.er1
21648 grep -v '^ *+' conftest.er1 >conftest.err
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
21653 { ac_try='test -z "$ac_c_werror_flag"
21654 || test ! -s conftest.err'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; } &&
21660 { ac_try='test -s conftest.$ac_objext'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 ac_header_compiler=yes
21668 echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21671 ac_header_compiler=no
21673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21675 echo "${ECHO_T}$ac_header_compiler" >&6
21677 # Is the header present?
21678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21686 #include <$ac_header>
21688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21691 grep -v '^ *+' conftest.er1 >conftest.err
21693 cat conftest.err >&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } >/dev/null; then
21696 if test -s conftest.err; then
21697 ac_cpp_err=$ac_c_preproc_warn_flag
21698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21705 if test -z "$ac_cpp_err"; then
21706 ac_header_preproc=yes
21708 echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21711 ac_header_preproc=no
21713 rm -f conftest.err conftest.$ac_ext
21714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21715 echo "${ECHO_T}$ac_header_preproc" >&6
21717 # So? What about this header?
21718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21724 ac_header_preproc=yes
21727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21741 ## ------------------------------------------ ##
21742 ## Report this to the AC_PACKAGE_NAME lists. ##
21743 ## ------------------------------------------ ##
21746 sed "s/^/$as_me: WARNING: /" >&2
21749 echo "$as_me:$LINENO: checking for $ac_header" >&5
21750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21754 eval "$as_ac_Header=\$ac_header_preproc"
21756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21761 cat >>confdefs.h <<_ACEOF
21762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21770 for ac_func in getpagesize
21772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21773 echo "$as_me:$LINENO: checking for $ac_func" >&5
21774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21775 if eval "test \"\${$as_ac_var+set}\" = set"; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 cat >conftest.$ac_ext <<_ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21786 #define $ac_func innocuous_$ac_func
21788 /* System header to define __stub macros and hopefully few prototypes,
21789 which can conflict with char $ac_func (); below.
21790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21791 <limits.h> exists even on freestanding compilers. */
21794 # include <limits.h>
21796 # include <assert.h>
21801 /* Override any gcc2 internal prototype to avoid an error. */
21806 /* We use char because int might match the return type of a gcc2
21807 builtin and then its argument prototype would still apply. */
21809 /* The GNU C library defines this for functions which it implements
21810 to always fail with ENOSYS. Some functions are actually named
21811 something starting with __ and the normal name is an alias. */
21812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21815 char (*f) () = $ac_func;
21824 return f != $ac_func;
21829 rm -f conftest.$ac_objext conftest$ac_exeext
21830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21831 (eval $ac_link) 2>conftest.er1
21833 grep -v '^ *+' conftest.er1 >conftest.err
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
21838 { ac_try='test -z "$ac_c_werror_flag"
21839 || test ! -s conftest.err'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest$ac_exeext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 eval "$as_ac_var=yes"
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 eval "$as_ac_var=no"
21858 rm -f conftest.err conftest.$ac_objext \
21859 conftest$ac_exeext conftest.$ac_ext
21861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21863 if test `eval echo '${'$as_ac_var'}'` = yes; then
21864 cat >>confdefs.h <<_ACEOF
21865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21871 echo "$as_me:$LINENO: checking for working mmap" >&5
21872 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21873 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21874 echo $ECHO_N "(cached) $ECHO_C" >&6
21876 if test "$cross_compiling" = yes; then
21877 ac_cv_func_mmap_fixed_mapped=no
21879 cat >conftest.$ac_ext <<_ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21885 $ac_includes_default
21886 /* malloc might have been renamed as rpl_malloc. */
21889 /* Thanks to Mike Haertel and Jim Avera for this test.
21890 Here is a matrix of mmap possibilities:
21891 mmap private not fixed
21892 mmap private fixed at somewhere currently unmapped
21893 mmap private fixed at somewhere already mapped
21894 mmap shared not fixed
21895 mmap shared fixed at somewhere currently unmapped
21896 mmap shared fixed at somewhere already mapped
21897 For private mappings, we should verify that changes cannot be read()
21898 back from the file, nor mmap's back from the file at a different
21899 address. (There have been systems where private was not correctly
21900 implemented like the infamous i386 svr4.0, and systems where the
21901 VM page cache was not coherent with the file system buffer cache
21902 like early versions of FreeBSD and possibly contemporary NetBSD.)
21903 For shared mappings, we should conversely verify that changes get
21904 propagated back to all the places they're supposed to be.
21906 Grep wants private fixed already mapped.
21907 The main things grep needs to know about mmap are:
21908 * does it exist and is it safe to write into the mmap'd area
21909 * how to use it (BSD variants) */
21912 #include <sys/mman.h>
21914 #if !STDC_HEADERS && !HAVE_STDLIB_H
21918 /* This mess was copied from the GNU getpagesize.h. */
21919 #if !HAVE_GETPAGESIZE
21920 /* Assume that all systems that can run configure have sys/param.h. */
21921 # if !HAVE_SYS_PARAM_H
21922 # define HAVE_SYS_PARAM_H 1
21925 # ifdef _SC_PAGESIZE
21926 # define getpagesize() sysconf(_SC_PAGESIZE)
21927 # else /* no _SC_PAGESIZE */
21928 # if HAVE_SYS_PARAM_H
21929 # include <sys/param.h>
21930 # ifdef EXEC_PAGESIZE
21931 # define getpagesize() EXEC_PAGESIZE
21932 # else /* no EXEC_PAGESIZE */
21934 # define getpagesize() NBPG * CLSIZE
21937 # endif /* no CLSIZE */
21938 # else /* no NBPG */
21940 # define getpagesize() NBPC
21941 # else /* no NBPC */
21943 # define getpagesize() PAGESIZE
21944 # endif /* PAGESIZE */
21945 # endif /* no NBPC */
21946 # endif /* no NBPG */
21947 # endif /* no EXEC_PAGESIZE */
21948 # else /* no HAVE_SYS_PARAM_H */
21949 # define getpagesize() 8192 /* punt totally */
21950 # endif /* no HAVE_SYS_PARAM_H */
21951 # endif /* no _SC_PAGESIZE */
21953 #endif /* no HAVE_GETPAGESIZE */
21958 char *data, *data2, *data3;
21962 pagesize = getpagesize ();
21964 /* First, make a file with some known garbage in it. */
21965 data = (char *) malloc (pagesize);
21968 for (i = 0; i < pagesize; ++i)
21969 *(data + i) = rand ();
21971 fd = creat ("conftest.mmap", 0600);
21974 if (write (fd, data, pagesize) != pagesize)
21978 /* Next, try to mmap the file at a fixed address which already has
21979 something else allocated at it. If we can, also make sure that
21980 we see the same garbage. */
21981 fd = open ("conftest.mmap", O_RDWR);
21984 data2 = (char *) malloc (2 * pagesize);
21987 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21988 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21989 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21991 for (i = 0; i < pagesize; ++i)
21992 if (*(data + i) != *(data2 + i))
21995 /* Finally, make sure that changes to the mapped area do not
21996 percolate back to the file as seen by read(). (This is a bug on
21997 some variants of i386 svr4.0.) */
21998 for (i = 0; i < pagesize; ++i)
21999 *(data2 + i) = *(data2 + i) + 1;
22000 data3 = (char *) malloc (pagesize);
22003 if (read (fd, data3, pagesize) != pagesize)
22005 for (i = 0; i < pagesize; ++i)
22006 if (*(data + i) != *(data3 + i))
22012 rm -f conftest$ac_exeext
22013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22014 (eval $ac_link) 2>&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_cv_func_mmap_fixed_mapped=yes
22025 echo "$as_me: program exited with status $ac_status" >&5
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ( exit $ac_status )
22030 ac_cv_func_mmap_fixed_mapped=no
22032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22035 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22036 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22037 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22039 cat >>confdefs.h <<\_ACEOF
22040 #define HAVE_MMAP 1
22044 rm -f conftest.mmap
22048 for ac_func in madvise mprotect
22050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22051 echo "$as_me:$LINENO: checking for $ac_func" >&5
22052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22053 if eval "test \"\${$as_ac_var+set}\" = set"; then
22054 echo $ECHO_N "(cached) $ECHO_C" >&6
22056 cat >conftest.$ac_ext <<_ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22064 #define $ac_func innocuous_$ac_func
22066 /* System header to define __stub macros and hopefully few prototypes,
22067 which can conflict with char $ac_func (); below.
22068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22069 <limits.h> exists even on freestanding compilers. */
22072 # include <limits.h>
22074 # include <assert.h>
22079 /* Override any gcc2 internal prototype to avoid an error. */
22084 /* We use char because int might match the return type of a gcc2
22085 builtin and then its argument prototype would still apply. */
22087 /* The GNU C library defines this for functions which it implements
22088 to always fail with ENOSYS. Some functions are actually named
22089 something starting with __ and the normal name is an alias. */
22090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22093 char (*f) () = $ac_func;
22102 return f != $ac_func;
22107 rm -f conftest.$ac_objext conftest$ac_exeext
22108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22109 (eval $ac_link) 2>conftest.er1
22111 grep -v '^ *+' conftest.er1 >conftest.err
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } &&
22116 { ac_try='test -z "$ac_c_werror_flag"
22117 || test ! -s conftest.err'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; } &&
22123 { ac_try='test -s conftest$ac_exeext'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129 eval "$as_ac_var=yes"
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 eval "$as_ac_var=no"
22136 rm -f conftest.err conftest.$ac_objext \
22137 conftest$ac_exeext conftest.$ac_ext
22139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22141 if test `eval echo '${'$as_ac_var'}'` = yes; then
22142 cat >>confdefs.h <<_ACEOF
22143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22149 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22151 cat >>confdefs.h <<\_ACEOF
22157 rm -f doc/config.status
22158 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22161 ac_config_commands="$ac_config_commands default"
22168 cat >confcache <<\_ACEOF
22169 # This file is a shell script that caches the results of configure
22170 # tests run on this system so they can be shared between configure
22171 # scripts and configure runs, see configure's option --config-cache.
22172 # It is not useful on other systems. If it contains results you don't
22173 # want to keep, you may remove or edit it.
22175 # config.status only pays attention to the cache file if you give it
22176 # the --recheck option to rerun configure.
22178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22180 # following values.
22184 # The following way of writing the cache mishandles newlines in values,
22185 # but we know of no workaround that is simple, portable, and efficient.
22186 # So, don't put newlines in cache variables' values.
22187 # Ultrix sh set writes to stderr and can't be redirected directly,
22188 # and sets the high bit in the cache file unless we assign to the vars.
22191 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22193 # `set' does not quote correctly, so add quotes (double-quote
22194 # substitution turns \\\\ into \\, and sed turns \\ into \).
22197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22200 # `set' quotes correctly as required by POSIX, so do not add quotes.
22202 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22211 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22213 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22214 if test -w $cache_file; then
22215 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22216 cat confcache >$cache_file
22218 echo "not updating unwritable cache $cache_file"
22223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22224 # Let make expand exec_prefix.
22225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22229 # trailing colons and then remove the whole line if VPATH becomes empty
22230 # (actually we leave an empty line to preserve line numbers).
22231 if test "x$srcdir" = x.; then
22232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22233 s/:*\$(srcdir):*/:/;
22234 s/:*\${srcdir}:*/:/;
22236 s/^\([^=]*=[ ]*\):*/\1/;
22242 DEFS=-DHAVE_CONFIG_H
22246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22247 # 1. Remove the extension, and $U if already installed.
22248 ac_i=`echo "$ac_i" |
22249 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22251 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22252 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22254 LIBOBJS=$ac_libobjs
22256 LTLIBOBJS=$ac_ltlibobjs
22259 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22260 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22261 Usually this means the macro was only invoked conditionally." >&5
22262 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22263 Usually this means the macro was only invoked conditionally." >&2;}
22264 { (exit 1); exit 1; }; }
22266 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22267 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22268 Usually this means the macro was only invoked conditionally." >&5
22269 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22270 Usually this means the macro was only invoked conditionally." >&2;}
22271 { (exit 1); exit 1; }; }
22273 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22274 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22275 Usually this means the macro was only invoked conditionally." >&5
22276 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22277 Usually this means the macro was only invoked conditionally." >&2;}
22278 { (exit 1); exit 1; }; }
22280 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22281 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22282 Usually this means the macro was only invoked conditionally." >&5
22283 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22284 Usually this means the macro was only invoked conditionally." >&2;}
22285 { (exit 1); exit 1; }; }
22287 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22288 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22289 Usually this means the macro was only invoked conditionally." >&5
22290 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22291 Usually this means the macro was only invoked conditionally." >&2;}
22292 { (exit 1); exit 1; }; }
22295 : ${CONFIG_STATUS=./config.status}
22296 ac_clean_files_save=$ac_clean_files
22297 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22298 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22299 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22300 cat >$CONFIG_STATUS <<_ACEOF
22302 # Generated by $as_me.
22303 # Run this file to recreate the current configuration.
22304 # Compiler output produced by configure, useful for debugging
22305 # configure, is in config.log if it exists.
22308 ac_cs_recheck=false
22310 SHELL=\${CONFIG_SHELL-$SHELL}
22313 cat >>$CONFIG_STATUS <<\_ACEOF
22314 ## --------------------- ##
22315 ## M4sh Initialization. ##
22316 ## --------------------- ##
22318 # Be Bourne compatible
22319 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22322 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22323 # is contrary to our usage. Disable this feature.
22324 alias -g '${1+"$@"}'='"$@"'
22325 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22328 DUALCASE=1; export DUALCASE # for MKS sh
22330 # Support unset when possible.
22331 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22338 # Work around bugs in pre-3.0 UWIN ksh.
22339 $as_unset ENV MAIL MAILPATH
22346 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22347 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22348 LC_TELEPHONE LC_TIME
22350 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22351 eval $as_var=C; export $as_var
22357 # Required to use basename.
22358 if expr a : '\(a\)' >/dev/null 2>&1; then
22364 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22365 as_basename=basename
22371 # Name of the executable.
22372 as_me=`$as_basename "$0" ||
22373 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22374 X"$0" : 'X\(//\)$' \| \
22375 X"$0" : 'X\(/\)$' \| \
22376 . : '\(.\)' 2>/dev/null ||
22378 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22379 /^X\/\(\/\/\)$/{ s//\1/; q; }
22380 /^X\/\(\/\).*/{ s//\1/; q; }
22384 # PATH needs CR, and LINENO needs CR and PATH.
22385 # Avoid depending upon Character Ranges.
22386 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22387 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22388 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22389 as_cr_digits='0123456789'
22390 as_cr_alnum=$as_cr_Letters$as_cr_digits
22392 # The user is always right.
22393 if test "${PATH_SEPARATOR+set}" != set; then
22394 echo "#! /bin/sh" >conf$$.sh
22395 echo "exit 0" >>conf$$.sh
22397 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22406 as_lineno_1=$LINENO
22407 as_lineno_2=$LINENO
22408 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22409 test "x$as_lineno_1" != "x$as_lineno_2" &&
22410 test "x$as_lineno_3" = "x$as_lineno_2" || {
22411 # Find who we are. Look in the path if we contain no path at all
22414 *[\\/]* ) as_myself=$0 ;;
22415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22416 for as_dir in $PATH
22419 test -z "$as_dir" && as_dir=.
22420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22425 # We did not find ourselves, most probably we were run as `sh COMMAND'
22426 # in which case we are not to be found in the path.
22427 if test "x$as_myself" = x; then
22430 if test ! -f "$as_myself"; then
22431 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22432 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22433 { (exit 1); exit 1; }; }
22435 case $CONFIG_SHELL in
22437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22438 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22441 test -z "$as_dir" && as_dir=.
22442 for as_base in sh bash ksh sh5; do
22445 if ("$as_dir/$as_base" -c '
22446 as_lineno_1=$LINENO
22447 as_lineno_2=$LINENO
22448 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22449 test "x$as_lineno_1" != "x$as_lineno_2" &&
22450 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22451 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22452 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22453 CONFIG_SHELL=$as_dir/$as_base
22454 export CONFIG_SHELL
22455 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22463 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22464 # uniformly replaced by the line number. The first 'sed' inserts a
22465 # line-number line before each line; the second 'sed' does the real
22466 # work. The second script uses 'N' to pair each line-number line
22467 # with the numbered line, and appends trailing '-' during
22468 # substitution so that $LINENO is not a special case at line end.
22469 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22470 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22471 sed '=' <$as_myself |
22476 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22479 s,^['$as_cr_digits']*\n,,
22480 ' >$as_me.lineno &&
22481 chmod +x $as_me.lineno ||
22482 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22483 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22484 { (exit 1); exit 1; }; }
22486 # Don't try to exec as it changes $[0], causing all sort of problems
22487 # (the dirname of $[0] is not the place where we might find the
22488 # original and so on. Autoconf is especially sensible to this).
22490 # Exit status is that of the last command.
22495 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22496 *c*,-n*) ECHO_N= ECHO_C='
22498 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22499 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22502 if expr a : '\(a\)' >/dev/null 2>&1; then
22508 rm -f conf$$ conf$$.exe conf$$.file
22510 if ln -s conf$$.file conf$$ 2>/dev/null; then
22511 # We could just check for DJGPP; but this test a) works b) is more generic
22512 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22513 if test -f conf$$.exe; then
22514 # Don't use ln at all; we don't have any links
22519 elif ln conf$$.file conf$$ 2>/dev/null; then
22524 rm -f conf$$ conf$$.exe conf$$.file
22526 if mkdir -p . 2>/dev/null; then
22529 test -d ./-p && rmdir ./-p
22533 as_executable_p="test -f"
22535 # Sed expression to map a string onto a valid CPP name.
22536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22538 # Sed expression to map a string onto a valid variable name.
22539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22543 # We need space, tab and new line, in precisely that order.
22553 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22554 # report actual input values of CONFIG_FILES etc. instead of their
22555 # values after options handling. Logging --version etc. is OK.
22559 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22560 ## Running $as_me. ##
22565 This file was extended by $as_me, which was
22566 generated by GNU Autoconf 2.59. Invocation command line was
22568 CONFIG_FILES = $CONFIG_FILES
22569 CONFIG_HEADERS = $CONFIG_HEADERS
22570 CONFIG_LINKS = $CONFIG_LINKS
22571 CONFIG_COMMANDS = $CONFIG_COMMANDS
22575 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22579 # Files that config.status was made for.
22580 if test -n "$ac_config_files"; then
22581 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22584 if test -n "$ac_config_headers"; then
22585 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22588 if test -n "$ac_config_links"; then
22589 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22592 if test -n "$ac_config_commands"; then
22593 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22596 cat >>$CONFIG_STATUS <<\_ACEOF
22599 \`$as_me' instantiates files from templates according to the
22600 current configuration.
22602 Usage: $0 [OPTIONS] [FILE]...
22604 -h, --help print this help, then exit
22605 -V, --version print version number, then exit
22606 -q, --quiet do not print progress messages
22607 -d, --debug don't remove temporary files
22608 --recheck update $as_me by reconfiguring in the same conditions
22609 --file=FILE[:TEMPLATE]
22610 instantiate the configuration file FILE
22611 --header=FILE[:TEMPLATE]
22612 instantiate the configuration header FILE
22614 Configuration files:
22617 Configuration headers:
22620 Configuration commands:
22623 Report bugs to <bug-autoconf@gnu.org>."
22626 cat >>$CONFIG_STATUS <<_ACEOF
22629 configured by $0, generated by GNU Autoconf 2.59,
22630 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22632 Copyright (C) 2003 Free Software Foundation, Inc.
22633 This config.status script is free software; the Free Software Foundation
22634 gives unlimited permission to copy, distribute and modify it."
22639 cat >>$CONFIG_STATUS <<\_ACEOF
22640 # If no file are specified by the user, then we need to provide default
22641 # value. By we need to know if files were specified by the user.
22647 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22648 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22656 *) # This is not an option, so the user has probably given explicit
22659 ac_need_defaults=false;;
22663 # Handling of the options.
22665 cat >>$CONFIG_STATUS <<\_ACEOF
22666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22668 --version | --vers* | -V )
22669 echo "$ac_cs_version"; exit 0 ;;
22671 # Conflict between --help and --header
22672 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22673 Try \`$0 --help' for more information." >&5
22674 echo "$as_me: error: ambiguous option: $1
22675 Try \`$0 --help' for more information." >&2;}
22676 { (exit 1); exit 1; }; };;
22677 --help | --hel | -h )
22678 echo "$ac_cs_usage"; exit 0 ;;
22679 --debug | --d* | -d )
22681 --file | --fil | --fi | --f )
22683 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22684 ac_need_defaults=false;;
22685 --header | --heade | --head | --hea )
22687 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22688 ac_need_defaults=false;;
22689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22693 # This is an error.
22694 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22695 Try \`$0 --help' for more information." >&5
22696 echo "$as_me: error: unrecognized option: $1
22697 Try \`$0 --help' for more information." >&2;}
22698 { (exit 1); exit 1; }; } ;;
22700 *) ac_config_targets="$ac_config_targets $1" ;;
22706 ac_configure_extra_args=
22708 if $ac_cs_silent; then
22710 ac_configure_extra_args="$ac_configure_extra_args --silent"
22714 cat >>$CONFIG_STATUS <<_ACEOF
22715 if \$ac_cs_recheck; then
22716 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22717 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22722 cat >>$CONFIG_STATUS <<_ACEOF
22724 # INIT-COMMANDS section.
22727 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22730 # The HP-UX ksh and POSIX shell print the target directory to stdout
22731 # if CDPATH is set.
22732 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22734 sed_quote_subst='$sed_quote_subst'
22735 double_quote_subst='$double_quote_subst'
22736 delay_variable_subst='$delay_variable_subst'
22737 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22738 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22739 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22740 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22741 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22742 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22743 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22744 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22745 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22746 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22747 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22748 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22749 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22750 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22751 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22752 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22753 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22754 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22755 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22756 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22757 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22758 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22759 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22760 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22761 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22762 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22763 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22764 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22765 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22766 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22767 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22768 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22769 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22770 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22771 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22772 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22773 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22774 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22775 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22776 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22777 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22778 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22779 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22780 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22781 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
22782 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22783 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22784 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22785 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22786 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22787 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22788 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22789 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22790 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22791 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22792 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22793 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22794 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22795 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22796 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22797 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22798 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22799 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22800 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22801 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22802 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22803 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22804 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22805 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22806 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22807 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22808 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22809 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22810 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22811 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22812 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22813 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22814 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22815 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22816 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22817 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22818 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22819 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22820 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22821 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22822 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22823 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22824 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22825 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22826 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22827 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22828 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22829 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22830 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22831 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22832 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22833 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22834 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22835 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22836 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22837 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22838 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22839 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22840 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22841 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22842 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22843 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22844 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22845 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22846 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22847 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22848 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22849 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22850 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22851 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22852 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22853 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22854 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22857 LTCFLAGS='$LTCFLAGS'
22858 compiler='$compiler_DEFAULT'
22860 # Quote evaled strings.
22872 deplibs_check_method \
22881 lt_cv_sys_global_symbol_pipe \
22882 lt_cv_sys_global_symbol_to_cdecl \
22883 lt_cv_sys_global_symbol_to_c_name_address \
22884 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22887 lt_prog_compiler_no_builtin_flag \
22888 lt_prog_compiler_wl \
22889 lt_prog_compiler_pic \
22890 lt_prog_compiler_static \
22891 lt_cv_prog_compiler_c_o \
22899 export_dynamic_flag_spec \
22900 whole_archive_flag_spec \
22901 compiler_needs_object \
22903 allow_undefined_flag \
22904 no_undefined_flag \
22905 hardcode_libdir_flag_spec \
22906 hardcode_libdir_flag_spec_ld \
22907 hardcode_libdir_separator \
22912 variables_saved_for_relink \
22914 library_names_spec \
22919 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22920 *[\\\\\\\`\\"\\\$]*)
22921 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22924 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22929 # Double-quote double-evaled strings.
22930 for var in reload_cmds \
22931 old_postinstall_cmds \
22932 old_postuninstall_cmds \
22934 extract_expsyms_cmds \
22935 old_archive_from_new_cmds \
22936 old_archive_from_expsyms_cmds \
22938 archive_expsym_cmds \
22940 module_expsym_cmds \
22941 export_symbols_cmds \
22944 postuninstall_cmds \
22946 sys_lib_search_path_spec \
22947 sys_lib_dlsearch_path_spec; do
22948 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22949 *[\\\\\\\`\\"\\\$]*)
22950 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22953 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22958 # Fix-up fallback echo if it was mangled by the above quoting rules.
22960 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22964 ac_aux_dir='$ac_aux_dir'
22965 xsi_shell='$xsi_shell'
22966 lt_shell_append='$lt_shell_append'
22968 # See if we are running on zsh, and set the options which allow our
22969 # commands through without removal of \ escapes INIT.
22970 if test -n "\${ZSH_VERSION+set}" ; then
22971 setopt NO_GLOB_SUBST
22977 TIMESTAMP='$TIMESTAMP'
22983 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22984 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
22986 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22987 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22988 LINGUAS="${LINGUAS-%UNSET%}"
22993 acx_cv_header_stdint="$acx_cv_header_stdint"
22994 acx_cv_type_int8_t="$acx_cv_type_int8_t"
22995 acx_cv_type_int16_t="$acx_cv_type_int16_t"
22996 acx_cv_type_int32_t="$acx_cv_type_int32_t"
22997 acx_cv_type_int64_t="$acx_cv_type_int64_t"
22998 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22999 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23000 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23001 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23002 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23003 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23004 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23005 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23006 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23014 cat >>$CONFIG_STATUS <<\_ACEOF
23015 for ac_config_target in $ac_config_targets
23017 case "$ac_config_target" in
23018 # Handling of arguments.
23019 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23020 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23021 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23022 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
23023 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23024 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23025 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23026 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
23027 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23028 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23029 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23030 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23031 { (exit 1); exit 1; }; };;
23035 # If the user did not use the arguments to specify the items to instantiate,
23036 # then the envvar interface is used. Set only those that are not.
23037 # We use the long form for the default assignment because of an extremely
23038 # bizarre bug on SunOS 4.1.3.
23039 if $ac_need_defaults; then
23040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23042 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23045 # Have a temporary directory for convenience. Make it in the build tree
23046 # simply because there is no reason to put it here, and in addition,
23047 # creating and moving files from /tmp can sometimes cause problems.
23048 # Create a temporary directory, and hook for its removal unless debugging.
23051 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23052 trap '{ (exit 1); exit 1; }' 1 2 13 15
23055 # Create a (secure) tmp directory for tmp files.
23058 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23059 test -n "$tmp" && test -d "$tmp"
23062 tmp=./confstat$$-$RANDOM
23063 (umask 077 && mkdir $tmp)
23066 echo "$me: cannot create a temporary directory in ." >&2
23067 { (exit 1); exit 1; }
23072 cat >>$CONFIG_STATUS <<_ACEOF
23075 # CONFIG_FILES section.
23078 # No need to generate the scripts if there are no CONFIG_FILES.
23079 # This happens for instance when ./config.status config.h
23080 if test -n "\$CONFIG_FILES"; then
23081 # Protect against being on the right side of a sed subst in config.status.
23082 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23083 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23084 s,@SHELL@,$SHELL,;t t
23085 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23086 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23087 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23088 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23089 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23090 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23091 s,@exec_prefix@,$exec_prefix,;t t
23092 s,@prefix@,$prefix,;t t
23093 s,@program_transform_name@,$program_transform_name,;t t
23094 s,@bindir@,$bindir,;t t
23095 s,@sbindir@,$sbindir,;t t
23096 s,@libexecdir@,$libexecdir,;t t
23097 s,@datadir@,$datadir,;t t
23098 s,@sysconfdir@,$sysconfdir,;t t
23099 s,@sharedstatedir@,$sharedstatedir,;t t
23100 s,@localstatedir@,$localstatedir,;t t
23101 s,@libdir@,$libdir,;t t
23102 s,@includedir@,$includedir,;t t
23103 s,@oldincludedir@,$oldincludedir,;t t
23104 s,@infodir@,$infodir,;t t
23105 s,@mandir@,$mandir,;t t
23106 s,@build_alias@,$build_alias,;t t
23107 s,@host_alias@,$host_alias,;t t
23108 s,@target_alias@,$target_alias,;t t
23109 s,@DEFS@,$DEFS,;t t
23110 s,@ECHO_C@,$ECHO_C,;t t
23111 s,@ECHO_N@,$ECHO_N,;t t
23112 s,@ECHO_T@,$ECHO_T,;t t
23113 s,@LIBS@,$LIBS,;t t
23114 s,@build@,$build,;t t
23115 s,@build_cpu@,$build_cpu,;t t
23116 s,@build_vendor@,$build_vendor,;t t
23117 s,@build_os@,$build_os,;t t
23118 s,@host@,$host,;t t
23119 s,@host_cpu@,$host_cpu,;t t
23120 s,@host_vendor@,$host_vendor,;t t
23121 s,@host_os@,$host_os,;t t
23122 s,@target@,$target,;t t
23123 s,@target_cpu@,$target_cpu,;t t
23124 s,@target_vendor@,$target_vendor,;t t
23125 s,@target_os@,$target_os,;t t
23127 s,@CFLAGS@,$CFLAGS,;t t
23128 s,@LDFLAGS@,$LDFLAGS,;t t
23129 s,@CPPFLAGS@,$CPPFLAGS,;t t
23130 s,@ac_ct_CC@,$ac_ct_CC,;t t
23131 s,@EXEEXT@,$EXEEXT,;t t
23132 s,@OBJEXT@,$OBJEXT,;t t
23133 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23134 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23135 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23136 s,@CYGPATH_W@,$CYGPATH_W,;t t
23137 s,@PACKAGE@,$PACKAGE,;t t
23138 s,@VERSION@,$VERSION,;t t
23139 s,@ACLOCAL@,$ACLOCAL,;t t
23140 s,@AUTOCONF@,$AUTOCONF,;t t
23141 s,@AUTOMAKE@,$AUTOMAKE,;t t
23142 s,@AUTOHEADER@,$AUTOHEADER,;t t
23143 s,@MAKEINFO@,$MAKEINFO,;t t
23144 s,@install_sh@,$install_sh,;t t
23145 s,@STRIP@,$STRIP,;t t
23146 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23147 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23148 s,@mkdir_p@,$mkdir_p,;t t
23150 s,@SET_MAKE@,$SET_MAKE,;t t
23151 s,@am__leading_dot@,$am__leading_dot,;t t
23152 s,@AMTAR@,$AMTAR,;t t
23153 s,@am__tar@,$am__tar,;t t
23154 s,@am__untar@,$am__untar,;t t
23155 s,@DEPDIR@,$DEPDIR,;t t
23156 s,@am__include@,$am__include,;t t
23157 s,@am__quote@,$am__quote,;t t
23158 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23159 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23160 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23161 s,@CCDEPMODE@,$CCDEPMODE,;t t
23162 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23163 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23165 s,@ac_ct_AR@,$ac_ct_AR,;t t
23166 s,@RANLIB@,$RANLIB,;t t
23167 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23169 s,@EGREP@,$EGREP,;t t
23170 s,@LIBTOOL@,$LIBTOOL,;t t
23172 s,@FGREP@,$FGREP,;t t
23173 s,@GREP@,$GREP,;t t
23175 s,@DUMPBIN@,$DUMPBIN,;t t
23176 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23178 s,@LN_S@,$LN_S,;t t
23179 s,@OBJDUMP@,$OBJDUMP,;t t
23180 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23181 s,@lt_ECHO@,$lt_ECHO,;t t
23182 s,@DSYMUTIL@,$DSYMUTIL,;t t
23183 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23184 s,@NMEDIT@,$NMEDIT,;t t
23185 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23186 s,@LIPO@,$LIPO,;t t
23187 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23188 s,@OTOOL@,$OTOOL,;t t
23189 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23190 s,@OTOOL64@,$OTOOL64,;t t
23191 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
23192 s,@DEBUGDIR@,$DEBUGDIR,;t t
23193 s,@PKGVERSION@,$PKGVERSION,;t t
23194 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23195 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
23196 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23197 s,@NO_WERROR@,$NO_WERROR,;t t
23198 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23199 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23200 s,@MAINT@,$MAINT,;t t
23201 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23202 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
23203 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23204 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
23205 s,@host_noncanonical@,$host_noncanonical,;t t
23206 s,@target_noncanonical@,$target_noncanonical,;t t
23207 s,@bfdlibdir@,$bfdlibdir,;t t
23208 s,@bfdincludedir@,$bfdincludedir,;t t
23209 s,@USE_NLS@,$USE_NLS,;t t
23210 s,@LIBINTL@,$LIBINTL,;t t
23211 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23212 s,@INCINTL@,$INCINTL,;t t
23213 s,@XGETTEXT@,$XGETTEXT,;t t
23214 s,@GMSGFMT@,$GMSGFMT,;t t
23215 s,@POSUB@,$POSUB,;t t
23216 s,@CATALOGS@,$CATALOGS,;t t
23217 s,@DATADIRNAME@,$DATADIRNAME,;t t
23218 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23219 s,@GENCAT@,$GENCAT,;t t
23220 s,@CATOBJEXT@,$CATOBJEXT,;t t
23221 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23222 s,@MSGFMT@,$MSGFMT,;t t
23223 s,@MSGMERGE@,$MSGMERGE,;t t
23224 s,@HDEFINES@,$HDEFINES,;t t
23225 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
23226 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
23227 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23228 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23229 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
23230 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
23231 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23232 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23233 s,@COREFILE@,$COREFILE,;t t
23234 s,@COREFLAG@,$COREFLAG,;t t
23235 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
23236 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
23237 s,@TDEFINES@,$TDEFINES,;t t
23238 s,@wordsize@,$wordsize,;t t
23239 s,@bfd64_libs@,$bfd64_libs,;t t
23240 s,@all_backends@,$all_backends,;t t
23241 s,@bfd_backends@,$bfd_backends,;t t
23242 s,@bfd_machines@,$bfd_machines,;t t
23243 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23244 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23245 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23246 s,@tdefaults@,$tdefaults,;t t
23247 s,@datarootdir@,$datarootdir,;t t
23248 s,@docdir@,$docdir,;t t
23249 s,@htmldir@,$htmldir,;t t
23250 s,@LIBOBJS@,$LIBOBJS,;t t
23251 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23256 cat >>$CONFIG_STATUS <<\_ACEOF
23257 # Split the substitutions into bite-sized pieces for seds with
23258 # small command number limits, like on Digital OSF/1 and HP-UX.
23259 ac_max_sed_lines=48
23260 ac_sed_frag=1 # Number of current file.
23261 ac_beg=1 # First line for current file.
23262 ac_end=$ac_max_sed_lines # Line after last line for current file.
23265 while $ac_more_lines; do
23266 if test $ac_beg -gt 1; then
23267 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23269 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23271 if test ! -s $tmp/subs.frag; then
23272 ac_more_lines=false
23274 # The purpose of the label and of the branching condition is to
23275 # speed up the sed processing (if there are no `@' at all, there
23276 # is no need to browse any of the substitutions).
23277 # These are the two extra sed commands mentioned above.
23279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23280 if test -z "$ac_sed_cmds"; then
23281 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23283 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23285 ac_sed_frag=`expr $ac_sed_frag + 1`
23287 ac_end=`expr $ac_end + $ac_max_sed_lines`
23290 if test -z "$ac_sed_cmds"; then
23293 fi # test -n "$CONFIG_FILES"
23296 cat >>$CONFIG_STATUS <<\_ACEOF
23297 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23300 - | *:- | *:-:* ) # input from stdin
23302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23306 * ) ac_file_in=$ac_file.in ;;
23309 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23310 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23312 X"$ac_file" : 'X\(//\)[^/]' \| \
23313 X"$ac_file" : 'X\(//\)$' \| \
23314 X"$ac_file" : 'X\(/\)' \| \
23315 . : '\(.\)' 2>/dev/null ||
23317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23319 /^X\(\/\/\)$/{ s//\1/; q; }
23320 /^X\(\/\).*/{ s//\1/; q; }
23322 { if $as_mkdir_p; then
23327 while test ! -d "$as_dir"; do
23328 as_dirs="$as_dir $as_dirs"
23329 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23331 X"$as_dir" : 'X\(//\)[^/]' \| \
23332 X"$as_dir" : 'X\(//\)$' \| \
23333 X"$as_dir" : 'X\(/\)' \| \
23334 . : '\(.\)' 2>/dev/null ||
23336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23338 /^X\(\/\/\)$/{ s//\1/; q; }
23339 /^X\(\/\).*/{ s//\1/; q; }
23342 test ! -n "$as_dirs" || mkdir $as_dirs
23343 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23344 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23345 { (exit 1); exit 1; }; }; }
23349 if test "$ac_dir" != .; then
23350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23351 # A "../" for each directory in $ac_dir_suffix.
23352 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23354 ac_dir_suffix= ac_top_builddir=
23358 .) # No --srcdir option. We are building in place.
23360 if test -z "$ac_top_builddir"; then
23363 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23365 [\\/]* | ?:[\\/]* ) # Absolute path.
23366 ac_srcdir=$srcdir$ac_dir_suffix;
23367 ac_top_srcdir=$srcdir ;;
23368 *) # Relative path.
23369 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23370 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23373 # Do not use `cd foo && pwd` to compute absolute paths, because
23374 # the directories may not exist.
23376 .) ac_abs_builddir="$ac_dir";;
23379 .) ac_abs_builddir=`pwd`;;
23380 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23381 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23384 case $ac_abs_builddir in
23385 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23387 case ${ac_top_builddir}. in
23388 .) ac_abs_top_builddir=$ac_abs_builddir;;
23389 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23390 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23393 case $ac_abs_builddir in
23394 .) ac_abs_srcdir=$ac_srcdir;;
23397 .) ac_abs_srcdir=$ac_abs_builddir;;
23398 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23399 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23402 case $ac_abs_builddir in
23403 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23405 case $ac_top_srcdir in
23406 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23407 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23408 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23415 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23418 if test x"$ac_file" != x-; then
23419 { echo "$as_me:$LINENO: creating $ac_file" >&5
23420 echo "$as_me: creating $ac_file" >&6;}
23423 # Let's still pretend it is `configure' which instantiates (i.e., don't
23424 # use $as_me), people would be surprised to read:
23425 # /* config.h. Generated by config.status. */
23426 if test x"$ac_file" = x-; then
23429 configure_input="$ac_file. "
23431 configure_input=$configure_input"Generated from `echo $ac_file_in |
23432 sed 's,.*/,,'` by configure."
23434 # First look for the input files in the build tree, otherwise in the
23436 ac_file_inputs=`IFS=:
23437 for f in $ac_file_in; do
23439 -) echo $tmp/stdin ;;
23441 # Absolute (can't be DOS-style, as IFS=:)
23442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23443 echo "$as_me: error: cannot find input file: $f" >&2;}
23444 { (exit 1); exit 1; }; }
23447 if test -f "$f"; then
23450 elif test -f "$srcdir/$f"; then
23455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23456 echo "$as_me: error: cannot find input file: $f" >&2;}
23457 { (exit 1); exit 1; }; }
23460 done` || { (exit 1); exit 1; }
23462 cat >>$CONFIG_STATUS <<_ACEOF
23466 cat >>$CONFIG_STATUS <<\_ACEOF
23468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23469 s,@configure_input@,$configure_input,;t t
23470 s,@srcdir@,$ac_srcdir,;t t
23471 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23472 s,@top_srcdir@,$ac_top_srcdir,;t t
23473 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23474 s,@builddir@,$ac_builddir,;t t
23475 s,@abs_builddir@,$ac_abs_builddir,;t t
23476 s,@top_builddir@,$ac_top_builddir,;t t
23477 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23478 s,@INSTALL@,$ac_INSTALL,;t t
23479 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23481 if test x"$ac_file" != x-; then
23482 mv $tmp/out $ac_file
23490 cat >>$CONFIG_STATUS <<\_ACEOF
23493 # CONFIG_HEADER section.
23496 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23497 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23499 # ac_d sets the value in "#define NAME VALUE" lines.
23500 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23501 ac_dB='[ ].*$,\1#\2'
23504 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23505 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23506 ac_uB='$,\1#\2define\3'
23510 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23513 - | *:- | *:-:* ) # input from stdin
23515 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23516 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23517 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23518 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23519 * ) ac_file_in=$ac_file.in ;;
23522 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23523 echo "$as_me: creating $ac_file" >&6;}
23525 # First look for the input files in the build tree, otherwise in the
23527 ac_file_inputs=`IFS=:
23528 for f in $ac_file_in; do
23530 -) echo $tmp/stdin ;;
23532 # Absolute (can't be DOS-style, as IFS=:)
23533 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23534 echo "$as_me: error: cannot find input file: $f" >&2;}
23535 { (exit 1); exit 1; }; }
23536 # Do quote $f, to prevent DOS paths from being IFS'd.
23539 if test -f "$f"; then
23542 elif test -f "$srcdir/$f"; then
23547 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23548 echo "$as_me: error: cannot find input file: $f" >&2;}
23549 { (exit 1); exit 1; }; }
23552 done` || { (exit 1); exit 1; }
23553 # Remove the trailing spaces.
23554 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23558 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23559 # `conftest.undefs', that substitutes the proper values into
23560 # config.h.in to produce config.h. The first handles `#define'
23561 # templates, and the second `#undef' templates.
23562 # And first: Protect against being on the right side of a sed subst in
23563 # config.status. Protect against being in an unquoted here document
23564 # in config.status.
23565 rm -f conftest.defines conftest.undefs
23566 # Using a here document instead of a string reduces the quoting nightmare.
23567 # Putting comments in sed scripts is not portable.
23569 # `end' is used to avoid that the second main sed command (meant for
23570 # 0-ary CPP macros) applies to n-ary macro definitions.
23571 # See the Autoconf documentation for `clear'.
23572 cat >confdef2sed.sed <<\_ACEOF
23577 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23579 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23582 # If some macros were called several times there might be several times
23583 # the same #defines, which is useless. Nevertheless, we may not want to
23584 # sort them, since we want the *last* AC-DEFINE to be honored.
23585 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23586 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23587 rm -f confdef2sed.sed
23589 # This sed command replaces #undef with comments. This is necessary, for
23590 # example, in the case of _POSIX_SOURCE, which is predefined and required
23591 # on some systems where configure will not decide to define it.
23592 cat >>conftest.undefs <<\_ACEOF
23593 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23596 # Break up conftest.defines because some shells have a limit on the size
23597 # of here documents, and old seds have small limits too (100 cmds).
23598 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23599 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23600 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23601 echo ' :' >>$CONFIG_STATUS
23602 rm -f conftest.tail
23603 while grep . conftest.defines >/dev/null
23605 # Write a limited-size here document to $tmp/defines.sed.
23606 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23607 # Speed up: don't consider the non `#define' lines.
23608 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23609 # Work around the forget-to-reset-the-flag bug.
23610 echo 't clr' >>$CONFIG_STATUS
23611 echo ': clr' >>$CONFIG_STATUS
23612 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23614 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23616 mv $tmp/out $tmp/in
23618 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23619 rm -f conftest.defines
23620 mv conftest.tail conftest.defines
23622 rm -f conftest.defines
23623 echo ' fi # grep' >>$CONFIG_STATUS
23624 echo >>$CONFIG_STATUS
23626 # Break up conftest.undefs because some shells have a limit on the size
23627 # of here documents, and old seds have small limits too (100 cmds).
23628 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23629 rm -f conftest.tail
23630 while grep . conftest.undefs >/dev/null
23632 # Write a limited-size here document to $tmp/undefs.sed.
23633 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23634 # Speed up: don't consider the non `#undef'
23635 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23636 # Work around the forget-to-reset-the-flag bug.
23637 echo 't clr' >>$CONFIG_STATUS
23638 echo ': clr' >>$CONFIG_STATUS
23639 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23641 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23643 mv $tmp/out $tmp/in
23645 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23646 rm -f conftest.undefs
23647 mv conftest.tail conftest.undefs
23649 rm -f conftest.undefs
23651 cat >>$CONFIG_STATUS <<\_ACEOF
23652 # Let's still pretend it is `configure' which instantiates (i.e., don't
23653 # use $as_me), people would be surprised to read:
23654 # /* config.h. Generated by config.status. */
23655 if test x"$ac_file" = x-; then
23656 echo "/* Generated by configure. */" >$tmp/config.h
23658 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23660 cat $tmp/in >>$tmp/config.h
23662 if test x"$ac_file" != x-; then
23663 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23664 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23665 echo "$as_me: $ac_file is unchanged" >&6;}
23667 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23669 X"$ac_file" : 'X\(//\)[^/]' \| \
23670 X"$ac_file" : 'X\(//\)$' \| \
23671 X"$ac_file" : 'X\(/\)' \| \
23672 . : '\(.\)' 2>/dev/null ||
23674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23676 /^X\(\/\/\)$/{ s//\1/; q; }
23677 /^X\(\/\).*/{ s//\1/; q; }
23679 { if $as_mkdir_p; then
23684 while test ! -d "$as_dir"; do
23685 as_dirs="$as_dir $as_dirs"
23686 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23688 X"$as_dir" : 'X\(//\)[^/]' \| \
23689 X"$as_dir" : 'X\(//\)$' \| \
23690 X"$as_dir" : 'X\(/\)' \| \
23691 . : '\(.\)' 2>/dev/null ||
23693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23695 /^X\(\/\/\)$/{ s//\1/; q; }
23696 /^X\(\/\).*/{ s//\1/; q; }
23699 test ! -n "$as_dirs" || mkdir $as_dirs
23700 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23701 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23702 { (exit 1); exit 1; }; }; }
23705 mv $tmp/config.h $ac_file
23709 rm -f $tmp/config.h
23711 # Compute $ac_file's index in $config_headers.
23713 for _am_header in $config_headers :; do
23714 case $_am_header in
23715 $ac_file | $ac_file:* )
23718 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23721 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23722 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23723 X$ac_file : 'X\(//\)[^/]' \| \
23724 X$ac_file : 'X\(//\)$' \| \
23725 X$ac_file : 'X\(/\)' \| \
23726 . : '\(.\)' 2>/dev/null ||
23728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23730 /^X\(\/\/\)$/{ s//\1/; q; }
23731 /^X\(\/\).*/{ s//\1/; q; }
23732 s/.*/./; q'`/stamp-h$_am_stamp_count
23735 cat >>$CONFIG_STATUS <<\_ACEOF
23738 # CONFIG_COMMANDS section.
23740 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23741 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23742 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23743 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23744 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23745 X"$ac_dest" : 'X\(//\)[^/]' \| \
23746 X"$ac_dest" : 'X\(//\)$' \| \
23747 X"$ac_dest" : 'X\(/\)' \| \
23748 . : '\(.\)' 2>/dev/null ||
23750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23752 /^X\(\/\/\)$/{ s//\1/; q; }
23753 /^X\(\/\).*/{ s//\1/; q; }
23755 { if $as_mkdir_p; then
23760 while test ! -d "$as_dir"; do
23761 as_dirs="$as_dir $as_dirs"
23762 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23764 X"$as_dir" : 'X\(//\)[^/]' \| \
23765 X"$as_dir" : 'X\(//\)$' \| \
23766 X"$as_dir" : 'X\(/\)' \| \
23767 . : '\(.\)' 2>/dev/null ||
23769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23771 /^X\(\/\/\)$/{ s//\1/; q; }
23772 /^X\(\/\).*/{ s//\1/; q; }
23775 test ! -n "$as_dirs" || mkdir $as_dirs
23776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23777 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23778 { (exit 1); exit 1; }; }; }
23782 if test "$ac_dir" != .; then
23783 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23784 # A "../" for each directory in $ac_dir_suffix.
23785 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23787 ac_dir_suffix= ac_top_builddir=
23791 .) # No --srcdir option. We are building in place.
23793 if test -z "$ac_top_builddir"; then
23796 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23798 [\\/]* | ?:[\\/]* ) # Absolute path.
23799 ac_srcdir=$srcdir$ac_dir_suffix;
23800 ac_top_srcdir=$srcdir ;;
23801 *) # Relative path.
23802 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23803 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23806 # Do not use `cd foo && pwd` to compute absolute paths, because
23807 # the directories may not exist.
23809 .) ac_abs_builddir="$ac_dir";;
23812 .) ac_abs_builddir=`pwd`;;
23813 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23814 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23817 case $ac_abs_builddir in
23818 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23820 case ${ac_top_builddir}. in
23821 .) ac_abs_top_builddir=$ac_abs_builddir;;
23822 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23823 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23826 case $ac_abs_builddir in
23827 .) ac_abs_srcdir=$ac_srcdir;;
23830 .) ac_abs_srcdir=$ac_abs_builddir;;
23831 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23832 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23835 case $ac_abs_builddir in
23836 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23838 case $ac_top_srcdir in
23839 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23840 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23841 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23846 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23847 echo "$as_me: executing $ac_dest commands" >&6;}
23849 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23850 # Strip MF so we end up with the name of the file.
23851 mf=`echo "$mf" | sed -e 's/:.*$//'`
23852 # Check whether this is an Automake generated Makefile or not.
23853 # We used to match only the files named `Makefile.in', but
23854 # some people rename them; so instead we look at the file content.
23855 # Grep'ing the first line is not enough: some people post-process
23856 # each Makefile.in and add a new line on top of each file to say so.
23857 # So let's grep whole file.
23858 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23859 dirpart=`(dirname "$mf") 2>/dev/null ||
23860 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23861 X"$mf" : 'X\(//\)[^/]' \| \
23862 X"$mf" : 'X\(//\)$' \| \
23863 X"$mf" : 'X\(/\)' \| \
23864 . : '\(.\)' 2>/dev/null ||
23866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23868 /^X\(\/\/\)$/{ s//\1/; q; }
23869 /^X\(\/\).*/{ s//\1/; q; }
23874 # Extract the definition of DEPDIR, am__include, and am__quote
23875 # from the Makefile without running `make'.
23876 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23877 test -z "$DEPDIR" && continue
23878 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23879 test -z "am__include" && continue
23880 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23881 # When using ansi2knr, U may be empty or an underscore; expand it
23882 U=`sed -n 's/^U = //p' < "$mf"`
23883 # Find all dependency output files, they are included files with
23884 # $(DEPDIR) in their names. We invoke sed twice because it is the
23885 # simplest approach to changing $(DEPDIR) to its actual value in the
23887 for file in `sed -n "
23888 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23889 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23890 # Make sure the directory exists.
23891 test -f "$dirpart/$file" && continue
23892 fdir=`(dirname "$file") 2>/dev/null ||
23893 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23894 X"$file" : 'X\(//\)[^/]' \| \
23895 X"$file" : 'X\(//\)$' \| \
23896 X"$file" : 'X\(/\)' \| \
23897 . : '\(.\)' 2>/dev/null ||
23899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23901 /^X\(\/\/\)$/{ s//\1/; q; }
23902 /^X\(\/\).*/{ s//\1/; q; }
23904 { if $as_mkdir_p; then
23905 mkdir -p $dirpart/$fdir
23907 as_dir=$dirpart/$fdir
23909 while test ! -d "$as_dir"; do
23910 as_dirs="$as_dir $as_dirs"
23911 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23913 X"$as_dir" : 'X\(//\)[^/]' \| \
23914 X"$as_dir" : 'X\(//\)$' \| \
23915 X"$as_dir" : 'X\(/\)' \| \
23916 . : '\(.\)' 2>/dev/null ||
23918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23920 /^X\(\/\/\)$/{ s//\1/; q; }
23921 /^X\(\/\).*/{ s//\1/; q; }
23924 test ! -n "$as_dirs" || mkdir $as_dirs
23925 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23926 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23927 { (exit 1); exit 1; }; }; }
23929 # echo "creating $dirpart/$file"
23930 echo '# dummy' > "$dirpart/$file"
23936 # See if we are running on zsh, and set the options which allow our
23937 # commands through without removal of \ escapes.
23938 if test -n "${ZSH_VERSION+set}" ; then
23939 setopt NO_GLOB_SUBST
23942 cfgfile="${ofile}T"
23943 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23946 cat <<_LT_EOF >> "$cfgfile"
23949 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23950 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23951 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23952 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23954 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23955 # 2006, 2007, 2008 Free Software Foundation, Inc.
23956 # Written by Gordon Matzigkeit, 1996
23958 # This file is part of GNU Libtool.
23960 # GNU Libtool is free software; you can redistribute it and/or
23961 # modify it under the terms of the GNU General Public License as
23962 # published by the Free Software Foundation; either version 2 of
23963 # the License, or (at your option) any later version.
23965 # As a special exception to the GNU General Public License,
23966 # if you distribute this file as part of a program or library that
23967 # is built using GNU Libtool, you may include this file under the
23968 # same distribution terms that you use for the rest of that program.
23970 # GNU Libtool is distributed in the hope that it will be useful,
23971 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23972 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23973 # GNU General Public License for more details.
23975 # You should have received a copy of the GNU General Public License
23976 # along with GNU Libtool; see the file COPYING. If not, a copy
23977 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23978 # obtained by writing to the Free Software Foundation, Inc.,
23979 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23982 # The names of the tagged configurations supported by this script.
23985 # ### BEGIN LIBTOOL CONFIG
23987 # Whether or not to build shared libraries.
23988 build_libtool_libs=$enable_shared
23990 # Which release of libtool.m4 was used?
23991 macro_version=$macro_version
23992 macro_revision=$macro_revision
23994 # Whether or not to build static libraries.
23995 build_old_libs=$enable_static
23997 # What type of objects to build.
24000 # Whether or not to optimize for fast installation.
24001 fast_install=$enable_fast_install
24004 host_alias=$host_alias
24008 # The build system.
24009 build_alias=$build_alias
24013 # A sed program that does not truncate output.
24016 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24017 Xsed="\$SED -e 1s/^X//"
24019 # A grep program that handles long lines.
24025 # A literal string matcher.
24028 # A BSD- or MS-compatible name lister.
24031 # Whether we need soft or hard links.
24034 # What is the maximum length of a command?
24035 max_cmd_len=$max_cmd_len
24037 # Object file suffix (normally "o").
24040 # Executable file suffix (normally "").
24043 # whether the shell understands "unset".
24046 # turn spaces into newlines.
24049 # turn newlines into spaces.
24052 # How to create reloadable object files.
24053 reload_flag=$lt_reload_flag
24054 reload_cmds=$lt_reload_cmds
24056 # An object symbol dumper.
24057 OBJDUMP=$lt_OBJDUMP
24059 # Method to check whether dependent libraries are shared objects.
24060 deplibs_check_method=$lt_deplibs_check_method
24062 # Command to use when deplibs_check_method == "file_magic".
24063 file_magic_cmd=$lt_file_magic_cmd
24067 AR_FLAGS=$lt_AR_FLAGS
24069 # A symbol stripping program.
24072 # Commands used to install an old-style archive.
24074 old_postinstall_cmds=$lt_old_postinstall_cmds
24075 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24080 # LTCC compiler flags.
24081 LTCFLAGS=$lt_CFLAGS
24083 # Take the output of nm and produce a listing of raw symbols and C names.
24084 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24086 # Transform the output of nm in a proper C declaration.
24087 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24089 # Transform the output of nm in a C name address pair.
24090 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24092 # Transform the output of nm in a C name address pair when lib prefix is needed.
24093 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24095 # The name of the directory that contains temporary libtool files.
24098 # Shell to use when invoking shell scripts.
24101 # An echo program that does not interpret backslashes.
24104 # Used to examine libraries when file_magic_cmd begins with "file".
24105 MAGIC_CMD=$MAGIC_CMD
24107 # Must we lock files when doing compilation?
24108 need_locks=$lt_need_locks
24110 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24111 DSYMUTIL=$lt_DSYMUTIL
24113 # Tool to change global to local symbols on Mac OS X.
24116 # Tool to manipulate fat objects and archives on Mac OS X.
24119 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24122 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24123 OTOOL64=$lt_OTOOL64
24125 # Old archive suffix (normally "a").
24128 # Shared library suffix (normally ".so").
24129 shrext_cmds=$lt_shrext_cmds
24131 # The commands to extract the exported symbol list from a shared archive.
24132 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24134 # Variables whose values should be saved in libtool wrapper scripts and
24135 # restored at link time.
24136 variables_saved_for_relink=$lt_variables_saved_for_relink
24138 # Do we need the "lib" prefix for modules?
24139 need_lib_prefix=$need_lib_prefix
24141 # Do we need a version for libraries?
24142 need_version=$need_version
24144 # Library versioning type.
24145 version_type=$version_type
24147 # Shared library runtime path variable.
24148 runpath_var=$runpath_var
24150 # Shared library path variable.
24151 shlibpath_var=$shlibpath_var
24153 # Is shlibpath searched before the hard-coded library search path?
24154 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24156 # Format of library name prefix.
24157 libname_spec=$lt_libname_spec
24159 # List of archive names. First name is the real one, the rest are links.
24160 # The last name is the one that the linker finds with -lNAME
24161 library_names_spec=$lt_library_names_spec
24163 # The coded name of the library, if different from the real name.
24164 soname_spec=$lt_soname_spec
24166 # Command to use after installation of a shared archive.
24167 postinstall_cmds=$lt_postinstall_cmds
24169 # Command to use after uninstallation of a shared archive.
24170 postuninstall_cmds=$lt_postuninstall_cmds
24172 # Commands used to finish a libtool library installation in a directory.
24173 finish_cmds=$lt_finish_cmds
24175 # As "finish_cmds", except a single script fragment to be evaled but
24177 finish_eval=$lt_finish_eval
24179 # Whether we should hardcode library paths into libraries.
24180 hardcode_into_libs=$hardcode_into_libs
24182 # Compile-time system search path for libraries.
24183 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24185 # Run-time system search path for libraries.
24186 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24188 # Whether dlopen is supported.
24189 dlopen_support=$enable_dlopen
24191 # Whether dlopen of programs is supported.
24192 dlopen_self=$enable_dlopen_self
24194 # Whether dlopen of statically linked programs is supported.
24195 dlopen_self_static=$enable_dlopen_self_static
24197 # Commands to strip libraries.
24198 old_striplib=$lt_old_striplib
24199 striplib=$lt_striplib
24202 # The linker used to build libraries.
24205 # Commands used to build an old-style archive.
24206 old_archive_cmds=$lt_old_archive_cmds
24208 # A language specific compiler.
24211 # Is the compiler the GNU compiler?
24214 # Compiler flag to turn off builtin functions.
24215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24217 # How to pass a linker flag through the compiler.
24218 wl=$lt_lt_prog_compiler_wl
24220 # Additional compiler flags for building library objects.
24221 pic_flag=$lt_lt_prog_compiler_pic
24223 # Compiler flag to prevent dynamic linking.
24224 link_static_flag=$lt_lt_prog_compiler_static
24226 # Does compiler simultaneously support -c and -o options?
24227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24229 # Whether or not to add -lc for building shared libraries.
24230 build_libtool_need_lc=$archive_cmds_need_lc
24232 # Whether or not to disallow shared libs when runtime libs are static.
24233 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24235 # Compiler flag to allow reflexive dlopens.
24236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24238 # Compiler flag to generate shared objects directly from archives.
24239 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24241 # Whether the compiler copes with passing no objects directly.
24242 compiler_needs_object=$lt_compiler_needs_object
24244 # Create an old-style archive from a shared archive.
24245 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24247 # Create a temporary old-style archive to link instead of a shared archive.
24248 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24250 # Commands used to build a shared archive.
24251 archive_cmds=$lt_archive_cmds
24252 archive_expsym_cmds=$lt_archive_expsym_cmds
24254 # Commands used to build a loadable module if different from building
24255 # a shared archive.
24256 module_cmds=$lt_module_cmds
24257 module_expsym_cmds=$lt_module_expsym_cmds
24259 # Whether we are building with GNU ld or not.
24260 with_gnu_ld=$lt_with_gnu_ld
24262 # Flag that allows shared libraries with undefined symbols to be built.
24263 allow_undefined_flag=$lt_allow_undefined_flag
24265 # Flag that enforces no undefined symbols.
24266 no_undefined_flag=$lt_no_undefined_flag
24268 # Flag to hardcode \$libdir into a binary during linking.
24269 # This must work even if \$libdir does not exist
24270 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24272 # If ld is used when linking, flag to hardcode \$libdir into a binary
24273 # during linking. This must work even if \$libdir does not exist.
24274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24276 # Whether we need a single "-rpath" flag with a separated argument.
24277 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24279 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24280 # DIR into the resulting binary.
24281 hardcode_direct=$hardcode_direct
24283 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24284 # DIR into the resulting binary and the resulting library dependency is
24285 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24286 # library is relocated.
24287 hardcode_direct_absolute=$hardcode_direct_absolute
24289 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24290 # into the resulting binary.
24291 hardcode_minus_L=$hardcode_minus_L
24293 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24294 # into the resulting binary.
24295 hardcode_shlibpath_var=$hardcode_shlibpath_var
24297 # Set to "yes" if building a shared library automatically hardcodes DIR
24298 # into the library and all subsequent libraries and executables linked
24300 hardcode_automatic=$hardcode_automatic
24302 # Set to yes if linker adds runtime paths of dependent libraries
24303 # to runtime path list.
24304 inherit_rpath=$inherit_rpath
24306 # Whether libtool must link a program against all its dependency libraries.
24307 link_all_deplibs=$link_all_deplibs
24309 # Fix the shell variable \$srcfile for the compiler.
24310 fix_srcfile_path=$lt_fix_srcfile_path
24312 # Set to "yes" if exported symbols are required.
24313 always_export_symbols=$always_export_symbols
24315 # The commands to list exported symbols.
24316 export_symbols_cmds=$lt_export_symbols_cmds
24318 # Symbols that should not be listed in the preloaded symbols.
24319 exclude_expsyms=$lt_exclude_expsyms
24321 # Symbols that must always be exported.
24322 include_expsyms=$lt_include_expsyms
24324 # Commands necessary for linking programs (against libraries) with templates.
24325 prelink_cmds=$lt_prelink_cmds
24327 # Specify filename containing input files.
24328 file_list_spec=$lt_file_list_spec
24330 # How to hardcode a shared library path into an executable.
24331 hardcode_action=$hardcode_action
24333 # ### END LIBTOOL CONFIG
24339 cat <<\_LT_EOF >> "$cfgfile"
24340 # AIX sometimes has problems with the GCC collect2 program. For some
24341 # reason, if we set the COLLECT_NAMES environment variable, the problems
24342 # vanish in a puff of smoke.
24343 if test "X${COLLECT_NAMES+set}" != Xset; then
24345 export COLLECT_NAMES
24352 ltmain="$ac_aux_dir/ltmain.sh"
24355 # We use sed instead of cat because bash on DJGPP gets confused if
24356 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24357 # text mode, it properly converts lines to CR/LF. This bash problem
24358 # is reportedly fixed, but why not run on old versions too?
24359 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24360 || (rm -f "$cfgfile"; exit 1)
24364 cat << \_LT_EOF >> "$cfgfile"
24366 # func_dirname file append nondir_replacement
24367 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24368 # otherwise set result to NONDIR_REPLACEMENT.
24372 */*) func_dirname_result="${1%/*}${2}" ;;
24373 * ) func_dirname_result="${3}" ;;
24377 # func_basename file
24380 func_basename_result="${1##*/}"
24383 # func_dirname_and_basename file append nondir_replacement
24384 # perform func_basename and func_dirname in a single function
24386 # dirname: Compute the dirname of FILE. If nonempty,
24387 # add APPEND to the result, otherwise set result
24388 # to NONDIR_REPLACEMENT.
24389 # value returned in "$func_dirname_result"
24390 # basename: Compute filename of FILE.
24391 # value retuned in "$func_basename_result"
24392 # Implementation must be kept synchronized with func_dirname
24393 # and func_basename. For efficiency, we do not delegate to
24394 # those functions but instead duplicate the functionality here.
24395 func_dirname_and_basename ()
24398 */*) func_dirname_result="${1%/*}${2}" ;;
24399 * ) func_dirname_result="${3}" ;;
24401 func_basename_result="${1##*/}"
24404 # func_stripname prefix suffix name
24405 # strip PREFIX and SUFFIX off of NAME.
24406 # PREFIX and SUFFIX must not contain globbing or regex special
24407 # characters, hashes, percent signs, but SUFFIX may contain a leading
24408 # dot (in which case that matches only a dot).
24411 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24412 # positional parameters, so assign one to ordinary parameter first.
24413 func_stripname_result=${3}
24414 func_stripname_result=${func_stripname_result#"${1}"}
24415 func_stripname_result=${func_stripname_result%"${2}"}
24421 func_opt_split_opt=${1%%=*}
24422 func_opt_split_arg=${1#*=}
24429 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24430 *) func_lo2o_result=${1} ;;
24434 # func_xform libobj-or-source
24437 func_xform_result=${1%.*}.lo
24440 # func_arith arithmetic-term...
24443 func_arith_result=$(( $* ))
24447 # STRING may not start with a hyphen.
24450 func_len_result=${#1}
24455 *) # Bourne compatible functions.
24456 cat << \_LT_EOF >> "$cfgfile"
24458 # func_dirname file append nondir_replacement
24459 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24460 # otherwise set result to NONDIR_REPLACEMENT.
24463 # Extract subdirectory from the argument.
24464 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24465 if test "X$func_dirname_result" = "X${1}"; then
24466 func_dirname_result="${3}"
24468 func_dirname_result="$func_dirname_result${2}"
24472 # func_basename file
24475 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24479 # func_stripname prefix suffix name
24480 # strip PREFIX and SUFFIX off of NAME.
24481 # PREFIX and SUFFIX must not contain globbing or regex special
24482 # characters, hashes, percent signs, but SUFFIX may contain a leading
24483 # dot (in which case that matches only a dot).
24484 # func_strip_suffix prefix name
24488 .*) func_stripname_result=`$ECHO "X${3}" \
24489 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24490 *) func_stripname_result=`$ECHO "X${3}" \
24491 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24496 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24497 my_sed_long_arg='1s/^-[^=]*=//'
24502 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24503 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24509 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24512 # func_xform libobj-or-source
24515 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24518 # func_arith arithmetic-term...
24521 func_arith_result=`expr "$@"`
24525 # STRING may not start with a hyphen.
24528 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24534 case $lt_shell_append in
24536 cat << \_LT_EOF >> "$cfgfile"
24538 # func_append var value
24539 # Append VALUE to the end of shell variable VAR.
24547 cat << \_LT_EOF >> "$cfgfile"
24549 # func_append var value
24550 # Append VALUE to the end of shell variable VAR.
24561 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24562 || (rm -f "$cfgfile"; exit 1)
24564 mv -f "$cfgfile" "$ofile" ||
24565 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24570 for ac_file in $CONFIG_FILES; do
24571 # Support "outfile[:infile[:infile...]]"
24573 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24575 # PO directories have a Makefile.in generated from Makefile.in.in.
24576 case "$ac_file" in */Makefile.in)
24577 # Adjust a relative srcdir.
24578 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24579 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24580 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24581 # In autoconf-2.13 it is called $ac_given_srcdir.
24582 # In autoconf-2.50 it is called $srcdir.
24583 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24584 case "$ac_given_srcdir" in
24585 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24586 /*) top_srcdir="$ac_given_srcdir" ;;
24587 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24589 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24590 rm -f "$ac_dir/POTFILES"
24591 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24592 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24593 POMAKEFILEDEPS="POTFILES.in"
24594 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24595 # on $ac_dir but don't depend on user-specified configuration
24597 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24598 # The LINGUAS file contains the set of available languages.
24599 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24600 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24602 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24603 # Hide the ALL_LINGUAS assigment from automake.
24604 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24605 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24607 # The set of available languages was given in configure.in.
24608 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24610 case "$ac_given_srcdir" in
24612 *) srcdirpre='$(srcdir)/' ;;
24618 for lang in $ALL_LINGUAS; do
24619 POFILES="$POFILES $srcdirpre$lang.po"
24620 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24621 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24622 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24624 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24625 # environment variable.
24627 if test -n "$ALL_LINGUAS"; then
24628 for presentlang in $ALL_LINGUAS; do
24630 if test "%UNSET%" != "$LINGUAS"; then
24631 desiredlanguages="$LINGUAS"
24633 desiredlanguages="$ALL_LINGUAS"
24635 for desiredlang in $desiredlanguages; do
24636 # Use the presentlang catalog if desiredlang is
24637 # a. equal to presentlang, or
24638 # b. a variant of presentlang (because in this case,
24639 # presentlang can be used as a fallback for messages
24640 # which are not translated in the desiredlang catalog).
24641 case "$desiredlang" in
24642 "$presentlang"*) useit=yes;;
24645 if test $useit = yes; then
24646 INST_LINGUAS="$INST_LINGUAS $presentlang"
24651 if test -n "$INST_LINGUAS"; then
24652 for lang in $INST_LINGUAS; do
24653 CATALOGS="$CATALOGS $lang.gmo"
24656 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24657 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24658 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24659 if test -f "$f"; then
24661 *.orig | *.bak | *~) ;;
24662 *) cat "$f" >> "$ac_dir/Makefile" ;;
24671 if test "$GCC" = yes; then
24672 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24674 echo "/* generated for $CC */" > tmp-stdint.h
24677 sed 's/^ *//' >> tmp-stdint.h <<EOF
24679 #ifndef GCC_GENERATED_STDINT_H
24680 #define GCC_GENERATED_STDINT_H 1
24682 #include <sys/types.h>
24685 if test "$acx_cv_header_stdint" != stdint.h; then
24686 echo "#include <stddef.h>" >> tmp-stdint.h
24688 if test "$acx_cv_header_stdint" != stddef.h; then
24689 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24692 sed 's/^ *//' >> tmp-stdint.h <<EOF
24693 /* glibc uses these symbols as guards to prevent redefinitions. */
24694 #ifdef __int8_t_defined
24699 #ifdef __uint32_t_defined
24705 # ----------------- done header, emit basic int types -------------
24706 if test "$acx_cv_header_stdint" = stddef.h; then
24707 sed 's/^ *//' >> tmp-stdint.h <<EOF
24711 #ifndef __uint8_t_defined
24712 #define __uint8_t_defined
24713 typedef unsigned $acx_cv_type_int8_t uint8_t;
24719 #ifndef __uint16_t_defined
24720 #define __uint16_t_defined
24721 typedef unsigned $acx_cv_type_int16_t uint16_t;
24727 #ifndef __uint32_t_defined
24728 #define __uint32_t_defined
24729 typedef unsigned $acx_cv_type_int32_t uint32_t;
24735 #ifndef __int8_t_defined
24736 #define __int8_t_defined
24737 typedef $acx_cv_type_int8_t int8_t;
24743 #ifndef __int16_t_defined
24744 #define __int16_t_defined
24745 typedef $acx_cv_type_int16_t int16_t;
24751 #ifndef __int32_t_defined
24752 #define __int32_t_defined
24753 typedef $acx_cv_type_int32_t int32_t;
24757 elif test "$ac_cv_type_u_int32_t" = yes; then
24758 sed 's/^ *//' >> tmp-stdint.h <<EOF
24760 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24773 #ifndef __uint8_t_defined
24774 #define __uint8_t_defined
24775 typedef u_int8_t uint8_t;
24781 #ifndef __uint16_t_defined
24782 #define __uint16_t_defined
24783 typedef u_int16_t uint16_t;
24789 #ifndef __uint32_t_defined
24790 #define __uint32_t_defined
24791 typedef u_int32_t uint32_t;
24796 sed 's/^ *//' >> tmp-stdint.h <<EOF
24798 /* Some systems have guard macros to prevent redefinitions, define them. */
24820 # ------------- done basic int types, emit int64_t types ------------
24821 if test "$ac_cv_type_uint64_t" = yes; then
24822 sed 's/^ *//' >> tmp-stdint.h <<EOF
24824 /* system headers have good uint64_t and int64_t */
24832 elif test "$ac_cv_type_u_int64_t" = yes; then
24833 sed 's/^ *//' >> tmp-stdint.h <<EOF
24835 /* system headers have an u_int64_t (and int64_t) */
24841 #ifndef __uint64_t_defined
24842 #define __uint64_t_defined
24843 typedef u_int64_t uint64_t;
24847 elif test -n "$acx_cv_type_int64_t"; then
24848 sed 's/^ *//' >> tmp-stdint.h <<EOF
24850 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24853 typedef $acx_cv_type_int64_t int64_t;
24857 #ifndef __uint64_t_defined
24858 #define __uint64_t_defined
24859 typedef unsigned $acx_cv_type_int64_t uint64_t;
24864 sed 's/^ *//' >> tmp-stdint.h <<EOF
24866 /* some common heuristics for int64_t, using compiler-specific tests */
24867 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24870 #ifndef __int64_t_defined
24871 typedef long long int64_t;
24876 typedef unsigned long long uint64_t;
24879 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24880 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24881 does not implement __extension__. But that compiler doesn't define
24883 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24884 # define __extension__
24889 __extension__ typedef long long int64_t;
24893 __extension__ typedef unsigned long long uint64_t;
24896 #elif !defined __STRICT_ANSI__
24897 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24901 typedef __int64 int64_t;
24905 typedef unsigned __int64 uint64_t;
24907 # endif /* compiler */
24909 #endif /* ANSI version */
24913 # ------------- done int64_t types, emit intptr types ------------
24914 if test "$ac_cv_type_uintptr_t" != yes; then
24915 sed 's/^ *//' >> tmp-stdint.h <<EOF
24917 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24918 #ifndef __uintptr_t_defined
24919 typedef u$acx_cv_type_intptr_t uintptr_t;
24921 #ifndef __intptr_t_defined
24922 typedef $acx_cv_type_intptr_t intptr_t;
24927 # ------------- done intptr types, emit int_least types ------------
24928 if test "$ac_cv_type_int_least32_t" != yes; then
24929 sed 's/^ *//' >> tmp-stdint.h <<EOF
24931 /* Define int_least types */
24932 typedef int8_t int_least8_t;
24933 typedef int16_t int_least16_t;
24934 typedef int32_t int_least32_t;
24936 typedef int64_t int_least64_t;
24939 typedef uint8_t uint_least8_t;
24940 typedef uint16_t uint_least16_t;
24941 typedef uint32_t uint_least32_t;
24943 typedef uint64_t uint_least64_t;
24948 # ------------- done intptr types, emit int_fast types ------------
24949 if test "$ac_cv_type_int_fast32_t" != yes; then
24950 sed 's/^ *//' >> tmp-stdint.h <<EOF
24952 /* Define int_fast types. short is often slow */
24953 typedef int8_t int_fast8_t;
24954 typedef int int_fast16_t;
24955 typedef int32_t int_fast32_t;
24957 typedef int64_t int_fast64_t;
24960 typedef uint8_t uint_fast8_t;
24961 typedef unsigned int uint_fast16_t;
24962 typedef uint32_t uint_fast32_t;
24964 typedef uint64_t uint_fast64_t;
24969 if test "$ac_cv_type_uintmax_t" != yes; then
24970 sed 's/^ *//' >> tmp-stdint.h <<EOF
24972 /* Define intmax based on what we found */
24974 typedef int64_t intmax_t;
24976 typedef long intmax_t;
24979 typedef uint64_t uintmax_t;
24981 typedef unsigned long uintmax_t;
24986 sed 's/^ *//' >> tmp-stdint.h <<EOF
24988 #endif /* GCC_GENERATED_STDINT_H */
24991 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
24994 mv -f tmp-stdint.h bfd_stdint.h
25001 *) srcdirpre='$(srcdir)/' ;;
25005 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25006 if test $lang != dummy; then
25007 POFILES="$POFILES $srcdirpre$lang.po"
25008 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25011 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25012 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25013 -e "s,@POFILES@,$POFILES," \
25014 -e "s,@GMOFILES@,$GMOFILES," \
25015 po/Makefile.in > po/Makefile ;;
25020 cat >>$CONFIG_STATUS <<\_ACEOF
25022 { (exit 0); exit 0; }
25024 chmod +x $CONFIG_STATUS
25025 ac_clean_files=$ac_clean_files_save
25028 # configure is writing to config.log, and then calls config.status.
25029 # config.status does its own redirection, appending to config.log.
25030 # Unfortunately, on DOS this fails, as config.log is still kept open
25031 # by configure, so config.status won't be able to write to it; its
25032 # output is simply discarded. So we exec the FD to /dev/null,
25033 # effectively closing config.log, so it can be properly (re)opened and
25034 # appended to by config.status. When coming back to configure, we
25035 # need to make the FD available again.
25036 if test "$no_create" != yes; then
25038 ac_config_status_args=
25039 test "$silent" = yes &&
25040 ac_config_status_args="$ac_config_status_args --quiet"
25042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25045 # would make configure fail if this is the last instruction.
25046 $ac_cs_success || { (exit 1); exit 1; }