Add new binutils target: moxie
[binutils.git] / bfd / configure
blob41520b24fb72f584c26ecbab5f5435072b77b8d7
1 #! /bin/sh
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
14 emulate sh
15 NULLCMD=:
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
20 set -o posix
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
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; 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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
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
122 as_myself=$0
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
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
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!
265 else
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
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
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
290 then
291 break
293 done
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
300 else
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
309 IFS="$lt_save_ifs"
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
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
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.
326 ECHO='print -r'
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
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
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
341 # Cool, printf works
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
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export 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"
357 else
358 # maybe with a smaller string...
359 prev=:
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
363 then
364 break
366 prev="$cmd"
367 done
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+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
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`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
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.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="libbfd.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
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 LIBM SHARED_LDFLAGS SHARED_LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
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'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
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 ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
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'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
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.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
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)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
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)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
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)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
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)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
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)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
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'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
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" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
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; }; }
781 *=*)
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'"
789 export $ac_envvar ;;
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}
799 esac
800 done
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`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
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`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
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.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
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
845 cross_compiling=yes
849 ac_tool_prefix=
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 ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
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; }; }
882 else
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}
904 ac_env_CC_value=$CC
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.
930 cat <<_ACEOF
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.
940 Configuration:
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 \`..']
951 _ACEOF
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
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]
980 _ACEOF
982 cat <<\_ACEOF
984 Program names:
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
989 System types:
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]
993 _ACEOF
996 if test -n "$ac_init_help"; then
998 cat <<\_ACEOF
1000 Optional Features:
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-secureplt Default to creating read-only plt entries
1016 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1017 --enable-werror treat compile warnings as errors
1018 --enable-build-warnings enable build-time compiler warnings
1019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
1021 --enable-install-libbfd controls installation of libbfd and related headers
1022 --disable-nls do not use Native Language Support
1024 Optional Packages:
1025 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1026 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1027 --with-pic try to use only PIC/non-PIC objects [default=use
1028 both]
1029 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1030 --with-mmap try using mmap for BFD input files if available
1031 --with-separate-debug-dir=DIR
1032 Look for global separate debug info in DIR
1033 [default=LIBDIR/debug]
1034 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1035 Binutils"
1036 --with-bugurl=URL Direct users to URL to report a bug
1038 Some influential environment variables:
1039 CC C compiler command
1040 CFLAGS C compiler flags
1041 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1042 nonstandard directory <lib dir>
1043 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1044 headers in a nonstandard directory <include dir>
1045 CPP C preprocessor
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1050 _ACEOF
1053 if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1055 ac_popdir=`pwd`
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1058 ac_builddir=.
1060 if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065 ac_dir_suffix= ac_top_builddir=
1068 case $srcdir in
1069 .) # No --srcdir option. We are building in place.
1070 ac_srcdir=.
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1086 case `pwd` in
1087 .) ac_abs_builddir="$ac_dir";;
1089 case "$ac_dir" in
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102 esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1107 case $ac_srcdir in
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120 esac;;
1121 esac
1123 cd $ac_dir
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1126 echo
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1129 echo
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1133 echo
1134 $ac_configure --help
1135 else
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138 cd $ac_popdir
1139 done
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1144 cat <<\_ACEOF
1146 Copyright (C) 2003 Free Software Foundation, Inc.
1147 This configure script is free software; the Free Software Foundation
1148 gives unlimited permission to copy, distribute and modify it.
1149 _ACEOF
1150 exit 0
1152 exec 5>config.log
1153 cat >&5 <<_ACEOF
1154 This file contains any messages produced by compilers while
1155 running configure, to aid debugging if configure makes a mistake.
1157 It was created by $as_me, which was
1158 generated by GNU Autoconf 2.59. Invocation command line was
1160 $ $0 $@
1162 _ACEOF
1164 cat <<_ASUNAME
1165 ## --------- ##
1166 ## Platform. ##
1167 ## --------- ##
1169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186 _ASUNAME
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 for as_dir in $PATH
1191 IFS=$as_save_IFS
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1194 done
1196 } >&5
1198 cat >&5 <<_ACEOF
1201 ## ----------- ##
1202 ## Core tests. ##
1203 ## ----------- ##
1205 _ACEOF
1208 # Keep a trace of the command line.
1209 # Strip out --no-create and --no-recursion so they do not pile up.
1210 # Strip out --silent because we don't want to record it for future runs.
1211 # Also quote any args containing shell meta-characters.
1212 # Make two passes to allow for proper duplicate-argument suppression.
1213 ac_configure_args=
1214 ac_configure_args0=
1215 ac_configure_args1=
1216 ac_sep=
1217 ac_must_keep_next=false
1218 for ac_pass in 1 2
1220 for ac_arg
1222 case $ac_arg in
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 continue ;;
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 esac
1230 case $ac_pass in
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1236 else
1237 case $ac_arg in
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244 esac
1246 -* ) ac_must_keep_next=true ;;
1247 esac
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1251 ac_sep=" "
1253 esac
1254 done
1255 done
1256 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259 # When interrupted or exit'd, cleanup temporary files, and complete
1260 # config.log. We remove comments because anyway the quotes in there
1261 # would cause problems or look ugly.
1262 # WARNING: Be sure not to use single quotes in there, as some shells,
1263 # such as our DU 5.0 friend, will then `close' the trap.
1264 trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1267 echo
1269 cat <<\_ASBOX
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1273 _ASBOX
1274 echo
1275 # The following way of writing the cache mishandles newlines in values,
1277 (set) 2>&1 |
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 *ac_space=\ *)
1280 sed -n \
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285 sed -n \
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 esac;
1290 echo
1292 cat <<\_ASBOX
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1296 _ASBOX
1297 echo
1298 for ac_var in $ac_subst_vars
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1305 if test -n "$ac_subst_files"; then
1306 cat <<\_ASBOX
1307 ## ------------- ##
1308 ## Output files. ##
1309 ## ------------- ##
1310 _ASBOX
1311 echo
1312 for ac_var in $ac_subst_files
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1316 done | sort
1317 echo
1320 if test -s confdefs.h; then
1321 cat <<\_ASBOX
1322 ## ----------- ##
1323 ## confdefs.h. ##
1324 ## ----------- ##
1325 _ASBOX
1326 echo
1327 sed "/^$/d" confdefs.h | sort
1328 echo
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1333 } >&5
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336 exit $exit_status
1338 for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 done
1341 ac_signal=0
1343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344 rm -rf conftest* confdefs.h
1345 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346 echo >confdefs.h
1348 # Predefined preprocessor variables.
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 _ACEOF
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 _ACEOF
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 _ACEOF
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 _ACEOF
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 _ACEOF
1375 # Let the site file select an alternate cache file if it wants to.
1376 # Prefer explicitly selected file to automatically selected ones.
1377 if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380 else
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384 for ac_site_file in $CONFIG_SITE; do
1385 if test -r "$ac_site_file"; then
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387 echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
1389 . "$ac_site_file"
1391 done
1393 if test -r "$cache_file"; then
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398 echo "$as_me: loading cache $cache_file" >&6;}
1399 case $cache_file in
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1402 esac
1404 else
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1407 >$cache_file
1410 # Check that the precious variables saved in the cache have kept the same
1411 # value.
1412 ac_cache_corrupted=false
1413 for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1419 case $ac_old_set,$ac_new_set in
1420 set,)
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1424 ,set)
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1428 ,);;
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
1431 # differences in whitespace do not lead to failure.
1432 ac_old_val_w=`echo x $ac_old_val`
1433 ac_new_val_w=`echo x $ac_new_val`
1434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1435 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1436 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1437 ac_cache_corrupted=:
1438 else
1439 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1440 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1441 eval $ac_var=\$ac_old_val
1443 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1444 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1445 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1446 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1447 fi;;
1448 esac
1449 # Pass precious variables to config.status.
1450 if test "$ac_new_set" = set; then
1451 case $ac_new_val in
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1455 esac
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459 esac
1461 done
1462 if $ac_cache_corrupted; then
1463 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1464 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1465 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1466 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1467 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1468 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469 { (exit 1); exit 1; }; }
1472 ac_ext=c
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1501 ac_aux_dir=
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1516 done
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 # Make sure we can run config.sub.
1527 $ac_config_sub sun4 >/dev/null 2>&1 ||
1528 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530 { (exit 1); exit 1; }; }
1532 echo "$as_me:$LINENO: checking build system type" >&5
1533 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534 if test "${ac_cv_build+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537 ac_cv_build_alias=$build_alias
1538 test -z "$ac_cv_build_alias" &&
1539 ac_cv_build_alias=`$ac_config_guess`
1540 test -z "$ac_cv_build_alias" &&
1541 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543 { (exit 1); exit 1; }; }
1544 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1550 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551 echo "${ECHO_T}$ac_cv_build" >&6
1552 build=$ac_cv_build
1553 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1558 echo "$as_me:$LINENO: checking host system type" >&5
1559 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560 if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 ac_cv_host_alias=$host_alias
1564 test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1572 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573 echo "${ECHO_T}$ac_cv_host" >&6
1574 host=$ac_cv_host
1575 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580 echo "$as_me:$LINENO: checking target system type" >&5
1581 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582 if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585 ac_cv_target_alias=$target_alias
1586 test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1594 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595 echo "${ECHO_T}$ac_cv_target" >&6
1596 target=$ac_cv_target
1597 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602 # The aliases save the names the user supplied, while $host etc.
1603 # will get canonicalized.
1604 test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
1608 ac_ext=c
1609 ac_cpp='$CPP $CPPFLAGS'
1610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1613 if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1635 done
1636 done
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1650 if test -z "$ac_cv_prog_CC"; then
1651 ac_ct_CC=$CC
1652 # Extract the first word of "gcc", so it can be a program name with args.
1653 set dummy gcc; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CC="gcc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1673 done
1674 done
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 CC=$ac_ct_CC
1688 else
1689 CC="$ac_cv_prog_CC"
1692 if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1695 set dummy ${ac_tool_prefix}cc; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_CC="${ac_tool_prefix}cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1715 done
1716 done
1720 CC=$ac_cv_prog_CC
1721 if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1724 else
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1730 if test -z "$ac_cv_prog_CC"; then
1731 ac_ct_CC=$CC
1732 # Extract the first word of "cc", so it can be a program name with args.
1733 set dummy cc; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="cc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2
1753 done
1754 done
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1762 else
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 CC=$ac_ct_CC
1768 else
1769 CC="$ac_cv_prog_CC"
1773 if test -z "$CC"; then
1774 # Extract the first word of "cc", so it can be a program name with args.
1775 set dummy cc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1783 else
1784 ac_prog_rejected=no
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1793 ac_prog_rejected=yes
1794 continue
1796 ac_cv_prog_CC="cc"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1800 done
1801 done
1803 if test $ac_prog_rejected = yes; then
1804 # We found a bogon in the path, so make sure we never use it.
1805 set dummy $ac_cv_prog_CC
1806 shift
1807 if test $# != 0; then
1808 # We chose a different compiler from the bogus one.
1809 # However, it has the same basename, so the bogon will be chosen
1810 # first if we set CC to just the basename; use the full file name.
1811 shift
1812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1817 CC=$ac_cv_prog_CC
1818 if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6
1821 else
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1827 if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1829 for ac_prog in cl
1831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1852 done
1853 done
1857 CC=$ac_cv_prog_CC
1858 if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6
1861 else
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 test -n "$CC" && break
1867 done
1869 if test -z "$CC"; then
1870 ac_ct_CC=$CC
1871 for ac_prog in cl
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_ac_ct_CC="$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1894 done
1895 done
1899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900 if test -n "$ac_ct_CC"; then
1901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902 echo "${ECHO_T}$ac_ct_CC" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1908 test -n "$ac_ct_CC" && break
1909 done
1911 CC=$ac_ct_CC
1917 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1918 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1919 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: no acceptable C compiler found in \$PATH
1922 See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }; }
1925 # Provide some information about the compiler.
1926 echo "$as_me:$LINENO:" \
1927 "checking for C compiler version" >&5
1928 ac_compiler=`set X $ac_compile; echo $2`
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1930 (eval $ac_compiler --version </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1935 (eval $ac_compiler -v </dev/null >&5) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1940 (eval $ac_compiler -V </dev/null >&5) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1945 cat >conftest.$ac_ext <<_ACEOF
1946 /* confdefs.h. */
1947 _ACEOF
1948 cat confdefs.h >>conftest.$ac_ext
1949 cat >>conftest.$ac_ext <<_ACEOF
1950 /* end confdefs.h. */
1953 main ()
1957 return 0;
1959 _ACEOF
1960 ac_clean_files_save=$ac_clean_files
1961 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1962 # Try to create an executable without -o first, disregard a.out.
1963 # It will help us diagnose broken compilers, and finding out an intuition
1964 # of exeext.
1965 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1966 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1967 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1968 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1969 (eval $ac_link_default) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; then
1973 # Find the output, starting from the most likely. This scheme is
1974 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1975 # resort.
1977 # Be careful to initialize this variable, since it used to be cached.
1978 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1979 ac_cv_exeext=
1980 # b.out is created by i960 compilers.
1981 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983 test -f "$ac_file" || continue
1984 case $ac_file in
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987 conftest.$ac_ext )
1988 # This is the source file.
1990 [ab].out )
1991 # We found the default executable, but exeext='' is most
1992 # certainly right.
1993 break;;
1994 *.* )
1995 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996 # FIXME: I believe we export ac_cv_exeext for Libtool,
1997 # but it would be cool to find out if it's true. Does anybody
1998 # maintain Libtool? --akim.
1999 export ac_cv_exeext
2000 break;;
2002 break;;
2003 esac
2004 done
2005 else
2006 echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2010 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2011 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: C compiler cannot create executables
2014 See \`config.log' for more details." >&2;}
2015 { (exit 77); exit 77; }; }; }
2018 ac_exeext=$ac_cv_exeext
2019 echo "$as_me:$LINENO: result: $ac_file" >&5
2020 echo "${ECHO_T}$ac_file" >&6
2022 # Check the compiler produces executables we can run. If not, either
2023 # the compiler is broken, or we cross compile.
2024 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2025 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2026 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2027 # If not cross compiling, check that we can run a simple program.
2028 if test "$cross_compiling" != yes; then
2029 if { ac_try='./$ac_file'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 (eval $ac_try) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; }; then
2035 cross_compiling=no
2036 else
2037 if test "$cross_compiling" = maybe; then
2038 cross_compiling=yes
2039 else
2040 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2041 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2043 If you meant to cross compile, use \`--host'.
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot run C compiled programs.
2046 If you meant to cross compile, use \`--host'.
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }; }
2052 echo "$as_me:$LINENO: result: yes" >&5
2053 echo "${ECHO_T}yes" >&6
2055 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2056 ac_clean_files=$ac_clean_files_save
2057 # Check the compiler produces executables we can run. If not, either
2058 # the compiler is broken, or we cross compile.
2059 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062 echo "${ECHO_T}$cross_compiling" >&6
2064 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067 (eval $ac_link) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2073 # work properly (i.e., refer to `conftest.exe'), while it won't with
2074 # `rm'.
2075 for ac_file in conftest.exe conftest conftest.*; do
2076 test -f "$ac_file" || continue
2077 case $ac_file in
2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080 export ac_cv_exeext
2081 break;;
2082 * ) break;;
2083 esac
2084 done
2085 else
2086 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2087 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2088 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2091 See \`config.log' for more details." >&2;}
2092 { (exit 1); exit 1; }; }; }
2095 rm -f conftest$ac_cv_exeext
2096 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2097 echo "${ECHO_T}$ac_cv_exeext" >&6
2099 rm -f conftest.$ac_ext
2100 EXEEXT=$ac_cv_exeext
2101 ac_exeext=$EXEEXT
2102 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2103 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2104 if test "${ac_cv_objext+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 cat >conftest.$ac_ext <<_ACEOF
2108 /* confdefs.h. */
2109 _ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2115 main ()
2119 return 0;
2121 _ACEOF
2122 rm -f conftest.o conftest.obj
2123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124 (eval $ac_compile) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2129 case $ac_file in
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2132 break;;
2133 esac
2134 done
2135 else
2136 echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2139 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2140 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144 See \`config.log' for more details." >&2;}
2145 { (exit 1); exit 1; }; }; }
2148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2150 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151 echo "${ECHO_T}$ac_cv_objext" >&6
2152 OBJEXT=$ac_cv_objext
2153 ac_objext=$OBJEXT
2154 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159 cat >conftest.$ac_ext <<_ACEOF
2160 /* confdefs.h. */
2161 _ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h. */
2167 main ()
2169 #ifndef __GNUC__
2170 choke me
2171 #endif
2174 return 0;
2176 _ACEOF
2177 rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>conftest.er1
2180 ac_status=$?
2181 grep -v '^ *+' conftest.er1 >conftest.err
2182 rm -f conftest.er1
2183 cat conftest.err >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -z "$ac_c_werror_flag"
2187 || test ! -s conftest.err'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; } &&
2193 { ac_try='test -s conftest.$ac_objext'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 (eval $ac_try) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2199 ac_compiler_gnu=yes
2200 else
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2204 ac_compiler_gnu=no
2206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2210 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212 GCC=`test $ac_compiler_gnu = yes && echo yes`
2213 ac_test_CFLAGS=${CFLAGS+set}
2214 ac_save_CFLAGS=$CFLAGS
2215 CFLAGS="-g"
2216 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218 if test "${ac_cv_prog_cc_g+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 cat >conftest.$ac_ext <<_ACEOF
2222 /* confdefs.h. */
2223 _ACEOF
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h. */
2229 main ()
2233 return 0;
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>conftest.er1
2239 ac_status=$?
2240 grep -v '^ *+' conftest.er1 >conftest.err
2241 rm -f conftest.er1
2242 cat conftest.err >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
2245 { ac_try='test -z "$ac_c_werror_flag"
2246 || test ! -s conftest.err'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; } &&
2252 { ac_try='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2258 ac_cv_prog_cc_g=yes
2259 else
2260 echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2263 ac_cv_prog_cc_g=no
2265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269 if test "$ac_test_CFLAGS" = set; then
2270 CFLAGS=$ac_save_CFLAGS
2271 elif test $ac_cv_prog_cc_g = yes; then
2272 if test "$GCC" = yes; then
2273 CFLAGS="-g -O2"
2274 else
2275 CFLAGS="-g"
2277 else
2278 if test "$GCC" = yes; then
2279 CFLAGS="-O2"
2280 else
2281 CFLAGS=
2284 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 ac_cv_prog_cc_stdc=no
2290 ac_save_CC=$CC
2291 cat >conftest.$ac_ext <<_ACEOF
2292 /* confdefs.h. */
2293 _ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2297 #include <stdarg.h>
2298 #include <stdio.h>
2299 #include <sys/types.h>
2300 #include <sys/stat.h>
2301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2302 struct buf { int x; };
2303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304 static char *e (p, i)
2305 char **p;
2306 int i;
2308 return p[i];
2310 static char *f (char * (*g) (char **, int), char **p, ...)
2312 char *s;
2313 va_list v;
2314 va_start (v,p);
2315 s = g (p, va_arg (v,int));
2316 va_end (v);
2317 return s;
2320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2321 function prototypes and stuff, but not '\xHH' hex character constants.
2322 These don't provoke an error unfortunately, instead are silently treated
2323 as 'x'. The following induces an error, until -std1 is added to get
2324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2325 array size at least. It's necessary to write '\x00'==0 to get something
2326 that's true only with -std1. */
2327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329 int test (int i, double x);
2330 struct s1 {int (*f) (int a);};
2331 struct s2 {int (*f) (double a);};
2332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333 int argc;
2334 char **argv;
2336 main ()
2338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2340 return 0;
2342 _ACEOF
2343 # Don't try gcc -ansi; that turns off useful extensions and
2344 # breaks some systems' header files.
2345 # AIX -qlanglvl=ansi
2346 # Ultrix and OSF/1 -std1
2347 # HP-UX 10.20 and later -Ae
2348 # HP-UX older versions -Aa -D_HPUX_SOURCE
2349 # SVR4 -Xc -D__EXTENSIONS__
2350 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352 CC="$ac_save_CC $ac_arg"
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2356 ac_status=$?
2357 grep -v '^ *+' conftest.er1 >conftest.err
2358 rm -f conftest.er1
2359 cat conftest.err >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_cv_prog_cc_stdc=$ac_arg
2376 break
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2382 rm -f conftest.err conftest.$ac_objext
2383 done
2384 rm -f conftest.$ac_ext conftest.$ac_objext
2385 CC=$ac_save_CC
2389 case "x$ac_cv_prog_cc_stdc" in
2390 x|xno)
2391 echo "$as_me:$LINENO: result: none needed" >&5
2392 echo "${ECHO_T}none needed" >&6 ;;
2394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396 CC="$CC $ac_cv_prog_cc_stdc" ;;
2397 esac
2399 # Some people use a C++ compiler to compile C. Since we use `exit',
2400 # in C++ we need to declare it. In case someone uses the same compiler
2401 # for both compiling C and C++ we need to have the C++ compiler decide
2402 # the declaration of exit, since it's the most demanding environment.
2403 cat >conftest.$ac_ext <<_ACEOF
2404 #ifndef __cplusplus
2405 choke me
2406 #endif
2407 _ACEOF
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_c_werror_flag"
2418 || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 for ac_declaration in \
2431 '' \
2432 'extern "C" void std::exit (int) throw (); using std::exit;' \
2433 'extern "C" void std::exit (int); using std::exit;' \
2434 'extern "C" void exit (int) throw ();' \
2435 'extern "C" void exit (int);' \
2436 'void exit (int);'
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444 $ac_declaration
2445 #include <stdlib.h>
2447 main ()
2449 exit (42);
2451 return 0;
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2481 continue
2483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2490 $ac_declaration
2492 main ()
2494 exit (42);
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 break
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528 done
2529 rm -f conftest*
2530 if test -n "$ac_declaration"; then
2531 echo '#ifdef __cplusplus' >>confdefs.h
2532 echo $ac_declaration >>confdefs.h
2533 echo '#endif' >>confdefs.h
2536 else
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ac_ext=c
2543 ac_cpp='$CPP $CPPFLAGS'
2544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2550 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2551 if test "${ac_cv_search_strerror+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554 ac_func_search_save_LIBS=$LIBS
2555 ac_cv_search_strerror=no
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h. */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2563 /* Override any gcc2 internal prototype to avoid an error. */
2564 #ifdef __cplusplus
2565 extern "C"
2566 #endif
2567 /* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2569 char strerror ();
2571 main ()
2573 strerror ();
2575 return 0;
2577 _ACEOF
2578 rm -f conftest.$ac_objext conftest$ac_exeext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 ac_cv_search_strerror="none required"
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.err conftest.$ac_objext \
2607 conftest$ac_exeext conftest.$ac_ext
2608 if test "$ac_cv_search_strerror" = no; then
2609 for ac_lib in cposix; do
2610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2611 cat >conftest.$ac_ext <<_ACEOF
2612 /* confdefs.h. */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2618 /* Override any gcc2 internal prototype to avoid an error. */
2619 #ifdef __cplusplus
2620 extern "C"
2621 #endif
2622 /* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2624 char strerror ();
2626 main ()
2628 strerror ();
2630 return 0;
2632 _ACEOF
2633 rm -f conftest.$ac_objext conftest$ac_exeext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635 (eval $ac_link) 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -z "$ac_c_werror_flag"
2643 || test ! -s conftest.err'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; } &&
2649 { ac_try='test -s conftest$ac_exeext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_cv_search_strerror="-l$ac_lib"
2656 break
2657 else
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2662 rm -f conftest.err conftest.$ac_objext \
2663 conftest$ac_exeext conftest.$ac_ext
2664 done
2666 LIBS=$ac_func_search_save_LIBS
2668 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2669 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2670 if test "$ac_cv_search_strerror" != no; then
2671 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2676 am__api_version="1.9"
2677 # Find a good install program. We prefer a C program (faster),
2678 # so one script is as good as another. But avoid the broken or
2679 # incompatible versions:
2680 # SysV /etc/install, /usr/sbin/install
2681 # SunOS /usr/etc/install
2682 # IRIX /sbin/install
2683 # AIX /bin/install
2684 # AmigaOS /C/install, which installs bootblocks on floppy discs
2685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2688 # OS/2's system install, which has a completely different semantic
2689 # ./install, which can be erroneously created by make from ./install.sh.
2690 # Reject install programs that cannot install multiple files.
2691 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2692 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2693 if test -z "$INSTALL"; then
2694 if test "${ac_cv_path_install+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 # Account for people who put trailing slashes in PATH elements.
2703 case $as_dir/ in
2704 ./ | .// | /cC/* | \
2705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2707 /usr/ucb/* ) ;;
2709 # OSF1 and SCO ODT 3.0 have their own names for install.
2710 # Don't use installbsd from OSF since it installs stuff as root
2711 # by default.
2712 for ac_prog in ginstall scoinst install; do
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2715 if test $ac_prog = install &&
2716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717 # AIX install. It has an incompatible calling convention.
2719 elif test $ac_prog = install &&
2720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721 # program-specific install script used by HP pwplus--don't use.
2723 else
2724 rm -rf conftest.one conftest.two conftest.dir
2725 echo one > conftest.one
2726 echo two > conftest.two
2727 mkdir conftest.dir
2728 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2729 test -s conftest.one && test -s conftest.two &&
2730 test -s conftest.dir/conftest.one &&
2731 test -s conftest.dir/conftest.two
2732 then
2733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2734 break 3
2738 done
2739 done
2741 esac
2742 done
2744 rm -rf conftest.one conftest.two conftest.dir
2747 if test "${ac_cv_path_install+set}" = set; then
2748 INSTALL=$ac_cv_path_install
2749 else
2750 # As a last resort, use the slow shell script. Don't cache a
2751 # value for INSTALL within a source directory, because that will
2752 # break other packages using the cache if that directory is
2753 # removed, or if the value is a relative name.
2754 INSTALL=$ac_install_sh
2757 echo "$as_me:$LINENO: result: $INSTALL" >&5
2758 echo "${ECHO_T}$INSTALL" >&6
2760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761 # It thinks the first close brace ends the variable substitution.
2762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2769 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2770 # Just in case
2771 sleep 1
2772 echo timestamp > conftest.file
2773 # Do `set' in a subshell so we don't clobber the current shell's
2774 # arguments. Must try -L first in case configure is actually a
2775 # symlink; some systems play weird games with the mod time of symlinks
2776 # (eg FreeBSD returns the mod time of the symlink's containing
2777 # directory).
2778 if (
2779 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2780 if test "$*" = "X"; then
2781 # -L didn't work.
2782 set X `ls -t $srcdir/configure conftest.file`
2784 rm -f conftest.file
2785 if test "$*" != "X $srcdir/configure conftest.file" \
2786 && test "$*" != "X conftest.file $srcdir/configure"; then
2788 # If neither matched, then we have a broken ls. This can happen
2789 # if, for instance, CONFIG_SHELL is bash and it inherits a
2790 # broken ls alias from the environment. This has actually
2791 # happened. Such a system could not be considered "sane".
2792 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2793 alias in your environment" >&5
2794 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2795 alias in your environment" >&2;}
2796 { (exit 1); exit 1; }; }
2799 test "$2" = conftest.file
2801 then
2802 # Ok.
2804 else
2805 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2806 Check your system clock" >&5
2807 echo "$as_me: error: newly created file is older than distributed files!
2808 Check your system clock" >&2;}
2809 { (exit 1); exit 1; }; }
2811 echo "$as_me:$LINENO: result: yes" >&5
2812 echo "${ECHO_T}yes" >&6
2813 test "$program_prefix" != NONE &&
2814 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2815 # Use a double $ so make ignores it.
2816 test "$program_suffix" != NONE &&
2817 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2818 # Double any \ or $. echo might interpret backslashes.
2819 # By default was `s,x,x', remove it if useless.
2820 cat <<\_ACEOF >conftest.sed
2821 s/[\\$]/&&/g;s/;s,x,x,$//
2822 _ACEOF
2823 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2824 rm conftest.sed
2826 # expand $ac_aux_dir to an absolute path
2827 am_aux_dir=`cd $ac_aux_dir && pwd`
2829 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2830 # Use eval to expand $SHELL
2831 if eval "$MISSING --run true"; then
2832 am_missing_run="$MISSING --run "
2833 else
2834 am_missing_run=
2835 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2836 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2839 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2840 # We used to keeping the `.' as first argument, in order to
2841 # allow $(mkdir_p) to be used without argument. As in
2842 # $(mkdir_p) $(somedir)
2843 # where $(somedir) is conditionally defined. However this is wrong
2844 # for two reasons:
2845 # 1. if the package is installed by a user who cannot write `.'
2846 # make install will fail,
2847 # 2. the above comment should most certainly read
2848 # $(mkdir_p) $(DESTDIR)$(somedir)
2849 # so it does not work when $(somedir) is undefined and
2850 # $(DESTDIR) is not.
2851 # To support the latter case, we have to write
2852 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2853 # so the `.' trick is pointless.
2854 mkdir_p='mkdir -p --'
2855 else
2856 # On NextStep and OpenStep, the `mkdir' command does not
2857 # recognize any option. It will interpret all options as
2858 # directories to create, and then abort because `.' already
2859 # exists.
2860 for d in ./-p ./--version;
2862 test -d $d && rmdir $d
2863 done
2864 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2865 if test -f "$ac_aux_dir/mkinstalldirs"; then
2866 mkdir_p='$(mkinstalldirs)'
2867 else
2868 mkdir_p='$(install_sh) -d'
2872 for ac_prog in gawk mawk nawk awk
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_AWK+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 if test -n "$AWK"; then
2882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_AWK="$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2900 AWK=$ac_cv_prog_AWK
2901 if test -n "$AWK"; then
2902 echo "$as_me:$LINENO: result: $AWK" >&5
2903 echo "${ECHO_T}$AWK" >&6
2904 else
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2909 test -n "$AWK" && break
2910 done
2912 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2913 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2914 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2915 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 cat >conftest.make <<\_ACEOF
2919 all:
2920 @echo 'ac_maketemp="$(MAKE)"'
2921 _ACEOF
2922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2923 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2924 if test -n "$ac_maketemp"; then
2925 eval ac_cv_prog_make_${ac_make}_set=yes
2926 else
2927 eval ac_cv_prog_make_${ac_make}_set=no
2929 rm -f conftest.make
2931 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2932 echo "$as_me:$LINENO: result: yes" >&5
2933 echo "${ECHO_T}yes" >&6
2934 SET_MAKE=
2935 else
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2938 SET_MAKE="MAKE=${MAKE-make}"
2941 rm -rf .tst 2>/dev/null
2942 mkdir .tst 2>/dev/null
2943 if test -d .tst; then
2944 am__leading_dot=.
2945 else
2946 am__leading_dot=_
2948 rmdir .tst 2>/dev/null
2950 DEPDIR="${am__leading_dot}deps"
2952 ac_config_commands="$ac_config_commands depfiles"
2955 am_make=${MAKE-make}
2956 cat > confinc << 'END'
2957 am__doit:
2958 @echo done
2959 .PHONY: am__doit
2961 # If we don't find an include directive, just comment out the code.
2962 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2963 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2964 am__include="#"
2965 am__quote=
2966 _am_result=none
2967 # First try GNU make style include.
2968 echo "include confinc" > confmf
2969 # We grep out `Entering directory' and `Leaving directory'
2970 # messages which can occur if `w' ends up in MAKEFLAGS.
2971 # In particular we don't look at `^make:' because GNU make might
2972 # be invoked under some other name (usually "gmake"), in which
2973 # case it prints its new name instead of `make'.
2974 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2975 am__include=include
2976 am__quote=
2977 _am_result=GNU
2979 # Now try BSD make style include.
2980 if test "$am__include" = "#"; then
2981 echo '.include "confinc"' > confmf
2982 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2983 am__include=.include
2984 am__quote="\""
2985 _am_result=BSD
2990 echo "$as_me:$LINENO: result: $_am_result" >&5
2991 echo "${ECHO_T}$_am_result" >&6
2992 rm -f confinc confmf
2994 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2995 if test "${enable_dependency_tracking+set}" = set; then
2996 enableval="$enable_dependency_tracking"
2999 if test "x$enable_dependency_tracking" != xno; then
3000 am_depcomp="$ac_aux_dir/depcomp"
3001 AMDEPBACKSLASH='\'
3005 if test "x$enable_dependency_tracking" != xno; then
3006 AMDEP_TRUE=
3007 AMDEP_FALSE='#'
3008 else
3009 AMDEP_TRUE='#'
3010 AMDEP_FALSE=
3015 # test to see if srcdir already configured
3016 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3017 test -f $srcdir/config.status; then
3018 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3019 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3020 { (exit 1); exit 1; }; }
3023 # test whether we have cygpath
3024 if test -z "$CYGPATH_W"; then
3025 if (cygpath --version) >/dev/null 2>/dev/null; then
3026 CYGPATH_W='cygpath -w'
3027 else
3028 CYGPATH_W=echo
3033 # Define the identity of the package.
3034 PACKAGE=bfd
3035 VERSION=2.19.51
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE "$PACKAGE"
3040 _ACEOF
3043 cat >>confdefs.h <<_ACEOF
3044 #define VERSION "$VERSION"
3045 _ACEOF
3047 # Some tools Automake needs.
3049 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3063 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3065 # Installed binaries are usually stripped using `strip' when the user
3066 # run `make install-strip'. However `strip' might not be the right
3067 # tool to use in cross-compilation environments, therefore Automake
3068 # will honor the `STRIP' environment variable to overrule this program.
3069 if test "$cross_compiling" != no; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}strip; ac_word=$2
3073 echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_STRIP+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 if test -n "$STRIP"; then
3079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3092 done
3093 done
3097 STRIP=$ac_cv_prog_STRIP
3098 if test -n "$STRIP"; then
3099 echo "$as_me:$LINENO: result: $STRIP" >&5
3100 echo "${ECHO_T}$STRIP" >&6
3101 else
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3107 if test -z "$ac_cv_prog_STRIP"; then
3108 ac_ct_STRIP=$STRIP
3109 # Extract the first word of "strip", so it can be a program name with args.
3110 set dummy strip; ac_word=$2
3111 echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3113 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_STRIP="strip"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3130 done
3131 done
3133 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137 if test -n "$ac_ct_STRIP"; then
3138 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3139 echo "${ECHO_T}$ac_ct_STRIP" >&6
3140 else
3141 echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6
3145 STRIP=$ac_ct_STRIP
3146 else
3147 STRIP="$ac_cv_prog_STRIP"
3151 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3153 # We need awk for the "check" target. The system "awk" is bad on
3154 # some platforms.
3155 # Always define AMTAR for backward compatibility.
3157 AMTAR=${AMTAR-"${am_missing_run}tar"}
3159 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3164 depcc="$CC" am_compiler_list=
3166 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3167 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3168 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3172 # We make a subdir and do the tests there. Otherwise we can end up
3173 # making bogus files that we don't know about and never remove. For
3174 # instance it was reported that on HP-UX the gcc test will end up
3175 # making a dummy file named `D' -- because `-MD' means `put the output
3176 # in D'.
3177 mkdir conftest.dir
3178 # Copy depcomp to subdir because otherwise we won't find it if we're
3179 # using a relative directory.
3180 cp "$am_depcomp" conftest.dir
3181 cd conftest.dir
3182 # We will build objects and dependencies in a subdirectory because
3183 # it helps to detect inapplicable dependency modes. For instance
3184 # both Tru64's cc and ICC support -MD to output dependencies as a
3185 # side effect of compilation, but ICC will put the dependencies in
3186 # the current directory while Tru64 will put them in the object
3187 # directory.
3188 mkdir sub
3190 am_cv_CC_dependencies_compiler_type=none
3191 if test "$am_compiler_list" = ""; then
3192 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3194 for depmode in $am_compiler_list; do
3195 # Setup a source with many dependencies, because some compilers
3196 # like to wrap large dependency lists on column 80 (with \), and
3197 # we should not choose a depcomp mode which is confused by this.
3199 # We need to recreate these files for each test, as the compiler may
3200 # overwrite some of them when testing with obscure command lines.
3201 # This happens at least with the AIX C compiler.
3202 : > sub/conftest.c
3203 for i in 1 2 3 4 5 6; do
3204 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3205 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3206 # Solaris 8's {/usr,}/bin/sh.
3207 touch sub/conftst$i.h
3208 done
3209 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3211 case $depmode in
3212 nosideeffect)
3213 # after this tag, mechanisms are not by side-effect, so they'll
3214 # only be used when explicitly requested
3215 if test "x$enable_dependency_tracking" = xyes; then
3216 continue
3217 else
3218 break
3221 none) break ;;
3222 esac
3223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3224 # mode. It turns out that the SunPro C++ compiler does not properly
3225 # handle `-M -o', and we need to detect this.
3226 if depmode=$depmode \
3227 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3229 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3230 >/dev/null 2>conftest.err &&
3231 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3232 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3233 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3234 # icc doesn't choke on unknown options, it will just issue warnings
3235 # or remarks (even with -Werror). So we grep stderr for any message
3236 # that says an option was ignored or not supported.
3237 # When given -MP, icc 7.0 and 7.1 complain thusly:
3238 # icc: Command line warning: ignoring option '-M'; no argument required
3239 # The diagnosis changed in icc 8.0:
3240 # icc: Command line remark: option '-MP' not supported
3241 if (grep 'ignoring option' conftest.err ||
3242 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3243 am_cv_CC_dependencies_compiler_type=$depmode
3244 break
3247 done
3249 cd ..
3250 rm -rf conftest.dir
3251 else
3252 am_cv_CC_dependencies_compiler_type=none
3256 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3257 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3258 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3263 test "x$enable_dependency_tracking" != xno \
3264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3265 am__fastdepCC_TRUE=
3266 am__fastdepCC_FALSE='#'
3267 else
3268 am__fastdepCC_TRUE='#'
3269 am__fastdepCC_FALSE=
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}ar; ac_word=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_AR+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$AR"; then
3284 ac_cv_prog_AR="$AR" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_AR="${ac_tool_prefix}ar"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3302 AR=$ac_cv_prog_AR
3303 if test -n "$AR"; then
3304 echo "$as_me:$LINENO: result: $AR" >&5
3305 echo "${ECHO_T}$AR" >&6
3306 else
3307 echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3312 if test -z "$ac_cv_prog_AR"; then
3313 ac_ct_AR=$AR
3314 # Extract the first word of "ar", so it can be a program name with args.
3315 set dummy ar; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$ac_ct_AR"; then
3322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_AR="ar"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3335 done
3336 done
3340 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3341 if test -n "$ac_ct_AR"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3343 echo "${ECHO_T}$ac_ct_AR" >&6
3344 else
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 AR=$ac_ct_AR
3350 else
3351 AR="$ac_cv_prog_AR"
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3357 echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3376 done
3377 done
3381 RANLIB=$ac_cv_prog_RANLIB
3382 if test -n "$RANLIB"; then
3383 echo "$as_me:$LINENO: result: $RANLIB" >&5
3384 echo "${ECHO_T}$RANLIB" >&6
3385 else
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3391 if test -z "$ac_cv_prog_RANLIB"; then
3392 ac_ct_RANLIB=$RANLIB
3393 # Extract the first word of "ranlib", so it can be a program name with args.
3394 set dummy ranlib; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 if test -n "$ac_ct_RANLIB"; then
3401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_RANLIB="ranlib"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3414 done
3415 done
3417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3421 if test -n "$ac_ct_RANLIB"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3423 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3429 RANLIB=$ac_ct_RANLIB
3430 else
3431 RANLIB="$ac_cv_prog_RANLIB"
3435 # Check whether --enable-shared or --disable-shared was given.
3436 if test "${enable_shared+set}" = set; then
3437 enableval="$enable_shared"
3438 p=${PACKAGE-default}
3439 case $enableval in
3440 yes) enable_shared=yes ;;
3441 no) enable_shared=no ;;
3443 enable_shared=no
3444 # Look at the argument we got. We use all the common list separators.
3445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3446 for pkg in $enableval; do
3447 IFS="$lt_save_ifs"
3448 if test "X$pkg" = "X$p"; then
3449 enable_shared=yes
3451 done
3452 IFS="$lt_save_ifs"
3454 esac
3455 else
3456 enable_shared=no
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475 echo "$as_me:$LINENO: checking for $ac_word" >&5
3476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477 if test "${ac_cv_prog_CC+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3494 done
3495 done
3499 CC=$ac_cv_prog_CC
3500 if test -n "$CC"; then
3501 echo "$as_me:$LINENO: result: $CC" >&5
3502 echo "${ECHO_T}$CC" >&6
3503 else
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3509 if test -z "$ac_cv_prog_CC"; then
3510 ac_ct_CC=$CC
3511 # Extract the first word of "gcc", so it can be a program name with args.
3512 set dummy gcc; ac_word=$2
3513 echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="gcc"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3532 done
3533 done
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540 echo "${ECHO_T}$ac_ct_CC" >&6
3541 else
3542 echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3546 CC=$ac_ct_CC
3547 else
3548 CC="$ac_cv_prog_CC"
3551 if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3554 set dummy ${ac_tool_prefix}cc; ac_word=$2
3555 echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_prog_CC+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}cc"
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 echo "$as_me:$LINENO: result: $CC" >&5
3582 echo "${ECHO_T}$CC" >&6
3583 else
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3589 if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 echo "$as_me:$LINENO: checking for $ac_word" >&5
3594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="cc"
3609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618 if test -n "$ac_ct_CC"; then
3619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3620 echo "${ECHO_T}$ac_ct_CC" >&6
3621 else
3622 echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6
3626 CC=$ac_ct_CC
3627 else
3628 CC="$ac_cv_prog_CC"
3632 if test -z "$CC"; then
3633 # Extract the first word of "cc", so it can be a program name with args.
3634 set dummy cc; ac_word=$2
3635 echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_CC+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 else
3643 ac_prog_rejected=no
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3652 ac_prog_rejected=yes
3653 continue
3655 ac_cv_prog_CC="cc"
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3659 done
3660 done
3662 if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy $ac_cv_prog_CC
3665 shift
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3670 shift
3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 echo "$as_me:$LINENO: result: $CC" >&5
3679 echo "${ECHO_T}$CC" >&6
3680 else
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in cl
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694 if test "${ac_cv_prog_CC+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 echo "$as_me:$LINENO: result: $CC" >&5
3719 echo "${ECHO_T}$CC" >&6
3720 else
3721 echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6
3725 test -n "$CC" && break
3726 done
3728 if test -z "$CC"; then
3729 ac_ct_CC=$CC
3730 for ac_prog in cl
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_ac_ct_CC="$ac_prog"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3753 done
3754 done
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761 echo "${ECHO_T}$ac_ct_CC" >&6
3762 else
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3767 test -n "$ac_ct_CC" && break
3768 done
3770 CC=$ac_ct_CC
3776 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3777 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3779 See \`config.log' for more details." >&5
3780 echo "$as_me: error: no acceptable C compiler found in \$PATH
3781 See \`config.log' for more details." >&2;}
3782 { (exit 1); exit 1; }; }; }
3784 # Provide some information about the compiler.
3785 echo "$as_me:$LINENO:" \
3786 "checking for C compiler version" >&5
3787 ac_compiler=`set X $ac_compile; echo $2`
3788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3789 (eval $ac_compiler --version </dev/null >&5) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }
3793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3794 (eval $ac_compiler -v </dev/null >&5) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }
3798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3799 (eval $ac_compiler -V </dev/null >&5) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }
3804 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3817 main ()
3819 #ifndef __GNUC__
3820 choke me
3821 #endif
3824 return 0;
3826 _ACEOF
3827 rm -f conftest.$ac_objext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 ac_compiler_gnu=yes
3850 else
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 ac_compiler_gnu=no
3856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3860 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3861 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3862 GCC=`test $ac_compiler_gnu = yes && echo yes`
3863 ac_test_CFLAGS=${CFLAGS+set}
3864 ac_save_CFLAGS=$CFLAGS
3865 CFLAGS="-g"
3866 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3867 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3868 if test "${ac_cv_prog_cc_g+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -z "$ac_c_werror_flag"
3896 || test ! -s conftest.err'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3908 ac_cv_prog_cc_g=yes
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 ac_cv_prog_cc_g=no
3915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3918 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3919 if test "$ac_test_CFLAGS" = set; then
3920 CFLAGS=$ac_save_CFLAGS
3921 elif test $ac_cv_prog_cc_g = yes; then
3922 if test "$GCC" = yes; then
3923 CFLAGS="-g -O2"
3924 else
3925 CFLAGS="-g"
3927 else
3928 if test "$GCC" = yes; then
3929 CFLAGS="-O2"
3930 else
3931 CFLAGS=
3934 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3935 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3936 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 ac_cv_prog_cc_stdc=no
3940 ac_save_CC=$CC
3941 cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h. */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947 #include <stdarg.h>
3948 #include <stdio.h>
3949 #include <sys/types.h>
3950 #include <sys/stat.h>
3951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3952 struct buf { int x; };
3953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954 static char *e (p, i)
3955 char **p;
3956 int i;
3958 return p[i];
3960 static char *f (char * (*g) (char **, int), char **p, ...)
3962 char *s;
3963 va_list v;
3964 va_start (v,p);
3965 s = g (p, va_arg (v,int));
3966 va_end (v);
3967 return s;
3970 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3971 function prototypes and stuff, but not '\xHH' hex character constants.
3972 These don't provoke an error unfortunately, instead are silently treated
3973 as 'x'. The following induces an error, until -std1 is added to get
3974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3975 array size at least. It's necessary to write '\x00'==0 to get something
3976 that's true only with -std1. */
3977 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3979 int test (int i, double x);
3980 struct s1 {int (*f) (int a);};
3981 struct s2 {int (*f) (double a);};
3982 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3983 int argc;
3984 char **argv;
3986 main ()
3988 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3990 return 0;
3992 _ACEOF
3993 # Don't try gcc -ansi; that turns off useful extensions and
3994 # breaks some systems' header files.
3995 # AIX -qlanglvl=ansi
3996 # Ultrix and OSF/1 -std1
3997 # HP-UX 10.20 and later -Ae
3998 # HP-UX older versions -Aa -D_HPUX_SOURCE
3999 # SVR4 -Xc -D__EXTENSIONS__
4000 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002 CC="$ac_save_CC $ac_arg"
4003 rm -f conftest.$ac_objext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_prog_cc_stdc=$ac_arg
4026 break
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4032 rm -f conftest.err conftest.$ac_objext
4033 done
4034 rm -f conftest.$ac_ext conftest.$ac_objext
4035 CC=$ac_save_CC
4039 case "x$ac_cv_prog_cc_stdc" in
4040 x|xno)
4041 echo "$as_me:$LINENO: result: none needed" >&5
4042 echo "${ECHO_T}none needed" >&6 ;;
4044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4045 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4046 CC="$CC $ac_cv_prog_cc_stdc" ;;
4047 esac
4049 # Some people use a C++ compiler to compile C. Since we use `exit',
4050 # in C++ we need to declare it. In case someone uses the same compiler
4051 # for both compiling C and C++ we need to have the C++ compiler decide
4052 # the declaration of exit, since it's the most demanding environment.
4053 cat >conftest.$ac_ext <<_ACEOF
4054 #ifndef __cplusplus
4055 choke me
4056 #endif
4057 _ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 for ac_declaration in \
4081 '' \
4082 'extern "C" void std::exit (int) throw (); using std::exit;' \
4083 'extern "C" void std::exit (int); using std::exit;' \
4084 'extern "C" void exit (int) throw ();' \
4085 'extern "C" void exit (int);' \
4086 'void exit (int);'
4088 cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h. */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4094 $ac_declaration
4095 #include <stdlib.h>
4097 main ()
4099 exit (42);
4101 return 0;
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4127 else
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 continue
4133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 $ac_declaration
4142 main ()
4144 exit (42);
4146 return 0;
4148 _ACEOF
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 break
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178 done
4179 rm -f conftest*
4180 if test -n "$ac_declaration"; then
4181 echo '#ifdef __cplusplus' >>confdefs.h
4182 echo $ac_declaration >>confdefs.h
4183 echo '#endif' >>confdefs.h
4186 else
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199 cat >>confdefs.h <<\_ACEOF
4200 #define _GNU_SOURCE 1
4201 _ACEOF
4204 ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4210 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4211 # On Suns, sometimes $CPP names a directory.
4212 if test -n "$CPP" && test -d "$CPP"; then
4213 CPP=
4215 if test -z "$CPP"; then
4216 if test "${ac_cv_prog_CPP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 # Double quotes because CPP needs to be expanded
4220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4222 ac_preproc_ok=false
4223 for ac_c_preproc_warn_flag in '' yes
4225 # Use a header file that comes with gcc, so configuring glibc
4226 # with a fresh cross-compiler works.
4227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228 # <limits.h> exists even on freestanding compilers.
4229 # On the NeXT, cc -E runs the code through the compiler's parser,
4230 # not just through cpp. "Syntax error" is here to catch this case.
4231 cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h. */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 #ifdef __STDC__
4238 # include <limits.h>
4239 #else
4240 # include <assert.h>
4241 #endif
4242 Syntax error
4243 _ACEOF
4244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null; then
4252 if test -s conftest.err; then
4253 ac_cpp_err=$ac_c_preproc_warn_flag
4254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4255 else
4256 ac_cpp_err=
4258 else
4259 ac_cpp_err=yes
4261 if test -z "$ac_cpp_err"; then
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 # Broken: fails on valid input.
4268 continue
4270 rm -f conftest.err conftest.$ac_ext
4272 # OK, works on sane cases. Now check whether non-existent headers
4273 # can be detected and how.
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 #include <ac_nonexistent.h>
4281 _ACEOF
4282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev/null; then
4290 if test -s conftest.err; then
4291 ac_cpp_err=$ac_c_preproc_warn_flag
4292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4293 else
4294 ac_cpp_err=
4296 else
4297 ac_cpp_err=yes
4299 if test -z "$ac_cpp_err"; then
4300 # Broken: success on invalid input.
4301 continue
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 # Passes both tests.
4307 ac_preproc_ok=:
4308 break
4310 rm -f conftest.err conftest.$ac_ext
4312 done
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.$ac_ext
4315 if $ac_preproc_ok; then
4316 break
4319 done
4320 ac_cv_prog_CPP=$CPP
4323 CPP=$ac_cv_prog_CPP
4324 else
4325 ac_cv_prog_CPP=$CPP
4327 echo "$as_me:$LINENO: result: $CPP" >&5
4328 echo "${ECHO_T}$CPP" >&6
4329 ac_preproc_ok=false
4330 for ac_c_preproc_warn_flag in '' yes
4332 # Use a header file that comes with gcc, so configuring glibc
4333 # with a fresh cross-compiler works.
4334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 # <limits.h> exists even on freestanding compilers.
4336 # On the NeXT, cc -E runs the code through the compiler's parser,
4337 # not just through cpp. "Syntax error" is here to catch this case.
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #ifdef __STDC__
4345 # include <limits.h>
4346 #else
4347 # include <assert.h>
4348 #endif
4349 Syntax error
4350 _ACEOF
4351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } >/dev/null; then
4359 if test -s conftest.err; then
4360 ac_cpp_err=$ac_c_preproc_warn_flag
4361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4362 else
4363 ac_cpp_err=
4365 else
4366 ac_cpp_err=yes
4368 if test -z "$ac_cpp_err"; then
4370 else
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4374 # Broken: fails on valid input.
4375 continue
4377 rm -f conftest.err conftest.$ac_ext
4379 # OK, works on sane cases. Now check whether non-existent headers
4380 # can be detected and how.
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 #include <ac_nonexistent.h>
4388 _ACEOF
4389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null; then
4397 if test -s conftest.err; then
4398 ac_cpp_err=$ac_c_preproc_warn_flag
4399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400 else
4401 ac_cpp_err=
4403 else
4404 ac_cpp_err=yes
4406 if test -z "$ac_cpp_err"; then
4407 # Broken: success on invalid input.
4408 continue
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 # Passes both tests.
4414 ac_preproc_ok=:
4415 break
4417 rm -f conftest.err conftest.$ac_ext
4419 done
4420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421 rm -f conftest.err conftest.$ac_ext
4422 if $ac_preproc_ok; then
4424 else
4425 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4426 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4428 See \`config.log' for more details." >&5
4429 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4430 See \`config.log' for more details." >&2;}
4431 { (exit 1); exit 1; }; }; }
4434 ac_ext=c
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441 echo "$as_me:$LINENO: checking for egrep" >&5
4442 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4443 if test "${ac_cv_prog_egrep+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4447 then ac_cv_prog_egrep='grep -E'
4448 else ac_cv_prog_egrep='egrep'
4451 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4452 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4453 EGREP=$ac_cv_prog_egrep
4456 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4457 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4458 if test "${ac_cv_header_stdc+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <stdlib.h>
4468 #include <stdarg.h>
4469 #include <string.h>
4470 #include <float.h>
4473 main ()
4477 return 0;
4479 _ACEOF
4480 rm -f conftest.$ac_objext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4483 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_header_stdc=yes
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 ac_cv_header_stdc=no
4509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4511 if test $ac_cv_header_stdc = yes; then
4512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <string.h>
4521 _ACEOF
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "memchr" >/dev/null 2>&1; then
4525 else
4526 ac_cv_header_stdc=no
4528 rm -f conftest*
4532 if test $ac_cv_header_stdc = yes; then
4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #include <stdlib.h>
4542 _ACEOF
4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 $EGREP "free" >/dev/null 2>&1; then
4546 else
4547 ac_cv_header_stdc=no
4549 rm -f conftest*
4553 if test $ac_cv_header_stdc = yes; then
4554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4555 if test "$cross_compiling" = yes; then
4557 else
4558 cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h. */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4564 #include <ctype.h>
4565 #if ((' ' & 0x0FF) == 0x020)
4566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4568 #else
4569 # define ISLOWER(c) \
4570 (('a' <= (c) && (c) <= 'i') \
4571 || ('j' <= (c) && (c) <= 'r') \
4572 || ('s' <= (c) && (c) <= 'z'))
4573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4574 #endif
4576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578 main ()
4580 int i;
4581 for (i = 0; i < 256; i++)
4582 if (XOR (islower (i), ISLOWER (i))
4583 || toupper (i) != TOUPPER (i))
4584 exit(2);
4585 exit (0);
4587 _ACEOF
4588 rm -f conftest$ac_exeext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590 (eval $ac_link) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4600 else
4601 echo "$as_me: program exited with status $ac_status" >&5
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 ( exit $ac_status )
4606 ac_cv_header_stdc=no
4608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4612 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4613 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4614 if test $ac_cv_header_stdc = yes; then
4616 cat >>confdefs.h <<\_ACEOF
4617 #define STDC_HEADERS 1
4618 _ACEOF
4622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633 inttypes.h stdint.h unistd.h
4635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h. */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 $ac_includes_default
4649 #include <$ac_header>
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 eval "$as_ac_Header=yes"
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 eval "$as_ac_Header=no"
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4685 cat >>confdefs.h <<_ACEOF
4686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687 _ACEOF
4691 done
4695 if test "${ac_cv_header_minix_config_h+set}" = set; then
4696 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4697 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4698 if test "${ac_cv_header_minix_config_h+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4702 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4703 else
4704 # Is the header compilable?
4705 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4706 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 $ac_includes_default
4714 #include <minix/config.h>
4715 _ACEOF
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_header_compiler=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ac_header_compiler=no
4745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4747 echo "${ECHO_T}$ac_header_compiler" >&6
4749 # Is the header present?
4750 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4751 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 #include <minix/config.h>
4759 _ACEOF
4760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null; then
4768 if test -s conftest.err; then
4769 ac_cpp_err=$ac_c_preproc_warn_flag
4770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4771 else
4772 ac_cpp_err=
4774 else
4775 ac_cpp_err=yes
4777 if test -z "$ac_cpp_err"; then
4778 ac_header_preproc=yes
4779 else
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4783 ac_header_preproc=no
4785 rm -f conftest.err conftest.$ac_ext
4786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4787 echo "${ECHO_T}$ac_header_preproc" >&6
4789 # So? What about this header?
4790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4791 yes:no: )
4792 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4793 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4794 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4795 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4796 ac_header_preproc=yes
4798 no:yes:* )
4799 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4800 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4802 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4804 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4805 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4806 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4807 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4808 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4809 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4810 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4812 cat <<\_ASBOX
4813 ## ------------------------------------------ ##
4814 ## Report this to the AC_PACKAGE_NAME lists. ##
4815 ## ------------------------------------------ ##
4816 _ASBOX
4818 sed "s/^/$as_me: WARNING: /" >&2
4820 esac
4821 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4822 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4823 if test "${ac_cv_header_minix_config_h+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826 ac_cv_header_minix_config_h=$ac_header_preproc
4828 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4829 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4832 if test $ac_cv_header_minix_config_h = yes; then
4833 MINIX=yes
4834 else
4835 MINIX=
4839 if test "$MINIX" = yes; then
4841 cat >>confdefs.h <<\_ACEOF
4842 #define _POSIX_SOURCE 1
4843 _ACEOF
4846 cat >>confdefs.h <<\_ACEOF
4847 #define _POSIX_1_SOURCE 2
4848 _ACEOF
4851 cat >>confdefs.h <<\_ACEOF
4852 #define _MINIX 1
4853 _ACEOF
4859 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4860 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4861 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4871 # define __EXTENSIONS__ 1
4872 $ac_includes_default
4874 main ()
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_safe_to_define___extensions__=yes
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_cv_safe_to_define___extensions__=no
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4913 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4914 test $ac_cv_safe_to_define___extensions__ = yes &&
4915 cat >>confdefs.h <<\_ACEOF
4916 #define __EXTENSIONS__ 1
4917 _ACEOF
4919 cat >>confdefs.h <<\_ACEOF
4920 #define _ALL_SOURCE 1
4921 _ACEOF
4923 cat >>confdefs.h <<\_ACEOF
4924 #define _GNU_SOURCE 1
4925 _ACEOF
4927 cat >>confdefs.h <<\_ACEOF
4928 #define _POSIX_PTHREAD_SEMANTICS 1
4929 _ACEOF
4931 cat >>confdefs.h <<\_ACEOF
4932 #define _TANDEM_SOURCE 1
4933 _ACEOF
4937 case "${target}" in
4938 sparc-*-solaris*|i[3-7]86-*-solaris*)
4939 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4940 # are mutually exclusive; and without procfs support, the elf module
4941 # cannot provide certain routines such as elfcore_write_prpsinfo
4942 # or elfcore_write_prstatus. So unless the user explicitly requested
4943 # large-file support through the --enable-largefile switch, disable
4944 # large-file support in favor of procfs support.
4945 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
4946 enable_largefile="no"
4949 esac
4951 # Check whether --enable-largefile or --disable-largefile was given.
4952 if test "${enable_largefile+set}" = set; then
4953 enableval="$enable_largefile"
4956 if test "$enable_largefile" != no; then
4958 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4959 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4960 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 ac_cv_sys_largefile_CC=no
4964 if test "$GCC" != yes; then
4965 ac_save_CC=$CC
4966 while :; do
4967 # IRIX 6.2 and later do not support large files by default,
4968 # so use the C compiler's -n32 option if that helps.
4969 cat >conftest.$ac_ext <<_ACEOF
4970 /* confdefs.h. */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4975 #include <sys/types.h>
4976 /* Check that off_t can represent 2**63 - 1 correctly.
4977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4978 since some C++ compilers masquerading as C compilers
4979 incorrectly reject 9223372036854775807. */
4980 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4982 && LARGE_OFF_T % 2147483647 == 1)
4983 ? 1 : -1];
4985 main ()
4989 return 0;
4991 _ACEOF
4992 rm -f conftest.$ac_objext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>conftest.er1
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 break
5015 else
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5020 rm -f conftest.err conftest.$ac_objext
5021 CC="$CC -n32"
5022 rm -f conftest.$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_sys_largefile_CC=' -n32'; break
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5050 rm -f conftest.err conftest.$ac_objext
5051 break
5052 done
5053 CC=$ac_save_CC
5054 rm -f conftest.$ac_ext
5057 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5058 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5059 if test "$ac_cv_sys_largefile_CC" != no; then
5060 CC=$CC$ac_cv_sys_largefile_CC
5063 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5064 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5065 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 while :; do
5069 ac_cv_sys_file_offset_bits=no
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <sys/types.h>
5077 /* Check that off_t can represent 2**63 - 1 correctly.
5078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5079 since some C++ compilers masquerading as C compilers
5080 incorrectly reject 9223372036854775807. */
5081 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5083 && LARGE_OFF_T % 2147483647 == 1)
5084 ? 1 : -1];
5086 main ()
5090 return 0;
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 break
5116 else
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #define _FILE_OFFSET_BITS 64
5129 #include <sys/types.h>
5130 /* Check that off_t can represent 2**63 - 1 correctly.
5131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5132 since some C++ compilers masquerading as C compilers
5133 incorrectly reject 9223372036854775807. */
5134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5136 && LARGE_OFF_T % 2147483647 == 1)
5137 ? 1 : -1];
5139 main ()
5143 return 0;
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>conftest.er1
5149 ac_status=$?
5150 grep -v '^ *+' conftest.er1 >conftest.err
5151 rm -f conftest.er1
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -z "$ac_c_werror_flag"
5156 || test ! -s conftest.err'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; } &&
5162 { ac_try='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 (eval $ac_try) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_cv_sys_file_offset_bits=64; break
5169 else
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5175 break
5176 done
5178 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5179 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5180 if test "$ac_cv_sys_file_offset_bits" != no; then
5182 cat >>confdefs.h <<_ACEOF
5183 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5184 _ACEOF
5187 rm -f conftest*
5188 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5189 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5190 if test "${ac_cv_sys_large_files+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193 while :; do
5194 ac_cv_sys_large_files=no
5195 cat >conftest.$ac_ext <<_ACEOF
5196 /* confdefs.h. */
5197 _ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5201 #include <sys/types.h>
5202 /* Check that off_t can represent 2**63 - 1 correctly.
5203 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5204 since some C++ compilers masquerading as C compilers
5205 incorrectly reject 9223372036854775807. */
5206 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5208 && LARGE_OFF_T % 2147483647 == 1)
5209 ? 1 : -1];
5211 main ()
5215 return 0;
5217 _ACEOF
5218 rm -f conftest.$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>conftest.er1
5221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -z "$ac_c_werror_flag"
5228 || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest.$ac_objext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 break
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #define _LARGE_FILES 1
5254 #include <sys/types.h>
5255 /* Check that off_t can represent 2**63 - 1 correctly.
5256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5257 since some C++ compilers masquerading as C compilers
5258 incorrectly reject 9223372036854775807. */
5259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5261 && LARGE_OFF_T % 2147483647 == 1)
5262 ? 1 : -1];
5264 main ()
5268 return 0;
5270 _ACEOF
5271 rm -f conftest.$ac_objext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try='test -z "$ac_c_werror_flag"
5281 || test ! -s conftest.err'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; } &&
5287 { ac_try='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_cv_sys_large_files=1; break
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5300 break
5301 done
5303 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5304 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5305 if test "$ac_cv_sys_large_files" != no; then
5307 cat >>confdefs.h <<_ACEOF
5308 #define _LARGE_FILES $ac_cv_sys_large_files
5309 _ACEOF
5312 rm -f conftest*
5316 case `pwd` in
5317 *\ * | *\ *)
5318 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5319 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5320 esac
5324 macro_version='2.2.6'
5325 macro_revision='1.3012'
5339 ltmain="$ac_aux_dir/ltmain.sh"
5341 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5342 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5343 if test "${lt_cv_path_SED+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346 # Loop through the user's path and test for sed and gsed.
5347 # Then use that list of sed's as ones to test for truncation.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for lt_ac_prog in sed gsed; do
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5356 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5358 done
5359 done
5360 done
5361 IFS=$as_save_IFS
5362 lt_ac_max=0
5363 lt_ac_count=0
5364 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5365 # along with /bin/sed that truncates output.
5366 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5367 test ! -f $lt_ac_sed && continue
5368 cat /dev/null > conftest.in
5369 lt_ac_count=0
5370 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5371 # Check for GNU sed and select it if it is found.
5372 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5373 lt_cv_path_SED=$lt_ac_sed
5374 break
5376 while true; do
5377 cat conftest.in conftest.in >conftest.tmp
5378 mv conftest.tmp conftest.in
5379 cp conftest.in conftest.nl
5380 echo >>conftest.nl
5381 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5382 cmp -s conftest.out conftest.nl || break
5383 # 10000 chars as input seems more than enough
5384 test $lt_ac_count -gt 10 && break
5385 lt_ac_count=`expr $lt_ac_count + 1`
5386 if test $lt_ac_count -gt $lt_ac_max; then
5387 lt_ac_max=$lt_ac_count
5388 lt_cv_path_SED=$lt_ac_sed
5390 done
5391 done
5395 SED=$lt_cv_path_SED
5397 echo "$as_me:$LINENO: result: $SED" >&5
5398 echo "${ECHO_T}$SED" >&6
5400 test -z "$SED" && SED=sed
5401 Xsed="$SED -e 1s/^X//"
5413 echo "$as_me:$LINENO: checking for fgrep" >&5
5414 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5415 if test "${ac_cv_prog_fgrep+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5419 then ac_cv_prog_fgrep='grep -F'
5420 else ac_cv_prog_fgrep='fgrep'
5423 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5424 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5425 FGREP=$ac_cv_prog_fgrep
5428 test -z "$GREP" && GREP=grep
5448 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5449 if test "${with_gnu_ld+set}" = set; then
5450 withval="$with_gnu_ld"
5451 test "$withval" = no || with_gnu_ld=yes
5452 else
5453 with_gnu_ld=no
5455 ac_prog=ld
5456 if test "$GCC" = yes; then
5457 # Check if gcc -print-prog-name=ld gives a path.
5458 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5459 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5460 case $host in
5461 *-*-mingw*)
5462 # gcc leaves a trailing carriage return which upsets mingw
5463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5466 esac
5467 case $ac_prog in
5468 # Accept absolute paths.
5469 [\\/]* | ?:[\\/]*)
5470 re_direlt='/[^/][^/]*/\.\./'
5471 # Canonicalize the pathname of ld
5472 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5473 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5474 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5475 done
5476 test -z "$LD" && LD="$ac_prog"
5479 # If it fails, then pretend we aren't using GCC.
5480 ac_prog=ld
5483 # If it is relative, then search for the first ld in PATH.
5484 with_gnu_ld=unknown
5486 esac
5487 elif test "$with_gnu_ld" = yes; then
5488 echo "$as_me:$LINENO: checking for GNU ld" >&5
5489 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5490 else
5491 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5492 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5494 if test "${lt_cv_path_LD+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497 if test -z "$LD"; then
5498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5499 for ac_dir in $PATH; do
5500 IFS="$lt_save_ifs"
5501 test -z "$ac_dir" && ac_dir=.
5502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5503 lt_cv_path_LD="$ac_dir/$ac_prog"
5504 # Check to see if the program is GNU ld. I'd rather use --version,
5505 # but apparently some variants of GNU ld only accept -v.
5506 # Break only if it was the GNU/non-GNU ld that we prefer.
5507 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5508 *GNU* | *'with BFD'*)
5509 test "$with_gnu_ld" != no && break
5512 test "$with_gnu_ld" != yes && break
5514 esac
5516 done
5517 IFS="$lt_save_ifs"
5518 else
5519 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5523 LD="$lt_cv_path_LD"
5524 if test -n "$LD"; then
5525 echo "$as_me:$LINENO: result: $LD" >&5
5526 echo "${ECHO_T}$LD" >&6
5527 else
5528 echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6
5531 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5532 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5533 { (exit 1); exit 1; }; }
5534 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5535 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5536 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5540 case `$LD -v 2>&1 </dev/null` in
5541 *GNU* | *'with BFD'*)
5542 lt_cv_prog_gnu_ld=yes
5545 lt_cv_prog_gnu_ld=no
5547 esac
5549 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5550 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5551 with_gnu_ld=$lt_cv_prog_gnu_ld
5561 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5562 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5563 if test "${lt_cv_path_NM+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566 if test -n "$NM"; then
5567 # Let the user override the test.
5568 lt_cv_path_NM="$NM"
5569 else
5570 lt_nm_to_check="${ac_tool_prefix}nm"
5571 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5572 lt_nm_to_check="$lt_nm_to_check nm"
5574 for lt_tmp_nm in $lt_nm_to_check; do
5575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5576 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5577 IFS="$lt_save_ifs"
5578 test -z "$ac_dir" && ac_dir=.
5579 tmp_nm="$ac_dir/$lt_tmp_nm"
5580 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5581 # Check to see if the nm accepts a BSD-compat flag.
5582 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5583 # nm: unknown option "B" ignored
5584 # Tru64's nm complains that /dev/null is an invalid object file
5585 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5586 */dev/null* | *'Invalid file or object type'*)
5587 lt_cv_path_NM="$tmp_nm -B"
5588 break
5591 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5592 */dev/null*)
5593 lt_cv_path_NM="$tmp_nm -p"
5594 break
5597 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5598 continue # so that we can try to find one that supports BSD flags
5600 esac
5602 esac
5604 done
5605 IFS="$lt_save_ifs"
5606 done
5607 : ${lt_cv_path_NM=no}
5610 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5611 echo "${ECHO_T}$lt_cv_path_NM" >&6
5612 if test "$lt_cv_path_NM" != "no"; then
5613 NM="$lt_cv_path_NM"
5614 else
5615 # Didn't find any BSD compatible name lister, look for dumpbin.
5616 if test -n "$ac_tool_prefix"; then
5617 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5621 echo "$as_me:$LINENO: checking for $ac_word" >&5
5622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5623 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 else
5626 if test -n "$DUMPBIN"; then
5627 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5640 done
5641 done
5645 DUMPBIN=$ac_cv_prog_DUMPBIN
5646 if test -n "$DUMPBIN"; then
5647 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5648 echo "${ECHO_T}$DUMPBIN" >&6
5649 else
5650 echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6
5654 test -n "$DUMPBIN" && break
5655 done
5657 if test -z "$DUMPBIN"; then
5658 ac_ct_DUMPBIN=$DUMPBIN
5659 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5661 # Extract the first word of "$ac_prog", so it can be a program name with args.
5662 set dummy $ac_prog; ac_word=$2
5663 echo "$as_me:$LINENO: checking for $ac_word" >&5
5664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5665 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668 if test -n "$ac_ct_DUMPBIN"; then
5669 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5682 done
5683 done
5687 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5688 if test -n "$ac_ct_DUMPBIN"; then
5689 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5690 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5691 else
5692 echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6
5696 test -n "$ac_ct_DUMPBIN" && break
5697 done
5698 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5700 DUMPBIN=$ac_ct_DUMPBIN
5704 if test "$DUMPBIN" != ":"; then
5705 NM="$DUMPBIN"
5708 test -z "$NM" && NM=nm
5715 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5716 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5717 if test "${lt_cv_nm_interface+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720 lt_cv_nm_interface="BSD nm"
5721 echo "int some_variable = 0;" > conftest.$ac_ext
5722 (eval echo "\"\$as_me:5722: $ac_compile\"" >&5)
5723 (eval "$ac_compile" 2>conftest.err)
5724 cat conftest.err >&5
5725 (eval echo "\"\$as_me:5725: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5726 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5727 cat conftest.err >&5
5728 (eval echo "\"\$as_me:5728: output\"" >&5)
5729 cat conftest.out >&5
5730 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5731 lt_cv_nm_interface="MS dumpbin"
5733 rm -f conftest*
5735 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5736 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5738 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5739 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5740 LN_S=$as_ln_s
5741 if test "$LN_S" = "ln -s"; then
5742 echo "$as_me:$LINENO: result: yes" >&5
5743 echo "${ECHO_T}yes" >&6
5744 else
5745 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5746 echo "${ECHO_T}no, using $LN_S" >&6
5749 # find the maximum length of command line arguments
5750 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5751 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5752 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5756 teststring="ABCD"
5758 case $build_os in
5759 msdosdjgpp*)
5760 # On DJGPP, this test can blow up pretty badly due to problems in libc
5761 # (any single argument exceeding 2000 bytes causes a buffer overrun
5762 # during glob expansion). Even if it were fixed, the result of this
5763 # check would be larger than it should be.
5764 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5767 gnu*)
5768 # Under GNU Hurd, this test is not required because there is
5769 # no limit to the length of command line arguments.
5770 # Libtool will interpret -1 as no limit whatsoever
5771 lt_cv_sys_max_cmd_len=-1;
5774 cygwin* | mingw* | cegcc*)
5775 # On Win9x/ME, this test blows up -- it succeeds, but takes
5776 # about 5 minutes as the teststring grows exponentially.
5777 # Worse, since 9x/ME are not pre-emptively multitasking,
5778 # you end up with a "frozen" computer, even though with patience
5779 # the test eventually succeeds (with a max line length of 256k).
5780 # Instead, let's just punt: use the minimum linelength reported by
5781 # all of the supported platforms: 8192 (on NT/2K/XP).
5782 lt_cv_sys_max_cmd_len=8192;
5785 amigaos*)
5786 # On AmigaOS with pdksh, this test takes hours, literally.
5787 # So we just punt and use a minimum line length of 8192.
5788 lt_cv_sys_max_cmd_len=8192;
5791 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5792 # This has been around since 386BSD, at least. Likely further.
5793 if test -x /sbin/sysctl; then
5794 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5795 elif test -x /usr/sbin/sysctl; then
5796 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5797 else
5798 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5800 # And add a safety zone
5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5805 interix*)
5806 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5807 lt_cv_sys_max_cmd_len=196608
5810 osf*)
5811 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5812 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5813 # nice to cause kernel panics so lets avoid the loop below.
5814 # First set a reasonable default.
5815 lt_cv_sys_max_cmd_len=16384
5817 if test -x /sbin/sysconfig; then
5818 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5819 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5820 esac
5823 sco3.2v5*)
5824 lt_cv_sys_max_cmd_len=102400
5826 sysv5* | sco5v6* | sysv4.2uw2*)
5827 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5828 if test -n "$kargmax"; then
5829 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5830 else
5831 lt_cv_sys_max_cmd_len=32768
5835 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5836 if test -n "$lt_cv_sys_max_cmd_len"; then
5837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5839 else
5840 # Make teststring a little bigger before we do anything with it.
5841 # a 1K string should be a reasonable start.
5842 for i in 1 2 3 4 5 6 7 8 ; do
5843 teststring=$teststring$teststring
5844 done
5845 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5846 # If test is not a shell built-in, we'll probably end up computing a
5847 # maximum length that is only half of the actual maximum length, but
5848 # we can't tell.
5849 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5850 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5851 test $i != 17 # 1/2 MB should be enough
5853 i=`expr $i + 1`
5854 teststring=$teststring$teststring
5855 done
5856 # Only check the string length outside the loop.
5857 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5858 teststring=
5859 # Add a significant safety factor because C++ compilers can tack on
5860 # massive amounts of additional arguments before passing them to the
5861 # linker. It appears as though 1/2 is a usable value.
5862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5865 esac
5869 if test -n $lt_cv_sys_max_cmd_len ; then
5870 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5871 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5872 else
5873 echo "$as_me:$LINENO: result: none" >&5
5874 echo "${ECHO_T}none" >&6
5876 max_cmd_len=$lt_cv_sys_max_cmd_len
5883 : ${CP="cp -f"}
5884 : ${MV="mv -f"}
5885 : ${RM="rm -f"}
5887 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5888 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5889 # Try some XSI features
5890 xsi_shell=no
5891 ( _lt_dummy="a/b/c"
5892 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5893 = c,a/b,, \
5894 && eval 'test $(( 1 + 1 )) -eq 2 \
5895 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5896 && xsi_shell=yes
5897 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5898 echo "${ECHO_T}$xsi_shell" >&6
5901 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5902 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5903 lt_shell_append=no
5904 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5905 >/dev/null 2>&1 \
5906 && lt_shell_append=yes
5907 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5908 echo "${ECHO_T}$lt_shell_append" >&6
5911 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5912 lt_unset=unset
5913 else
5914 lt_unset=false
5921 # test EBCDIC or ASCII
5922 case `echo X|tr X '\101'` in
5923 A) # ASCII based system
5924 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5925 lt_SP2NL='tr \040 \012'
5926 lt_NL2SP='tr \015\012 \040\040'
5928 *) # EBCDIC based system
5929 lt_SP2NL='tr \100 \n'
5930 lt_NL2SP='tr \r\n \100\100'
5932 esac
5942 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5943 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5944 if test "${lt_cv_ld_reload_flag+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 lt_cv_ld_reload_flag='-r'
5949 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5950 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5951 reload_flag=$lt_cv_ld_reload_flag
5952 case $reload_flag in
5953 "" | " "*) ;;
5954 *) reload_flag=" $reload_flag" ;;
5955 esac
5956 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5957 case $host_os in
5958 darwin*)
5959 if test "$GCC" = yes; then
5960 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5961 else
5962 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5965 esac
5975 if test -n "$ac_tool_prefix"; then
5976 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5977 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5978 echo "$as_me:$LINENO: checking for $ac_word" >&5
5979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5980 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983 if test -n "$OBJDUMP"; then
5984 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5985 else
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 break 2
5997 done
5998 done
6002 OBJDUMP=$ac_cv_prog_OBJDUMP
6003 if test -n "$OBJDUMP"; then
6004 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6005 echo "${ECHO_T}$OBJDUMP" >&6
6006 else
6007 echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6
6012 if test -z "$ac_cv_prog_OBJDUMP"; then
6013 ac_ct_OBJDUMP=$OBJDUMP
6014 # Extract the first word of "objdump", so it can be a program name with args.
6015 set dummy objdump; ac_word=$2
6016 echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6018 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 if test -n "$ac_ct_OBJDUMP"; then
6022 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6035 done
6036 done
6038 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6041 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6042 if test -n "$ac_ct_OBJDUMP"; then
6043 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6044 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6045 else
6046 echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6
6050 OBJDUMP=$ac_ct_OBJDUMP
6051 else
6052 OBJDUMP="$ac_cv_prog_OBJDUMP"
6055 test -z "$OBJDUMP" && OBJDUMP=objdump
6065 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6066 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6067 if test "${lt_cv_deplibs_check_method+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 lt_cv_file_magic_cmd='$MAGIC_CMD'
6071 lt_cv_file_magic_test_file=
6072 lt_cv_deplibs_check_method='unknown'
6073 # Need to set the preceding variable on all platforms that support
6074 # interlibrary dependencies.
6075 # 'none' -- dependencies not supported.
6076 # `unknown' -- same as none, but documents that we really don't know.
6077 # 'pass_all' -- all dependencies passed with no checks.
6078 # 'test_compile' -- check by making test program.
6079 # 'file_magic [[regex]]' -- check by looking for files in library path
6080 # which responds to the $file_magic_cmd with a given extended regex.
6081 # If you have `file' or equivalent on your system and you're not sure
6082 # whether `pass_all' will *always* work, you probably want this one.
6084 case $host_os in
6085 aix[4-9]*)
6086 lt_cv_deplibs_check_method=pass_all
6089 beos*)
6090 lt_cv_deplibs_check_method=pass_all
6093 bsdi[45]*)
6094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6095 lt_cv_file_magic_cmd='/usr/bin/file -L'
6096 lt_cv_file_magic_test_file=/shlib/libc.so
6099 cygwin*)
6100 # func_win32_libid is a shell function defined in ltmain.sh
6101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6102 lt_cv_file_magic_cmd='func_win32_libid'
6105 mingw* | pw32*)
6106 # Base MSYS/MinGW do not provide the 'file' command needed by
6107 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6108 # unless we find 'file', for example because we are cross-compiling.
6109 if ( file / ) >/dev/null 2>&1; then
6110 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6111 lt_cv_file_magic_cmd='func_win32_libid'
6112 else
6113 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6114 lt_cv_file_magic_cmd='$OBJDUMP -f'
6118 cegcc)
6119 # use the weaker test based on 'objdump'. See mingw*.
6120 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6121 lt_cv_file_magic_cmd='$OBJDUMP -f'
6124 darwin* | rhapsody*)
6125 lt_cv_deplibs_check_method=pass_all
6128 freebsd* | dragonfly*)
6129 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6130 case $host_cpu in
6131 i*86 )
6132 # Not sure whether the presence of OpenBSD here was a mistake.
6133 # Let's accept both of them until this is cleared up.
6134 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6135 lt_cv_file_magic_cmd=/usr/bin/file
6136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6138 esac
6139 else
6140 lt_cv_deplibs_check_method=pass_all
6144 gnu*)
6145 lt_cv_deplibs_check_method=pass_all
6148 hpux10.20* | hpux11*)
6149 lt_cv_file_magic_cmd=/usr/bin/file
6150 case $host_cpu in
6151 ia64*)
6152 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6153 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6155 hppa*64*)
6156 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]'
6157 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6161 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6163 esac
6166 interix[3-9]*)
6167 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6171 irix5* | irix6* | nonstopux*)
6172 case $LD in
6173 *-32|*"-32 ") libmagic=32-bit;;
6174 *-n32|*"-n32 ") libmagic=N32;;
6175 *-64|*"-64 ") libmagic=64-bit;;
6176 *) libmagic=never-match;;
6177 esac
6178 lt_cv_deplibs_check_method=pass_all
6181 # This must be Linux ELF.
6182 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6183 lt_cv_deplibs_check_method=pass_all
6186 netbsd*)
6187 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6189 else
6190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6194 newos6*)
6195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6196 lt_cv_file_magic_cmd=/usr/bin/file
6197 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6200 *nto* | *qnx*)
6201 lt_cv_deplibs_check_method=pass_all
6204 openbsd*)
6205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6207 else
6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6212 osf3* | osf4* | osf5*)
6213 lt_cv_deplibs_check_method=pass_all
6216 rdos*)
6217 lt_cv_deplibs_check_method=pass_all
6220 solaris*)
6221 lt_cv_deplibs_check_method=pass_all
6224 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6225 lt_cv_deplibs_check_method=pass_all
6228 sysv4 | sysv4.3*)
6229 case $host_vendor in
6230 motorola)
6231 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]'
6232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6234 ncr)
6235 lt_cv_deplibs_check_method=pass_all
6237 sequent)
6238 lt_cv_file_magic_cmd='/bin/file'
6239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6241 sni)
6242 lt_cv_file_magic_cmd='/bin/file'
6243 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6244 lt_cv_file_magic_test_file=/lib/libc.so
6246 siemens)
6247 lt_cv_deplibs_check_method=pass_all
6250 lt_cv_deplibs_check_method=pass_all
6252 esac
6255 tpf*)
6256 lt_cv_deplibs_check_method=pass_all
6258 esac
6261 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6262 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6263 file_magic_cmd=$lt_cv_file_magic_cmd
6264 deplibs_check_method=$lt_cv_deplibs_check_method
6265 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6278 if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6280 set dummy ${ac_tool_prefix}ar; ac_word=$2
6281 echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6283 if test "${ac_cv_prog_AR+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 if test -n "$AR"; then
6287 ac_cv_prog_AR="$AR" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_AR="${ac_tool_prefix}ar"
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6300 done
6301 done
6305 AR=$ac_cv_prog_AR
6306 if test -n "$AR"; then
6307 echo "$as_me:$LINENO: result: $AR" >&5
6308 echo "${ECHO_T}$AR" >&6
6309 else
6310 echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6315 if test -z "$ac_cv_prog_AR"; then
6316 ac_ct_AR=$AR
6317 # Extract the first word of "ar", so it can be a program name with args.
6318 set dummy ar; ac_word=$2
6319 echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6321 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 if test -n "$ac_ct_AR"; then
6325 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_ac_ct_AR="ar"
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6338 done
6339 done
6341 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6344 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6345 if test -n "$ac_ct_AR"; then
6346 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6347 echo "${ECHO_T}$ac_ct_AR" >&6
6348 else
6349 echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6
6353 AR=$ac_ct_AR
6354 else
6355 AR="$ac_cv_prog_AR"
6358 test -z "$AR" && AR=ar
6359 test -z "$AR_FLAGS" && AR_FLAGS=cru
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}strip; ac_word=$2
6374 echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6376 if test "${ac_cv_prog_STRIP+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 if test -n "$STRIP"; then
6380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6393 done
6394 done
6398 STRIP=$ac_cv_prog_STRIP
6399 if test -n "$STRIP"; then
6400 echo "$as_me:$LINENO: result: $STRIP" >&5
6401 echo "${ECHO_T}$STRIP" >&6
6402 else
6403 echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6
6408 if test -z "$ac_cv_prog_STRIP"; then
6409 ac_ct_STRIP=$STRIP
6410 # Extract the first word of "strip", so it can be a program name with args.
6411 set dummy strip; ac_word=$2
6412 echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6414 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417 if test -n "$ac_ct_STRIP"; then
6418 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427 ac_cv_prog_ac_ct_STRIP="strip"
6428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 break 2
6431 done
6432 done
6434 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6437 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6438 if test -n "$ac_ct_STRIP"; then
6439 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6440 echo "${ECHO_T}$ac_ct_STRIP" >&6
6441 else
6442 echo "$as_me:$LINENO: result: no" >&5
6443 echo "${ECHO_T}no" >&6
6446 STRIP=$ac_ct_STRIP
6447 else
6448 STRIP="$ac_cv_prog_STRIP"
6451 test -z "$STRIP" && STRIP=:
6458 if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6461 echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6463 if test "${ac_cv_prog_RANLIB+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 if test -n "$RANLIB"; then
6467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6480 done
6481 done
6485 RANLIB=$ac_cv_prog_RANLIB
6486 if test -n "$RANLIB"; then
6487 echo "$as_me:$LINENO: result: $RANLIB" >&5
6488 echo "${ECHO_T}$RANLIB" >&6
6489 else
6490 echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6
6495 if test -z "$ac_cv_prog_RANLIB"; then
6496 ac_ct_RANLIB=$RANLIB
6497 # Extract the first word of "ranlib", so it can be a program name with args.
6498 set dummy ranlib; ac_word=$2
6499 echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6501 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 if test -n "$ac_ct_RANLIB"; then
6505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_ac_ct_RANLIB="ranlib"
6515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6518 done
6519 done
6521 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6524 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6525 if test -n "$ac_ct_RANLIB"; then
6526 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6527 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6528 else
6529 echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6
6533 RANLIB=$ac_ct_RANLIB
6534 else
6535 RANLIB="$ac_cv_prog_RANLIB"
6538 test -z "$RANLIB" && RANLIB=:
6545 # Determine commands to create old-style static archives.
6546 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6547 old_postinstall_cmds='chmod 644 $oldlib'
6548 old_postuninstall_cmds=
6550 if test -n "$RANLIB"; then
6551 case $host_os in
6552 openbsd*)
6553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6556 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6558 esac
6559 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6595 # If no C compiler was specified, use CC.
6596 LTCC=${LTCC-"$CC"}
6598 # If no C compiler flags were specified, use CFLAGS.
6599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6601 # Allow CC to be a program name with arguments.
6602 compiler=$CC
6605 # Check for command to grab the raw symbol name followed by C symbol from nm.
6606 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6607 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6608 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6612 # These are sane defaults that work on at least a few old systems.
6613 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6615 # Character class describing NM global symbol codes.
6616 symcode='[BCDEGRST]'
6618 # Regexp to match symbols that can be accessed directly from C.
6619 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6621 # Define system-specific variables.
6622 case $host_os in
6623 aix*)
6624 symcode='[BCDT]'
6626 cygwin* | mingw* | pw32* | cegcc*)
6627 symcode='[ABCDGISTW]'
6629 hpux*)
6630 if test "$host_cpu" = ia64; then
6631 symcode='[ABCDEGRST]'
6634 irix* | nonstopux*)
6635 symcode='[BCDEGRST]'
6637 osf*)
6638 symcode='[BCDEGQRST]'
6640 solaris*)
6641 symcode='[BDRT]'
6643 sco3.2v5*)
6644 symcode='[DT]'
6646 sysv4.2uw2*)
6647 symcode='[DT]'
6649 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6650 symcode='[ABDT]'
6652 sysv4)
6653 symcode='[DFNSTU]'
6655 esac
6657 # If we're using GNU nm, then use its standard symbol codes.
6658 case `$NM -V 2>&1` in
6659 *GNU* | *'with BFD'*)
6660 symcode='[ABCDGIRSTW]' ;;
6661 esac
6663 # Transform an extracted symbol line into a proper C declaration.
6664 # Some systems (esp. on ia64) link data and code symbols differently,
6665 # so use this general approach.
6666 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6668 # Transform an extracted symbol line into symbol name and symbol address
6669 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6670 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'"
6672 # Handle CRLF in mingw tool chain
6673 opt_cr=
6674 case $build_os in
6675 mingw*)
6676 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6678 esac
6680 # Try without a prefix underscore, then with it.
6681 for ac_symprfx in "" "_"; do
6683 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6684 symxfrm="\\1 $ac_symprfx\\2 \\2"
6686 # Write the raw and C identifiers.
6687 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6688 # Fake it for dumpbin and say T for any non-static function
6689 # and D for any global variable.
6690 # Also find C++ and __fastcall symbols from MSVC++,
6691 # which start with @ or ?.
6692 lt_cv_sys_global_symbol_pipe="$AWK '"\
6693 " {last_section=section; section=\$ 3};"\
6694 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6695 " \$ 0!~/External *\|/{next};"\
6696 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6697 " {if(hide[section]) next};"\
6698 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6699 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6700 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6701 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6702 " ' prfx=^$ac_symprfx"
6703 else
6704 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6707 # Check to see that the pipe works correctly.
6708 pipe_works=no
6710 rm -f conftest*
6711 cat > conftest.$ac_ext <<_LT_EOF
6712 #ifdef __cplusplus
6713 extern "C" {
6714 #endif
6715 char nm_test_var;
6716 void nm_test_func(void);
6717 void nm_test_func(void){}
6718 #ifdef __cplusplus
6720 #endif
6721 int main(){nm_test_var='a';nm_test_func();return(0);}
6722 _LT_EOF
6724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6725 (eval $ac_compile) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; then
6729 # Now try to grab the symbols.
6730 nlist=conftest.nm
6731 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6732 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && test -s "$nlist"; then
6736 # Try sorting and uniquifying the output.
6737 if sort "$nlist" | uniq > "$nlist"T; then
6738 mv -f "$nlist"T "$nlist"
6739 else
6740 rm -f "$nlist"T
6743 # Make sure that we snagged all the symbols we need.
6744 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6745 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6746 cat <<_LT_EOF > conftest.$ac_ext
6747 #ifdef __cplusplus
6748 extern "C" {
6749 #endif
6751 _LT_EOF
6752 # Now generate the symbol file.
6753 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6755 cat <<_LT_EOF >> conftest.$ac_ext
6757 /* The mapping between symbol names and symbols. */
6758 const struct {
6759 const char *name;
6760 void *address;
6762 lt__PROGRAM__LTX_preloaded_symbols[] =
6764 { "@PROGRAM@", (void *) 0 },
6765 _LT_EOF
6766 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6767 cat <<\_LT_EOF >> conftest.$ac_ext
6768 {0, (void *) 0}
6771 /* This works around a problem in FreeBSD linker */
6772 #ifdef FREEBSD_WORKAROUND
6773 static const void *lt_preloaded_setup() {
6774 return lt__PROGRAM__LTX_preloaded_symbols;
6776 #endif
6778 #ifdef __cplusplus
6780 #endif
6781 _LT_EOF
6782 # Now try linking the two files.
6783 mv conftest.$ac_objext conftstm.$ac_objext
6784 lt_save_LIBS="$LIBS"
6785 lt_save_CFLAGS="$CFLAGS"
6786 LIBS="conftstm.$ac_objext"
6787 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789 (eval $ac_link) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6793 pipe_works=yes
6795 LIBS="$lt_save_LIBS"
6796 CFLAGS="$lt_save_CFLAGS"
6797 else
6798 echo "cannot find nm_test_func in $nlist" >&5
6800 else
6801 echo "cannot find nm_test_var in $nlist" >&5
6803 else
6804 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6806 else
6807 echo "$progname: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6810 rm -rf conftest* conftst*
6812 # Do not use the global_symbol_pipe unless it works.
6813 if test "$pipe_works" = yes; then
6814 break
6815 else
6816 lt_cv_sys_global_symbol_pipe=
6818 done
6822 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6823 lt_cv_sys_global_symbol_to_cdecl=
6825 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6826 echo "$as_me:$LINENO: result: failed" >&5
6827 echo "${ECHO_T}failed" >&6
6828 else
6829 echo "$as_me:$LINENO: result: ok" >&5
6830 echo "${ECHO_T}ok" >&6
6854 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6855 if test "${enable_libtool_lock+set}" = set; then
6856 enableval="$enable_libtool_lock"
6859 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6861 # Some flags need to be propagated to the compiler or linker for good
6862 # libtool support.
6863 case $host in
6864 ia64-*-hpux*)
6865 # Find out which ABI we are using.
6866 echo 'int i;' > conftest.$ac_ext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868 (eval $ac_compile) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; then
6872 case `/usr/bin/file conftest.$ac_objext` in
6873 *ELF-32*)
6874 HPUX_IA64_MODE="32"
6876 *ELF-64*)
6877 HPUX_IA64_MODE="64"
6879 esac
6881 rm -rf conftest*
6883 *-*-irix6*)
6884 # Find out which ABI we are using.
6885 echo '#line 6885 "configure"' > conftest.$ac_ext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887 (eval $ac_compile) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; then
6891 if test "$lt_cv_prog_gnu_ld" = yes; then
6892 case `/usr/bin/file conftest.$ac_objext` in
6893 *32-bit*)
6894 LD="${LD-ld} -melf32bsmip"
6896 *N32*)
6897 LD="${LD-ld} -melf32bmipn32"
6899 *64-bit*)
6900 LD="${LD-ld} -melf64bmip"
6902 esac
6903 else
6904 case `/usr/bin/file conftest.$ac_objext` in
6905 *32-bit*)
6906 LD="${LD-ld} -32"
6908 *N32*)
6909 LD="${LD-ld} -n32"
6911 *64-bit*)
6912 LD="${LD-ld} -64"
6914 esac
6917 rm -rf conftest*
6920 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6921 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6922 # Find out which ABI we are using.
6923 echo 'int i;' > conftest.$ac_ext
6924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; then
6929 case `/usr/bin/file conftest.o` in
6930 *32-bit*)
6931 case $host in
6932 x86_64-*kfreebsd*-gnu)
6933 LD="${LD-ld} -m elf_i386_fbsd"
6935 x86_64-*linux*)
6936 LD="${LD-ld} -m elf_i386"
6938 ppc64-*linux*|powerpc64-*linux*)
6939 LD="${LD-ld} -m elf32ppclinux"
6941 s390x-*linux*)
6942 LD="${LD-ld} -m elf_s390"
6944 sparc64-*linux*)
6945 LD="${LD-ld} -m elf32_sparc"
6947 esac
6949 *64-bit*)
6950 case $host in
6951 x86_64-*kfreebsd*-gnu)
6952 LD="${LD-ld} -m elf_x86_64_fbsd"
6954 x86_64-*linux*)
6955 LD="${LD-ld} -m elf_x86_64"
6957 ppc*-*linux*|powerpc*-*linux*)
6958 LD="${LD-ld} -m elf64ppc"
6960 s390*-*linux*|s390*-*tpf*)
6961 LD="${LD-ld} -m elf64_s390"
6963 sparc*-*linux*)
6964 LD="${LD-ld} -m elf64_sparc"
6966 esac
6968 esac
6970 rm -rf conftest*
6973 *-*-sco3.2v5*)
6974 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6975 SAVE_CFLAGS="$CFLAGS"
6976 CFLAGS="$CFLAGS -belf"
6977 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6978 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6979 if test "${lt_cv_cc_needs_belf+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 ac_ext=c
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6996 main ()
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest$ac_exeext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 lt_cv_cc_needs_belf=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 lt_cv_cc_needs_belf=no
7032 rm -f conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 ac_ext=c
7035 ac_cpp='$CPP $CPPFLAGS'
7036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7042 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7043 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7044 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7045 CFLAGS="$SAVE_CFLAGS"
7048 sparc*-*solaris*)
7049 # Find out which ABI we are using.
7050 echo 'int i;' > conftest.$ac_ext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7052 (eval $ac_compile) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; then
7056 case `/usr/bin/file conftest.o` in
7057 *64-bit*)
7058 case $lt_cv_prog_gnu_ld in
7059 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7061 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7062 LD="${LD-ld} -64"
7065 esac
7067 esac
7069 rm -rf conftest*
7071 esac
7073 need_locks="$enable_libtool_lock"
7076 case $host_os in
7077 rhapsody* | darwin*)
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7083 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 if test -n "$DSYMUTIL"; then
7087 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7100 done
7101 done
7105 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7106 if test -n "$DSYMUTIL"; then
7107 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7108 echo "${ECHO_T}$DSYMUTIL" >&6
7109 else
7110 echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6
7115 if test -z "$ac_cv_prog_DSYMUTIL"; then
7116 ac_ct_DSYMUTIL=$DSYMUTIL
7117 # Extract the first word of "dsymutil", so it can be a program name with args.
7118 set dummy dsymutil; ac_word=$2
7119 echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7121 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 if test -n "$ac_ct_DSYMUTIL"; then
7125 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7138 done
7139 done
7141 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7144 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7145 if test -n "$ac_ct_DSYMUTIL"; then
7146 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7147 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7148 else
7149 echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7153 DSYMUTIL=$ac_ct_DSYMUTIL
7154 else
7155 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7161 echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7163 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 if test -n "$NMEDIT"; then
7167 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7180 done
7181 done
7185 NMEDIT=$ac_cv_prog_NMEDIT
7186 if test -n "$NMEDIT"; then
7187 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7188 echo "${ECHO_T}$NMEDIT" >&6
7189 else
7190 echo "$as_me:$LINENO: result: no" >&5
7191 echo "${ECHO_T}no" >&6
7195 if test -z "$ac_cv_prog_NMEDIT"; then
7196 ac_ct_NMEDIT=$NMEDIT
7197 # Extract the first word of "nmedit", so it can be a program name with args.
7198 set dummy nmedit; ac_word=$2
7199 echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7201 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204 if test -n "$ac_ct_NMEDIT"; then
7205 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7218 done
7219 done
7221 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7224 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7225 if test -n "$ac_ct_NMEDIT"; then
7226 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7227 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7228 else
7229 echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7233 NMEDIT=$ac_ct_NMEDIT
7234 else
7235 NMEDIT="$ac_cv_prog_NMEDIT"
7238 if test -n "$ac_tool_prefix"; then
7239 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7240 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7241 echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7243 if test "${ac_cv_prog_LIPO+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246 if test -n "$LIPO"; then
7247 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7260 done
7261 done
7265 LIPO=$ac_cv_prog_LIPO
7266 if test -n "$LIPO"; then
7267 echo "$as_me:$LINENO: result: $LIPO" >&5
7268 echo "${ECHO_T}$LIPO" >&6
7269 else
7270 echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6
7275 if test -z "$ac_cv_prog_LIPO"; then
7276 ac_ct_LIPO=$LIPO
7277 # Extract the first word of "lipo", so it can be a program name with args.
7278 set dummy lipo; ac_word=$2
7279 echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7281 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284 if test -n "$ac_ct_LIPO"; then
7285 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_ac_ct_LIPO="lipo"
7295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7298 done
7299 done
7301 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7304 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7305 if test -n "$ac_ct_LIPO"; then
7306 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7307 echo "${ECHO_T}$ac_ct_LIPO" >&6
7308 else
7309 echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6
7313 LIPO=$ac_ct_LIPO
7314 else
7315 LIPO="$ac_cv_prog_LIPO"
7318 if test -n "$ac_tool_prefix"; then
7319 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7320 set dummy ${ac_tool_prefix}otool; ac_word=$2
7321 echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7323 if test "${ac_cv_prog_OTOOL+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 if test -n "$OTOOL"; then
7327 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7328 else
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7332 IFS=$as_save_IFS
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7336 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 break 2
7340 done
7341 done
7345 OTOOL=$ac_cv_prog_OTOOL
7346 if test -n "$OTOOL"; then
7347 echo "$as_me:$LINENO: result: $OTOOL" >&5
7348 echo "${ECHO_T}$OTOOL" >&6
7349 else
7350 echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6
7355 if test -z "$ac_cv_prog_OTOOL"; then
7356 ac_ct_OTOOL=$OTOOL
7357 # Extract the first word of "otool", so it can be a program name with args.
7358 set dummy otool; ac_word=$2
7359 echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364 if test -n "$ac_ct_OTOOL"; then
7365 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_ac_ct_OTOOL="otool"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7378 done
7379 done
7381 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7384 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7385 if test -n "$ac_ct_OTOOL"; then
7386 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7387 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7388 else
7389 echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6
7393 OTOOL=$ac_ct_OTOOL
7394 else
7395 OTOOL="$ac_cv_prog_OTOOL"
7398 if test -n "$ac_tool_prefix"; then
7399 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7400 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7401 echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7403 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406 if test -n "$OTOOL64"; then
7407 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7420 done
7421 done
7425 OTOOL64=$ac_cv_prog_OTOOL64
7426 if test -n "$OTOOL64"; then
7427 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7428 echo "${ECHO_T}$OTOOL64" >&6
7429 else
7430 echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6
7435 if test -z "$ac_cv_prog_OTOOL64"; then
7436 ac_ct_OTOOL64=$OTOOL64
7437 # Extract the first word of "otool64", so it can be a program name with args.
7438 set dummy otool64; ac_word=$2
7439 echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7441 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 if test -n "$ac_ct_OTOOL64"; then
7445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_ac_ct_OTOOL64="otool64"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7458 done
7459 done
7461 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7464 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7465 if test -n "$ac_ct_OTOOL64"; then
7466 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7467 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7468 else
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7473 OTOOL64=$ac_ct_OTOOL64
7474 else
7475 OTOOL64="$ac_cv_prog_OTOOL64"
7504 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7505 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7506 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509 lt_cv_apple_cc_single_mod=no
7510 if test -z "${LT_MULTI_MODULE}"; then
7511 # By default we will add the -single_module flag. You can override
7512 # by either setting the environment variable LT_MULTI_MODULE
7513 # non-empty at configure time, or by adding -multi_module to the
7514 # link flags.
7515 rm -rf libconftest.dylib*
7516 echo "int foo(void){return 1;}" > conftest.c
7517 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7518 -dynamiclib -Wl,-single_module conftest.c" >&5
7519 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7520 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7521 _lt_result=$?
7522 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7523 lt_cv_apple_cc_single_mod=yes
7524 else
7525 cat conftest.err >&5
7527 rm -rf libconftest.dylib*
7528 rm -f conftest.*
7531 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7532 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7533 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7534 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7535 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538 lt_cv_ld_exported_symbols_list=no
7539 save_LDFLAGS=$LDFLAGS
7540 echo "_main" > conftest.sym
7541 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7550 main ()
7554 return 0;
7556 _ACEOF
7557 rm -f conftest.$ac_objext conftest$ac_exeext
7558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559 (eval $ac_link) 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -z "$ac_c_werror_flag"
7567 || test ! -s conftest.err'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; } &&
7573 { ac_try='test -s conftest$ac_exeext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 (eval $ac_try) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 lt_cv_ld_exported_symbols_list=yes
7580 else
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 lt_cv_ld_exported_symbols_list=no
7586 rm -f conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7588 LDFLAGS="$save_LDFLAGS"
7591 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7592 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7593 case $host_os in
7594 rhapsody* | darwin1.[012])
7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7596 darwin1.*)
7597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7598 darwin*) # darwin 5.x on
7599 # if running on 10.5 or later, the deployment target defaults
7600 # to the OS version, if on x86, and 10.4, the deployment
7601 # target defaults to 10.4. Don't you love it?
7602 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7603 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7604 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7605 10.[012]*)
7606 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7607 10.*)
7608 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7609 esac
7611 esac
7612 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7613 _lt_dar_single_mod='$single_module'
7615 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7616 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7617 else
7618 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7620 if test "$DSYMUTIL" != ":"; then
7621 _lt_dsymutil='~$DSYMUTIL $lib || :'
7622 else
7623 _lt_dsymutil=
7626 esac
7629 for ac_header in dlfcn.h
7631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 echo "$as_me:$LINENO: checking for $ac_header" >&5
7633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 $ac_includes_default
7645 #include <$ac_header>
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -z "$ac_c_werror_flag"
7657 || test ! -s conftest.err'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 eval "$as_ac_Header=yes"
7670 else
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 eval "$as_ac_Header=no"
7676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7681 cat >>confdefs.h <<_ACEOF
7682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7683 _ACEOF
7687 done
7691 # Set options
7695 enable_dlopen=no
7698 enable_win32_dll=no
7702 # Check whether --enable-static or --disable-static was given.
7703 if test "${enable_static+set}" = set; then
7704 enableval="$enable_static"
7705 p=${PACKAGE-default}
7706 case $enableval in
7707 yes) enable_static=yes ;;
7708 no) enable_static=no ;;
7710 enable_static=no
7711 # Look at the argument we got. We use all the common list separators.
7712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7713 for pkg in $enableval; do
7714 IFS="$lt_save_ifs"
7715 if test "X$pkg" = "X$p"; then
7716 enable_static=yes
7718 done
7719 IFS="$lt_save_ifs"
7721 esac
7722 else
7723 enable_static=yes
7734 # Check whether --with-pic or --without-pic was given.
7735 if test "${with_pic+set}" = set; then
7736 withval="$with_pic"
7737 pic_mode="$withval"
7738 else
7739 pic_mode=default
7742 test -z "$pic_mode" && pic_mode=default
7750 # Check whether --enable-fast-install or --disable-fast-install was given.
7751 if test "${enable_fast_install+set}" = set; then
7752 enableval="$enable_fast_install"
7753 p=${PACKAGE-default}
7754 case $enableval in
7755 yes) enable_fast_install=yes ;;
7756 no) enable_fast_install=no ;;
7758 enable_fast_install=no
7759 # Look at the argument we got. We use all the common list separators.
7760 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7761 for pkg in $enableval; do
7762 IFS="$lt_save_ifs"
7763 if test "X$pkg" = "X$p"; then
7764 enable_fast_install=yes
7766 done
7767 IFS="$lt_save_ifs"
7769 esac
7770 else
7771 enable_fast_install=yes
7783 # This can be used to rebuild libtool when needed
7784 LIBTOOL_DEPS="$ltmain"
7786 # Always use our own libtool.
7787 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7813 test -z "$LN_S" && LN_S="ln -s"
7828 if test -n "${ZSH_VERSION+set}" ; then
7829 setopt NO_GLOB_SUBST
7832 echo "$as_me:$LINENO: checking for objdir" >&5
7833 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7834 if test "${lt_cv_objdir+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 rm -f .libs 2>/dev/null
7838 mkdir .libs 2>/dev/null
7839 if test -d .libs; then
7840 lt_cv_objdir=.libs
7841 else
7842 # MS-DOS does not allow filenames that begin with a dot.
7843 lt_cv_objdir=_libs
7845 rmdir .libs 2>/dev/null
7847 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7848 echo "${ECHO_T}$lt_cv_objdir" >&6
7849 objdir=$lt_cv_objdir
7855 cat >>confdefs.h <<_ACEOF
7856 #define LT_OBJDIR "$lt_cv_objdir/"
7857 _ACEOF
7875 case $host_os in
7876 aix3*)
7877 # AIX sometimes has problems with the GCC collect2 program. For some
7878 # reason, if we set the COLLECT_NAMES environment variable, the problems
7879 # vanish in a puff of smoke.
7880 if test "X${COLLECT_NAMES+set}" != Xset; then
7881 COLLECT_NAMES=
7882 export COLLECT_NAMES
7885 esac
7887 # Sed substitution that helps us do robust quoting. It backslashifies
7888 # metacharacters that are still active within double-quoted strings.
7889 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7891 # Same as above, but do not quote variable references.
7892 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7894 # Sed substitution to delay expansion of an escaped shell variable in a
7895 # double_quote_subst'ed string.
7896 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7898 # Sed substitution to delay expansion of an escaped single quote.
7899 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7901 # Sed substitution to avoid accidental globbing in evaled expressions
7902 no_glob_subst='s/\*/\\\*/g'
7904 # Global variables:
7905 ofile=libtool
7906 can_build_shared=yes
7908 # All known linkers require a `.a' archive for static linking (except MSVC,
7909 # which needs '.lib').
7910 libext=a
7912 with_gnu_ld="$lt_cv_prog_gnu_ld"
7914 old_CC="$CC"
7915 old_CFLAGS="$CFLAGS"
7917 # Set sane defaults for various variables
7918 test -z "$CC" && CC=cc
7919 test -z "$LTCC" && LTCC=$CC
7920 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7921 test -z "$LD" && LD=ld
7922 test -z "$ac_objext" && ac_objext=o
7924 for cc_temp in $compiler""; do
7925 case $cc_temp in
7926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7928 \-*) ;;
7929 *) break;;
7930 esac
7931 done
7932 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7935 # Only perform the check for file, if the check method requires it
7936 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7937 case $deplibs_check_method in
7938 file_magic*)
7939 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7940 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7941 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7942 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 case $MAGIC_CMD in
7946 [\\/*] | ?:[\\/]*)
7947 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7950 lt_save_MAGIC_CMD="$MAGIC_CMD"
7951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7952 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7953 for ac_dir in $ac_dummy; do
7954 IFS="$lt_save_ifs"
7955 test -z "$ac_dir" && ac_dir=.
7956 if test -f $ac_dir/${ac_tool_prefix}file; then
7957 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7958 if test -n "$file_magic_test_file"; then
7959 case $deplibs_check_method in
7960 "file_magic "*)
7961 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7963 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7964 $EGREP "$file_magic_regex" > /dev/null; then
7966 else
7967 cat <<_LT_EOF 1>&2
7969 *** Warning: the command libtool uses to detect shared libraries,
7970 *** $file_magic_cmd, produces output that libtool cannot recognize.
7971 *** The result is that libtool may fail to recognize shared libraries
7972 *** as such. This will affect the creation of libtool libraries that
7973 *** depend on shared libraries, but programs linked with such libtool
7974 *** libraries will work regardless of this problem. Nevertheless, you
7975 *** may want to report the problem to your system manager and/or to
7976 *** bug-libtool@gnu.org
7978 _LT_EOF
7979 fi ;;
7980 esac
7982 break
7984 done
7985 IFS="$lt_save_ifs"
7986 MAGIC_CMD="$lt_save_MAGIC_CMD"
7988 esac
7991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7992 if test -n "$MAGIC_CMD"; then
7993 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7994 echo "${ECHO_T}$MAGIC_CMD" >&6
7995 else
7996 echo "$as_me:$LINENO: result: no" >&5
7997 echo "${ECHO_T}no" >&6
8004 if test -z "$lt_cv_path_MAGIC_CMD"; then
8005 if test -n "$ac_tool_prefix"; then
8006 echo "$as_me:$LINENO: checking for file" >&5
8007 echo $ECHO_N "checking for file... $ECHO_C" >&6
8008 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011 case $MAGIC_CMD in
8012 [\\/*] | ?:[\\/]*)
8013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8016 lt_save_MAGIC_CMD="$MAGIC_CMD"
8017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8018 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8019 for ac_dir in $ac_dummy; do
8020 IFS="$lt_save_ifs"
8021 test -z "$ac_dir" && ac_dir=.
8022 if test -f $ac_dir/file; then
8023 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8024 if test -n "$file_magic_test_file"; then
8025 case $deplibs_check_method in
8026 "file_magic "*)
8027 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8029 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8030 $EGREP "$file_magic_regex" > /dev/null; then
8032 else
8033 cat <<_LT_EOF 1>&2
8035 *** Warning: the command libtool uses to detect shared libraries,
8036 *** $file_magic_cmd, produces output that libtool cannot recognize.
8037 *** The result is that libtool may fail to recognize shared libraries
8038 *** as such. This will affect the creation of libtool libraries that
8039 *** depend on shared libraries, but programs linked with such libtool
8040 *** libraries will work regardless of this problem. Nevertheless, you
8041 *** may want to report the problem to your system manager and/or to
8042 *** bug-libtool@gnu.org
8044 _LT_EOF
8045 fi ;;
8046 esac
8048 break
8050 done
8051 IFS="$lt_save_ifs"
8052 MAGIC_CMD="$lt_save_MAGIC_CMD"
8054 esac
8057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8058 if test -n "$MAGIC_CMD"; then
8059 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8060 echo "${ECHO_T}$MAGIC_CMD" >&6
8061 else
8062 echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6
8067 else
8068 MAGIC_CMD=:
8074 esac
8076 # Use C for the default configuration in the libtool script
8078 lt_save_CC="$CC"
8079 ac_ext=c
8080 ac_cpp='$CPP $CPPFLAGS'
8081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086 # Source file extension for C test sources.
8087 ac_ext=c
8089 # Object file extension for compiled C test sources.
8090 objext=o
8091 objext=$objext
8093 # Code to be used in simple compile tests
8094 lt_simple_compile_test_code="int some_variable = 0;"
8096 # Code to be used in simple link tests
8097 lt_simple_link_test_code='int main(){return(0);}'
8105 # If no C compiler was specified, use CC.
8106 LTCC=${LTCC-"$CC"}
8108 # If no C compiler flags were specified, use CFLAGS.
8109 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8111 # Allow CC to be a program name with arguments.
8112 compiler=$CC
8114 # Save the default compiler, since it gets overwritten when the other
8115 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8116 compiler_DEFAULT=$CC
8118 # save warnings/boilerplate of simple test code
8119 ac_outfile=conftest.$ac_objext
8120 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8121 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8122 _lt_compiler_boilerplate=`cat conftest.err`
8123 $RM conftest*
8125 ac_outfile=conftest.$ac_objext
8126 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8127 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8128 _lt_linker_boilerplate=`cat conftest.err`
8129 $RM -r conftest*
8132 ## CAVEAT EMPTOR:
8133 ## There is no encapsulation within the following macros, do not change
8134 ## the running order or otherwise move them around unless you know exactly
8135 ## what you are doing...
8136 if test -n "$compiler"; then
8138 lt_prog_compiler_no_builtin_flag=
8140 if test "$GCC" = yes; then
8141 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8143 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8144 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8145 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 lt_cv_prog_compiler_rtti_exceptions=no
8149 ac_outfile=conftest.$ac_objext
8150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8151 lt_compiler_flag="-fno-rtti -fno-exceptions"
8152 # Insert the option either (1) after the last *FLAGS variable, or
8153 # (2) before a word containing "conftest.", or (3) at the end.
8154 # Note that $ac_compile itself does not contain backslashes and begins
8155 # with a dollar sign (not a hyphen), so the echo should work correctly.
8156 # The option is referenced via a variable to avoid confusing sed.
8157 lt_compile=`echo "$ac_compile" | $SED \
8158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8160 -e 's:$: $lt_compiler_flag:'`
8161 (eval echo "\"\$as_me:8161: $lt_compile\"" >&5)
8162 (eval "$lt_compile" 2>conftest.err)
8163 ac_status=$?
8164 cat conftest.err >&5
8165 echo "$as_me:8165: \$? = $ac_status" >&5
8166 if (exit $ac_status) && test -s "$ac_outfile"; then
8167 # The compiler can only warn and ignore the option if not recognized
8168 # So say no if there are warnings other than the usual output.
8169 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8172 lt_cv_prog_compiler_rtti_exceptions=yes
8175 $RM conftest*
8178 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8179 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8181 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8182 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8183 else
8194 lt_prog_compiler_wl=
8195 lt_prog_compiler_pic=
8196 lt_prog_compiler_static=
8198 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8199 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8201 if test "$GCC" = yes; then
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_static='-static'
8205 case $host_os in
8206 aix*)
8207 # All AIX code is PIC.
8208 if test "$host_cpu" = ia64; then
8209 # AIX 5 now supports IA64 processor
8210 lt_prog_compiler_static='-Bstatic'
8214 amigaos*)
8215 case $host_cpu in
8216 powerpc)
8217 # see comment about AmigaOS4 .so support
8218 lt_prog_compiler_pic='-fPIC'
8220 m68k)
8221 # FIXME: we need at least 68020 code to build shared libraries, but
8222 # adding the `-m68020' flag to GCC prevents building anything better,
8223 # like `-m68040'.
8224 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8226 esac
8229 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8230 # PIC is the default for these OSes.
8233 mingw* | cygwin* | pw32* | os2* | cegcc*)
8234 # This hack is so that the source file can tell whether it is being
8235 # built for inclusion in a dll (and should export symbols for example).
8236 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8237 # (--disable-auto-import) libraries
8238 lt_prog_compiler_pic='-DDLL_EXPORT'
8241 darwin* | rhapsody*)
8242 # PIC is the default on this platform
8243 # Common symbols not allowed in MH_DYLIB files
8244 lt_prog_compiler_pic='-fno-common'
8247 hpux*)
8248 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8249 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8250 # sets the default TLS model and affects inlining.
8251 case $host_cpu in
8252 hppa*64*)
8253 # +Z the default
8256 lt_prog_compiler_pic='-fPIC'
8258 esac
8261 interix[3-9]*)
8262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8263 # Instead, we relocate shared libraries at runtime.
8266 msdosdjgpp*)
8267 # Just because we use GCC doesn't mean we suddenly get shared libraries
8268 # on systems that don't support them.
8269 lt_prog_compiler_can_build_shared=no
8270 enable_shared=no
8273 *nto* | *qnx*)
8274 # QNX uses GNU C++, but need to define -shared option too, otherwise
8275 # it will coredump.
8276 lt_prog_compiler_pic='-fPIC -shared'
8279 sysv4*MP*)
8280 if test -d /usr/nec; then
8281 lt_prog_compiler_pic=-Kconform_pic
8286 lt_prog_compiler_pic='-fPIC'
8288 esac
8289 else
8290 # PORTME Check for flag to pass linker flags through the system compiler.
8291 case $host_os in
8292 aix*)
8293 lt_prog_compiler_wl='-Wl,'
8294 if test "$host_cpu" = ia64; then
8295 # AIX 5 now supports IA64 processor
8296 lt_prog_compiler_static='-Bstatic'
8297 else
8298 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8302 mingw* | cygwin* | pw32* | os2* | cegcc*)
8303 # This hack is so that the source file can tell whether it is being
8304 # built for inclusion in a dll (and should export symbols for example).
8305 lt_prog_compiler_pic='-DDLL_EXPORT'
8308 hpux9* | hpux10* | hpux11*)
8309 lt_prog_compiler_wl='-Wl,'
8310 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8311 # not for PA HP-UX.
8312 case $host_cpu in
8313 hppa*64*|ia64*)
8314 # +Z the default
8317 lt_prog_compiler_pic='+Z'
8319 esac
8320 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8321 lt_prog_compiler_static='${wl}-a ${wl}archive'
8324 irix5* | irix6* | nonstopux*)
8325 lt_prog_compiler_wl='-Wl,'
8326 # PIC (with -KPIC) is the default.
8327 lt_prog_compiler_static='-non_shared'
8330 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8331 case $cc_basename in
8332 # old Intel for x86_64 which still supported -KPIC.
8333 ecc*)
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-static'
8338 # icc used to be incompatible with GCC.
8339 # ICC 10 doesn't accept -KPIC any more.
8340 icc* | ifort*)
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-fPIC'
8343 lt_prog_compiler_static='-static'
8345 # Lahey Fortran 8.1.
8346 lf95*)
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='--shared'
8349 lt_prog_compiler_static='--static'
8351 pgcc* | pgf77* | pgf90* | pgf95*)
8352 # Portland Group compilers (*not* the Pentium gcc compiler,
8353 # which looks to be a dead project)
8354 lt_prog_compiler_wl='-Wl,'
8355 lt_prog_compiler_pic='-fpic'
8356 lt_prog_compiler_static='-Bstatic'
8358 ccc*)
8359 lt_prog_compiler_wl='-Wl,'
8360 # All Alpha code is PIC.
8361 lt_prog_compiler_static='-non_shared'
8363 xl*)
8364 # IBM XL C 8.0/Fortran 10.1 on PPC
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_pic='-qpic'
8367 lt_prog_compiler_static='-qstaticlink'
8370 case `$CC -V 2>&1 | sed 5q` in
8371 *Sun\ C*)
8372 # Sun C 5.9
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 lt_prog_compiler_wl='-Wl,'
8377 *Sun\ F*)
8378 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 lt_prog_compiler_wl=''
8383 esac
8385 esac
8388 newsos6)
8389 lt_prog_compiler_pic='-KPIC'
8390 lt_prog_compiler_static='-Bstatic'
8393 *nto* | *qnx*)
8394 # QNX uses GNU C++, but need to define -shared option too, otherwise
8395 # it will coredump.
8396 lt_prog_compiler_pic='-fPIC -shared'
8399 osf3* | osf4* | osf5*)
8400 lt_prog_compiler_wl='-Wl,'
8401 # All OSF/1 code is PIC.
8402 lt_prog_compiler_static='-non_shared'
8405 rdos*)
8406 lt_prog_compiler_static='-non_shared'
8409 solaris*)
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-Bstatic'
8412 case $cc_basename in
8413 f77* | f90* | f95*)
8414 lt_prog_compiler_wl='-Qoption ld ';;
8416 lt_prog_compiler_wl='-Wl,';;
8417 esac
8420 sunos4*)
8421 lt_prog_compiler_wl='-Qoption ld '
8422 lt_prog_compiler_pic='-PIC'
8423 lt_prog_compiler_static='-Bstatic'
8426 sysv4 | sysv4.2uw2* | sysv4.3*)
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_pic='-KPIC'
8429 lt_prog_compiler_static='-Bstatic'
8432 sysv4*MP*)
8433 if test -d /usr/nec ;then
8434 lt_prog_compiler_pic='-Kconform_pic'
8435 lt_prog_compiler_static='-Bstatic'
8439 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_pic='-KPIC'
8442 lt_prog_compiler_static='-Bstatic'
8445 unicos*)
8446 lt_prog_compiler_wl='-Wl,'
8447 lt_prog_compiler_can_build_shared=no
8450 uts4*)
8451 lt_prog_compiler_pic='-pic'
8452 lt_prog_compiler_static='-Bstatic'
8456 lt_prog_compiler_can_build_shared=no
8458 esac
8461 case $host_os in
8462 # For platforms which do not support PIC, -DPIC is meaningless:
8463 *djgpp*)
8464 lt_prog_compiler_pic=
8467 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8469 esac
8470 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8471 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8479 # Check to make sure the PIC flag actually works.
8481 if test -n "$lt_prog_compiler_pic"; then
8482 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8483 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8484 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487 lt_cv_prog_compiler_pic_works=no
8488 ac_outfile=conftest.$ac_objext
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8490 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8491 # Insert the option either (1) after the last *FLAGS variable, or
8492 # (2) before a word containing "conftest.", or (3) at the end.
8493 # Note that $ac_compile itself does not contain backslashes and begins
8494 # with a dollar sign (not a hyphen), so the echo should work correctly.
8495 # The option is referenced via a variable to avoid confusing sed.
8496 lt_compile=`echo "$ac_compile" | $SED \
8497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8499 -e 's:$: $lt_compiler_flag:'`
8500 (eval echo "\"\$as_me:8500: $lt_compile\"" >&5)
8501 (eval "$lt_compile" 2>conftest.err)
8502 ac_status=$?
8503 cat conftest.err >&5
8504 echo "$as_me:8504: \$? = $ac_status" >&5
8505 if (exit $ac_status) && test -s "$ac_outfile"; then
8506 # The compiler can only warn and ignore the option if not recognized
8507 # So say no if there are warnings other than the usual output.
8508 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8511 lt_cv_prog_compiler_pic_works=yes
8514 $RM conftest*
8517 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8518 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8520 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8521 case $lt_prog_compiler_pic in
8522 "" | " "*) ;;
8523 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8524 esac
8525 else
8526 lt_prog_compiler_pic=
8527 lt_prog_compiler_can_build_shared=no
8538 # Check to make sure the static flag actually works.
8540 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8541 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8542 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8543 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546 lt_cv_prog_compiler_static_works=no
8547 save_LDFLAGS="$LDFLAGS"
8548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8551 # The linker can only warn and ignore the option if not recognized
8552 # So say no if there are warnings
8553 if test -s conftest.err; then
8554 # Append any errors to the config.log.
8555 cat conftest.err 1>&5
8556 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8558 if diff conftest.exp conftest.er2 >/dev/null; then
8559 lt_cv_prog_compiler_static_works=yes
8561 else
8562 lt_cv_prog_compiler_static_works=yes
8565 $RM -r conftest*
8566 LDFLAGS="$save_LDFLAGS"
8569 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8570 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8572 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8574 else
8575 lt_prog_compiler_static=
8584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8586 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589 lt_cv_prog_compiler_c_o=no
8590 $RM -r conftest 2>/dev/null
8591 mkdir conftest
8592 cd conftest
8593 mkdir out
8594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8596 lt_compiler_flag="-o out/conftest2.$ac_objext"
8597 # Insert the option either (1) after the last *FLAGS variable, or
8598 # (2) before a word containing "conftest.", or (3) at the end.
8599 # Note that $ac_compile itself does not contain backslashes and begins
8600 # with a dollar sign (not a hyphen), so the echo should work correctly.
8601 lt_compile=`echo "$ac_compile" | $SED \
8602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8604 -e 's:$: $lt_compiler_flag:'`
8605 (eval echo "\"\$as_me:8605: $lt_compile\"" >&5)
8606 (eval "$lt_compile" 2>out/conftest.err)
8607 ac_status=$?
8608 cat out/conftest.err >&5
8609 echo "$as_me:8609: \$? = $ac_status" >&5
8610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8611 then
8612 # The compiler can only warn and ignore the option if not recognized
8613 # So say no if there are warnings
8614 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8617 lt_cv_prog_compiler_c_o=yes
8620 chmod u+w . 2>&5
8621 $RM conftest*
8622 # SGI C++ compiler will create directory out/ii_files/ for
8623 # template instantiation
8624 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8625 $RM out/* && rmdir out
8626 cd ..
8627 $RM -r conftest
8628 $RM conftest*
8631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8639 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8640 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8641 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 else
8644 lt_cv_prog_compiler_c_o=no
8645 $RM -r conftest 2>/dev/null
8646 mkdir conftest
8647 cd conftest
8648 mkdir out
8649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8651 lt_compiler_flag="-o out/conftest2.$ac_objext"
8652 # Insert the option either (1) after the last *FLAGS variable, or
8653 # (2) before a word containing "conftest.", or (3) at the end.
8654 # Note that $ac_compile itself does not contain backslashes and begins
8655 # with a dollar sign (not a hyphen), so the echo should work correctly.
8656 lt_compile=`echo "$ac_compile" | $SED \
8657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8659 -e 's:$: $lt_compiler_flag:'`
8660 (eval echo "\"\$as_me:8660: $lt_compile\"" >&5)
8661 (eval "$lt_compile" 2>out/conftest.err)
8662 ac_status=$?
8663 cat out/conftest.err >&5
8664 echo "$as_me:8664: \$? = $ac_status" >&5
8665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8666 then
8667 # The compiler can only warn and ignore the option if not recognized
8668 # So say no if there are warnings
8669 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8672 lt_cv_prog_compiler_c_o=yes
8675 chmod u+w . 2>&5
8676 $RM conftest*
8677 # SGI C++ compiler will create directory out/ii_files/ for
8678 # template instantiation
8679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8680 $RM out/* && rmdir out
8681 cd ..
8682 $RM -r conftest
8683 $RM conftest*
8686 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8687 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8692 hard_links="nottested"
8693 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8694 # do not overwrite the value of need_locks provided by the user
8695 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8696 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8697 hard_links=yes
8698 $RM conftest*
8699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8700 touch conftest.a
8701 ln conftest.a conftest.b 2>&5 || hard_links=no
8702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8703 echo "$as_me:$LINENO: result: $hard_links" >&5
8704 echo "${ECHO_T}$hard_links" >&6
8705 if test "$hard_links" = no; then
8706 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8707 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8708 need_locks=warn
8710 else
8711 need_locks=no
8719 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8720 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8722 runpath_var=
8723 allow_undefined_flag=
8724 always_export_symbols=no
8725 archive_cmds=
8726 archive_expsym_cmds=
8727 compiler_needs_object=no
8728 enable_shared_with_static_runtimes=no
8729 export_dynamic_flag_spec=
8730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8731 hardcode_automatic=no
8732 hardcode_direct=no
8733 hardcode_direct_absolute=no
8734 hardcode_libdir_flag_spec=
8735 hardcode_libdir_flag_spec_ld=
8736 hardcode_libdir_separator=
8737 hardcode_minus_L=no
8738 hardcode_shlibpath_var=unsupported
8739 inherit_rpath=no
8740 link_all_deplibs=unknown
8741 module_cmds=
8742 module_expsym_cmds=
8743 old_archive_from_new_cmds=
8744 old_archive_from_expsyms_cmds=
8745 thread_safe_flag_spec=
8746 whole_archive_flag_spec=
8747 # include_expsyms should be a list of space-separated symbols to be *always*
8748 # included in the symbol list
8749 include_expsyms=
8750 # exclude_expsyms can be an extended regexp of symbols to exclude
8751 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8752 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8753 # as well as any symbol that contains `d'.
8754 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8755 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8756 # platforms (ab)use it in PIC code, but their linkers get confused if
8757 # the symbol is explicitly referenced. Since portable code cannot
8758 # rely on this symbol name, it's probably fine to never include it in
8759 # preloaded symbol tables.
8760 # Exclude shared library initialization/finalization symbols.
8761 extract_expsyms_cmds=
8763 case $host_os in
8764 cygwin* | mingw* | pw32* | cegcc*)
8765 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8766 # When not using gcc, we currently assume that we are using
8767 # Microsoft Visual C++.
8768 if test "$GCC" != yes; then
8769 with_gnu_ld=no
8772 interix*)
8773 # we just hope/assume this is gcc and not c89 (= MSVC++)
8774 with_gnu_ld=yes
8776 openbsd*)
8777 with_gnu_ld=no
8779 esac
8781 ld_shlibs=yes
8782 if test "$with_gnu_ld" = yes; then
8783 # If archive_cmds runs LD, not CC, wlarc should be empty
8784 wlarc='${wl}'
8786 # Set some defaults for GNU ld with shared library support. These
8787 # are reset later if shared libraries are not supported. Putting them
8788 # here allows them to be overridden if necessary.
8789 runpath_var=LD_RUN_PATH
8790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791 export_dynamic_flag_spec='${wl}--export-dynamic'
8792 # ancient GNU ld didn't support --whole-archive et. al.
8793 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8794 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8795 else
8796 whole_archive_flag_spec=
8798 supports_anon_versioning=no
8799 case `$LD -v 2>&1` in
8800 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8801 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8802 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8803 *\ 2.11.*) ;; # other 2.11 versions
8804 *) supports_anon_versioning=yes ;;
8805 esac
8807 # See if GNU ld supports shared libraries.
8808 case $host_os in
8809 aix[3-9]*)
8810 # On AIX/PPC, the GNU linker is very broken
8811 if test "$host_cpu" != ia64; then
8812 ld_shlibs=no
8813 cat <<_LT_EOF 1>&2
8815 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8816 *** to be unable to reliably create shared libraries on AIX.
8817 *** Therefore, libtool is disabling shared libraries support. If you
8818 *** really care for shared libraries, you may want to modify your PATH
8819 *** so that a non-GNU linker is found, and then restart.
8821 _LT_EOF
8825 amigaos*)
8826 case $host_cpu in
8827 powerpc)
8828 # see comment about AmigaOS4 .so support
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds=''
8832 m68k)
8833 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)'
8834 hardcode_libdir_flag_spec='-L$libdir'
8835 hardcode_minus_L=yes
8837 esac
8840 beos*)
8841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8842 allow_undefined_flag=unsupported
8843 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8844 # support --undefined. This deserves some investigation. FIXME
8845 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846 else
8847 ld_shlibs=no
8851 cygwin* | mingw* | pw32* | cegcc*)
8852 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8853 # as there is no search path for DLLs.
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 allow_undefined_flag=unsupported
8856 always_export_symbols=no
8857 enable_shared_with_static_runtimes=yes
8858 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8860 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8862 # If the export-symbols file already is a .def file (1st line
8863 # is EXPORTS), use it as is; otherwise, prepend...
8864 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8865 cp $export_symbols $output_objdir/$soname.def;
8866 else
8867 echo EXPORTS > $output_objdir/$soname.def;
8868 cat $export_symbols >> $output_objdir/$soname.def;
8870 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8871 else
8872 ld_shlibs=no
8876 interix[3-9]*)
8877 hardcode_direct=no
8878 hardcode_shlibpath_var=no
8879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8880 export_dynamic_flag_spec='${wl}-E'
8881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8882 # Instead, shared libraries are loaded at an image base (0x10000000 by
8883 # default) and relocated if they conflict, which is a slow very memory
8884 # consuming and fragmenting process. To avoid this, we pick a random,
8885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8886 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8888 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'
8891 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8892 tmp_diet=no
8893 if test "$host_os" = linux-dietlibc; then
8894 case $cc_basename in
8895 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8896 esac
8898 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8899 && test "$tmp_diet" = no
8900 then
8901 tmp_addflag=
8902 tmp_sharedflag='-shared'
8903 case $cc_basename,$host_cpu in
8904 pgcc*) # Portland Group C compiler
8905 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'
8906 tmp_addflag=' $pic_flag'
8908 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8909 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'
8910 tmp_addflag=' $pic_flag -Mnomain' ;;
8911 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8912 tmp_addflag=' -i_dynamic' ;;
8913 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8914 tmp_addflag=' -i_dynamic -nofor_main' ;;
8915 ifc* | ifort*) # Intel Fortran compiler
8916 tmp_addflag=' -nofor_main' ;;
8917 lf95*) # Lahey Fortran 8.1
8918 whole_archive_flag_spec=
8919 tmp_sharedflag='--shared' ;;
8920 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8921 tmp_sharedflag='-qmkshrobj'
8922 tmp_addflag= ;;
8923 esac
8924 case `$CC -V 2>&1 | sed 5q` in
8925 *Sun\ C*) # Sun C 5.9
8926 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'
8927 compiler_needs_object=yes
8928 tmp_sharedflag='-G' ;;
8929 *Sun\ F*) # Sun Fortran 8.3
8930 tmp_sharedflag='-G' ;;
8931 esac
8932 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$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 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8941 case $cc_basename in
8942 xlf*)
8943 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8944 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8945 hardcode_libdir_flag_spec=
8946 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8947 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8948 if test "x$supports_anon_versioning" = xyes; then
8949 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8951 echo "local: *; };" >> $output_objdir/$libname.ver~
8952 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8955 esac
8956 else
8957 ld_shlibs=no
8961 netbsd*)
8962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8963 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8964 wlarc=
8965 else
8966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8971 solaris*)
8972 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8973 ld_shlibs=no
8974 cat <<_LT_EOF 1>&2
8976 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8977 *** create shared libraries on Solaris systems. Therefore, libtool
8978 *** is disabling shared libraries support. We urge you to upgrade GNU
8979 *** binutils to release 2.9.1 or newer. Another option is to modify
8980 *** your PATH or compiler configuration so that the native linker is
8981 *** used, and then restart.
8983 _LT_EOF
8984 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987 else
8988 ld_shlibs=no
8992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8993 case `$LD -v 2>&1` in
8994 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8995 ld_shlibs=no
8996 cat <<_LT_EOF 1>&2
8998 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8999 *** reliably create shared libraries on SCO systems. Therefore, libtool
9000 *** is disabling shared libraries support. We urge you to upgrade GNU
9001 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9002 *** your PATH or compiler configuration so that the native linker is
9003 *** used, and then restart.
9005 _LT_EOF
9008 # For security reasons, it is highly recommended that you always
9009 # use absolute paths for naming shared libraries, and exclude the
9010 # DT_RUNPATH tag from executables and libraries. But doing so
9011 # requires that you compile everything twice, which is a pain.
9012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016 else
9017 ld_shlibs=no
9020 esac
9023 sunos4*)
9024 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9025 wlarc=
9026 hardcode_direct=yes
9027 hardcode_shlibpath_var=no
9031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034 else
9035 ld_shlibs=no
9038 esac
9040 if test "$ld_shlibs" = no; then
9041 runpath_var=
9042 hardcode_libdir_flag_spec=
9043 export_dynamic_flag_spec=
9044 whole_archive_flag_spec=
9046 else
9047 # PORTME fill in a description of your system's linker (not GNU ld)
9048 case $host_os in
9049 aix3*)
9050 allow_undefined_flag=unsupported
9051 always_export_symbols=yes
9052 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'
9053 # Note: this linker hardcodes the directories in LIBPATH if there
9054 # are no directories specified by -L.
9055 hardcode_minus_L=yes
9056 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9057 # Neither direct hardcoding nor static linking is supported with a
9058 # broken collect2.
9059 hardcode_direct=unsupported
9063 aix[4-9]*)
9064 if test "$host_cpu" = ia64; then
9065 # On IA64, the linker does run time linking by default, so we don't
9066 # have to do anything special.
9067 aix_use_runtimelinking=no
9068 exp_sym_flag='-Bexport'
9069 no_entry_flag=""
9070 else
9071 # If we're using GNU nm, then we don't want the "-C" option.
9072 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9073 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9074 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'
9075 else
9076 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'
9078 aix_use_runtimelinking=no
9080 # Test if we are trying to use run time linking or normal
9081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9082 # need to do runtime linking.
9083 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9084 for ld_flag in $LDFLAGS; do
9085 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9086 aix_use_runtimelinking=yes
9087 break
9089 done
9091 esac
9093 exp_sym_flag='-bexport'
9094 no_entry_flag='-bnoentry'
9097 # When large executables or shared objects are built, AIX ld can
9098 # have problems creating the table of contents. If linking a library
9099 # or program results in "error TOC overflow" add -mminimal-toc to
9100 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9101 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9103 archive_cmds=''
9104 hardcode_direct=yes
9105 hardcode_direct_absolute=yes
9106 hardcode_libdir_separator=':'
9107 link_all_deplibs=yes
9108 file_list_spec='${wl}-f,'
9110 if test "$GCC" = yes; then
9111 case $host_os in aix4.[012]|aix4.[012].*)
9112 # We only want to do this on AIX 4.2 and lower, the check
9113 # below for broken collect2 doesn't work under 4.3+
9114 collect2name=`${CC} -print-prog-name=collect2`
9115 if test -f "$collect2name" &&
9116 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9117 then
9118 # We have reworked collect2
9120 else
9121 # We have old collect2
9122 hardcode_direct=unsupported
9123 # It fails to find uninstalled libraries when the uninstalled
9124 # path is not listed in the libpath. Setting hardcode_minus_L
9125 # to unsupported forces relinking
9126 hardcode_minus_L=yes
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_libdir_separator=
9131 esac
9132 shared_flag='-shared'
9133 if test "$aix_use_runtimelinking" = yes; then
9134 shared_flag="$shared_flag "'${wl}-G'
9136 else
9137 # not using gcc
9138 if test "$host_cpu" = ia64; then
9139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9140 # chokes on -Wl,-G. The following line is correct:
9141 shared_flag='-G'
9142 else
9143 if test "$aix_use_runtimelinking" = yes; then
9144 shared_flag='${wl}-G'
9145 else
9146 shared_flag='${wl}-bM:SRE'
9151 export_dynamic_flag_spec='${wl}-bexpall'
9152 # It seems that -bexpall does not export symbols beginning with
9153 # underscore (_), so it is better to generate a list of symbols to export.
9154 always_export_symbols=yes
9155 if test "$aix_use_runtimelinking" = yes; then
9156 # Warning - without using the other runtime loading flags (-brtl),
9157 # -berok will link without error, but may produce a broken library.
9158 allow_undefined_flag='-berok'
9159 # Determine the default libpath from the value encoded in an
9160 # empty executable.
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9169 main ()
9173 return 0;
9175 _ACEOF
9176 rm -f conftest.$ac_objext conftest$ac_exeext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9178 (eval $ac_link) 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest$ac_exeext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9199 lt_aix_libpath_sed='
9200 /Import File Strings/,/^$/ {
9201 /^0/ {
9202 s/^0 *\(.*\)$/\1/
9206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9207 # Check for a 64-bit object if we didn't find anything.
9208 if test -z "$aix_libpath"; then
9209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9216 rm -f conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9220 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9221 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"
9222 else
9223 if test "$host_cpu" = ia64; then
9224 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9225 allow_undefined_flag="-z nodefs"
9226 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"
9227 else
9228 # Determine the default libpath from the value encoded in an
9229 # empty executable.
9230 cat >conftest.$ac_ext <<_ACEOF
9231 /* confdefs.h. */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9238 main ()
9242 return 0;
9244 _ACEOF
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9247 (eval $ac_link) 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -z "$ac_c_werror_flag"
9255 || test ! -s conftest.err'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; } &&
9261 { ac_try='test -s conftest$ac_exeext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9268 lt_aix_libpath_sed='
9269 /Import File Strings/,/^$/ {
9270 /^0/ {
9271 s/^0 *\(.*\)$/\1/
9275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9276 # Check for a 64-bit object if we didn't find anything.
9277 if test -z "$aix_libpath"; then
9278 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9280 else
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9285 rm -f conftest.err conftest.$ac_objext \
9286 conftest$ac_exeext conftest.$ac_ext
9287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9289 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9290 # Warning - without using the other run time loading flags,
9291 # -berok will link without error, but may produce a broken library.
9292 no_undefined_flag=' ${wl}-bernotok'
9293 allow_undefined_flag=' ${wl}-berok'
9294 # Exported symbols can be pulled into shared objects from archives
9295 whole_archive_flag_spec='$convenience'
9296 archive_cmds_need_lc=yes
9297 # This is similar to how AIX traditionally builds its shared libraries.
9298 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'
9303 amigaos*)
9304 case $host_cpu in
9305 powerpc)
9306 # see comment about AmigaOS4 .so support
9307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308 archive_expsym_cmds=''
9310 m68k)
9311 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)'
9312 hardcode_libdir_flag_spec='-L$libdir'
9313 hardcode_minus_L=yes
9315 esac
9318 bsdi[45]*)
9319 export_dynamic_flag_spec=-rdynamic
9322 cygwin* | mingw* | pw32* | cegcc*)
9323 # When not using gcc, we currently assume that we are using
9324 # Microsoft Visual C++.
9325 # hardcode_libdir_flag_spec is actually meaningless, as there is
9326 # no search path for DLLs.
9327 hardcode_libdir_flag_spec=' '
9328 allow_undefined_flag=unsupported
9329 # Tell ltmain to make .lib files, not .a files.
9330 libext=lib
9331 # Tell ltmain to make .dll files, not .so files.
9332 shrext_cmds=".dll"
9333 # FIXME: Setting linknames here is a bad hack.
9334 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9335 # The linker will automatically build a .lib file if we build a DLL.
9336 old_archive_from_new_cmds='true'
9337 # FIXME: Should let the user specify the lib program.
9338 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9339 fix_srcfile_path='`cygpath -w "$srcfile"`'
9340 enable_shared_with_static_runtimes=yes
9343 darwin* | rhapsody*)
9346 archive_cmds_need_lc=no
9347 hardcode_direct=no
9348 hardcode_automatic=yes
9349 hardcode_shlibpath_var=unsupported
9350 whole_archive_flag_spec=''
9351 link_all_deplibs=yes
9352 allow_undefined_flag="$_lt_dar_allow_undefined"
9353 case $cc_basename in
9354 ifort*) _lt_dar_can_shared=yes ;;
9355 *) _lt_dar_can_shared=$GCC ;;
9356 esac
9357 if test "$_lt_dar_can_shared" = "yes"; then
9358 output_verbose_link_cmd=echo
9359 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9360 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9361 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}"
9362 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}"
9364 else
9365 ld_shlibs=no
9370 dgux*)
9371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_libdir_flag_spec='-L$libdir'
9373 hardcode_shlibpath_var=no
9376 freebsd1*)
9377 ld_shlibs=no
9380 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9381 # support. Future versions do this automatically, but an explicit c++rt0.o
9382 # does not break anything, and helps significantly (at the cost of a little
9383 # extra space).
9384 freebsd2.2*)
9385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9386 hardcode_libdir_flag_spec='-R$libdir'
9387 hardcode_direct=yes
9388 hardcode_shlibpath_var=no
9391 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9392 freebsd2*)
9393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9394 hardcode_direct=yes
9395 hardcode_minus_L=yes
9396 hardcode_shlibpath_var=no
9399 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9400 freebsd* | dragonfly*)
9401 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9402 hardcode_libdir_flag_spec='-R$libdir'
9403 hardcode_direct=yes
9404 hardcode_shlibpath_var=no
9407 hpux9*)
9408 if test "$GCC" = yes; then
9409 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'
9410 else
9411 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'
9413 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9414 hardcode_libdir_separator=:
9415 hardcode_direct=yes
9417 # hardcode_minus_L: Not really in the search PATH,
9418 # but as the default location of the library.
9419 hardcode_minus_L=yes
9420 export_dynamic_flag_spec='${wl}-E'
9423 hpux10*)
9424 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426 else
9427 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9429 if test "$with_gnu_ld" = no; then
9430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9431 hardcode_libdir_flag_spec_ld='+b $libdir'
9432 hardcode_libdir_separator=:
9433 hardcode_direct=yes
9434 hardcode_direct_absolute=yes
9435 export_dynamic_flag_spec='${wl}-E'
9436 # hardcode_minus_L: Not really in the search PATH,
9437 # but as the default location of the library.
9438 hardcode_minus_L=yes
9442 hpux11*)
9443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9444 case $host_cpu in
9445 hppa*64*)
9446 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 ia64*)
9449 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9454 esac
9455 else
9456 case $host_cpu in
9457 hppa*64*)
9458 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 ia64*)
9461 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9466 esac
9468 if test "$with_gnu_ld" = no; then
9469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9470 hardcode_libdir_separator=:
9472 case $host_cpu in
9473 hppa*64*|ia64*)
9474 hardcode_direct=no
9475 hardcode_shlibpath_var=no
9478 hardcode_direct=yes
9479 hardcode_direct_absolute=yes
9480 export_dynamic_flag_spec='${wl}-E'
9482 # hardcode_minus_L: Not really in the search PATH,
9483 # but as the default location of the library.
9484 hardcode_minus_L=yes
9486 esac
9490 irix5* | irix6* | nonstopux*)
9491 if test "$GCC" = yes; then
9492 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'
9493 # Try to use the -exported_symbol ld option, if it does not
9494 # work, assume that -exports_file does not work either and
9495 # implicitly export all symbols.
9496 save_LDFLAGS="$LDFLAGS"
9497 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9498 cat >conftest.$ac_ext <<_ACEOF
9499 int foo(void) {}
9500 _ACEOF
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -z "$ac_c_werror_flag"
9511 || test ! -s conftest.err'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; } &&
9517 { ac_try='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 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'
9525 else
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9530 rm -f conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LDFLAGS="$save_LDFLAGS"
9533 else
9534 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'
9535 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'
9537 archive_cmds_need_lc='no'
9538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9539 hardcode_libdir_separator=:
9540 inherit_rpath=yes
9541 link_all_deplibs=yes
9544 netbsd*)
9545 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9547 else
9548 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9550 hardcode_libdir_flag_spec='-R$libdir'
9551 hardcode_direct=yes
9552 hardcode_shlibpath_var=no
9555 newsos6)
9556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9557 hardcode_direct=yes
9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 hardcode_libdir_separator=:
9560 hardcode_shlibpath_var=no
9563 *nto* | *qnx*)
9566 openbsd*)
9567 if test -f /usr/libexec/ld.so; then
9568 hardcode_direct=yes
9569 hardcode_shlibpath_var=no
9570 hardcode_direct_absolute=yes
9571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9573 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9575 export_dynamic_flag_spec='${wl}-E'
9576 else
9577 case $host_os in
9578 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_libdir_flag_spec='-R$libdir'
9583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9586 esac
9588 else
9589 ld_shlibs=no
9593 os2*)
9594 hardcode_libdir_flag_spec='-L$libdir'
9595 hardcode_minus_L=yes
9596 allow_undefined_flag=unsupported
9597 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'
9598 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9601 osf3*)
9602 if test "$GCC" = yes; then
9603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9604 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'
9605 else
9606 allow_undefined_flag=' -expect_unresolved \*'
9607 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'
9609 archive_cmds_need_lc='no'
9610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9611 hardcode_libdir_separator=:
9614 osf4* | osf5*) # as osf3* with the addition of -msym flag
9615 if test "$GCC" = yes; then
9616 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9617 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'
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 else
9620 allow_undefined_flag=' -expect_unresolved \*'
9621 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'
9622 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~
9623 $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'
9625 # Both c and cxx compiler support -rpath directly
9626 hardcode_libdir_flag_spec='-rpath $libdir'
9628 archive_cmds_need_lc='no'
9629 hardcode_libdir_separator=:
9632 solaris*)
9633 no_undefined_flag=' -z defs'
9634 if test "$GCC" = yes; then
9635 wlarc='${wl}'
9636 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9638 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9639 else
9640 case `$CC -V 2>&1` in
9641 *"Compilers 5.0"*)
9642 wlarc=''
9643 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9645 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9648 wlarc='${wl}'
9649 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9651 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9653 esac
9655 hardcode_libdir_flag_spec='-R$libdir'
9656 hardcode_shlibpath_var=no
9657 case $host_os in
9658 solaris2.[0-5] | solaris2.[0-5].*) ;;
9660 # The compiler driver will combine and reorder linker options,
9661 # but understands `-z linker_flag'. GCC discards it without `$wl',
9662 # but is careful enough not to reorder.
9663 # Supported since Solaris 2.6 (maybe 2.5.1?)
9664 if test "$GCC" = yes; then
9665 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9666 else
9667 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9670 esac
9671 link_all_deplibs=yes
9674 sunos4*)
9675 if test "x$host_vendor" = xsequent; then
9676 # Use $CC to link under sequent, because it throws in some extra .o
9677 # files that make .init and .fini sections work.
9678 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9679 else
9680 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_libdir_flag_spec='-L$libdir'
9683 hardcode_direct=yes
9684 hardcode_minus_L=yes
9685 hardcode_shlibpath_var=no
9688 sysv4)
9689 case $host_vendor in
9690 sni)
9691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9692 hardcode_direct=yes # is this really true???
9694 siemens)
9695 ## LD is ld it makes a PLAMLIB
9696 ## CC just makes a GrossModule.
9697 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9698 reload_cmds='$CC -r -o $output$reload_objs'
9699 hardcode_direct=no
9701 motorola)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9705 esac
9706 runpath_var='LD_RUN_PATH'
9707 hardcode_shlibpath_var=no
9710 sysv4.3*)
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_shlibpath_var=no
9713 export_dynamic_flag_spec='-Bexport'
9716 sysv4*MP*)
9717 if test -d /usr/nec; then
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_shlibpath_var=no
9720 runpath_var=LD_RUN_PATH
9721 hardcode_runpath_var=yes
9722 ld_shlibs=yes
9726 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9727 no_undefined_flag='${wl}-z,text'
9728 archive_cmds_need_lc=no
9729 hardcode_shlibpath_var=no
9730 runpath_var='LD_RUN_PATH'
9732 if test "$GCC" = yes; then
9733 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 else
9736 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 sysv5* | sco3.2v5* | sco5v6*)
9742 # Note: We can NOT use -z defs as we might desire, because we do not
9743 # link with -lc, and that would cause any symbols used from libc to
9744 # always be unresolved, which means just about no library would
9745 # ever link correctly. If we're not using GNU ld we use -z text
9746 # though, which does catch some bad symbols but isn't as heavy-handed
9747 # as -z defs.
9748 no_undefined_flag='${wl}-z,text'
9749 allow_undefined_flag='${wl}-z,nodefs'
9750 archive_cmds_need_lc=no
9751 hardcode_shlibpath_var=no
9752 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9753 hardcode_libdir_separator=':'
9754 link_all_deplibs=yes
9755 export_dynamic_flag_spec='${wl}-Bexport'
9756 runpath_var='LD_RUN_PATH'
9758 if test "$GCC" = yes; then
9759 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 else
9762 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9763 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 uts4*)
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_libdir_flag_spec='-L$libdir'
9770 hardcode_shlibpath_var=no
9774 ld_shlibs=no
9776 esac
9778 if test x$host_vendor = xsni; then
9779 case $host in
9780 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9781 export_dynamic_flag_spec='${wl}-Blargedynsym'
9783 esac
9787 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9788 echo "${ECHO_T}$ld_shlibs" >&6
9789 test "$ld_shlibs" = no && can_build_shared=no
9791 with_gnu_ld=$with_gnu_ld
9808 # Do we need to explicitly link libc?
9810 case "x$archive_cmds_need_lc" in
9811 x|xyes)
9812 # Assume -lc should be added
9813 archive_cmds_need_lc=yes
9815 if test "$enable_shared" = yes && test "$GCC" = yes; then
9816 case $archive_cmds in
9817 *'~'*)
9818 # FIXME: we may have to deal with multi-command sequences.
9820 '$CC '*)
9821 # Test whether the compiler implicitly links with -lc since on some
9822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9823 # to ld, don't add -lc before -lgcc.
9824 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9825 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9826 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 $RM conftest*
9830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } 2>conftest.err; then
9837 soname=conftest
9838 lib=conftest
9839 libobjs=conftest.$ac_objext
9840 deplibs=
9841 wl=$lt_prog_compiler_wl
9842 pic_flag=$lt_prog_compiler_pic
9843 compiler_flags=-v
9844 linker_flags=-v
9845 verstring=
9846 output_objdir=.
9847 libname=conftest
9848 lt_save_allow_undefined_flag=$allow_undefined_flag
9849 allow_undefined_flag=
9850 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9851 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }
9855 then
9856 lt_cv_archive_cmds_need_lc=no
9857 else
9858 lt_cv_archive_cmds_need_lc=yes
9860 allow_undefined_flag=$lt_save_allow_undefined_flag
9861 else
9862 cat conftest.err 1>&5
9864 $RM conftest*
9867 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9868 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9869 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9871 esac
9874 esac
10032 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10033 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10035 if test "$GCC" = yes; then
10036 case $host_os in
10037 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10038 *) lt_awk_arg="/^libraries:/" ;;
10039 esac
10040 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10041 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10042 # if the path contains ";" then we assume it to be the separator
10043 # otherwise default to the standard path separator (i.e. ":") - it is
10044 # assumed that no part of a normal pathname contains ";" but that should
10045 # okay in the real world where ";" in dirpaths is itself problematic.
10046 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10047 else
10048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10050 # Ok, now we have the path, separated by spaces, we can step through it
10051 # and add multilib dir if necessary.
10052 lt_tmp_lt_search_path_spec=
10053 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10054 for lt_sys_path in $lt_search_path_spec; do
10055 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10057 else
10058 test -d "$lt_sys_path" && \
10059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10061 done
10062 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10063 BEGIN {RS=" "; FS="/|\n";} {
10064 lt_foo="";
10065 lt_count=0;
10066 for (lt_i = NF; lt_i > 0; lt_i--) {
10067 if ($lt_i != "" && $lt_i != ".") {
10068 if ($lt_i == "..") {
10069 lt_count++;
10070 } else {
10071 if (lt_count == 0) {
10072 lt_foo="/" $lt_i lt_foo;
10073 } else {
10074 lt_count--;
10079 if (lt_foo != "") { lt_freq[lt_foo]++; }
10080 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10082 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10083 else
10084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10086 library_names_spec=
10087 libname_spec='lib$name'
10088 soname_spec=
10089 shrext_cmds=".so"
10090 postinstall_cmds=
10091 postuninstall_cmds=
10092 finish_cmds=
10093 finish_eval=
10094 shlibpath_var=
10095 shlibpath_overrides_runpath=unknown
10096 version_type=none
10097 dynamic_linker="$host_os ld.so"
10098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10099 need_lib_prefix=unknown
10100 hardcode_into_libs=no
10102 # when you set need_version to no, make sure it does not cause -set_version
10103 # flags to be left without arguments
10104 need_version=unknown
10106 case $host_os in
10107 aix3*)
10108 version_type=linux
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10110 shlibpath_var=LIBPATH
10112 # AIX 3 has no versioning support, so we append a major version to the name.
10113 soname_spec='${libname}${release}${shared_ext}$major'
10116 aix[4-9]*)
10117 version_type=linux
10118 need_lib_prefix=no
10119 need_version=no
10120 hardcode_into_libs=yes
10121 if test "$host_cpu" = ia64; then
10122 # AIX 5 supports IA64
10123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 else
10126 # With GCC up to 2.95.x, collect2 would create an import file
10127 # for dependence libraries. The import file would start with
10128 # the line `#! .'. This would cause the generated library to
10129 # depend on `.', always an invalid library. This was fixed in
10130 # development snapshots of GCC prior to 3.0.
10131 case $host_os in
10132 aix4 | aix4.[01] | aix4.[01].*)
10133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10134 echo ' yes '
10135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10137 else
10138 can_build_shared=no
10141 esac
10142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10143 # soname into executable. Probably we can add versioning support to
10144 # collect2, so additional links can be useful in future.
10145 if test "$aix_use_runtimelinking" = yes; then
10146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10147 # instead of lib<name>.a to let people know that these are not
10148 # typical AIX shared libraries.
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 else
10151 # We preserve .a as extension for shared libraries through AIX4.2
10152 # and later when we are not doing run time linking.
10153 library_names_spec='${libname}${release}.a $libname.a'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10156 shlibpath_var=LIBPATH
10160 amigaos*)
10161 case $host_cpu in
10162 powerpc)
10163 # Since July 2007 AmigaOS4 officially supports .so libraries.
10164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167 m68k)
10168 library_names_spec='$libname.ixlibrary $libname.a'
10169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10170 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'
10172 esac
10175 beos*)
10176 library_names_spec='${libname}${shared_ext}'
10177 dynamic_linker="$host_os ld.so"
10178 shlibpath_var=LIBRARY_PATH
10181 bsdi[45]*)
10182 version_type=linux
10183 need_version=no
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10190 # the default ld.so.conf also contains /usr/contrib/lib and
10191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10192 # libtool to hard-code these into programs
10195 cygwin* | mingw* | pw32* | cegcc*)
10196 version_type=windows
10197 shrext_cmds=".dll"
10198 need_version=no
10199 need_lib_prefix=no
10201 case $GCC,$host_os in
10202 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10203 library_names_spec='$libname.dll.a'
10204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10205 postinstall_cmds='base_file=`basename \${file}`~
10206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10207 dldir=$destdir/`dirname \$dlpath`~
10208 test -d \$dldir || mkdir -p \$dldir~
10209 $install_prog $dir/$dlname \$dldir/$dlname~
10210 chmod a+x \$dldir/$dlname~
10211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10215 dlpath=$dir/\$dldll~
10216 $RM \$dlpath'
10217 shlibpath_overrides_runpath=yes
10219 case $host_os in
10220 cygwin*)
10221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10223 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10225 mingw* | cegcc*)
10226 # MinGW DLLs use traditional 'lib' prefix
10227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10229 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10230 # It is most probably a Windows format PATH printed by
10231 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10232 # path with ; separators, and with drive letters. We can handle the
10233 # drive letters (cygwin fileutils understands them), so leave them,
10234 # especially as we might pass files found there to a mingw objdump,
10235 # which wouldn't understand a cygwinified path. Ahh.
10236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10237 else
10238 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10241 pw32*)
10242 # pw32 DLLs use 'pw' prefix rather than 'lib'
10243 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10245 esac
10249 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10251 esac
10252 dynamic_linker='Win32 ld.exe'
10253 # FIXME: first we should search . and the directory the executable is in
10254 shlibpath_var=PATH
10257 darwin* | rhapsody*)
10258 dynamic_linker="$host_os dyld"
10259 version_type=darwin
10260 need_lib_prefix=no
10261 need_version=no
10262 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10263 soname_spec='${libname}${release}${major}$shared_ext'
10264 shlibpath_overrides_runpath=yes
10265 shlibpath_var=DYLD_LIBRARY_PATH
10266 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10268 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10269 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10272 dgux*)
10273 version_type=linux
10274 need_lib_prefix=no
10275 need_version=no
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10281 freebsd1*)
10282 dynamic_linker=no
10285 freebsd* | dragonfly*)
10286 # DragonFly does not have aout. When/if they implement a new
10287 # versioning mechanism, adjust this.
10288 if test -x /usr/bin/objformat; then
10289 objformat=`/usr/bin/objformat`
10290 else
10291 case $host_os in
10292 freebsd[123]*) objformat=aout ;;
10293 *) objformat=elf ;;
10294 esac
10296 version_type=freebsd-$objformat
10297 case $version_type in
10298 freebsd-elf*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10300 need_version=no
10301 need_lib_prefix=no
10303 freebsd-*)
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10305 need_version=yes
10307 esac
10308 shlibpath_var=LD_LIBRARY_PATH
10309 case $host_os in
10310 freebsd2*)
10311 shlibpath_overrides_runpath=yes
10313 freebsd3.[01]* | freebsdelf3.[01]*)
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10319 shlibpath_overrides_runpath=no
10320 hardcode_into_libs=yes
10322 *) # from 4.6 on, and DragonFly
10323 shlibpath_overrides_runpath=yes
10324 hardcode_into_libs=yes
10326 esac
10329 gnu*)
10330 version_type=linux
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 hardcode_into_libs=yes
10339 hpux9* | hpux10* | hpux11*)
10340 # Give a soname corresponding to the major version so that dld.sl refuses to
10341 # link against other versions.
10342 version_type=sunos
10343 need_lib_prefix=no
10344 need_version=no
10345 case $host_cpu in
10346 ia64*)
10347 shrext_cmds='.so'
10348 hardcode_into_libs=yes
10349 dynamic_linker="$host_os dld.so"
10350 shlibpath_var=LD_LIBRARY_PATH
10351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 if test "X$HPUX_IA64_MODE" = X32; then
10355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10356 else
10357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10361 hppa*64*)
10362 shrext_cmds='.sl'
10363 hardcode_into_libs=yes
10364 dynamic_linker="$host_os dld.sl"
10365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10373 shrext_cmds='.sl'
10374 dynamic_linker="$host_os dld.sl"
10375 shlibpath_var=SHLIB_PATH
10376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10380 esac
10381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10382 postinstall_cmds='chmod 555 $lib'
10385 interix[3-9]*)
10386 version_type=linux
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10397 irix5* | irix6* | nonstopux*)
10398 case $host_os in
10399 nonstopux*) version_type=nonstopux ;;
10401 if test "$lt_cv_prog_gnu_ld" = yes; then
10402 version_type=linux
10403 else
10404 version_type=irix
10405 fi ;;
10406 esac
10407 need_lib_prefix=no
10408 need_version=no
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10411 case $host_os in
10412 irix5* | nonstopux*)
10413 libsuff= shlibsuff=
10416 case $LD in # libtool.m4 will add one of these switches to LD
10417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10418 libsuff= shlibsuff= libmagic=32-bit;;
10419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10420 libsuff=32 shlibsuff=N32 libmagic=N32;;
10421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10423 *) libsuff= shlibsuff= libmagic=never-match;;
10424 esac
10426 esac
10427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10428 shlibpath_overrides_runpath=no
10429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10431 hardcode_into_libs=yes
10434 # No shared lib support for Linux oldld, aout, or coff.
10435 linux*oldld* | linux*aout* | linux*coff*)
10436 dynamic_linker=no
10439 # This must be Linux ELF.
10440 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10441 version_type=linux
10442 need_lib_prefix=no
10443 need_version=no
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10447 shlibpath_var=LD_LIBRARY_PATH
10448 shlibpath_overrides_runpath=no
10450 # Some binutils ld are patched to set DT_RUNPATH
10451 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454 lt_cv_shlibpath_overrides_runpath=no
10455 save_LDFLAGS=$LDFLAGS
10456 save_libdir=$libdir
10457 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10458 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10459 cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h. */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10467 main ()
10471 return 0;
10473 _ACEOF
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest$ac_exeext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10497 lt_cv_shlibpath_overrides_runpath=yes
10500 else
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10505 rm -f conftest.err conftest.$ac_objext \
10506 conftest$ac_exeext conftest.$ac_ext
10507 LDFLAGS=$save_LDFLAGS
10508 libdir=$save_libdir
10512 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10514 # This implies no fast_install, which is unacceptable.
10515 # Some rework will be needed to allow for fast_install
10516 # before this can be enabled.
10517 hardcode_into_libs=yes
10519 # Append ld.so.conf contents to the search path
10520 if test -f /etc/ld.so.conf; then
10521 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' ' '`
10522 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10525 # We used to test for /lib/ld.so.1 and disable shared libraries on
10526 # powerpc, because MkLinux only supported shared libraries with the
10527 # GNU dynamic linker. Since this was broken with cross compilers,
10528 # most powerpc-linux boxes support dynamic linking these days and
10529 # people can always --disable-shared, the test was removed, and we
10530 # assume the GNU/Linux dynamic linker is in use.
10531 dynamic_linker='GNU/Linux ld.so'
10534 netbsd*)
10535 version_type=sunos
10536 need_lib_prefix=no
10537 need_version=no
10538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10541 dynamic_linker='NetBSD (a.out) ld.so'
10542 else
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 dynamic_linker='NetBSD ld.elf_so'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath=yes
10549 hardcode_into_libs=yes
10552 newsos6)
10553 version_type=linux
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 shlibpath_overrides_runpath=yes
10559 *nto* | *qnx*)
10560 version_type=qnx
10561 need_lib_prefix=no
10562 need_version=no
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 shlibpath_overrides_runpath=no
10567 hardcode_into_libs=yes
10568 dynamic_linker='ldqnx.so'
10571 openbsd*)
10572 version_type=sunos
10573 sys_lib_dlsearch_path_spec="/usr/lib"
10574 need_lib_prefix=no
10575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10576 case $host_os in
10577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10578 *) need_version=no ;;
10579 esac
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10584 case $host_os in
10585 openbsd2.[89] | openbsd2.[89].*)
10586 shlibpath_overrides_runpath=no
10589 shlibpath_overrides_runpath=yes
10591 esac
10592 else
10593 shlibpath_overrides_runpath=yes
10597 os2*)
10598 libname_spec='$name'
10599 shrext_cmds=".dll"
10600 need_lib_prefix=no
10601 library_names_spec='$libname${shared_ext} $libname.a'
10602 dynamic_linker='OS/2 ld.exe'
10603 shlibpath_var=LIBPATH
10606 osf3* | osf4* | osf5*)
10607 version_type=osf
10608 need_lib_prefix=no
10609 need_version=no
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10617 rdos*)
10618 dynamic_linker=no
10621 solaris*)
10622 version_type=linux
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10630 # ldd complains unless libraries are executable
10631 postinstall_cmds='chmod +x $lib'
10634 sunos4*)
10635 version_type=sunos
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10637 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath=yes
10640 if test "$with_gnu_ld" = yes; then
10641 need_lib_prefix=no
10643 need_version=yes
10646 sysv4 | sysv4.3*)
10647 version_type=linux
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 case $host_vendor in
10652 sni)
10653 shlibpath_overrides_runpath=no
10654 need_lib_prefix=no
10655 runpath_var=LD_RUN_PATH
10657 siemens)
10658 need_lib_prefix=no
10660 motorola)
10661 need_lib_prefix=no
10662 need_version=no
10663 shlibpath_overrides_runpath=no
10664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10666 esac
10669 sysv4*MP*)
10670 if test -d /usr/nec ;then
10671 version_type=linux
10672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10673 soname_spec='$libname${shared_ext}.$major'
10674 shlibpath_var=LD_LIBRARY_PATH
10678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10679 version_type=freebsd-elf
10680 need_lib_prefix=no
10681 need_version=no
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 shlibpath_overrides_runpath=yes
10686 hardcode_into_libs=yes
10687 if test "$with_gnu_ld" = yes; then
10688 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10689 else
10690 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10691 case $host_os in
10692 sco3.2v5*)
10693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10695 esac
10697 sys_lib_dlsearch_path_spec='/usr/lib'
10700 tpf*)
10701 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10702 version_type=linux
10703 need_lib_prefix=no
10704 need_version=no
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 shlibpath_var=LD_LIBRARY_PATH
10707 shlibpath_overrides_runpath=no
10708 hardcode_into_libs=yes
10711 uts4*)
10712 version_type=linux
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10719 dynamic_linker=no
10721 esac
10722 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10723 echo "${ECHO_T}$dynamic_linker" >&6
10724 test "$dynamic_linker" = no && can_build_shared=no
10726 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10727 if test "$GCC" = yes; then
10728 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10731 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10732 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10734 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10735 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10824 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10825 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10826 hardcode_action=
10827 if test -n "$hardcode_libdir_flag_spec" ||
10828 test -n "$runpath_var" ||
10829 test "X$hardcode_automatic" = "Xyes" ; then
10831 # We can hardcode non-existent directories.
10832 if test "$hardcode_direct" != no &&
10833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10834 # have to relink, otherwise we might link with an installed library
10835 # when we should be linking with a yet-to-be-installed one
10836 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10837 test "$hardcode_minus_L" != no; then
10838 # Linking always hardcodes the temporary library directory.
10839 hardcode_action=relink
10840 else
10841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10842 hardcode_action=immediate
10844 else
10845 # We cannot hardcode anything, or else we can only hardcode existing
10846 # directories.
10847 hardcode_action=unsupported
10849 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10850 echo "${ECHO_T}$hardcode_action" >&6
10852 if test "$hardcode_action" = relink ||
10853 test "$inherit_rpath" = yes; then
10854 # Fast installation is not supported
10855 enable_fast_install=no
10856 elif test "$shlibpath_overrides_runpath" = yes ||
10857 test "$enable_shared" = no; then
10858 # Fast installation is not necessary
10859 enable_fast_install=needless
10867 if test "x$enable_dlopen" != xyes; then
10868 enable_dlopen=unknown
10869 enable_dlopen_self=unknown
10870 enable_dlopen_self_static=unknown
10871 else
10872 lt_cv_dlopen=no
10873 lt_cv_dlopen_libs=
10875 case $host_os in
10876 beos*)
10877 lt_cv_dlopen="load_add_on"
10878 lt_cv_dlopen_libs=
10879 lt_cv_dlopen_self=yes
10882 mingw* | pw32* | cegcc*)
10883 lt_cv_dlopen="LoadLibrary"
10884 lt_cv_dlopen_libs=
10887 cygwin*)
10888 lt_cv_dlopen="dlopen"
10889 lt_cv_dlopen_libs=
10892 darwin*)
10893 # if libdl is installed we need to link against it
10894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899 ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-ldl $LIBS"
10901 cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h. */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10908 /* Override any gcc2 internal prototype to avoid an error. */
10909 #ifdef __cplusplus
10910 extern "C"
10911 #endif
10912 /* We use char because int might match the return type of a gcc2
10913 builtin and then its argument prototype would still apply. */
10914 char dlopen ();
10916 main ()
10918 dlopen ();
10920 return 0;
10922 _ACEOF
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925 (eval $ac_link) 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -z "$ac_c_werror_flag"
10933 || test ! -s conftest.err'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try='test -s conftest$ac_exeext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_cv_lib_dl_dlopen=yes
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_cv_lib_dl_dlopen=no
10952 rm -f conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954 LIBS=$ac_check_lib_save_LIBS
10956 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10957 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10958 if test $ac_cv_lib_dl_dlopen = yes; then
10959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10960 else
10962 lt_cv_dlopen="dyld"
10963 lt_cv_dlopen_libs=
10964 lt_cv_dlopen_self=yes
10971 echo "$as_me:$LINENO: checking for shl_load" >&5
10972 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10973 if test "${ac_cv_func_shl_load+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h. */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10984 #define shl_load innocuous_shl_load
10986 /* System header to define __stub macros and hopefully few prototypes,
10987 which can conflict with char shl_load (); below.
10988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10989 <limits.h> exists even on freestanding compilers. */
10991 #ifdef __STDC__
10992 # include <limits.h>
10993 #else
10994 # include <assert.h>
10995 #endif
10997 #undef shl_load
10999 /* Override any gcc2 internal prototype to avoid an error. */
11000 #ifdef __cplusplus
11001 extern "C"
11003 #endif
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11006 char shl_load ();
11007 /* The GNU C library defines this for functions which it implements
11008 to always fail with ENOSYS. Some functions are actually named
11009 something starting with __ and the normal name is an alias. */
11010 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11011 choke me
11012 #else
11013 char (*f) () = shl_load;
11014 #endif
11015 #ifdef __cplusplus
11017 #endif
11020 main ()
11022 return f != shl_load;
11024 return 0;
11026 _ACEOF
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_func_shl_load=yes
11050 else
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_cv_func_shl_load=no
11056 rm -f conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11059 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11060 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11061 if test $ac_cv_func_shl_load = yes; then
11062 lt_cv_dlopen="shl_load"
11063 else
11064 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11065 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11066 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069 ac_check_lib_save_LIBS=$LIBS
11070 LIBS="-ldld $LIBS"
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h. */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11078 /* Override any gcc2 internal prototype to avoid an error. */
11079 #ifdef __cplusplus
11080 extern "C"
11081 #endif
11082 /* We use char because int might match the return type of a gcc2
11083 builtin and then its argument prototype would still apply. */
11084 char shl_load ();
11086 main ()
11088 shl_load ();
11090 return 0;
11092 _ACEOF
11093 rm -f conftest.$ac_objext conftest$ac_exeext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11095 (eval $ac_link) 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -z "$ac_c_werror_flag"
11103 || test ! -s conftest.err'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_lib_dld_shl_load=yes
11116 else
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 ac_cv_lib_dld_shl_load=no
11122 rm -f conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11124 LIBS=$ac_check_lib_save_LIBS
11126 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11127 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11128 if test $ac_cv_lib_dld_shl_load = yes; then
11129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11130 else
11131 echo "$as_me:$LINENO: checking for dlopen" >&5
11132 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11133 if test "${ac_cv_func_dlopen+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h. */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11144 #define dlopen innocuous_dlopen
11146 /* System header to define __stub macros and hopefully few prototypes,
11147 which can conflict with char dlopen (); below.
11148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149 <limits.h> exists even on freestanding compilers. */
11151 #ifdef __STDC__
11152 # include <limits.h>
11153 #else
11154 # include <assert.h>
11155 #endif
11157 #undef dlopen
11159 /* Override any gcc2 internal prototype to avoid an error. */
11160 #ifdef __cplusplus
11161 extern "C"
11163 #endif
11164 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11166 char dlopen ();
11167 /* The GNU C library defines this for functions which it implements
11168 to always fail with ENOSYS. Some functions are actually named
11169 something starting with __ and the normal name is an alias. */
11170 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11171 choke me
11172 #else
11173 char (*f) () = dlopen;
11174 #endif
11175 #ifdef __cplusplus
11177 #endif
11180 main ()
11182 return f != dlopen;
11184 return 0;
11186 _ACEOF
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189 (eval $ac_link) 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -z "$ac_c_werror_flag"
11197 || test ! -s conftest.err'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 ac_cv_func_dlopen=yes
11210 else
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11214 ac_cv_func_dlopen=no
11216 rm -f conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11219 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11220 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11221 if test $ac_cv_func_dlopen = yes; then
11222 lt_cv_dlopen="dlopen"
11223 else
11224 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229 ac_check_lib_save_LIBS=$LIBS
11230 LIBS="-ldl $LIBS"
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h. */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11238 /* Override any gcc2 internal prototype to avoid an error. */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 /* We use char because int might match the return type of a gcc2
11243 builtin and then its argument prototype would still apply. */
11244 char dlopen ();
11246 main ()
11248 dlopen ();
11250 return 0;
11252 _ACEOF
11253 rm -f conftest.$ac_objext conftest$ac_exeext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255 (eval $ac_link) 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -z "$ac_c_werror_flag"
11263 || test ! -s conftest.err'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11266 ac_status=$?
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; } &&
11269 { ac_try='test -s conftest$ac_exeext'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 ac_cv_lib_dl_dlopen=yes
11276 else
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_cv_lib_dl_dlopen=no
11282 rm -f conftest.err conftest.$ac_objext \
11283 conftest$ac_exeext conftest.$ac_ext
11284 LIBS=$ac_check_lib_save_LIBS
11286 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11287 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11288 if test $ac_cv_lib_dl_dlopen = yes; then
11289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11290 else
11291 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11292 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11293 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296 ac_check_lib_save_LIBS=$LIBS
11297 LIBS="-lsvld $LIBS"
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11305 /* Override any gcc2 internal prototype to avoid an error. */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 /* We use char because int might match the return type of a gcc2
11310 builtin and then its argument prototype would still apply. */
11311 char dlopen ();
11313 main ()
11315 dlopen ();
11317 return 0;
11319 _ACEOF
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -z "$ac_c_werror_flag"
11330 || test ! -s conftest.err'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest$ac_exeext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_cv_lib_svld_dlopen=yes
11343 else
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ac_cv_lib_svld_dlopen=no
11349 rm -f conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11351 LIBS=$ac_check_lib_save_LIBS
11353 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11354 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11355 if test $ac_cv_lib_svld_dlopen = yes; then
11356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11357 else
11358 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11359 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11360 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 else
11363 ac_check_lib_save_LIBS=$LIBS
11364 LIBS="-ldld $LIBS"
11365 cat >conftest.$ac_ext <<_ACEOF
11366 /* confdefs.h. */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11372 /* Override any gcc2 internal prototype to avoid an error. */
11373 #ifdef __cplusplus
11374 extern "C"
11375 #endif
11376 /* We use char because int might match the return type of a gcc2
11377 builtin and then its argument prototype would still apply. */
11378 char dld_link ();
11380 main ()
11382 dld_link ();
11384 return 0;
11386 _ACEOF
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389 (eval $ac_link) 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -z "$ac_c_werror_flag"
11397 || test ! -s conftest.err'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try='test -s conftest$ac_exeext'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_cv_lib_dld_dld_link=yes
11410 else
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_cv_lib_dld_dld_link=no
11416 rm -f conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
11418 LIBS=$ac_check_lib_save_LIBS
11420 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11421 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11422 if test $ac_cv_lib_dld_dld_link = yes; then
11423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11442 esac
11444 if test "x$lt_cv_dlopen" != xno; then
11445 enable_dlopen=yes
11446 else
11447 enable_dlopen=no
11450 case $lt_cv_dlopen in
11451 dlopen)
11452 save_CPPFLAGS="$CPPFLAGS"
11453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11455 save_LDFLAGS="$LDFLAGS"
11456 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11458 save_LIBS="$LIBS"
11459 LIBS="$lt_cv_dlopen_libs $LIBS"
11461 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11462 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11463 if test "${lt_cv_dlopen_self+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466 if test "$cross_compiling" = yes; then :
11467 lt_cv_dlopen_self=cross
11468 else
11469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11470 lt_status=$lt_dlunknown
11471 cat > conftest.$ac_ext <<_LT_EOF
11472 #line 11472 "configure"
11473 #include "confdefs.h"
11475 #if HAVE_DLFCN_H
11476 #include <dlfcn.h>
11477 #endif
11479 #include <stdio.h>
11481 #ifdef RTLD_GLOBAL
11482 # define LT_DLGLOBAL RTLD_GLOBAL
11483 #else
11484 # ifdef DL_GLOBAL
11485 # define LT_DLGLOBAL DL_GLOBAL
11486 # else
11487 # define LT_DLGLOBAL 0
11488 # endif
11489 #endif
11491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11492 find out it does not work in some platform. */
11493 #ifndef LT_DLLAZY_OR_NOW
11494 # ifdef RTLD_LAZY
11495 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11496 # else
11497 # ifdef DL_LAZY
11498 # define LT_DLLAZY_OR_NOW DL_LAZY
11499 # else
11500 # ifdef RTLD_NOW
11501 # define LT_DLLAZY_OR_NOW RTLD_NOW
11502 # else
11503 # ifdef DL_NOW
11504 # define LT_DLLAZY_OR_NOW DL_NOW
11505 # else
11506 # define LT_DLLAZY_OR_NOW 0
11507 # endif
11508 # endif
11509 # endif
11510 # endif
11511 #endif
11513 void fnord() { int i=42;}
11514 int main ()
11516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11517 int status = $lt_dlunknown;
11519 if (self)
11521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11522 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11523 /* dlclose (self); */
11525 else
11526 puts (dlerror ());
11528 return status;
11530 _LT_EOF
11531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11532 (eval $ac_link) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11536 (./conftest; exit; ) >&5 2>/dev/null
11537 lt_status=$?
11538 case x$lt_status in
11539 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11540 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11541 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11542 esac
11543 else :
11544 # compilation failed
11545 lt_cv_dlopen_self=no
11548 rm -fr conftest*
11552 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11553 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11555 if test "x$lt_cv_dlopen_self" = xyes; then
11556 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11557 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11558 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11559 if test "${lt_cv_dlopen_self_static+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562 if test "$cross_compiling" = yes; then :
11563 lt_cv_dlopen_self_static=cross
11564 else
11565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11566 lt_status=$lt_dlunknown
11567 cat > conftest.$ac_ext <<_LT_EOF
11568 #line 11568 "configure"
11569 #include "confdefs.h"
11571 #if HAVE_DLFCN_H
11572 #include <dlfcn.h>
11573 #endif
11575 #include <stdio.h>
11577 #ifdef RTLD_GLOBAL
11578 # define LT_DLGLOBAL RTLD_GLOBAL
11579 #else
11580 # ifdef DL_GLOBAL
11581 # define LT_DLGLOBAL DL_GLOBAL
11582 # else
11583 # define LT_DLGLOBAL 0
11584 # endif
11585 #endif
11587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11588 find out it does not work in some platform. */
11589 #ifndef LT_DLLAZY_OR_NOW
11590 # ifdef RTLD_LAZY
11591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11592 # else
11593 # ifdef DL_LAZY
11594 # define LT_DLLAZY_OR_NOW DL_LAZY
11595 # else
11596 # ifdef RTLD_NOW
11597 # define LT_DLLAZY_OR_NOW RTLD_NOW
11598 # else
11599 # ifdef DL_NOW
11600 # define LT_DLLAZY_OR_NOW DL_NOW
11601 # else
11602 # define LT_DLLAZY_OR_NOW 0
11603 # endif
11604 # endif
11605 # endif
11606 # endif
11607 #endif
11609 void fnord() { int i=42;}
11610 int main ()
11612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11613 int status = $lt_dlunknown;
11615 if (self)
11617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11619 /* dlclose (self); */
11621 else
11622 puts (dlerror ());
11624 return status;
11626 _LT_EOF
11627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11628 (eval $ac_link) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11632 (./conftest; exit; ) >&5 2>/dev/null
11633 lt_status=$?
11634 case x$lt_status in
11635 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11636 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11637 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11638 esac
11639 else :
11640 # compilation failed
11641 lt_cv_dlopen_self_static=no
11644 rm -fr conftest*
11648 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11649 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11652 CPPFLAGS="$save_CPPFLAGS"
11653 LDFLAGS="$save_LDFLAGS"
11654 LIBS="$save_LIBS"
11656 esac
11658 case $lt_cv_dlopen_self in
11659 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11660 *) enable_dlopen_self=unknown ;;
11661 esac
11663 case $lt_cv_dlopen_self_static in
11664 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11665 *) enable_dlopen_self_static=unknown ;;
11666 esac
11685 striplib=
11686 old_striplib=
11687 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11688 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11689 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11690 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11691 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11692 echo "$as_me:$LINENO: result: yes" >&5
11693 echo "${ECHO_T}yes" >&6
11694 else
11695 # FIXME - insert some real tests, host_os isn't really good enough
11696 case $host_os in
11697 darwin*)
11698 if test -n "$STRIP" ; then
11699 striplib="$STRIP -x"
11700 old_striplib="$STRIP -S"
11701 echo "$as_me:$LINENO: result: yes" >&5
11702 echo "${ECHO_T}yes" >&6
11703 else
11704 echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6
11709 echo "$as_me:$LINENO: result: no" >&5
11710 echo "${ECHO_T}no" >&6
11712 esac
11726 # Report which library types will actually be built
11727 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11728 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11729 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11730 echo "${ECHO_T}$can_build_shared" >&6
11732 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11733 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11734 test "$can_build_shared" = "no" && enable_shared=no
11736 # On AIX, shared libraries and static libraries use the same namespace, and
11737 # are all built from PIC.
11738 case $host_os in
11739 aix3*)
11740 test "$enable_shared" = yes && enable_static=no
11741 if test -n "$RANLIB"; then
11742 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11743 postinstall_cmds='$RANLIB $lib'
11747 aix[4-9]*)
11748 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11749 test "$enable_shared" = yes && enable_static=no
11752 esac
11753 echo "$as_me:$LINENO: result: $enable_shared" >&5
11754 echo "${ECHO_T}$enable_shared" >&6
11756 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11757 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11758 # Make sure either enable_shared or enable_static is yes.
11759 test "$enable_shared" = yes || enable_static=yes
11760 echo "$as_me:$LINENO: result: $enable_static" >&5
11761 echo "${ECHO_T}$enable_static" >&6
11767 ac_ext=c
11768 ac_cpp='$CPP $CPPFLAGS'
11769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11773 CC="$lt_save_CC"
11787 ac_config_commands="$ac_config_commands libtool"
11792 # Only expand once:
11796 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11797 if test "${enable_64_bit_bfd+set}" = set; then
11798 enableval="$enable_64_bit_bfd"
11799 case "${enableval}" in
11800 yes) want64=true ;;
11801 no) want64=false ;;
11802 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11803 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11804 { (exit 1); exit 1; }; } ;;
11805 esac
11806 else
11807 want64=false
11809 # Check whether --enable-targets or --disable-targets was given.
11810 if test "${enable_targets+set}" = set; then
11811 enableval="$enable_targets"
11812 case "${enableval}" in
11813 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11814 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11815 { (exit 1); exit 1; }; }
11817 no) enable_targets= ;;
11818 *) enable_targets=$enableval ;;
11819 esac
11822 # Check whether --with-mmap or --without-mmap was given.
11823 if test "${with_mmap+set}" = set; then
11824 withval="$with_mmap"
11825 case "${withval}" in
11826 yes) want_mmap=true ;;
11827 no) want_mmap=false ;;
11828 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11829 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11830 { (exit 1); exit 1; }; } ;;
11831 esac
11832 else
11833 want_mmap=false
11835 # Check whether --enable-secureplt or --disable-secureplt was given.
11836 if test "${enable_secureplt+set}" = set; then
11837 enableval="$enable_secureplt"
11838 case "${enableval}" in
11839 yes) use_secureplt=true ;;
11840 no) use_secureplt=false ;;
11841 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11842 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11843 { (exit 1); exit 1; }; } ;;
11844 esac
11845 else
11846 use_secureplt=false
11847 fi; if test $use_secureplt = true; then
11849 cat >>confdefs.h <<\_ACEOF
11850 #define USE_SECUREPLT 1
11851 _ACEOF
11855 DEBUGDIR=${libdir}/debug
11857 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11858 if test "${with_separate_debug_dir+set}" = set; then
11859 withval="$with_separate_debug_dir"
11860 DEBUGDIR="${withval}"
11864 # Check to see if we should allow the generation of
11865 # symbols with the ELF standard's STT_COMMON type.
11866 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11867 if test "${enable_elf_stt_common+set}" = set; then
11868 enableval="$enable_elf_stt_common"
11869 case "${enableval}" in
11870 yes) want_elf_stt_common=true ;;
11871 no) want_elf_stt_common=false ;;
11872 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11873 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11874 { (exit 1); exit 1; }; } ;;
11875 esac
11876 else
11877 # We have to choose a default behaviour. For native builds we could
11878 # test whether the loader supports the STT_COMMON type, but that would
11879 # mean that built binaries could not be exported to older systems where
11880 # the loader does not support it. So by default we always choose to
11881 # disable this feature.
11882 want_elf_stt_common=false
11883 fi; if test $want_elf_stt_common = true; then
11885 cat >>confdefs.h <<\_ACEOF
11886 #define USE_STT_COMMON 1
11887 _ACEOF
11893 # Check whether --with-pkgversion or --without-pkgversion was given.
11894 if test "${with_pkgversion+set}" = set; then
11895 withval="$with_pkgversion"
11896 case "$withval" in
11897 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11898 echo "$as_me: error: package version not specified" >&2;}
11899 { (exit 1); exit 1; }; } ;;
11900 no) PKGVERSION= ;;
11901 *) PKGVERSION="($withval) " ;;
11902 esac
11903 else
11904 PKGVERSION="(GNU Binutils) "
11911 # Check whether --with-bugurl or --without-bugurl was given.
11912 if test "${with_bugurl+set}" = set; then
11913 withval="$with_bugurl"
11914 case "$withval" in
11915 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11916 echo "$as_me: error: bug URL not specified" >&2;}
11917 { (exit 1); exit 1; }; } ;;
11918 no) BUGURL=
11920 *) BUGURL="$withval"
11922 esac
11923 else
11924 BUGURL="http://www.sourceware.org/bugzilla/"
11927 case ${BUGURL} in
11929 REPORT_BUGS_TO=
11930 REPORT_BUGS_TEXI=
11933 REPORT_BUGS_TO="<$BUGURL>"
11934 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11936 esac;
11942 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11944 # Check whether --enable-werror or --disable-werror was given.
11945 if test "${enable_werror+set}" = set; then
11946 enableval="$enable_werror"
11947 case "${enableval}" in
11948 yes | y) ERROR_ON_WARNING="yes" ;;
11949 no | n) ERROR_ON_WARNING="no" ;;
11950 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11951 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11952 { (exit 1); exit 1; }; } ;;
11953 esac
11956 # Enable -Wno-format by default when using gcc on mingw
11957 case "${host}" in
11958 *-*-mingw32*)
11959 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11960 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11963 *) ;;
11964 esac
11966 # Enable -Werror by default when using gcc
11967 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11968 ERROR_ON_WARNING=yes
11971 NO_WERROR=
11972 if test "${ERROR_ON_WARNING}" = yes ; then
11973 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11974 NO_WERROR="-Wno-error"
11977 if test "${GCC}" = yes ; then
11978 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11981 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11982 if test "${enable_build_warnings+set}" = set; then
11983 enableval="$enable_build_warnings"
11984 case "${enableval}" in
11985 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11986 no) if test "${GCC}" = yes ; then
11987 WARN_CFLAGS="-w"
11988 fi;;
11989 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11990 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11991 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11992 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11993 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11994 esac
11997 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11998 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12005 ac_config_headers="$ac_config_headers config.h:config.in"
12008 if test -z "$target" ; then
12009 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
12010 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
12011 { (exit 1); exit 1; }; }
12014 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12015 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12016 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12017 if test "${enable_maintainer_mode+set}" = set; then
12018 enableval="$enable_maintainer_mode"
12019 USE_MAINTAINER_MODE=$enableval
12020 else
12021 USE_MAINTAINER_MODE=no
12023 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12024 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12027 if test $USE_MAINTAINER_MODE = yes; then
12028 MAINTAINER_MODE_TRUE=
12029 MAINTAINER_MODE_FALSE='#'
12030 else
12031 MAINTAINER_MODE_TRUE='#'
12032 MAINTAINER_MODE_FALSE=
12035 MAINT=$MAINTAINER_MODE_TRUE
12040 if false; then
12041 GENINSRC_NEVER_TRUE=
12042 GENINSRC_NEVER_FALSE='#'
12043 else
12044 GENINSRC_NEVER_TRUE='#'
12045 GENINSRC_NEVER_FALSE=
12048 case ${build_alias} in
12049 "") build_noncanonical=${build} ;;
12050 *) build_noncanonical=${build_alias} ;;
12051 esac
12053 case ${host_alias} in
12054 "") host_noncanonical=${build_noncanonical} ;;
12055 *) host_noncanonical=${host_alias} ;;
12056 esac
12058 case ${target_alias} in
12059 "") target_noncanonical=${host_noncanonical} ;;
12060 *) target_noncanonical=${target_alias} ;;
12061 esac
12063 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12064 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12065 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12066 if test "${enable_install_libbfd+set}" = set; then
12067 enableval="$enable_install_libbfd"
12068 install_libbfd_p=$enableval
12069 else
12070 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12071 install_libbfd_p=yes
12072 else
12073 install_libbfd_p=no
12076 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12077 echo "${ECHO_T}$install_libbfd_p" >&6
12080 if test $install_libbfd_p = yes; then
12081 INSTALL_LIBBFD_TRUE=
12082 INSTALL_LIBBFD_FALSE='#'
12083 else
12084 INSTALL_LIBBFD_TRUE='#'
12085 INSTALL_LIBBFD_FALSE=
12088 # Need _noncanonical variables for this.
12093 # libbfd.a is a host library containing target dependent code
12094 bfdlibdir='$(libdir)'
12095 bfdincludedir='$(includedir)'
12096 if test "${host}" != "${target}"; then
12097 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12098 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12106 host64=false
12107 target64=false
12108 bfd_default_target_size=32
12110 # host stuff:
12112 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
12113 # If we haven't got the data from the intl directory,
12114 # assume NLS is disabled.
12115 USE_NLS=no
12116 LIBINTL=
12117 LIBINTL_DEP=
12118 INCINTL=
12119 XGETTEXT=
12120 GMSGFMT=
12121 POSUB=
12123 if test -f ../intl/config.intl; then
12124 . ../intl/config.intl
12126 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12127 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12128 if test x"$USE_NLS" != xyes; then
12129 echo "$as_me:$LINENO: result: no" >&5
12130 echo "${ECHO_T}no" >&6
12131 else
12132 echo "$as_me:$LINENO: result: yes" >&5
12133 echo "${ECHO_T}yes" >&6
12135 cat >>confdefs.h <<\_ACEOF
12136 #define ENABLE_NLS 1
12137 _ACEOF
12140 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12141 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12142 # Look for .po and .gmo files in the source directory.
12143 CATALOGS=
12144 XLINGUAS=
12145 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12146 # If there aren't any .gmo files the shell will give us the
12147 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12148 # weeded out.
12149 case "$cat" in *\**)
12150 continue;;
12151 esac
12152 # The quadruple backslash is collapsed to a double backslash
12153 # by the backticks, then collapsed again by the double quotes,
12154 # leaving us with one backslash in the sed expression (right
12155 # before the dot that mustn't act as a wildcard).
12156 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12157 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12158 # The user is allowed to set LINGUAS to a list of languages to
12159 # install catalogs for. If it's empty that means "all of them."
12160 if test "x$LINGUAS" = x; then
12161 CATALOGS="$CATALOGS $cat"
12162 XLINGUAS="$XLINGUAS $lang"
12163 else
12164 case "$LINGUAS" in *$lang*)
12165 CATALOGS="$CATALOGS $cat"
12166 XLINGUAS="$XLINGUAS $lang"
12168 esac
12170 done
12171 LINGUAS="$XLINGUAS"
12172 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12173 echo "${ECHO_T}$LINGUAS" >&6
12176 DATADIRNAME=share
12178 INSTOBJEXT=.mo
12180 GENCAT=gencat
12182 CATOBJEXT=.gmo
12186 MKINSTALLDIRS=
12187 if test -n "$ac_aux_dir"; then
12188 case "$ac_aux_dir" in
12189 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12190 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12191 esac
12193 if test -z "$MKINSTALLDIRS"; then
12194 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12199 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12200 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12201 # Check whether --enable-nls or --disable-nls was given.
12202 if test "${enable_nls+set}" = set; then
12203 enableval="$enable_nls"
12204 USE_NLS=$enableval
12205 else
12206 USE_NLS=yes
12208 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12209 echo "${ECHO_T}$USE_NLS" >&6
12216 # Prepare PATH_SEPARATOR.
12217 # The user is always right.
12218 if test "${PATH_SEPARATOR+set}" != set; then
12219 echo "#! /bin/sh" >conf$$.sh
12220 echo "exit 0" >>conf$$.sh
12221 chmod +x conf$$.sh
12222 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12223 PATH_SEPARATOR=';'
12224 else
12225 PATH_SEPARATOR=:
12227 rm -f conf$$.sh
12230 # Find out how to test for executable files. Don't use a zero-byte file,
12231 # as systems may use methods other than mode bits to determine executability.
12232 cat >conf$$.file <<_ASEOF
12233 #! /bin/sh
12234 exit 0
12235 _ASEOF
12236 chmod +x conf$$.file
12237 if test -x conf$$.file >/dev/null 2>&1; then
12238 ac_executable_p="test -x"
12239 else
12240 ac_executable_p="test -f"
12242 rm -f conf$$.file
12244 # Extract the first word of "msgfmt", so it can be a program name with args.
12245 set dummy msgfmt; ac_word=$2
12246 echo "$as_me:$LINENO: checking for $ac_word" >&5
12247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12248 if test "${ac_cv_path_MSGFMT+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251 case "$MSGFMT" in
12252 [\\/]* | ?:[\\/]*)
12253 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12256 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12257 for ac_dir in $PATH; do
12258 IFS="$ac_save_IFS"
12259 test -z "$ac_dir" && ac_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12262 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12263 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12264 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12265 break 2
12268 done
12269 done
12270 IFS="$ac_save_IFS"
12271 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12273 esac
12275 MSGFMT="$ac_cv_path_MSGFMT"
12276 if test "$MSGFMT" != ":"; then
12277 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12278 echo "${ECHO_T}$MSGFMT" >&6
12279 else
12280 echo "$as_me:$LINENO: result: no" >&5
12281 echo "${ECHO_T}no" >&6
12284 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12285 set dummy gmsgfmt; ac_word=$2
12286 echo "$as_me:$LINENO: checking for $ac_word" >&5
12287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12288 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 case $GMSGFMT in
12292 [\\/]* | ?:[\\/]*)
12293 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297 for as_dir in $PATH
12299 IFS=$as_save_IFS
12300 test -z "$as_dir" && as_dir=.
12301 for ac_exec_ext in '' $ac_executable_extensions; do
12302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12303 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12305 break 2
12307 done
12308 done
12310 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12312 esac
12314 GMSGFMT=$ac_cv_path_GMSGFMT
12316 if test -n "$GMSGFMT"; then
12317 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12318 echo "${ECHO_T}$GMSGFMT" >&6
12319 else
12320 echo "$as_me:$LINENO: result: no" >&5
12321 echo "${ECHO_T}no" >&6
12326 # Prepare PATH_SEPARATOR.
12327 # The user is always right.
12328 if test "${PATH_SEPARATOR+set}" != set; then
12329 echo "#! /bin/sh" >conf$$.sh
12330 echo "exit 0" >>conf$$.sh
12331 chmod +x conf$$.sh
12332 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12333 PATH_SEPARATOR=';'
12334 else
12335 PATH_SEPARATOR=:
12337 rm -f conf$$.sh
12340 # Find out how to test for executable files. Don't use a zero-byte file,
12341 # as systems may use methods other than mode bits to determine executability.
12342 cat >conf$$.file <<_ASEOF
12343 #! /bin/sh
12344 exit 0
12345 _ASEOF
12346 chmod +x conf$$.file
12347 if test -x conf$$.file >/dev/null 2>&1; then
12348 ac_executable_p="test -x"
12349 else
12350 ac_executable_p="test -f"
12352 rm -f conf$$.file
12354 # Extract the first word of "xgettext", so it can be a program name with args.
12355 set dummy xgettext; ac_word=$2
12356 echo "$as_me:$LINENO: checking for $ac_word" >&5
12357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12358 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361 case "$XGETTEXT" in
12362 [\\/]* | ?:[\\/]*)
12363 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12366 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12367 for ac_dir in $PATH; do
12368 IFS="$ac_save_IFS"
12369 test -z "$ac_dir" && ac_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
12371 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12372 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12373 (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
12374 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12375 break 2
12378 done
12379 done
12380 IFS="$ac_save_IFS"
12381 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12383 esac
12385 XGETTEXT="$ac_cv_path_XGETTEXT"
12386 if test "$XGETTEXT" != ":"; then
12387 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12388 echo "${ECHO_T}$XGETTEXT" >&6
12389 else
12390 echo "$as_me:$LINENO: result: no" >&5
12391 echo "${ECHO_T}no" >&6
12394 rm -f messages.po
12397 # Prepare PATH_SEPARATOR.
12398 # The user is always right.
12399 if test "${PATH_SEPARATOR+set}" != set; then
12400 echo "#! /bin/sh" >conf$$.sh
12401 echo "exit 0" >>conf$$.sh
12402 chmod +x conf$$.sh
12403 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12404 PATH_SEPARATOR=';'
12405 else
12406 PATH_SEPARATOR=:
12408 rm -f conf$$.sh
12411 # Find out how to test for executable files. Don't use a zero-byte file,
12412 # as systems may use methods other than mode bits to determine executability.
12413 cat >conf$$.file <<_ASEOF
12414 #! /bin/sh
12415 exit 0
12416 _ASEOF
12417 chmod +x conf$$.file
12418 if test -x conf$$.file >/dev/null 2>&1; then
12419 ac_executable_p="test -x"
12420 else
12421 ac_executable_p="test -f"
12423 rm -f conf$$.file
12425 # Extract the first word of "msgmerge", so it can be a program name with args.
12426 set dummy msgmerge; ac_word=$2
12427 echo "$as_me:$LINENO: checking for $ac_word" >&5
12428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12429 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432 case "$MSGMERGE" in
12433 [\\/]* | ?:[\\/]*)
12434 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12437 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12438 for ac_dir in $PATH; do
12439 IFS="$ac_save_IFS"
12440 test -z "$ac_dir" && ac_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12443 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12444 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12445 break 2
12448 done
12449 done
12450 IFS="$ac_save_IFS"
12451 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12453 esac
12455 MSGMERGE="$ac_cv_path_MSGMERGE"
12456 if test "$MSGMERGE" != ":"; then
12457 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12458 echo "${ECHO_T}$MSGMERGE" >&6
12459 else
12460 echo "$as_me:$LINENO: result: no" >&5
12461 echo "${ECHO_T}no" >&6
12465 if test "$GMSGFMT" != ":"; then
12466 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12467 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12469 else
12470 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12471 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12472 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12473 GMSGFMT=":"
12477 if test "$XGETTEXT" != ":"; then
12478 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12479 (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
12481 else
12482 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12483 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12484 XGETTEXT=":"
12486 rm -f messages.po
12489 ac_config_commands="$ac_config_commands default-1"
12493 # Permit host specific settings.
12494 . ${srcdir}/configure.host
12497 # Find a good install program. We prefer a C program (faster),
12498 # so one script is as good as another. But avoid the broken or
12499 # incompatible versions:
12500 # SysV /etc/install, /usr/sbin/install
12501 # SunOS /usr/etc/install
12502 # IRIX /sbin/install
12503 # AIX /bin/install
12504 # AmigaOS /C/install, which installs bootblocks on floppy discs
12505 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12506 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12507 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12508 # OS/2's system install, which has a completely different semantic
12509 # ./install, which can be erroneously created by make from ./install.sh.
12510 # Reject install programs that cannot install multiple files.
12511 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12512 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12513 if test -z "$INSTALL"; then
12514 if test "${ac_cv_path_install+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 # Account for people who put trailing slashes in PATH elements.
12523 case $as_dir/ in
12524 ./ | .// | /cC/* | \
12525 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12526 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12527 /usr/ucb/* ) ;;
12529 # OSF1 and SCO ODT 3.0 have their own names for install.
12530 # Don't use installbsd from OSF since it installs stuff as root
12531 # by default.
12532 for ac_prog in ginstall scoinst install; do
12533 for ac_exec_ext in '' $ac_executable_extensions; do
12534 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12535 if test $ac_prog = install &&
12536 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12537 # AIX install. It has an incompatible calling convention.
12539 elif test $ac_prog = install &&
12540 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12541 # program-specific install script used by HP pwplus--don't use.
12543 else
12544 rm -rf conftest.one conftest.two conftest.dir
12545 echo one > conftest.one
12546 echo two > conftest.two
12547 mkdir conftest.dir
12548 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12549 test -s conftest.one && test -s conftest.two &&
12550 test -s conftest.dir/conftest.one &&
12551 test -s conftest.dir/conftest.two
12552 then
12553 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12554 break 3
12558 done
12559 done
12561 esac
12562 done
12564 rm -rf conftest.one conftest.two conftest.dir
12567 if test "${ac_cv_path_install+set}" = set; then
12568 INSTALL=$ac_cv_path_install
12569 else
12570 # As a last resort, use the slow shell script. Don't cache a
12571 # value for INSTALL within a source directory, because that will
12572 # break other packages using the cache if that directory is
12573 # removed, or if the value is a relative name.
12574 INSTALL=$ac_install_sh
12577 echo "$as_me:$LINENO: result: $INSTALL" >&5
12578 echo "${ECHO_T}$INSTALL" >&6
12580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12581 # It thinks the first close brace ends the variable substitution.
12582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12589 BFD_HOST_64BIT_LONG=0
12590 BFD_HOST_64BIT_LONG_LONG=0
12591 BFD_HOST_64_BIT_DEFINED=0
12592 BFD_HOST_64_BIT=
12593 BFD_HOST_U_64_BIT=
12594 BFD_HOSTPTR_T="unsigned long"
12596 echo "$as_me:$LINENO: checking for long long" >&5
12597 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12598 if test "${ac_cv_type_long_long+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 else
12601 cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h. */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12607 $ac_includes_default
12609 main ()
12611 if ((long long *) 0)
12612 return 0;
12613 if (sizeof (long long))
12614 return 0;
12616 return 0;
12618 _ACEOF
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
12628 { ac_try='test -z "$ac_c_werror_flag"
12629 || test ! -s conftest.err'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest.$ac_objext'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; }; then
12641 ac_cv_type_long_long=yes
12642 else
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 ac_cv_type_long_long=no
12648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12650 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12651 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12653 echo "$as_me:$LINENO: checking size of long long" >&5
12654 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12655 if test "${ac_cv_sizeof_long_long+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658 if test "$ac_cv_type_long_long" = yes; then
12659 # The cast to unsigned long works around a bug in the HP C Compiler
12660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12662 # This bug is HP SR number 8606223364.
12663 if test "$cross_compiling" = yes; then
12664 # Depending upon the size, compute the lo and hi bounds.
12665 cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h. */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12671 $ac_includes_default
12673 main ()
12675 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12676 test_array [0] = 0
12679 return 0;
12681 _ACEOF
12682 rm -f conftest.$ac_objext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684 (eval $ac_compile) 2>conftest.er1
12685 ac_status=$?
12686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
12691 { ac_try='test -z "$ac_c_werror_flag"
12692 || test ! -s conftest.err'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest.$ac_objext'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; }; then
12704 ac_lo=0 ac_mid=0
12705 while :; do
12706 cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h. */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 $ac_includes_default
12714 main ()
12716 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12717 test_array [0] = 0
12720 return 0;
12722 _ACEOF
12723 rm -f conftest.$ac_objext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725 (eval $ac_compile) 2>conftest.er1
12726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -z "$ac_c_werror_flag"
12733 || test ! -s conftest.err'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest.$ac_objext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_hi=$ac_mid; break
12746 else
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12750 ac_lo=`expr $ac_mid + 1`
12751 if test $ac_lo -le $ac_mid; then
12752 ac_lo= ac_hi=
12753 break
12755 ac_mid=`expr 2 '*' $ac_mid + 1`
12757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12758 done
12759 else
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 $ac_includes_default
12771 main ()
12773 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12774 test_array [0] = 0
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12782 (eval $ac_compile) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest.$ac_objext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_hi=-1 ac_mid=-1
12803 while :; do
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h. */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 $ac_includes_default
12812 main ()
12814 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12815 test_array [0] = 0
12818 return 0;
12820 _ACEOF
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823 (eval $ac_compile) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -z "$ac_c_werror_flag"
12831 || test ! -s conftest.err'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest.$ac_objext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 ac_lo=$ac_mid; break
12844 else
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ac_hi=`expr '(' $ac_mid ')' - 1`
12849 if test $ac_mid -le $ac_hi; then
12850 ac_lo= ac_hi=
12851 break
12853 ac_mid=`expr 2 '*' $ac_mid`
12855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12856 done
12857 else
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12861 ac_lo= ac_hi=
12863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866 # Binary search between lo and hi bounds.
12867 while test "x$ac_lo" != "x$ac_hi"; do
12868 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12869 cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h. */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12875 $ac_includes_default
12877 main ()
12879 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12880 test_array [0] = 0
12883 return 0;
12885 _ACEOF
12886 rm -f conftest.$ac_objext
12887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12888 (eval $ac_compile) 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -z "$ac_c_werror_flag"
12896 || test ! -s conftest.err'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; } &&
12902 { ac_try='test -s conftest.$ac_objext'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; }; then
12908 ac_hi=$ac_mid
12909 else
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12913 ac_lo=`expr '(' $ac_mid ')' + 1`
12915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12916 done
12917 case $ac_lo in
12918 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12919 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12920 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12921 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12922 See \`config.log' for more details." >&5
12923 echo "$as_me: error: cannot compute sizeof (long long), 77
12924 See \`config.log' for more details." >&2;}
12925 { (exit 1); exit 1; }; }; } ;;
12926 esac
12927 else
12928 if test "$cross_compiling" = yes; then
12929 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12930 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12931 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12932 See \`config.log' for more details." >&5
12933 echo "$as_me: error: cannot run test program while cross compiling
12934 See \`config.log' for more details." >&2;}
12935 { (exit 1); exit 1; }; }; }
12936 else
12937 cat >conftest.$ac_ext <<_ACEOF
12938 /* confdefs.h. */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 $ac_includes_default
12944 long longval () { return (long) (sizeof (long long)); }
12945 unsigned long ulongval () { return (long) (sizeof (long long)); }
12946 #include <stdio.h>
12947 #include <stdlib.h>
12949 main ()
12952 FILE *f = fopen ("conftest.val", "w");
12953 if (! f)
12954 exit (1);
12955 if (((long) (sizeof (long long))) < 0)
12957 long i = longval ();
12958 if (i != ((long) (sizeof (long long))))
12959 exit (1);
12960 fprintf (f, "%ld\n", i);
12962 else
12964 unsigned long i = ulongval ();
12965 if (i != ((long) (sizeof (long long))))
12966 exit (1);
12967 fprintf (f, "%lu\n", i);
12969 exit (ferror (f) || fclose (f) != 0);
12972 return 0;
12974 _ACEOF
12975 rm -f conftest$ac_exeext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977 (eval $ac_link) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 ac_cv_sizeof_long_long=`cat conftest.val`
12987 else
12988 echo "$as_me: program exited with status $ac_status" >&5
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 ( exit $ac_status )
12993 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12994 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12995 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12996 See \`config.log' for more details." >&5
12997 echo "$as_me: error: cannot compute sizeof (long long), 77
12998 See \`config.log' for more details." >&2;}
12999 { (exit 1); exit 1; }; }; }
13001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13004 rm -f conftest.val
13005 else
13006 ac_cv_sizeof_long_long=0
13009 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13010 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13011 cat >>confdefs.h <<_ACEOF
13012 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13013 _ACEOF
13016 echo "$as_me:$LINENO: checking for void *" >&5
13017 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13018 if test "${ac_cv_type_void_p+set}" = set; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 else
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h. */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027 $ac_includes_default
13029 main ()
13031 if ((void * *) 0)
13032 return 0;
13033 if (sizeof (void *))
13034 return 0;
13036 return 0;
13038 _ACEOF
13039 rm -f conftest.$ac_objext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>conftest.er1
13042 ac_status=$?
13043 grep -v '^ *+' conftest.er1 >conftest.err
13044 rm -f conftest.er1
13045 cat conftest.err >&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -z "$ac_c_werror_flag"
13049 || test ! -s conftest.err'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; } &&
13055 { ac_try='test -s conftest.$ac_objext'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 ac_cv_type_void_p=yes
13062 else
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 ac_cv_type_void_p=no
13068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13070 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13071 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13073 echo "$as_me:$LINENO: checking size of void *" >&5
13074 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13075 if test "${ac_cv_sizeof_void_p+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 else
13078 if test "$ac_cv_type_void_p" = yes; then
13079 # The cast to unsigned long works around a bug in the HP C Compiler
13080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13082 # This bug is HP SR number 8606223364.
13083 if test "$cross_compiling" = yes; then
13084 # Depending upon the size, compute the lo and hi bounds.
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h. */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 $ac_includes_default
13093 main ()
13095 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13096 test_array [0] = 0
13099 return 0;
13101 _ACEOF
13102 rm -f conftest.$ac_objext
13103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104 (eval $ac_compile) 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
13111 { ac_try='test -z "$ac_c_werror_flag"
13112 || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest.$ac_objext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_lo=0 ac_mid=0
13125 while :; do
13126 cat >conftest.$ac_ext <<_ACEOF
13127 /* confdefs.h. */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13132 $ac_includes_default
13134 main ()
13136 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13137 test_array [0] = 0
13140 return 0;
13142 _ACEOF
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -z "$ac_c_werror_flag"
13153 || test ! -s conftest.err'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; } &&
13159 { ac_try='test -s conftest.$ac_objext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_hi=$ac_mid; break
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_lo=`expr $ac_mid + 1`
13171 if test $ac_lo -le $ac_mid; then
13172 ac_lo= ac_hi=
13173 break
13175 ac_mid=`expr 2 '*' $ac_mid + 1`
13177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13178 done
13179 else
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 $ac_includes_default
13191 main ()
13193 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13194 test_array [0] = 0
13197 return 0;
13199 _ACEOF
13200 rm -f conftest.$ac_objext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13202 (eval $ac_compile) 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -z "$ac_c_werror_flag"
13210 || test ! -s conftest.err'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; } &&
13216 { ac_try='test -s conftest.$ac_objext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 ac_hi=-1 ac_mid=-1
13223 while :; do
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h. */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 $ac_includes_default
13232 main ()
13234 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13235 test_array [0] = 0
13238 return 0;
13240 _ACEOF
13241 rm -f conftest.$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -z "$ac_c_werror_flag"
13251 || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_lo=$ac_mid; break
13264 else
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13268 ac_hi=`expr '(' $ac_mid ')' - 1`
13269 if test $ac_mid -le $ac_hi; then
13270 ac_lo= ac_hi=
13271 break
13273 ac_mid=`expr 2 '*' $ac_mid`
13275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13276 done
13277 else
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ac_lo= ac_hi=
13283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13286 # Binary search between lo and hi bounds.
13287 while test "x$ac_lo" != "x$ac_hi"; do
13288 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 $ac_includes_default
13297 main ()
13299 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13300 test_array [0] = 0
13303 return 0;
13305 _ACEOF
13306 rm -f conftest.$ac_objext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>conftest.er1
13309 ac_status=$?
13310 grep -v '^ *+' conftest.er1 >conftest.err
13311 rm -f conftest.er1
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag"
13316 || test ! -s conftest.err'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest.$ac_objext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 ac_hi=$ac_mid
13329 else
13330 echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13333 ac_lo=`expr '(' $ac_mid ')' + 1`
13335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13336 done
13337 case $ac_lo in
13338 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13339 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13340 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13342 See \`config.log' for more details." >&5
13343 echo "$as_me: error: cannot compute sizeof (void *), 77
13344 See \`config.log' for more details." >&2;}
13345 { (exit 1); exit 1; }; }; } ;;
13346 esac
13347 else
13348 if test "$cross_compiling" = yes; then
13349 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13350 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13351 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13352 See \`config.log' for more details." >&5
13353 echo "$as_me: error: cannot run test program while cross compiling
13354 See \`config.log' for more details." >&2;}
13355 { (exit 1); exit 1; }; }; }
13356 else
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 $ac_includes_default
13364 long longval () { return (long) (sizeof (void *)); }
13365 unsigned long ulongval () { return (long) (sizeof (void *)); }
13366 #include <stdio.h>
13367 #include <stdlib.h>
13369 main ()
13372 FILE *f = fopen ("conftest.val", "w");
13373 if (! f)
13374 exit (1);
13375 if (((long) (sizeof (void *))) < 0)
13377 long i = longval ();
13378 if (i != ((long) (sizeof (void *))))
13379 exit (1);
13380 fprintf (f, "%ld\n", i);
13382 else
13384 unsigned long i = ulongval ();
13385 if (i != ((long) (sizeof (void *))))
13386 exit (1);
13387 fprintf (f, "%lu\n", i);
13389 exit (ferror (f) || fclose (f) != 0);
13392 return 0;
13394 _ACEOF
13395 rm -f conftest$ac_exeext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13397 (eval $ac_link) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 ac_cv_sizeof_void_p=`cat conftest.val`
13407 else
13408 echo "$as_me: program exited with status $ac_status" >&5
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ( exit $ac_status )
13413 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13414 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13416 See \`config.log' for more details." >&5
13417 echo "$as_me: error: cannot compute sizeof (void *), 77
13418 See \`config.log' for more details." >&2;}
13419 { (exit 1); exit 1; }; }; }
13421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13424 rm -f conftest.val
13425 else
13426 ac_cv_sizeof_void_p=0
13429 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13430 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13431 cat >>confdefs.h <<_ACEOF
13432 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13433 _ACEOF
13436 echo "$as_me:$LINENO: checking for long" >&5
13437 echo $ECHO_N "checking for long... $ECHO_C" >&6
13438 if test "${ac_cv_type_long+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441 cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h. */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13447 $ac_includes_default
13449 main ()
13451 if ((long *) 0)
13452 return 0;
13453 if (sizeof (long))
13454 return 0;
13456 return 0;
13458 _ACEOF
13459 rm -f conftest.$ac_objext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461 (eval $ac_compile) 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag"
13469 || test ! -s conftest.err'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; } &&
13475 { ac_try='test -s conftest.$ac_objext'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481 ac_cv_type_long=yes
13482 else
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 ac_cv_type_long=no
13488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13490 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13491 echo "${ECHO_T}$ac_cv_type_long" >&6
13493 echo "$as_me:$LINENO: checking size of long" >&5
13494 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13495 if test "${ac_cv_sizeof_long+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498 if test "$ac_cv_type_long" = yes; then
13499 # The cast to unsigned long works around a bug in the HP C Compiler
13500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13502 # This bug is HP SR number 8606223364.
13503 if test "$cross_compiling" = yes; then
13504 # Depending upon the size, compute the lo and hi bounds.
13505 cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h. */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 $ac_includes_default
13513 main ()
13515 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13516 test_array [0] = 0
13519 return 0;
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 (eval $ac_compile) 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } &&
13531 { ac_try='test -z "$ac_c_werror_flag"
13532 || test ! -s conftest.err'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest.$ac_objext'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13541 ac_status=$?
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 ac_lo=0 ac_mid=0
13545 while :; do
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h. */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 $ac_includes_default
13554 main ()
13556 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13557 test_array [0] = 0
13560 return 0;
13562 _ACEOF
13563 rm -f conftest.$ac_objext
13564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13565 (eval $ac_compile) 2>conftest.er1
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -z "$ac_c_werror_flag"
13573 || test ! -s conftest.err'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
13579 { ac_try='test -s conftest.$ac_objext'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_hi=$ac_mid; break
13586 else
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 ac_lo=`expr $ac_mid + 1`
13591 if test $ac_lo -le $ac_mid; then
13592 ac_lo= ac_hi=
13593 break
13595 ac_mid=`expr 2 '*' $ac_mid + 1`
13597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13598 done
13599 else
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 $ac_includes_default
13611 main ()
13613 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13614 test_array [0] = 0
13617 return 0;
13619 _ACEOF
13620 rm -f conftest.$ac_objext
13621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
13629 { ac_try='test -z "$ac_c_werror_flag"
13630 || test ! -s conftest.err'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try='test -s conftest.$ac_objext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 ac_hi=-1 ac_mid=-1
13643 while :; do
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 $ac_includes_default
13652 main ()
13654 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13655 test_array [0] = 0
13658 return 0;
13660 _ACEOF
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -z "$ac_c_werror_flag"
13671 || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest.$ac_objext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_lo=$ac_mid; break
13684 else
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13688 ac_hi=`expr '(' $ac_mid ')' - 1`
13689 if test $ac_mid -le $ac_hi; then
13690 ac_lo= ac_hi=
13691 break
13693 ac_mid=`expr 2 '*' $ac_mid`
13695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13696 done
13697 else
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 ac_lo= ac_hi=
13703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13706 # Binary search between lo and hi bounds.
13707 while test "x$ac_lo" != "x$ac_hi"; do
13708 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13709 cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h. */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 $ac_includes_default
13717 main ()
13719 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13720 test_array [0] = 0
13723 return 0;
13725 _ACEOF
13726 rm -f conftest.$ac_objext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13728 (eval $ac_compile) 2>conftest.er1
13729 ac_status=$?
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
13735 { ac_try='test -z "$ac_c_werror_flag"
13736 || test ! -s conftest.err'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; } &&
13742 { ac_try='test -s conftest.$ac_objext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 ac_hi=$ac_mid
13749 else
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ac_lo=`expr '(' $ac_mid ')' + 1`
13755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13756 done
13757 case $ac_lo in
13758 ?*) ac_cv_sizeof_long=$ac_lo;;
13759 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13760 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13762 See \`config.log' for more details." >&5
13763 echo "$as_me: error: cannot compute sizeof (long), 77
13764 See \`config.log' for more details." >&2;}
13765 { (exit 1); exit 1; }; }; } ;;
13766 esac
13767 else
13768 if test "$cross_compiling" = yes; then
13769 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13770 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13771 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13772 See \`config.log' for more details." >&5
13773 echo "$as_me: error: cannot run test program while cross compiling
13774 See \`config.log' for more details." >&2;}
13775 { (exit 1); exit 1; }; }; }
13776 else
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 $ac_includes_default
13784 long longval () { return (long) (sizeof (long)); }
13785 unsigned long ulongval () { return (long) (sizeof (long)); }
13786 #include <stdio.h>
13787 #include <stdlib.h>
13789 main ()
13792 FILE *f = fopen ("conftest.val", "w");
13793 if (! f)
13794 exit (1);
13795 if (((long) (sizeof (long))) < 0)
13797 long i = longval ();
13798 if (i != ((long) (sizeof (long))))
13799 exit (1);
13800 fprintf (f, "%ld\n", i);
13802 else
13804 unsigned long i = ulongval ();
13805 if (i != ((long) (sizeof (long))))
13806 exit (1);
13807 fprintf (f, "%lu\n", i);
13809 exit (ferror (f) || fclose (f) != 0);
13812 return 0;
13814 _ACEOF
13815 rm -f conftest$ac_exeext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817 (eval $ac_link) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 ac_cv_sizeof_long=`cat conftest.val`
13827 else
13828 echo "$as_me: program exited with status $ac_status" >&5
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ( exit $ac_status )
13833 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13834 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13836 See \`config.log' for more details." >&5
13837 echo "$as_me: error: cannot compute sizeof (long), 77
13838 See \`config.log' for more details." >&2;}
13839 { (exit 1); exit 1; }; }; }
13841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13844 rm -f conftest.val
13845 else
13846 ac_cv_sizeof_long=0
13849 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13850 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13851 cat >>confdefs.h <<_ACEOF
13852 #define SIZEOF_LONG $ac_cv_sizeof_long
13853 _ACEOF
13857 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13858 host64=true
13861 if test "x${ac_cv_sizeof_long}" = "x8"; then
13862 BFD_HOST_64BIT_LONG=1
13863 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13864 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13865 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13866 BFD_HOST_64BIT_LONG_LONG=1
13867 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13868 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13869 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13870 BFD_HOSTPTR_T="unsigned long long"
13874 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13875 BFD_HOST_64_BIT_DEFINED=1
13876 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13877 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13887 # Put a plausible default for CC_FOR_BUILD in Makefile.
13888 if test -z "$CC_FOR_BUILD"; then
13889 if test "x$cross_compiling" = "xno"; then
13890 CC_FOR_BUILD='$(CC)'
13891 else
13892 CC_FOR_BUILD=gcc
13896 # Also set EXEEXT_FOR_BUILD.
13897 if test "x$cross_compiling" = "xno"; then
13898 EXEEXT_FOR_BUILD='$(EXEEXT)'
13899 else
13900 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13901 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13902 if test "${bfd_cv_build_exeext+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905 rm -f conftest*
13906 echo 'int main () { return 0; }' > conftest.c
13907 bfd_cv_build_exeext=
13908 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13909 for file in conftest.*; do
13910 case $file in
13911 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13912 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13913 esac
13914 done
13915 rm -f conftest*
13916 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13918 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13919 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13920 EXEEXT_FOR_BUILD=""
13921 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13932 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
13934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13936 echo "$as_me:$LINENO: checking for $ac_header" >&5
13937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13943 else
13944 # Is the header compilable?
13945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13947 cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h. */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 $ac_includes_default
13954 #include <$ac_header>
13955 _ACEOF
13956 rm -f conftest.$ac_objext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_header_compiler=yes
13979 else
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 ac_header_compiler=no
13985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13987 echo "${ECHO_T}$ac_header_compiler" >&6
13989 # Is the header present?
13990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13992 cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h. */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 #include <$ac_header>
13999 _ACEOF
14000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14002 ac_status=$?
14003 grep -v '^ *+' conftest.er1 >conftest.err
14004 rm -f conftest.er1
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } >/dev/null; then
14008 if test -s conftest.err; then
14009 ac_cpp_err=$ac_c_preproc_warn_flag
14010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14011 else
14012 ac_cpp_err=
14014 else
14015 ac_cpp_err=yes
14017 if test -z "$ac_cpp_err"; then
14018 ac_header_preproc=yes
14019 else
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 ac_header_preproc=no
14025 rm -f conftest.err conftest.$ac_ext
14026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14027 echo "${ECHO_T}$ac_header_preproc" >&6
14029 # So? What about this header?
14030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14031 yes:no: )
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14036 ac_header_preproc=yes
14038 no:yes:* )
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14052 cat <<\_ASBOX
14053 ## ------------------------------------------ ##
14054 ## Report this to the AC_PACKAGE_NAME lists. ##
14055 ## ------------------------------------------ ##
14056 _ASBOX
14058 sed "s/^/$as_me: WARNING: /" >&2
14060 esac
14061 echo "$as_me:$LINENO: checking for $ac_header" >&5
14062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 eval "$as_ac_Header=\$ac_header_preproc"
14068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14075 _ACEOF
14079 done
14084 for ac_header in fcntl.h sys/file.h sys/time.h
14086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14088 echo "$as_me:$LINENO: checking for $ac_header" >&5
14089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14095 else
14096 # Is the header compilable?
14097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14099 cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h. */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 $ac_includes_default
14106 #include <$ac_header>
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -z "$ac_c_werror_flag"
14118 || test ! -s conftest.err'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest.$ac_objext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 ac_header_compiler=yes
14131 else
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14135 ac_header_compiler=no
14137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14139 echo "${ECHO_T}$ac_header_compiler" >&6
14141 # Is the header present?
14142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h. */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150 #include <$ac_header>
14151 _ACEOF
14152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } >/dev/null; then
14160 if test -s conftest.err; then
14161 ac_cpp_err=$ac_c_preproc_warn_flag
14162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14163 else
14164 ac_cpp_err=
14166 else
14167 ac_cpp_err=yes
14169 if test -z "$ac_cpp_err"; then
14170 ac_header_preproc=yes
14171 else
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 ac_header_preproc=no
14177 rm -f conftest.err conftest.$ac_ext
14178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14179 echo "${ECHO_T}$ac_header_preproc" >&6
14181 # So? What about this header?
14182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14183 yes:no: )
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14188 ac_header_preproc=yes
14190 no:yes:* )
14191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14204 cat <<\_ASBOX
14205 ## ------------------------------------------ ##
14206 ## Report this to the AC_PACKAGE_NAME lists. ##
14207 ## ------------------------------------------ ##
14208 _ASBOX
14210 sed "s/^/$as_me: WARNING: /" >&2
14212 esac
14213 echo "$as_me:$LINENO: checking for $ac_header" >&5
14214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218 eval "$as_ac_Header=\$ac_header_preproc"
14220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14225 cat >>confdefs.h <<_ACEOF
14226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14227 _ACEOF
14231 done
14235 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14237 acx_cv_header_stdint=stddef.h
14238 acx_cv_header_stdint_kind="(already complete)"
14239 for i in stdint.h $inttype_headers; do
14240 unset ac_cv_type_uintptr_t
14241 unset ac_cv_type_uintmax_t
14242 unset ac_cv_type_int_least32_t
14243 unset ac_cv_type_int_fast32_t
14244 unset ac_cv_type_uint64_t
14245 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14246 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14247 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14248 if test "${ac_cv_type_uintmax_t+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251 cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h. */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 #include <sys/types.h>
14258 #include <$i>
14261 main ()
14263 if ((uintmax_t *) 0)
14264 return 0;
14265 if (sizeof (uintmax_t))
14266 return 0;
14268 return 0;
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_type_uintmax_t=yes
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_cv_type_uintmax_t=no
14300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14302 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14303 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14304 if test $ac_cv_type_uintmax_t = yes; then
14305 acx_cv_header_stdint=$i
14306 else
14307 continue
14310 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14311 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14312 if test "${ac_cv_type_uintptr_t+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315 cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h. */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 #include <sys/types.h>
14322 #include <$i>
14325 main ()
14327 if ((uintptr_t *) 0)
14328 return 0;
14329 if (sizeof (uintptr_t))
14330 return 0;
14332 return 0;
14334 _ACEOF
14335 rm -f conftest.$ac_objext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337 (eval $ac_compile) 2>conftest.er1
14338 ac_status=$?
14339 grep -v '^ *+' conftest.er1 >conftest.err
14340 rm -f conftest.er1
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
14344 { ac_try='test -z "$ac_c_werror_flag"
14345 || test ! -s conftest.err'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest.$ac_objext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_cv_type_uintptr_t=yes
14358 else
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 ac_cv_type_uintptr_t=no
14364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14366 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14367 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14368 if test $ac_cv_type_uintptr_t = yes; then
14370 else
14371 acx_cv_header_stdint_kind="(mostly complete)"
14374 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14375 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14376 if test "${ac_cv_type_int_least32_t+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379 cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h. */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 #include <sys/types.h>
14386 #include <$i>
14389 main ()
14391 if ((int_least32_t *) 0)
14392 return 0;
14393 if (sizeof (int_least32_t))
14394 return 0;
14396 return 0;
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>conftest.er1
14402 ac_status=$?
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag"
14409 || test ! -s conftest.err'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest.$ac_objext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_cv_type_int_least32_t=yes
14422 else
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_type_int_least32_t=no
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14430 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14431 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14432 if test $ac_cv_type_int_least32_t = yes; then
14434 else
14435 acx_cv_header_stdint_kind="(mostly complete)"
14438 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14439 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14440 if test "${ac_cv_type_int_fast32_t+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 else
14443 cat >conftest.$ac_ext <<_ACEOF
14444 /* confdefs.h. */
14445 _ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 #include <sys/types.h>
14450 #include <$i>
14453 main ()
14455 if ((int_fast32_t *) 0)
14456 return 0;
14457 if (sizeof (int_fast32_t))
14458 return 0;
14460 return 0;
14462 _ACEOF
14463 rm -f conftest.$ac_objext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14465 (eval $ac_compile) 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -z "$ac_c_werror_flag"
14473 || test ! -s conftest.err'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; } &&
14479 { ac_try='test -s conftest.$ac_objext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 ac_cv_type_int_fast32_t=yes
14486 else
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14490 ac_cv_type_int_fast32_t=no
14492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14494 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14495 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14496 if test $ac_cv_type_int_fast32_t = yes; then
14498 else
14499 acx_cv_header_stdint_kind="(mostly complete)"
14502 echo "$as_me:$LINENO: checking for uint64_t" >&5
14503 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14504 if test "${ac_cv_type_uint64_t+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 else
14507 cat >conftest.$ac_ext <<_ACEOF
14508 /* confdefs.h. */
14509 _ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14513 #include <sys/types.h>
14514 #include <$i>
14517 main ()
14519 if ((uint64_t *) 0)
14520 return 0;
14521 if (sizeof (uint64_t))
14522 return 0;
14524 return 0;
14526 _ACEOF
14527 rm -f conftest.$ac_objext
14528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14529 (eval $ac_compile) 2>conftest.er1
14530 ac_status=$?
14531 grep -v '^ *+' conftest.er1 >conftest.err
14532 rm -f conftest.er1
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -z "$ac_c_werror_flag"
14537 || test ! -s conftest.err'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try='test -s conftest.$ac_objext'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 ac_cv_type_uint64_t=yes
14550 else
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 ac_cv_type_uint64_t=no
14556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14558 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14559 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14560 if test $ac_cv_type_uint64_t = yes; then
14562 else
14563 acx_cv_header_stdint_kind="(lacks uint64_t)"
14566 break
14567 done
14568 if test "$acx_cv_header_stdint" = stddef.h; then
14569 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14570 for i in stdint.h $inttype_headers; do
14571 unset ac_cv_type_uintptr_t
14572 unset ac_cv_type_uint32_t
14573 unset ac_cv_type_uint64_t
14574 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14575 echo "$as_me:$LINENO: checking for uint32_t" >&5
14576 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14577 if test "${ac_cv_type_uint32_t+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 else
14580 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h. */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 #include <sys/types.h>
14587 #include <$i>
14590 main ()
14592 if ((uint32_t *) 0)
14593 return 0;
14594 if (sizeof (uint32_t))
14595 return 0;
14597 return 0;
14599 _ACEOF
14600 rm -f conftest.$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602 (eval $ac_compile) 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag"
14610 || test ! -s conftest.err'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; } &&
14616 { ac_try='test -s conftest.$ac_objext'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }; then
14622 ac_cv_type_uint32_t=yes
14623 else
14624 echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14627 ac_cv_type_uint32_t=no
14629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14631 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14632 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14633 if test $ac_cv_type_uint32_t = yes; then
14634 acx_cv_header_stdint=$i
14635 else
14636 continue
14639 echo "$as_me:$LINENO: checking for uint64_t" >&5
14640 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14641 if test "${ac_cv_type_uint64_t+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644 cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h. */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 #include <sys/types.h>
14651 #include <$i>
14654 main ()
14656 if ((uint64_t *) 0)
14657 return 0;
14658 if (sizeof (uint64_t))
14659 return 0;
14661 return 0;
14663 _ACEOF
14664 rm -f conftest.$ac_objext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14666 (eval $ac_compile) 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try='test -z "$ac_c_werror_flag"
14674 || test ! -s conftest.err'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; } &&
14680 { ac_try='test -s conftest.$ac_objext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14683 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 ac_cv_type_uint64_t=yes
14687 else
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 ac_cv_type_uint64_t=no
14693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14695 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14696 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14698 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14699 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14700 if test "${ac_cv_type_uintptr_t+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703 cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h. */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 #include <sys/types.h>
14710 #include <$i>
14713 main ()
14715 if ((uintptr_t *) 0)
14716 return 0;
14717 if (sizeof (uintptr_t))
14718 return 0;
14720 return 0;
14722 _ACEOF
14723 rm -f conftest.$ac_objext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14725 (eval $ac_compile) 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -z "$ac_c_werror_flag"
14733 || test ! -s conftest.err'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; } &&
14739 { ac_try='test -s conftest.$ac_objext'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 ac_cv_type_uintptr_t=yes
14746 else
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 ac_cv_type_uintptr_t=no
14752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14754 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14755 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14757 break
14758 done
14760 if test "$acx_cv_header_stdint" = stddef.h; then
14761 acx_cv_header_stdint_kind="(u_intXX_t style)"
14762 for i in sys/types.h $inttype_headers; do
14763 unset ac_cv_type_u_int32_t
14764 unset ac_cv_type_u_int64_t
14765 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14766 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14767 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14768 if test "${ac_cv_type_u_int32_t+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 else
14771 cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h. */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 #include <sys/types.h>
14778 #include <$i>
14781 main ()
14783 if ((u_int32_t *) 0)
14784 return 0;
14785 if (sizeof (u_int32_t))
14786 return 0;
14788 return 0;
14790 _ACEOF
14791 rm -f conftest.$ac_objext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
14800 { ac_try='test -z "$ac_c_werror_flag"
14801 || test ! -s conftest.err'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 ac_cv_type_u_int32_t=yes
14814 else
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_cv_type_u_int32_t=no
14820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14823 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14824 if test $ac_cv_type_u_int32_t = yes; then
14825 acx_cv_header_stdint=$i
14826 else
14827 continue
14830 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14831 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14832 if test "${ac_cv_type_u_int64_t+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 else
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h. */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 #include <sys/types.h>
14842 #include <$i>
14845 main ()
14847 if ((u_int64_t *) 0)
14848 return 0;
14849 if (sizeof (u_int64_t))
14850 return 0;
14852 return 0;
14854 _ACEOF
14855 rm -f conftest.$ac_objext
14856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14857 (eval $ac_compile) 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -z "$ac_c_werror_flag"
14865 || test ! -s conftest.err'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_cv_type_u_int64_t=yes
14878 else
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 ac_cv_type_u_int64_t=no
14884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14886 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14887 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14889 break
14890 done
14892 if test "$acx_cv_header_stdint" = stddef.h; then
14893 acx_cv_header_stdint_kind="(using manual detection)"
14896 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14897 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14898 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14899 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14900 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14902 # ----------------- Summarize what we found so far
14904 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14905 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14907 case `$as_basename bfd_stdint.h ||
14908 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14909 Xbfd_stdint.h : 'X\(//\)$' \| \
14910 Xbfd_stdint.h : 'X\(/\)$' \| \
14911 . : '\(.\)' 2>/dev/null ||
14912 echo X/bfd_stdint.h |
14913 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14914 /^X\/\(\/\/\)$/{ s//\1/; q; }
14915 /^X\/\(\/\).*/{ s//\1/; q; }
14916 s/.*/./; q'` in
14917 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14918 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14919 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14920 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14921 *) ;;
14922 esac
14924 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14925 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14927 # ----------------- done included file, check C basic types --------
14929 # Lacking an uintptr_t? Test size of void *
14930 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14931 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14932 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14933 if test "${ac_cv_type_void_p+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936 cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h. */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 $ac_includes_default
14944 main ()
14946 if ((void * *) 0)
14947 return 0;
14948 if (sizeof (void *))
14949 return 0;
14951 return 0;
14953 _ACEOF
14954 rm -f conftest.$ac_objext
14955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14956 (eval $ac_compile) 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try='test -z "$ac_c_werror_flag"
14964 || test ! -s conftest.err'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try='test -s conftest.$ac_objext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 ac_cv_type_void_p=yes
14977 else
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ac_cv_type_void_p=no
14983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14985 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14986 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14988 echo "$as_me:$LINENO: checking size of void *" >&5
14989 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14990 if test "${ac_cv_sizeof_void_p+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993 if test "$ac_cv_type_void_p" = yes; then
14994 # The cast to unsigned long works around a bug in the HP C Compiler
14995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14997 # This bug is HP SR number 8606223364.
14998 if test "$cross_compiling" = yes; then
14999 # Depending upon the size, compute the lo and hi bounds.
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 $ac_includes_default
15008 main ()
15010 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15011 test_array [0] = 0
15014 return 0;
15016 _ACEOF
15017 rm -f conftest.$ac_objext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15019 (eval $ac_compile) 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag"
15027 || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest.$ac_objext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_lo=0 ac_mid=0
15040 while :; do
15041 cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h. */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15049 main ()
15051 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15052 test_array [0] = 0
15055 return 0;
15057 _ACEOF
15058 rm -f conftest.$ac_objext
15059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15060 (eval $ac_compile) 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -z "$ac_c_werror_flag"
15068 || test ! -s conftest.err'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 ac_hi=$ac_mid; break
15081 else
15082 echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15085 ac_lo=`expr $ac_mid + 1`
15086 if test $ac_lo -le $ac_mid; then
15087 ac_lo= ac_hi=
15088 break
15090 ac_mid=`expr 2 '*' $ac_mid + 1`
15092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15093 done
15094 else
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15098 cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h. */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15106 main ()
15108 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15109 test_array [0] = 0
15112 return 0;
15114 _ACEOF
15115 rm -f conftest.$ac_objext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15117 (eval $ac_compile) 2>conftest.er1
15118 ac_status=$?
15119 grep -v '^ *+' conftest.er1 >conftest.err
15120 rm -f conftest.er1
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } &&
15124 { ac_try='test -z "$ac_c_werror_flag"
15125 || test ! -s conftest.err'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } &&
15131 { ac_try='test -s conftest.$ac_objext'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_hi=-1 ac_mid=-1
15138 while :; do
15139 cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h. */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15145 $ac_includes_default
15147 main ()
15149 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15150 test_array [0] = 0
15153 return 0;
15155 _ACEOF
15156 rm -f conftest.$ac_objext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158 (eval $ac_compile) 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
15165 { ac_try='test -z "$ac_c_werror_flag"
15166 || test ! -s conftest.err'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; } &&
15172 { ac_try='test -s conftest.$ac_objext'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 ac_lo=$ac_mid; break
15179 else
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 ac_hi=`expr '(' $ac_mid ')' - 1`
15184 if test $ac_mid -le $ac_hi; then
15185 ac_lo= ac_hi=
15186 break
15188 ac_mid=`expr 2 '*' $ac_mid`
15190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15191 done
15192 else
15193 echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15196 ac_lo= ac_hi=
15198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15201 # Binary search between lo and hi bounds.
15202 while test "x$ac_lo" != "x$ac_hi"; do
15203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15204 cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h. */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 $ac_includes_default
15212 main ()
15214 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15215 test_array [0] = 0
15218 return 0;
15220 _ACEOF
15221 rm -f conftest.$ac_objext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223 (eval $ac_compile) 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag"
15231 || test ! -s conftest.err'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest.$ac_objext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 ac_hi=$ac_mid
15244 else
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15248 ac_lo=`expr '(' $ac_mid ')' + 1`
15250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15251 done
15252 case $ac_lo in
15253 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15254 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15255 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15256 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15257 See \`config.log' for more details." >&5
15258 echo "$as_me: error: cannot compute sizeof (void *), 77
15259 See \`config.log' for more details." >&2;}
15260 { (exit 1); exit 1; }; }; } ;;
15261 esac
15262 else
15263 if test "$cross_compiling" = yes; then
15264 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15265 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15266 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15267 See \`config.log' for more details." >&5
15268 echo "$as_me: error: cannot run test program while cross compiling
15269 See \`config.log' for more details." >&2;}
15270 { (exit 1); exit 1; }; }; }
15271 else
15272 cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h. */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15278 $ac_includes_default
15279 long longval () { return (long) (sizeof (void *)); }
15280 unsigned long ulongval () { return (long) (sizeof (void *)); }
15281 #include <stdio.h>
15282 #include <stdlib.h>
15284 main ()
15287 FILE *f = fopen ("conftest.val", "w");
15288 if (! f)
15289 exit (1);
15290 if (((long) (sizeof (void *))) < 0)
15292 long i = longval ();
15293 if (i != ((long) (sizeof (void *))))
15294 exit (1);
15295 fprintf (f, "%ld\n", i);
15297 else
15299 unsigned long i = ulongval ();
15300 if (i != ((long) (sizeof (void *))))
15301 exit (1);
15302 fprintf (f, "%lu\n", i);
15304 exit (ferror (f) || fclose (f) != 0);
15307 return 0;
15309 _ACEOF
15310 rm -f conftest$ac_exeext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312 (eval $ac_link) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15321 ac_cv_sizeof_void_p=`cat conftest.val`
15322 else
15323 echo "$as_me: program exited with status $ac_status" >&5
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 ( exit $ac_status )
15328 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15329 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15331 See \`config.log' for more details." >&5
15332 echo "$as_me: error: cannot compute sizeof (void *), 77
15333 See \`config.log' for more details." >&2;}
15334 { (exit 1); exit 1; }; }; }
15336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15339 rm -f conftest.val
15340 else
15341 ac_cv_sizeof_void_p=0
15344 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15345 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15346 cat >>confdefs.h <<_ACEOF
15347 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15348 _ACEOF
15351 esac
15353 # Lacking an uint64_t? Test size of long
15354 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15355 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15356 echo $ECHO_N "checking for long... $ECHO_C" >&6
15357 if test "${ac_cv_type_long+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 else
15360 cat >conftest.$ac_ext <<_ACEOF
15361 /* confdefs.h. */
15362 _ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 $ac_includes_default
15368 main ()
15370 if ((long *) 0)
15371 return 0;
15372 if (sizeof (long))
15373 return 0;
15375 return 0;
15377 _ACEOF
15378 rm -f conftest.$ac_objext
15379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15380 (eval $ac_compile) 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag"
15388 || test ! -s conftest.err'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest.$ac_objext'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_cv_type_long=yes
15401 else
15402 echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15405 ac_cv_type_long=no
15407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15409 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15410 echo "${ECHO_T}$ac_cv_type_long" >&6
15412 echo "$as_me:$LINENO: checking size of long" >&5
15413 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15414 if test "${ac_cv_sizeof_long+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417 if test "$ac_cv_type_long" = yes; then
15418 # The cast to unsigned long works around a bug in the HP C Compiler
15419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15421 # This bug is HP SR number 8606223364.
15422 if test "$cross_compiling" = yes; then
15423 # Depending upon the size, compute the lo and hi bounds.
15424 cat >conftest.$ac_ext <<_ACEOF
15425 /* confdefs.h. */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 $ac_includes_default
15432 main ()
15434 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15435 test_array [0] = 0
15438 return 0;
15440 _ACEOF
15441 rm -f conftest.$ac_objext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443 (eval $ac_compile) 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_lo=0 ac_mid=0
15464 while :; do
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h. */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 $ac_includes_default
15473 main ()
15475 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15476 test_array [0] = 0
15479 return 0;
15481 _ACEOF
15482 rm -f conftest.$ac_objext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15484 (eval $ac_compile) 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -z "$ac_c_werror_flag"
15492 || test ! -s conftest.err'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_hi=$ac_mid; break
15505 else
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_lo=`expr $ac_mid + 1`
15510 if test $ac_lo -le $ac_mid; then
15511 ac_lo= ac_hi=
15512 break
15514 ac_mid=`expr 2 '*' $ac_mid + 1`
15516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15517 done
15518 else
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15522 cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h. */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 $ac_includes_default
15530 main ()
15532 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15533 test_array [0] = 0
15536 return 0;
15538 _ACEOF
15539 rm -f conftest.$ac_objext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15541 (eval $ac_compile) 2>conftest.er1
15542 ac_status=$?
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -z "$ac_c_werror_flag"
15549 || test ! -s conftest.err'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try='test -s conftest.$ac_objext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_hi=-1 ac_mid=-1
15562 while :; do
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 $ac_includes_default
15571 main ()
15573 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15574 test_array [0] = 0
15577 return 0;
15579 _ACEOF
15580 rm -f conftest.$ac_objext
15581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15582 (eval $ac_compile) 2>conftest.er1
15583 ac_status=$?
15584 grep -v '^ *+' conftest.er1 >conftest.err
15585 rm -f conftest.er1
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
15589 { ac_try='test -z "$ac_c_werror_flag"
15590 || test ! -s conftest.err'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; } &&
15596 { ac_try='test -s conftest.$ac_objext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_lo=$ac_mid; break
15603 else
15604 echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15607 ac_hi=`expr '(' $ac_mid ')' - 1`
15608 if test $ac_mid -le $ac_hi; then
15609 ac_lo= ac_hi=
15610 break
15612 ac_mid=`expr 2 '*' $ac_mid`
15614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15615 done
15616 else
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15620 ac_lo= ac_hi=
15622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15625 # Binary search between lo and hi bounds.
15626 while test "x$ac_lo" != "x$ac_hi"; do
15627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15628 cat >conftest.$ac_ext <<_ACEOF
15629 /* confdefs.h. */
15630 _ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15634 $ac_includes_default
15636 main ()
15638 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15639 test_array [0] = 0
15642 return 0;
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15647 (eval $ac_compile) 2>conftest.er1
15648 ac_status=$?
15649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag"
15655 || test ! -s conftest.err'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try='test -s conftest.$ac_objext'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 ac_hi=$ac_mid
15668 else
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_lo=`expr '(' $ac_mid ')' + 1`
15674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15675 done
15676 case $ac_lo in
15677 ?*) ac_cv_sizeof_long=$ac_lo;;
15678 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15679 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15681 See \`config.log' for more details." >&5
15682 echo "$as_me: error: cannot compute sizeof (long), 77
15683 See \`config.log' for more details." >&2;}
15684 { (exit 1); exit 1; }; }; } ;;
15685 esac
15686 else
15687 if test "$cross_compiling" = yes; then
15688 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15689 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15690 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15691 See \`config.log' for more details." >&5
15692 echo "$as_me: error: cannot run test program while cross compiling
15693 See \`config.log' for more details." >&2;}
15694 { (exit 1); exit 1; }; }; }
15695 else
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h. */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 $ac_includes_default
15703 long longval () { return (long) (sizeof (long)); }
15704 unsigned long ulongval () { return (long) (sizeof (long)); }
15705 #include <stdio.h>
15706 #include <stdlib.h>
15708 main ()
15711 FILE *f = fopen ("conftest.val", "w");
15712 if (! f)
15713 exit (1);
15714 if (((long) (sizeof (long))) < 0)
15716 long i = longval ();
15717 if (i != ((long) (sizeof (long))))
15718 exit (1);
15719 fprintf (f, "%ld\n", i);
15721 else
15723 unsigned long i = ulongval ();
15724 if (i != ((long) (sizeof (long))))
15725 exit (1);
15726 fprintf (f, "%lu\n", i);
15728 exit (ferror (f) || fclose (f) != 0);
15731 return 0;
15733 _ACEOF
15734 rm -f conftest$ac_exeext
15735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15736 (eval $ac_link) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_sizeof_long=`cat conftest.val`
15746 else
15747 echo "$as_me: program exited with status $ac_status" >&5
15748 echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15751 ( exit $ac_status )
15752 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15753 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15755 See \`config.log' for more details." >&5
15756 echo "$as_me: error: cannot compute sizeof (long), 77
15757 See \`config.log' for more details." >&2;}
15758 { (exit 1); exit 1; }; }; }
15760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15763 rm -f conftest.val
15764 else
15765 ac_cv_sizeof_long=0
15768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15769 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15770 cat >>confdefs.h <<_ACEOF
15771 #define SIZEOF_LONG $ac_cv_sizeof_long
15772 _ACEOF
15775 esac
15777 if test $acx_cv_header_stdint = stddef.h; then
15778 # Lacking a good header? Test size of everything and deduce all types.
15779 echo "$as_me:$LINENO: checking for int" >&5
15780 echo $ECHO_N "checking for int... $ECHO_C" >&6
15781 if test "${ac_cv_type_int+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 $ac_includes_default
15792 main ()
15794 if ((int *) 0)
15795 return 0;
15796 if (sizeof (int))
15797 return 0;
15799 return 0;
15801 _ACEOF
15802 rm -f conftest.$ac_objext
15803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15804 (eval $ac_compile) 2>conftest.er1
15805 ac_status=$?
15806 grep -v '^ *+' conftest.er1 >conftest.err
15807 rm -f conftest.er1
15808 cat conftest.err >&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
15811 { ac_try='test -z "$ac_c_werror_flag"
15812 || test ! -s conftest.err'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; } &&
15818 { ac_try='test -s conftest.$ac_objext'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_cv_type_int=yes
15825 else
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_cv_type_int=no
15831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15833 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15834 echo "${ECHO_T}$ac_cv_type_int" >&6
15836 echo "$as_me:$LINENO: checking size of int" >&5
15837 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15838 if test "${ac_cv_sizeof_int+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 else
15841 if test "$ac_cv_type_int" = yes; then
15842 # The cast to unsigned long works around a bug in the HP C Compiler
15843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15845 # This bug is HP SR number 8606223364.
15846 if test "$cross_compiling" = yes; then
15847 # Depending upon the size, compute the lo and hi bounds.
15848 cat >conftest.$ac_ext <<_ACEOF
15849 /* confdefs.h. */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 $ac_includes_default
15856 main ()
15858 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15859 test_array [0] = 0
15862 return 0;
15864 _ACEOF
15865 rm -f conftest.$ac_objext
15866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15867 (eval $ac_compile) 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
15874 { ac_try='test -z "$ac_c_werror_flag"
15875 || test ! -s conftest.err'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } &&
15881 { ac_try='test -s conftest.$ac_objext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_lo=0 ac_mid=0
15888 while :; do
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 $ac_includes_default
15897 main ()
15899 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15900 test_array [0] = 0
15903 return 0;
15905 _ACEOF
15906 rm -f conftest.$ac_objext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908 (eval $ac_compile) 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
15915 { ac_try='test -z "$ac_c_werror_flag"
15916 || test ! -s conftest.err'
15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15919 ac_status=$?
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; } &&
15922 { ac_try='test -s conftest.$ac_objext'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15925 ac_status=$?
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 ac_hi=$ac_mid; break
15929 else
15930 echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 ac_lo=`expr $ac_mid + 1`
15934 if test $ac_lo -le $ac_mid; then
15935 ac_lo= ac_hi=
15936 break
15938 ac_mid=`expr 2 '*' $ac_mid + 1`
15940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15941 done
15942 else
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h. */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 $ac_includes_default
15954 main ()
15956 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15957 test_array [0] = 0
15960 return 0;
15962 _ACEOF
15963 rm -f conftest.$ac_objext
15964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15965 (eval $ac_compile) 2>conftest.er1
15966 ac_status=$?
15967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
15972 { ac_try='test -z "$ac_c_werror_flag"
15973 || test ! -s conftest.err'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; } &&
15979 { ac_try='test -s conftest.$ac_objext'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_hi=-1 ac_mid=-1
15986 while :; do
15987 cat >conftest.$ac_ext <<_ACEOF
15988 /* confdefs.h. */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15993 $ac_includes_default
15995 main ()
15997 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15998 test_array [0] = 0
16001 return 0;
16003 _ACEOF
16004 rm -f conftest.$ac_objext
16005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16006 (eval $ac_compile) 2>conftest.er1
16007 ac_status=$?
16008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag"
16014 || test ! -s conftest.err'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; } &&
16020 { ac_try='test -s conftest.$ac_objext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_lo=$ac_mid; break
16027 else
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16031 ac_hi=`expr '(' $ac_mid ')' - 1`
16032 if test $ac_mid -le $ac_hi; then
16033 ac_lo= ac_hi=
16034 break
16036 ac_mid=`expr 2 '*' $ac_mid`
16038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16039 done
16040 else
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 ac_lo= ac_hi=
16046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16049 # Binary search between lo and hi bounds.
16050 while test "x$ac_lo" != "x$ac_hi"; do
16051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16052 cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h. */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 $ac_includes_default
16060 main ()
16062 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16063 test_array [0] = 0
16066 return 0;
16068 _ACEOF
16069 rm -f conftest.$ac_objext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16071 (eval $ac_compile) 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -z "$ac_c_werror_flag"
16079 || test ! -s conftest.err'
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; } &&
16085 { ac_try='test -s conftest.$ac_objext'
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; }; then
16091 ac_hi=$ac_mid
16092 else
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ac_lo=`expr '(' $ac_mid ')' + 1`
16098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16099 done
16100 case $ac_lo in
16101 ?*) ac_cv_sizeof_int=$ac_lo;;
16102 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16103 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16105 See \`config.log' for more details." >&5
16106 echo "$as_me: error: cannot compute sizeof (int), 77
16107 See \`config.log' for more details." >&2;}
16108 { (exit 1); exit 1; }; }; } ;;
16109 esac
16110 else
16111 if test "$cross_compiling" = yes; then
16112 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16113 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16114 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16115 See \`config.log' for more details." >&5
16116 echo "$as_me: error: cannot run test program while cross compiling
16117 See \`config.log' for more details." >&2;}
16118 { (exit 1); exit 1; }; }; }
16119 else
16120 cat >conftest.$ac_ext <<_ACEOF
16121 /* confdefs.h. */
16122 _ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h. */
16126 $ac_includes_default
16127 long longval () { return (long) (sizeof (int)); }
16128 unsigned long ulongval () { return (long) (sizeof (int)); }
16129 #include <stdio.h>
16130 #include <stdlib.h>
16132 main ()
16135 FILE *f = fopen ("conftest.val", "w");
16136 if (! f)
16137 exit (1);
16138 if (((long) (sizeof (int))) < 0)
16140 long i = longval ();
16141 if (i != ((long) (sizeof (int))))
16142 exit (1);
16143 fprintf (f, "%ld\n", i);
16145 else
16147 unsigned long i = ulongval ();
16148 if (i != ((long) (sizeof (int))))
16149 exit (1);
16150 fprintf (f, "%lu\n", i);
16152 exit (ferror (f) || fclose (f) != 0);
16155 return 0;
16157 _ACEOF
16158 rm -f conftest$ac_exeext
16159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16160 (eval $ac_link) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; }; then
16169 ac_cv_sizeof_int=`cat conftest.val`
16170 else
16171 echo "$as_me: program exited with status $ac_status" >&5
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 ( exit $ac_status )
16176 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16177 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16179 See \`config.log' for more details." >&5
16180 echo "$as_me: error: cannot compute sizeof (int), 77
16181 See \`config.log' for more details." >&2;}
16182 { (exit 1); exit 1; }; }; }
16184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16187 rm -f conftest.val
16188 else
16189 ac_cv_sizeof_int=0
16192 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16193 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16194 cat >>confdefs.h <<_ACEOF
16195 #define SIZEOF_INT $ac_cv_sizeof_int
16196 _ACEOF
16199 echo "$as_me:$LINENO: checking for short" >&5
16200 echo $ECHO_N "checking for short... $ECHO_C" >&6
16201 if test "${ac_cv_type_short+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16212 main ()
16214 if ((short *) 0)
16215 return 0;
16216 if (sizeof (short))
16217 return 0;
16219 return 0;
16221 _ACEOF
16222 rm -f conftest.$ac_objext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16224 (eval $ac_compile) 2>conftest.er1
16225 ac_status=$?
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try='test -z "$ac_c_werror_flag"
16232 || test ! -s conftest.err'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest.$ac_objext'
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 ac_cv_type_short=yes
16245 else
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16249 ac_cv_type_short=no
16251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16253 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16254 echo "${ECHO_T}$ac_cv_type_short" >&6
16256 echo "$as_me:$LINENO: checking size of short" >&5
16257 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16258 if test "${ac_cv_sizeof_short+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261 if test "$ac_cv_type_short" = yes; then
16262 # The cast to unsigned long works around a bug in the HP C Compiler
16263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16265 # This bug is HP SR number 8606223364.
16266 if test "$cross_compiling" = yes; then
16267 # Depending upon the size, compute the lo and hi bounds.
16268 cat >conftest.$ac_ext <<_ACEOF
16269 /* confdefs.h. */
16270 _ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16274 $ac_includes_default
16276 main ()
16278 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16279 test_array [0] = 0
16282 return 0;
16284 _ACEOF
16285 rm -f conftest.$ac_objext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287 (eval $ac_compile) 2>conftest.er1
16288 ac_status=$?
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -z "$ac_c_werror_flag"
16295 || test ! -s conftest.err'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try='test -s conftest.$ac_objext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 ac_lo=0 ac_mid=0
16308 while :; do
16309 cat >conftest.$ac_ext <<_ACEOF
16310 /* confdefs.h. */
16311 _ACEOF
16312 cat confdefs.h >>conftest.$ac_ext
16313 cat >>conftest.$ac_ext <<_ACEOF
16314 /* end confdefs.h. */
16315 $ac_includes_default
16317 main ()
16319 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16320 test_array [0] = 0
16323 return 0;
16325 _ACEOF
16326 rm -f conftest.$ac_objext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16328 (eval $ac_compile) 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -z "$ac_c_werror_flag"
16336 || test ! -s conftest.err'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest.$ac_objext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_hi=$ac_mid; break
16349 else
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 ac_lo=`expr $ac_mid + 1`
16354 if test $ac_lo -le $ac_mid; then
16355 ac_lo= ac_hi=
16356 break
16358 ac_mid=`expr 2 '*' $ac_mid + 1`
16360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16361 done
16362 else
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16366 cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h. */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 $ac_includes_default
16374 main ()
16376 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16377 test_array [0] = 0
16380 return 0;
16382 _ACEOF
16383 rm -f conftest.$ac_objext
16384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16385 (eval $ac_compile) 2>conftest.er1
16386 ac_status=$?
16387 grep -v '^ *+' conftest.er1 >conftest.err
16388 rm -f conftest.er1
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag"
16393 || test ! -s conftest.err'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest.$ac_objext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405 ac_hi=-1 ac_mid=-1
16406 while :; do
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h. */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 $ac_includes_default
16415 main ()
16417 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16418 test_array [0] = 0
16421 return 0;
16423 _ACEOF
16424 rm -f conftest.$ac_objext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16426 (eval $ac_compile) 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -z "$ac_c_werror_flag"
16434 || test ! -s conftest.err'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_lo=$ac_mid; break
16447 else
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_hi=`expr '(' $ac_mid ')' - 1`
16452 if test $ac_mid -le $ac_hi; then
16453 ac_lo= ac_hi=
16454 break
16456 ac_mid=`expr 2 '*' $ac_mid`
16458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16459 done
16460 else
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16464 ac_lo= ac_hi=
16466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16469 # Binary search between lo and hi bounds.
16470 while test "x$ac_lo" != "x$ac_hi"; do
16471 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16472 cat >conftest.$ac_ext <<_ACEOF
16473 /* confdefs.h. */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16478 $ac_includes_default
16480 main ()
16482 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16483 test_array [0] = 0
16486 return 0;
16488 _ACEOF
16489 rm -f conftest.$ac_objext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16491 (eval $ac_compile) 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_hi=$ac_mid
16512 else
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 ac_lo=`expr '(' $ac_mid ')' + 1`
16518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16519 done
16520 case $ac_lo in
16521 ?*) ac_cv_sizeof_short=$ac_lo;;
16522 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16523 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16525 See \`config.log' for more details." >&5
16526 echo "$as_me: error: cannot compute sizeof (short), 77
16527 See \`config.log' for more details." >&2;}
16528 { (exit 1); exit 1; }; }; } ;;
16529 esac
16530 else
16531 if test "$cross_compiling" = yes; then
16532 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16533 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16535 See \`config.log' for more details." >&5
16536 echo "$as_me: error: cannot run test program while cross compiling
16537 See \`config.log' for more details." >&2;}
16538 { (exit 1); exit 1; }; }; }
16539 else
16540 cat >conftest.$ac_ext <<_ACEOF
16541 /* confdefs.h. */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 $ac_includes_default
16547 long longval () { return (long) (sizeof (short)); }
16548 unsigned long ulongval () { return (long) (sizeof (short)); }
16549 #include <stdio.h>
16550 #include <stdlib.h>
16552 main ()
16555 FILE *f = fopen ("conftest.val", "w");
16556 if (! f)
16557 exit (1);
16558 if (((long) (sizeof (short))) < 0)
16560 long i = longval ();
16561 if (i != ((long) (sizeof (short))))
16562 exit (1);
16563 fprintf (f, "%ld\n", i);
16565 else
16567 unsigned long i = ulongval ();
16568 if (i != ((long) (sizeof (short))))
16569 exit (1);
16570 fprintf (f, "%lu\n", i);
16572 exit (ferror (f) || fclose (f) != 0);
16575 return 0;
16577 _ACEOF
16578 rm -f conftest$ac_exeext
16579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16580 (eval $ac_link) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589 ac_cv_sizeof_short=`cat conftest.val`
16590 else
16591 echo "$as_me: program exited with status $ac_status" >&5
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ( exit $ac_status )
16596 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16597 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16598 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16599 See \`config.log' for more details." >&5
16600 echo "$as_me: error: cannot compute sizeof (short), 77
16601 See \`config.log' for more details." >&2;}
16602 { (exit 1); exit 1; }; }; }
16604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16607 rm -f conftest.val
16608 else
16609 ac_cv_sizeof_short=0
16612 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16613 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16614 cat >>confdefs.h <<_ACEOF
16615 #define SIZEOF_SHORT $ac_cv_sizeof_short
16616 _ACEOF
16619 echo "$as_me:$LINENO: checking for char" >&5
16620 echo $ECHO_N "checking for char... $ECHO_C" >&6
16621 if test "${ac_cv_type_char+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 else
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 $ac_includes_default
16632 main ()
16634 if ((char *) 0)
16635 return 0;
16636 if (sizeof (char))
16637 return 0;
16639 return 0;
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644 (eval $ac_compile) 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag"
16652 || test ! -s conftest.err'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_type_char=yes
16665 else
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_cv_type_char=no
16671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16673 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16674 echo "${ECHO_T}$ac_cv_type_char" >&6
16676 echo "$as_me:$LINENO: checking size of char" >&5
16677 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16678 if test "${ac_cv_sizeof_char+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681 if test "$ac_cv_type_char" = yes; then
16682 # The cast to unsigned long works around a bug in the HP C Compiler
16683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16685 # This bug is HP SR number 8606223364.
16686 if test "$cross_compiling" = yes; then
16687 # Depending upon the size, compute the lo and hi bounds.
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 $ac_includes_default
16696 main ()
16698 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16699 test_array [0] = 0
16702 return 0;
16704 _ACEOF
16705 rm -f conftest.$ac_objext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707 (eval $ac_compile) 2>conftest.er1
16708 ac_status=$?
16709 grep -v '^ *+' conftest.er1 >conftest.err
16710 rm -f conftest.er1
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
16714 { ac_try='test -z "$ac_c_werror_flag"
16715 || test ! -s conftest.err'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 ac_lo=0 ac_mid=0
16728 while :; do
16729 cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h. */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 $ac_includes_default
16737 main ()
16739 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16740 test_array [0] = 0
16743 return 0;
16745 _ACEOF
16746 rm -f conftest.$ac_objext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748 (eval $ac_compile) 2>conftest.er1
16749 ac_status=$?
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_c_werror_flag"
16756 || test ! -s conftest.err'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest.$ac_objext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_hi=$ac_mid; break
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_lo=`expr $ac_mid + 1`
16774 if test $ac_lo -le $ac_mid; then
16775 ac_lo= ac_hi=
16776 break
16778 ac_mid=`expr 2 '*' $ac_mid + 1`
16780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16781 done
16782 else
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16786 cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h. */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792 $ac_includes_default
16794 main ()
16796 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16797 test_array [0] = 0
16800 return 0;
16802 _ACEOF
16803 rm -f conftest.$ac_objext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16805 (eval $ac_compile) 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag"
16813 || test ! -s conftest.err'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest.$ac_objext'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16825 ac_hi=-1 ac_mid=-1
16826 while :; do
16827 cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h. */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 $ac_includes_default
16835 main ()
16837 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16838 test_array [0] = 0
16841 return 0;
16843 _ACEOF
16844 rm -f conftest.$ac_objext
16845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16846 (eval $ac_compile) 2>conftest.er1
16847 ac_status=$?
16848 grep -v '^ *+' conftest.er1 >conftest.err
16849 rm -f conftest.er1
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
16853 { ac_try='test -z "$ac_c_werror_flag"
16854 || test ! -s conftest.err'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest.$ac_objext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 ac_lo=$ac_mid; break
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 ac_hi=`expr '(' $ac_mid ')' - 1`
16872 if test $ac_mid -le $ac_hi; then
16873 ac_lo= ac_hi=
16874 break
16876 ac_mid=`expr 2 '*' $ac_mid`
16878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16879 done
16880 else
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16884 ac_lo= ac_hi=
16886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16889 # Binary search between lo and hi bounds.
16890 while test "x$ac_lo" != "x$ac_hi"; do
16891 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16892 cat >conftest.$ac_ext <<_ACEOF
16893 /* confdefs.h. */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16898 $ac_includes_default
16900 main ()
16902 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16903 test_array [0] = 0
16906 return 0;
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16912 ac_status=$?
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag"
16919 || test ! -s conftest.err'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_hi=$ac_mid
16932 else
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_lo=`expr '(' $ac_mid ')' + 1`
16938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16939 done
16940 case $ac_lo in
16941 ?*) ac_cv_sizeof_char=$ac_lo;;
16942 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16943 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16944 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16945 See \`config.log' for more details." >&5
16946 echo "$as_me: error: cannot compute sizeof (char), 77
16947 See \`config.log' for more details." >&2;}
16948 { (exit 1); exit 1; }; }; } ;;
16949 esac
16950 else
16951 if test "$cross_compiling" = yes; then
16952 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16953 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16955 See \`config.log' for more details." >&5
16956 echo "$as_me: error: cannot run test program while cross compiling
16957 See \`config.log' for more details." >&2;}
16958 { (exit 1); exit 1; }; }; }
16959 else
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h. */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 $ac_includes_default
16967 long longval () { return (long) (sizeof (char)); }
16968 unsigned long ulongval () { return (long) (sizeof (char)); }
16969 #include <stdio.h>
16970 #include <stdlib.h>
16972 main ()
16975 FILE *f = fopen ("conftest.val", "w");
16976 if (! f)
16977 exit (1);
16978 if (((long) (sizeof (char))) < 0)
16980 long i = longval ();
16981 if (i != ((long) (sizeof (char))))
16982 exit (1);
16983 fprintf (f, "%ld\n", i);
16985 else
16987 unsigned long i = ulongval ();
16988 if (i != ((long) (sizeof (char))))
16989 exit (1);
16990 fprintf (f, "%lu\n", i);
16992 exit (ferror (f) || fclose (f) != 0);
16995 return 0;
16997 _ACEOF
16998 rm -f conftest$ac_exeext
16999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17000 (eval $ac_link) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_cv_sizeof_char=`cat conftest.val`
17010 else
17011 echo "$as_me: program exited with status $ac_status" >&5
17012 echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17015 ( exit $ac_status )
17016 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17017 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17018 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17019 See \`config.log' for more details." >&5
17020 echo "$as_me: error: cannot compute sizeof (char), 77
17021 See \`config.log' for more details." >&2;}
17022 { (exit 1); exit 1; }; }; }
17024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17027 rm -f conftest.val
17028 else
17029 ac_cv_sizeof_char=0
17032 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17033 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17034 cat >>confdefs.h <<_ACEOF
17035 #define SIZEOF_CHAR $ac_cv_sizeof_char
17036 _ACEOF
17040 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17041 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17042 case "$ac_cv_sizeof_char" in
17043 1) acx_cv_type_int8_t=char ;;
17044 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17045 echo "$as_me: error: no 8-bit type" >&2;}
17046 { (exit please report a bug); exit please report a bug; }; }
17047 esac
17048 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17049 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17051 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17052 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17053 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17054 2:*) acx_cv_type_int16_t=int ;;
17055 *:2) acx_cv_type_int16_t=short ;;
17056 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17057 echo "$as_me: error: no 16-bit type" >&2;}
17058 { (exit please report a bug); exit please report a bug; }; }
17059 esac
17060 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17061 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17063 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17064 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17065 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17066 4:*) acx_cv_type_int32_t=int ;;
17067 *:4) acx_cv_type_int32_t=long ;;
17068 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17069 echo "$as_me: error: no 32-bit type" >&2;}
17070 { (exit please report a bug); exit please report a bug; }; }
17071 esac
17072 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17073 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17076 # These tests are here to make the output prettier
17078 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17079 case "$ac_cv_sizeof_long" in
17080 8) acx_cv_type_int64_t=long ;;
17081 esac
17082 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17083 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17084 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17085 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17088 # Now we can use the above types
17090 if test "$ac_cv_type_uintptr_t" != yes; then
17091 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17092 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17093 case $ac_cv_sizeof_void_p in
17094 2) acx_cv_type_intptr_t=int16_t ;;
17095 4) acx_cv_type_intptr_t=int32_t ;;
17096 8) acx_cv_type_intptr_t=int64_t ;;
17097 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17098 echo "$as_me: error: no equivalent for intptr_t" >&2;}
17099 { (exit please report a bug); exit please report a bug; }; }
17100 esac
17101 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17102 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17105 # ----------------- done all checks, emit header -------------
17106 ac_config_commands="$ac_config_commands bfd_stdint.h"
17110 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17111 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17112 if test "${ac_cv_header_time+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17115 cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h. */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 #include <sys/types.h>
17122 #include <sys/time.h>
17123 #include <time.h>
17126 main ()
17128 if ((struct tm *) 0)
17129 return 0;
17131 return 0;
17133 _ACEOF
17134 rm -f conftest.$ac_objext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17136 (eval $ac_compile) 2>conftest.er1
17137 ac_status=$?
17138 grep -v '^ *+' conftest.er1 >conftest.err
17139 rm -f conftest.er1
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
17143 { ac_try='test -z "$ac_c_werror_flag"
17144 || test ! -s conftest.err'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest.$ac_objext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 ac_cv_header_time=yes
17157 else
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17161 ac_cv_header_time=no
17163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17165 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17166 echo "${ECHO_T}$ac_cv_header_time" >&6
17167 if test $ac_cv_header_time = yes; then
17169 cat >>confdefs.h <<\_ACEOF
17170 #define TIME_WITH_SYS_TIME 1
17171 _ACEOF
17180 ac_header_dirent=no
17181 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17182 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17183 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17184 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188 cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h. */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 #include <sys/types.h>
17195 #include <$ac_hdr>
17198 main ()
17200 if ((DIR *) 0)
17201 return 0;
17203 return 0;
17205 _ACEOF
17206 rm -f conftest.$ac_objext
17207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17208 (eval $ac_compile) 2>conftest.er1
17209 ac_status=$?
17210 grep -v '^ *+' conftest.er1 >conftest.err
17211 rm -f conftest.er1
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } &&
17215 { ac_try='test -z "$ac_c_werror_flag"
17216 || test ! -s conftest.err'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest.$ac_objext'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; }; then
17228 eval "$as_ac_Header=yes"
17229 else
17230 echo "$as_me: failed program was:" >&5
17231 sed 's/^/| /' conftest.$ac_ext >&5
17233 eval "$as_ac_Header=no"
17235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17242 _ACEOF
17244 ac_header_dirent=$ac_hdr; break
17247 done
17248 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17249 if test $ac_header_dirent = dirent.h; then
17250 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17251 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17252 if test "${ac_cv_search_opendir+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255 ac_func_search_save_LIBS=$LIBS
17256 ac_cv_search_opendir=no
17257 cat >conftest.$ac_ext <<_ACEOF
17258 /* confdefs.h. */
17259 _ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17264 /* Override any gcc2 internal prototype to avoid an error. */
17265 #ifdef __cplusplus
17266 extern "C"
17267 #endif
17268 /* We use char because int might match the return type of a gcc2
17269 builtin and then its argument prototype would still apply. */
17270 char opendir ();
17272 main ()
17274 opendir ();
17276 return 0;
17278 _ACEOF
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17281 (eval $ac_link) 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_search_opendir="none required"
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17307 rm -f conftest.err conftest.$ac_objext \
17308 conftest$ac_exeext conftest.$ac_ext
17309 if test "$ac_cv_search_opendir" = no; then
17310 for ac_lib in dir; do
17311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17312 cat >conftest.$ac_ext <<_ACEOF
17313 /* confdefs.h. */
17314 _ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17319 /* Override any gcc2 internal prototype to avoid an error. */
17320 #ifdef __cplusplus
17321 extern "C"
17322 #endif
17323 /* We use char because int might match the return type of a gcc2
17324 builtin and then its argument prototype would still apply. */
17325 char opendir ();
17327 main ()
17329 opendir ();
17331 return 0;
17333 _ACEOF
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17336 (eval $ac_link) 2>conftest.er1
17337 ac_status=$?
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
17343 { ac_try='test -z "$ac_c_werror_flag"
17344 || test ! -s conftest.err'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; } &&
17350 { ac_try='test -s conftest$ac_exeext'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
17356 ac_cv_search_opendir="-l$ac_lib"
17357 break
17358 else
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17363 rm -f conftest.err conftest.$ac_objext \
17364 conftest$ac_exeext conftest.$ac_ext
17365 done
17367 LIBS=$ac_func_search_save_LIBS
17369 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17370 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17371 if test "$ac_cv_search_opendir" != no; then
17372 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17376 else
17377 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17378 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17379 if test "${ac_cv_search_opendir+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382 ac_func_search_save_LIBS=$LIBS
17383 ac_cv_search_opendir=no
17384 cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h. */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h. */
17391 /* Override any gcc2 internal prototype to avoid an error. */
17392 #ifdef __cplusplus
17393 extern "C"
17394 #endif
17395 /* We use char because int might match the return type of a gcc2
17396 builtin and then its argument prototype would still apply. */
17397 char opendir ();
17399 main ()
17401 opendir ();
17403 return 0;
17405 _ACEOF
17406 rm -f conftest.$ac_objext conftest$ac_exeext
17407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17408 (eval $ac_link) 2>conftest.er1
17409 ac_status=$?
17410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } &&
17415 { ac_try='test -z "$ac_c_werror_flag"
17416 || test ! -s conftest.err'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; } &&
17422 { ac_try='test -s conftest$ac_exeext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 ac_cv_search_opendir="none required"
17429 else
17430 echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17434 rm -f conftest.err conftest.$ac_objext \
17435 conftest$ac_exeext conftest.$ac_ext
17436 if test "$ac_cv_search_opendir" = no; then
17437 for ac_lib in x; do
17438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h. */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17446 /* Override any gcc2 internal prototype to avoid an error. */
17447 #ifdef __cplusplus
17448 extern "C"
17449 #endif
17450 /* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17452 char opendir ();
17454 main ()
17456 opendir ();
17458 return 0;
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463 (eval $ac_link) 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try='test -z "$ac_c_werror_flag"
17471 || test ! -s conftest.err'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest$ac_exeext'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; }; then
17483 ac_cv_search_opendir="-l$ac_lib"
17484 break
17485 else
17486 echo "$as_me: failed program was:" >&5
17487 sed 's/^/| /' conftest.$ac_ext >&5
17490 rm -f conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
17492 done
17494 LIBS=$ac_func_search_save_LIBS
17496 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17497 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17498 if test "$ac_cv_search_opendir" != no; then
17499 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17505 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17506 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17507 if test "${gcc_cv_header_string+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510 cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h. */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 #include <string.h>
17517 #include <strings.h>
17519 main ()
17523 return 0;
17525 _ACEOF
17526 rm -f conftest.$ac_objext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17528 (eval $ac_compile) 2>conftest.er1
17529 ac_status=$?
17530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -z "$ac_c_werror_flag"
17536 || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest.$ac_objext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 gcc_cv_header_string=yes
17549 else
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 gcc_cv_header_string=no
17555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17557 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17558 echo "${ECHO_T}$gcc_cv_header_string" >&6
17559 if test $gcc_cv_header_string = yes; then
17561 cat >>confdefs.h <<\_ACEOF
17562 #define STRING_WITH_STRINGS 1
17563 _ACEOF
17575 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
17577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17578 echo "$as_me:$LINENO: checking for $ac_func" >&5
17579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17580 if eval "test \"\${$as_ac_var+set}\" = set"; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583 cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h. */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17591 #define $ac_func innocuous_$ac_func
17593 /* System header to define __stub macros and hopefully few prototypes,
17594 which can conflict with char $ac_func (); below.
17595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17596 <limits.h> exists even on freestanding compilers. */
17598 #ifdef __STDC__
17599 # include <limits.h>
17600 #else
17601 # include <assert.h>
17602 #endif
17604 #undef $ac_func
17606 /* Override any gcc2 internal prototype to avoid an error. */
17607 #ifdef __cplusplus
17608 extern "C"
17610 #endif
17611 /* We use char because int might match the return type of a gcc2
17612 builtin and then its argument prototype would still apply. */
17613 char $ac_func ();
17614 /* The GNU C library defines this for functions which it implements
17615 to always fail with ENOSYS. Some functions are actually named
17616 something starting with __ and the normal name is an alias. */
17617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17618 choke me
17619 #else
17620 char (*f) () = $ac_func;
17621 #endif
17622 #ifdef __cplusplus
17624 #endif
17627 main ()
17629 return f != $ac_func;
17631 return 0;
17633 _ACEOF
17634 rm -f conftest.$ac_objext conftest$ac_exeext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17636 (eval $ac_link) 2>conftest.er1
17637 ac_status=$?
17638 grep -v '^ *+' conftest.er1 >conftest.err
17639 rm -f conftest.er1
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag"
17644 || test ! -s conftest.err'
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; } &&
17650 { ac_try='test -s conftest$ac_exeext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 eval "$as_ac_var=yes"
17657 else
17658 echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17661 eval "$as_ac_var=no"
17663 rm -f conftest.err conftest.$ac_objext \
17664 conftest$ac_exeext conftest.$ac_ext
17666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17668 if test `eval echo '${'$as_ac_var'}'` = yes; then
17669 cat >>confdefs.h <<_ACEOF
17670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17671 _ACEOF
17674 done
17677 for ac_func in strtoull
17679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17680 echo "$as_me:$LINENO: checking for $ac_func" >&5
17681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17682 if eval "test \"\${$as_ac_var+set}\" = set"; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685 cat >conftest.$ac_ext <<_ACEOF
17686 /* confdefs.h. */
17687 _ACEOF
17688 cat confdefs.h >>conftest.$ac_ext
17689 cat >>conftest.$ac_ext <<_ACEOF
17690 /* end confdefs.h. */
17691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17693 #define $ac_func innocuous_$ac_func
17695 /* System header to define __stub macros and hopefully few prototypes,
17696 which can conflict with char $ac_func (); below.
17697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17698 <limits.h> exists even on freestanding compilers. */
17700 #ifdef __STDC__
17701 # include <limits.h>
17702 #else
17703 # include <assert.h>
17704 #endif
17706 #undef $ac_func
17708 /* Override any gcc2 internal prototype to avoid an error. */
17709 #ifdef __cplusplus
17710 extern "C"
17712 #endif
17713 /* We use char because int might match the return type of a gcc2
17714 builtin and then its argument prototype would still apply. */
17715 char $ac_func ();
17716 /* The GNU C library defines this for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17720 choke me
17721 #else
17722 char (*f) () = $ac_func;
17723 #endif
17724 #ifdef __cplusplus
17726 #endif
17729 main ()
17731 return f != $ac_func;
17733 return 0;
17735 _ACEOF
17736 rm -f conftest.$ac_objext conftest$ac_exeext
17737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17738 (eval $ac_link) 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
17745 { ac_try='test -z "$ac_c_werror_flag"
17746 || test ! -s conftest.err'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; } &&
17752 { ac_try='test -s conftest$ac_exeext'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 eval "$as_ac_var=yes"
17759 else
17760 echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17763 eval "$as_ac_var=no"
17765 rm -f conftest.err conftest.$ac_objext \
17766 conftest$ac_exeext conftest.$ac_ext
17768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17770 if test `eval echo '${'$as_ac_var'}'` = yes; then
17771 cat >>confdefs.h <<_ACEOF
17772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17773 _ACEOF
17776 done
17779 echo "$as_me:$LINENO: checking whether basename is declared" >&5
17780 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17781 if test "${ac_cv_have_decl_basename+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784 cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h. */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 $ac_includes_default
17792 main ()
17794 #ifndef basename
17795 char *p = (char *) basename;
17796 #endif
17799 return 0;
17801 _ACEOF
17802 rm -f conftest.$ac_objext
17803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17804 (eval $ac_compile) 2>conftest.er1
17805 ac_status=$?
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -z "$ac_c_werror_flag"
17812 || test ! -s conftest.err'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest.$ac_objext'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_have_decl_basename=yes
17825 else
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 ac_cv_have_decl_basename=no
17831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17833 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17834 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17835 if test $ac_cv_have_decl_basename = yes; then
17837 cat >>confdefs.h <<_ACEOF
17838 #define HAVE_DECL_BASENAME 1
17839 _ACEOF
17842 else
17843 cat >>confdefs.h <<_ACEOF
17844 #define HAVE_DECL_BASENAME 0
17845 _ACEOF
17851 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17852 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17853 if test "${ac_cv_have_decl_ftello+set}" = set; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17855 else
17856 cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h. */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17862 $ac_includes_default
17864 main ()
17866 #ifndef ftello
17867 char *p = (char *) ftello;
17868 #endif
17871 return 0;
17873 _ACEOF
17874 rm -f conftest.$ac_objext
17875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17876 (eval $ac_compile) 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_have_decl_ftello=yes
17897 else
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 ac_cv_have_decl_ftello=no
17903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17905 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17906 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17907 if test $ac_cv_have_decl_ftello = yes; then
17909 cat >>confdefs.h <<_ACEOF
17910 #define HAVE_DECL_FTELLO 1
17911 _ACEOF
17914 else
17915 cat >>confdefs.h <<_ACEOF
17916 #define HAVE_DECL_FTELLO 0
17917 _ACEOF
17923 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17924 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17925 if test "${ac_cv_have_decl_ftello64+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928 cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h. */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 $ac_includes_default
17936 main ()
17938 #ifndef ftello64
17939 char *p = (char *) ftello64;
17940 #endif
17943 return 0;
17945 _ACEOF
17946 rm -f conftest.$ac_objext
17947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17948 (eval $ac_compile) 2>conftest.er1
17949 ac_status=$?
17950 grep -v '^ *+' conftest.er1 >conftest.err
17951 rm -f conftest.er1
17952 cat conftest.err >&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
17955 { ac_try='test -z "$ac_c_werror_flag"
17956 || test ! -s conftest.err'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_have_decl_ftello64=yes
17969 else
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_cv_have_decl_ftello64=no
17975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17977 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17978 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17979 if test $ac_cv_have_decl_ftello64 = yes; then
17981 cat >>confdefs.h <<_ACEOF
17982 #define HAVE_DECL_FTELLO64 1
17983 _ACEOF
17986 else
17987 cat >>confdefs.h <<_ACEOF
17988 #define HAVE_DECL_FTELLO64 0
17989 _ACEOF
17995 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17996 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17997 if test "${ac_cv_have_decl_fseeko+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000 cat >conftest.$ac_ext <<_ACEOF
18001 /* confdefs.h. */
18002 _ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18006 $ac_includes_default
18008 main ()
18010 #ifndef fseeko
18011 char *p = (char *) fseeko;
18012 #endif
18015 return 0;
18017 _ACEOF
18018 rm -f conftest.$ac_objext
18019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18020 (eval $ac_compile) 2>conftest.er1
18021 ac_status=$?
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 { ac_try='test -z "$ac_c_werror_flag"
18028 || test ! -s conftest.err'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; } &&
18034 { ac_try='test -s conftest.$ac_objext'
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 ac_cv_have_decl_fseeko=yes
18041 else
18042 echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18045 ac_cv_have_decl_fseeko=no
18047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18049 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18050 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18051 if test $ac_cv_have_decl_fseeko = yes; then
18053 cat >>confdefs.h <<_ACEOF
18054 #define HAVE_DECL_FSEEKO 1
18055 _ACEOF
18058 else
18059 cat >>confdefs.h <<_ACEOF
18060 #define HAVE_DECL_FSEEKO 0
18061 _ACEOF
18067 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18068 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18069 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18071 else
18072 cat >conftest.$ac_ext <<_ACEOF
18073 /* confdefs.h. */
18074 _ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h. */
18078 $ac_includes_default
18080 main ()
18082 #ifndef fseeko64
18083 char *p = (char *) fseeko64;
18084 #endif
18087 return 0;
18089 _ACEOF
18090 rm -f conftest.$ac_objext
18091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18092 (eval $ac_compile) 2>conftest.er1
18093 ac_status=$?
18094 grep -v '^ *+' conftest.er1 >conftest.err
18095 rm -f conftest.er1
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -z "$ac_c_werror_flag"
18100 || test ! -s conftest.err'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest.$ac_objext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 ac_cv_have_decl_fseeko64=yes
18113 else
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18117 ac_cv_have_decl_fseeko64=no
18119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18121 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18122 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18123 if test $ac_cv_have_decl_fseeko64 = yes; then
18125 cat >>confdefs.h <<_ACEOF
18126 #define HAVE_DECL_FSEEKO64 1
18127 _ACEOF
18130 else
18131 cat >>confdefs.h <<_ACEOF
18132 #define HAVE_DECL_FSEEKO64 0
18133 _ACEOF
18141 case "${host}" in
18142 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18144 cat >>confdefs.h <<\_ACEOF
18145 #define USE_BINARY_FOPEN 1
18146 _ACEOF
18148 esac
18150 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18151 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18152 if test "${ac_cv_have_decl_ffs+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 else
18155 cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h. */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18161 $ac_includes_default
18163 main ()
18165 #ifndef ffs
18166 char *p = (char *) ffs;
18167 #endif
18170 return 0;
18172 _ACEOF
18173 rm -f conftest.$ac_objext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175 (eval $ac_compile) 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest.$ac_objext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 ac_cv_have_decl_ffs=yes
18196 else
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 ac_cv_have_decl_ffs=no
18202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18204 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18205 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18206 if test $ac_cv_have_decl_ffs = yes; then
18208 cat >>confdefs.h <<_ACEOF
18209 #define HAVE_DECL_FFS 1
18210 _ACEOF
18213 else
18214 cat >>confdefs.h <<_ACEOF
18215 #define HAVE_DECL_FFS 0
18216 _ACEOF
18222 echo "$as_me:$LINENO: checking whether free is declared" >&5
18223 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18224 if test "${ac_cv_have_decl_free+set}" = set; then
18225 echo $ECHO_N "(cached) $ECHO_C" >&6
18226 else
18227 cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h. */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18233 $ac_includes_default
18235 main ()
18237 #ifndef free
18238 char *p = (char *) free;
18239 #endif
18242 return 0;
18244 _ACEOF
18245 rm -f conftest.$ac_objext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247 (eval $ac_compile) 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_cv_have_decl_free=yes
18268 else
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 ac_cv_have_decl_free=no
18274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18276 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18277 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18278 if test $ac_cv_have_decl_free = yes; then
18280 cat >>confdefs.h <<_ACEOF
18281 #define HAVE_DECL_FREE 1
18282 _ACEOF
18285 else
18286 cat >>confdefs.h <<_ACEOF
18287 #define HAVE_DECL_FREE 0
18288 _ACEOF
18294 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18295 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18296 if test "${ac_cv_have_decl_getenv+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299 cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h. */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305 $ac_includes_default
18307 main ()
18309 #ifndef getenv
18310 char *p = (char *) getenv;
18311 #endif
18314 return 0;
18316 _ACEOF
18317 rm -f conftest.$ac_objext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18319 (eval $ac_compile) 2>conftest.er1
18320 ac_status=$?
18321 grep -v '^ *+' conftest.er1 >conftest.err
18322 rm -f conftest.er1
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
18326 { ac_try='test -z "$ac_c_werror_flag"
18327 || test ! -s conftest.err'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest.$ac_objext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 ac_cv_have_decl_getenv=yes
18340 else
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_have_decl_getenv=no
18346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18348 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18349 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18350 if test $ac_cv_have_decl_getenv = yes; then
18352 cat >>confdefs.h <<_ACEOF
18353 #define HAVE_DECL_GETENV 1
18354 _ACEOF
18357 else
18358 cat >>confdefs.h <<_ACEOF
18359 #define HAVE_DECL_GETENV 0
18360 _ACEOF
18366 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18367 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18368 if test "${ac_cv_have_decl_malloc+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 else
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h. */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 $ac_includes_default
18379 main ()
18381 #ifndef malloc
18382 char *p = (char *) malloc;
18383 #endif
18386 return 0;
18388 _ACEOF
18389 rm -f conftest.$ac_objext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18391 (eval $ac_compile) 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag"
18399 || test ! -s conftest.err'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; } &&
18405 { ac_try='test -s conftest.$ac_objext'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; }; then
18411 ac_cv_have_decl_malloc=yes
18412 else
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 ac_cv_have_decl_malloc=no
18418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18420 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18421 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18422 if test $ac_cv_have_decl_malloc = yes; then
18424 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_DECL_MALLOC 1
18426 _ACEOF
18429 else
18430 cat >>confdefs.h <<_ACEOF
18431 #define HAVE_DECL_MALLOC 0
18432 _ACEOF
18438 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18439 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18440 if test "${ac_cv_have_decl_realloc+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 else
18443 cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h. */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 $ac_includes_default
18451 main ()
18453 #ifndef realloc
18454 char *p = (char *) realloc;
18455 #endif
18458 return 0;
18460 _ACEOF
18461 rm -f conftest.$ac_objext
18462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18463 (eval $ac_compile) 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
18470 { ac_try='test -z "$ac_c_werror_flag"
18471 || test ! -s conftest.err'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest.$ac_objext'
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_cv_have_decl_realloc=yes
18484 else
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18488 ac_cv_have_decl_realloc=no
18490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18492 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18493 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18494 if test $ac_cv_have_decl_realloc = yes; then
18496 cat >>confdefs.h <<_ACEOF
18497 #define HAVE_DECL_REALLOC 1
18498 _ACEOF
18501 else
18502 cat >>confdefs.h <<_ACEOF
18503 #define HAVE_DECL_REALLOC 0
18504 _ACEOF
18510 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18511 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18512 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 else
18515 cat >conftest.$ac_ext <<_ACEOF
18516 /* confdefs.h. */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18521 $ac_includes_default
18523 main ()
18525 #ifndef stpcpy
18526 char *p = (char *) stpcpy;
18527 #endif
18530 return 0;
18532 _ACEOF
18533 rm -f conftest.$ac_objext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535 (eval $ac_compile) 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_cv_have_decl_stpcpy=yes
18556 else
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18560 ac_cv_have_decl_stpcpy=no
18562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18564 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18565 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18566 if test $ac_cv_have_decl_stpcpy = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define HAVE_DECL_STPCPY 1
18570 _ACEOF
18573 else
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE_DECL_STPCPY 0
18576 _ACEOF
18582 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18583 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18584 if test "${ac_cv_have_decl_strstr+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h. */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593 $ac_includes_default
18595 main ()
18597 #ifndef strstr
18598 char *p = (char *) strstr;
18599 #endif
18602 return 0;
18604 _ACEOF
18605 rm -f conftest.$ac_objext
18606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18607 (eval $ac_compile) 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
18614 { ac_try='test -z "$ac_c_werror_flag"
18615 || test ! -s conftest.err'
18616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; } &&
18621 { ac_try='test -s conftest.$ac_objext'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 ac_cv_have_decl_strstr=yes
18628 else
18629 echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18632 ac_cv_have_decl_strstr=no
18634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18636 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18637 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18638 if test $ac_cv_have_decl_strstr = yes; then
18640 cat >>confdefs.h <<_ACEOF
18641 #define HAVE_DECL_STRSTR 1
18642 _ACEOF
18645 else
18646 cat >>confdefs.h <<_ACEOF
18647 #define HAVE_DECL_STRSTR 0
18648 _ACEOF
18654 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18655 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18656 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 else
18659 cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h. */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665 $ac_includes_default
18667 main ()
18669 #ifndef snprintf
18670 char *p = (char *) snprintf;
18671 #endif
18674 return 0;
18676 _ACEOF
18677 rm -f conftest.$ac_objext
18678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679 (eval $ac_compile) 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
18686 { ac_try='test -z "$ac_c_werror_flag"
18687 || test ! -s conftest.err'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest.$ac_objext'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 ac_cv_have_decl_snprintf=yes
18700 else
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 ac_cv_have_decl_snprintf=no
18706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18708 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18709 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18710 if test $ac_cv_have_decl_snprintf = yes; then
18712 cat >>confdefs.h <<_ACEOF
18713 #define HAVE_DECL_SNPRINTF 1
18714 _ACEOF
18717 else
18718 cat >>confdefs.h <<_ACEOF
18719 #define HAVE_DECL_SNPRINTF 0
18720 _ACEOF
18726 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18727 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18728 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731 cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h. */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18737 $ac_includes_default
18739 main ()
18741 #ifndef vsnprintf
18742 char *p = (char *) vsnprintf;
18743 #endif
18746 return 0;
18748 _ACEOF
18749 rm -f conftest.$ac_objext
18750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18751 (eval $ac_compile) 2>conftest.er1
18752 ac_status=$?
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
18758 { ac_try='test -z "$ac_c_werror_flag"
18759 || test ! -s conftest.err'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest.$ac_objext'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_have_decl_vsnprintf=yes
18772 else
18773 echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18776 ac_cv_have_decl_vsnprintf=no
18778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18780 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18781 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18782 if test $ac_cv_have_decl_vsnprintf = yes; then
18784 cat >>confdefs.h <<_ACEOF
18785 #define HAVE_DECL_VSNPRINTF 1
18786 _ACEOF
18789 else
18790 cat >>confdefs.h <<_ACEOF
18791 #define HAVE_DECL_VSNPRINTF 0
18792 _ACEOF
18799 # Link in zlib if we can. This allows us to read compressed debug sections.
18800 # This is used only by compress.c.
18801 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18802 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18803 if test "${ac_cv_search_zlibVersion+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806 ac_func_search_save_LIBS=$LIBS
18807 ac_cv_search_zlibVersion=no
18808 cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h. */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18815 /* Override any gcc2 internal prototype to avoid an error. */
18816 #ifdef __cplusplus
18817 extern "C"
18818 #endif
18819 /* We use char because int might match the return type of a gcc2
18820 builtin and then its argument prototype would still apply. */
18821 char zlibVersion ();
18823 main ()
18825 zlibVersion ();
18827 return 0;
18829 _ACEOF
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18832 (eval $ac_link) 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
18839 { ac_try='test -z "$ac_c_werror_flag"
18840 || test ! -s conftest.err'
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest$ac_exeext'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 ac_cv_search_zlibVersion="none required"
18853 else
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18858 rm -f conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860 if test "$ac_cv_search_zlibVersion" = no; then
18861 for ac_lib in z; do
18862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18863 cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h. */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18870 /* Override any gcc2 internal prototype to avoid an error. */
18871 #ifdef __cplusplus
18872 extern "C"
18873 #endif
18874 /* We use char because int might match the return type of a gcc2
18875 builtin and then its argument prototype would still apply. */
18876 char zlibVersion ();
18878 main ()
18880 zlibVersion ();
18882 return 0;
18884 _ACEOF
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18887 (eval $ac_link) 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
18894 { ac_try='test -z "$ac_c_werror_flag"
18895 || test ! -s conftest.err'
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; } &&
18901 { ac_try='test -s conftest$ac_exeext'
18902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18903 (eval $ac_try) 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; }; then
18907 ac_cv_search_zlibVersion="-l$ac_lib"
18908 break
18909 else
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18914 rm -f conftest.err conftest.$ac_objext \
18915 conftest$ac_exeext conftest.$ac_ext
18916 done
18918 LIBS=$ac_func_search_save_LIBS
18920 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18921 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18922 if test "$ac_cv_search_zlibVersion" != no; then
18923 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18925 for ac_header in zlib.h
18927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18929 echo "$as_me:$LINENO: checking for $ac_header" >&5
18930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18936 else
18937 # Is the header compilable?
18938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18940 cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h. */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 $ac_includes_default
18947 #include <$ac_header>
18948 _ACEOF
18949 rm -f conftest.$ac_objext
18950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18951 (eval $ac_compile) 2>conftest.er1
18952 ac_status=$?
18953 grep -v '^ *+' conftest.er1 >conftest.err
18954 rm -f conftest.er1
18955 cat conftest.err >&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } &&
18958 { ac_try='test -z "$ac_c_werror_flag"
18959 || test ! -s conftest.err'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest.$ac_objext'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_header_compiler=yes
18972 else
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 ac_header_compiler=no
18978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18980 echo "${ECHO_T}$ac_header_compiler" >&6
18982 # Is the header present?
18983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18985 cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h. */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 #include <$ac_header>
18992 _ACEOF
18993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } >/dev/null; then
19001 if test -s conftest.err; then
19002 ac_cpp_err=$ac_c_preproc_warn_flag
19003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19004 else
19005 ac_cpp_err=
19007 else
19008 ac_cpp_err=yes
19010 if test -z "$ac_cpp_err"; then
19011 ac_header_preproc=yes
19012 else
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19016 ac_header_preproc=no
19018 rm -f conftest.err conftest.$ac_ext
19019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19020 echo "${ECHO_T}$ac_header_preproc" >&6
19022 # So? What about this header?
19023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19024 yes:no: )
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19029 ac_header_preproc=yes
19031 no:yes:* )
19032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19045 cat <<\_ASBOX
19046 ## ------------------------------------------ ##
19047 ## Report this to the AC_PACKAGE_NAME lists. ##
19048 ## ------------------------------------------ ##
19049 _ASBOX
19051 sed "s/^/$as_me: WARNING: /" >&2
19053 esac
19054 echo "$as_me:$LINENO: checking for $ac_header" >&5
19055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 else
19059 eval "$as_ac_Header=\$ac_header_preproc"
19061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19066 cat >>confdefs.h <<_ACEOF
19067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19068 _ACEOF
19072 done
19077 # If we are configured native, pick a core file support file.
19078 COREFILE=
19079 COREFLAG=
19080 TRAD_HEADER=
19081 if test "${target}" = "${host}"; then
19082 case "${host}" in
19083 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
19084 COREFILE=''
19086 alpha*-*-linux-*)
19087 COREFILE=trad-core.lo
19088 TRAD_HEADER='"hosts/alphalinux.h"'
19090 alpha*-*-netbsd* | alpha*-*-openbsd*)
19091 COREFILE=netbsd-core.lo
19093 alpha*-*-*) COREFILE=osf-core.lo ;;
19094 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19095 COREFILE='' ;;
19096 arm-*-netbsd* | arm-*-openbsd*)
19097 COREFILE=netbsd-core.lo
19099 arm-*-riscix) COREFILE=trad-core.lo ;;
19100 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19101 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19102 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19103 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19104 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
19105 hppa*-*-netbsd* | hppa*-*-openbsd*)
19106 COREFILE=netbsd-core.lo
19109 i370-*-*)
19110 COREFILE=trad-core.lo
19111 TRAD_HEADER='"hosts/i370linux.h"'
19114 i[3-7]86-sequent-bsd*)
19115 COREFILE=trad-core.lo
19116 TRAD_HEADER='"hosts/symmetry.h"'
19118 i[3-7]86-sequent-sysv4*) ;;
19119 i[3-7]86-sequent-sysv*)
19120 COREFILE=trad-core.lo
19121 TRAD_HEADER='"hosts/symmetry.h"'
19123 i[3-7]86-*-bsdi)
19124 COREFILE=
19126 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*)
19127 COREFILE=trad-core.lo
19128 TRAD_HEADER='"hosts/i386bsd.h"'
19130 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
19131 COREFILE=''
19132 TRAD_HEADER='"hosts/i386bsd.h"'
19134 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
19135 COREFILE=netbsd-core.lo
19137 i[3-7]86-esix-sysv3*)
19138 COREFILE=trad-core.lo
19139 TRAD_HEADER='"hosts/esix.h"'
19141 i[3-7]86-*-sco3.2v5*)
19142 COREFILE=sco5-core.lo
19144 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
19145 COREFILE=trad-core.lo
19146 TRAD_HEADER='"hosts/i386sco.h"'
19148 i[3-7]86-*-mach3*)
19149 COREFILE=trad-core.lo
19150 TRAD_HEADER='"hosts/i386mach3.h"'
19152 i[3-7]86-*-linux-*)
19153 COREFILE=trad-core.lo
19154 TRAD_HEADER='"hosts/i386linux.h"'
19156 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19157 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
19158 i860-*-mach3* | i860-*-osf1*)
19159 COREFILE=trad-core.lo
19160 TRAD_HEADER='"hosts/i860mach3.h"'
19162 mips-*-netbsd* | mips*-*-openbsd*)
19163 COREFILE=netbsd-core.lo
19165 mips-dec-*)
19166 COREFILE=trad-core.lo
19167 TRAD_HEADER='"hosts/decstation.h"'
19169 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19170 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19171 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
19172 mips-*-sysv4*) ;;
19173 mips-*-sysv* | mips-*-riscos*)
19174 COREFILE=trad-core.lo
19175 TRAD_HEADER='"hosts/riscos.h"'
19177 mips-sony-bsd*)
19178 COREFILE=trad-core.lo
19179 TRAD_HEADER='"hosts/news-mips.h"'
19181 m68*-bull*-sysv*)
19182 COREFILE=trad-core.lo
19183 TRAD_HEADER='"hosts/dpx2.h"'
19185 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19186 m68*-hp-bsd*)
19187 COREFILE=trad-core.lo
19188 TRAD_HEADER='"hosts/hp300bsd.h"'
19190 m68*-*-linux-*)
19191 COREFILE=trad-core.lo
19192 TRAD_HEADER='"hosts/m68klinux.h"'
19194 m68*-motorola-sysv*)
19195 COREFILE=trad-core.lo
19196 TRAD_HEADER='"hosts/delta68.h"'
19198 m68*-sony-*)
19199 COREFILE=trad-core.lo
19200 TRAD_HEADER='"hosts/news.h"'
19202 m68*-*-netbsd* | m68*-*-openbsd*)
19203 COREFILE=netbsd-core.lo
19205 m68*-apple-aux*)
19206 COREFILE=trad-core.lo
19207 TRAD_HEADER='"hosts/m68kaux.h"'
19209 m88*-*-sysv4*)
19211 m88*-motorola-sysv*)
19212 COREFILE=ptrace-core.lo
19214 m88*-*-mach3*)
19215 COREFILE=trad-core.lo
19216 TRAD_HEADER='"hosts/m88kmach3.h"'
19218 m88*-*-openbsd*)
19219 COREFILE=netbsd-core.lo
19221 ns32k-pc532-mach)
19222 COREFILE=trad-core.lo
19223 TRAD_HEADER='"hosts/pc532mach.h"'
19225 ns32k-*-netbsd* | ns32k-*-openbsd*)
19226 COREFILE=netbsd-core.lo
19228 rs6000-*-lynx*)
19229 COREFILE=lynx-core.lo
19231 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
19232 COREFILE=rs6000-core.lo
19233 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19235 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
19236 COREFILE=rs6000-core.lo
19237 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
19238 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19239 # have c_impl as a member of struct core_dumpx
19240 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19241 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h. */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <core.h>
19250 main ()
19252 struct core_dumpx c; c.c_impl = 0;
19254 return 0;
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19280 cat >>confdefs.h <<\_ACEOF
19281 #define HAVE_ST_C_IMPL 1
19282 _ACEOF
19284 echo "$as_me:$LINENO: result: yes" >&5
19285 echo "${ECHO_T}yes" >&6
19286 else
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 echo "$as_me:$LINENO: result: no" >&5
19291 echo "${ECHO_T}no" >&6
19293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19295 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19296 rs6000-*-*) COREFILE=rs6000-core.lo ;;
19297 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19298 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19299 powerpc-*-beos*) ;;
19300 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19301 COREFILE='' ;;
19302 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
19303 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
19304 s390*-*-*) COREFILE=trad-core.lo ;;
19305 sh*-*-netbsd* | sh*-*-openbsd*)
19306 COREFILE=netbsd-core.lo
19308 sparc-*-netbsd* | sparc*-*-openbsd*)
19309 COREFILE=netbsd-core.lo
19311 tahoe-*-*)
19312 COREFILE=trad-core.lo
19313 TRAD_HEADER='"hosts/tahoe.h"'
19315 vax-*-netbsd* | vax-*-openbsd*)
19316 COREFILE=netbsd-core.lo
19318 vax-*-ultrix2*)
19319 COREFILE=trad-core.lo
19320 TRAD_HEADER='"hosts/vaxult2.h"'
19322 vax-*-ultrix*)
19323 COREFILE=trad-core.lo
19324 TRAD_HEADER='"hosts/vaxult2.h"'
19326 vax-*-linux-*)
19327 COREFILE=trad-core.lo
19328 TRAD_HEADER='"hosts/vaxlinux.h"'
19330 vax-*-*)
19331 COREFILE=trad-core.lo
19332 TRAD_HEADER='"hosts/vaxbsd.h"'
19334 x86_64-*-netbsd* | x86_64-*-openbsd*)
19335 COREFILE=netbsd-core.lo
19337 esac
19339 case "$COREFILE" in
19340 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19341 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19342 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19343 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19344 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19345 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19346 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19347 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19348 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19349 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19350 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19351 esac
19353 # ELF corefile support has several flavors, but all of
19354 # them use something called <sys/procfs.h>
19356 for ac_header in sys/procfs.h
19358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19360 echo "$as_me:$LINENO: checking for $ac_header" >&5
19361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19367 else
19368 # Is the header compilable?
19369 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h. */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19377 $ac_includes_default
19378 #include <$ac_header>
19379 _ACEOF
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_header_compiler=yes
19403 else
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 ac_header_compiler=no
19409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19411 echo "${ECHO_T}$ac_header_compiler" >&6
19413 # Is the header present?
19414 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19416 cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h. */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19422 #include <$ac_header>
19423 _ACEOF
19424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } >/dev/null; then
19432 if test -s conftest.err; then
19433 ac_cpp_err=$ac_c_preproc_warn_flag
19434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19435 else
19436 ac_cpp_err=
19438 else
19439 ac_cpp_err=yes
19441 if test -z "$ac_cpp_err"; then
19442 ac_header_preproc=yes
19443 else
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 ac_header_preproc=no
19449 rm -f conftest.err conftest.$ac_ext
19450 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19451 echo "${ECHO_T}$ac_header_preproc" >&6
19453 # So? What about this header?
19454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19455 yes:no: )
19456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19460 ac_header_preproc=yes
19462 no:yes:* )
19463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19476 cat <<\_ASBOX
19477 ## ------------------------------------------ ##
19478 ## Report this to the AC_PACKAGE_NAME lists. ##
19479 ## ------------------------------------------ ##
19480 _ASBOX
19482 sed "s/^/$as_me: WARNING: /" >&2
19484 esac
19485 echo "$as_me:$LINENO: checking for $ac_header" >&5
19486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490 eval "$as_ac_Header=\$ac_header_preproc"
19492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19497 cat >>confdefs.h <<_ACEOF
19498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19499 _ACEOF
19503 done
19505 if test "$ac_cv_header_sys_procfs_h" = yes; then
19506 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19507 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19508 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h. */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19518 #define _SYSCALL32
19519 #include <sys/procfs.h>
19521 main ()
19523 prstatus_t avar
19525 return 0;
19527 _ACEOF
19528 rm -f conftest.$ac_objext
19529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19530 (eval $ac_compile) 2>conftest.er1
19531 ac_status=$?
19532 grep -v '^ *+' conftest.er1 >conftest.err
19533 rm -f conftest.er1
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } &&
19537 { ac_try='test -z "$ac_c_werror_flag"
19538 || test ! -s conftest.err'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; } &&
19544 { ac_try='test -s conftest.$ac_objext'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19550 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19551 else
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 bfd_cv_have_sys_procfs_type_prstatus_t=no
19558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19561 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
19563 cat >>confdefs.h <<\_ACEOF
19564 #define HAVE_PRSTATUS_T 1
19565 _ACEOF
19568 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19569 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
19571 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19572 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19573 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h. */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19583 #define _SYSCALL32
19584 #include <sys/procfs.h>
19586 main ()
19588 prstatus32_t avar
19590 return 0;
19592 _ACEOF
19593 rm -f conftest.$ac_objext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595 (eval $ac_compile) 2>conftest.er1
19596 ac_status=$?
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try='test -z "$ac_c_werror_flag"
19603 || test ! -s conftest.err'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest.$ac_objext'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; }; then
19615 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19616 else
19617 echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19620 bfd_cv_have_sys_procfs_type_prstatus32_t=no
19623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19626 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE_PRSTATUS32_T 1
19630 _ACEOF
19633 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19634 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
19636 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19637 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19638 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641 cat >conftest.$ac_ext <<_ACEOF
19642 /* confdefs.h. */
19643 _ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19648 #define _SYSCALL32
19649 #include <sys/procfs.h>
19651 main ()
19653 prstatus_t avar; void* aref = (void*) &avar.pr_who
19655 return 0;
19657 _ACEOF
19658 rm -f conftest.$ac_objext
19659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19660 (eval $ac_compile) 2>conftest.er1
19661 ac_status=$?
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try='test -z "$ac_c_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest.$ac_objext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19681 else
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19691 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
19693 cat >>confdefs.h <<\_ACEOF
19694 #define HAVE_PRSTATUS_T_PR_WHO 1
19695 _ACEOF
19698 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19699 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
19701 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19702 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19703 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706 cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19713 #define _SYSCALL32
19714 #include <sys/procfs.h>
19716 main ()
19718 prstatus32_t avar; void* aref = (void*) &avar.pr_who
19720 return 0;
19722 _ACEOF
19723 rm -f conftest.$ac_objext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725 (eval $ac_compile) 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -z "$ac_c_werror_flag"
19733 || test ! -s conftest.err'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; } &&
19739 { ac_try='test -s conftest.$ac_objext'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19746 else
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19756 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE_PRSTATUS32_T_PR_WHO 1
19760 _ACEOF
19763 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19764 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
19766 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19767 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19768 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771 cat >conftest.$ac_ext <<_ACEOF
19772 /* confdefs.h. */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19778 #define _SYSCALL32
19779 #include <sys/procfs.h>
19781 main ()
19783 pstatus_t avar
19785 return 0;
19787 _ACEOF
19788 rm -f conftest.$ac_objext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19790 (eval $ac_compile) 2>conftest.er1
19791 ac_status=$?
19792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try='test -z "$ac_c_werror_flag"
19798 || test ! -s conftest.err'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest.$ac_objext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19811 else
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 bfd_cv_have_sys_procfs_type_pstatus_t=no
19818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19821 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19823 cat >>confdefs.h <<\_ACEOF
19824 #define HAVE_PSTATUS_T 1
19825 _ACEOF
19828 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19829 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19831 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19832 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19833 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836 cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h. */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19843 #define _SYSCALL32
19844 #include <sys/procfs.h>
19846 main ()
19848 pxstatus_t avar
19850 return 0;
19852 _ACEOF
19853 rm -f conftest.$ac_objext
19854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19855 (eval $ac_compile) 2>conftest.er1
19856 ac_status=$?
19857 grep -v '^ *+' conftest.er1 >conftest.err
19858 rm -f conftest.er1
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } &&
19862 { ac_try='test -z "$ac_c_werror_flag"
19863 || test ! -s conftest.err'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; } &&
19869 { ac_try='test -s conftest.$ac_objext'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
19875 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19876 else
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 bfd_cv_have_sys_procfs_type_pxstatus_t=no
19883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19886 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE_PXSTATUS_T 1
19890 _ACEOF
19893 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19894 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
19896 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19897 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19898 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 else
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h. */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19908 #define _SYSCALL32
19909 #include <sys/procfs.h>
19911 main ()
19913 pstatus32_t avar
19915 return 0;
19917 _ACEOF
19918 rm -f conftest.$ac_objext
19919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19920 (eval $ac_compile) 2>conftest.er1
19921 ac_status=$?
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
19927 { ac_try='test -z "$ac_c_werror_flag"
19928 || test ! -s conftest.err'
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; } &&
19934 { ac_try='test -s conftest.$ac_objext'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19941 else
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19945 bfd_cv_have_sys_procfs_type_pstatus32_t=no
19948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19951 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
19953 cat >>confdefs.h <<\_ACEOF
19954 #define HAVE_PSTATUS32_T 1
19955 _ACEOF
19958 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19959 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
19961 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19962 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19963 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 else
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h. */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19973 #define _SYSCALL32
19974 #include <sys/procfs.h>
19976 main ()
19978 prpsinfo_t avar
19980 return 0;
19982 _ACEOF
19983 rm -f conftest.$ac_objext
19984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19985 (eval $ac_compile) 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
19992 { ac_try='test -z "$ac_c_werror_flag"
19993 || test ! -s conftest.err'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; } &&
19999 { ac_try='test -s conftest.$ac_objext'
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
20006 else
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
20013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20016 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
20018 cat >>confdefs.h <<\_ACEOF
20019 #define HAVE_PRPSINFO_T 1
20020 _ACEOF
20023 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20024 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
20026 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20027 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20028 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031 cat >conftest.$ac_ext <<_ACEOF
20032 /* confdefs.h. */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20038 #define _SYSCALL32
20039 #include <sys/procfs.h>
20041 main ()
20043 prpsinfo32_t avar
20045 return 0;
20047 _ACEOF
20048 rm -f conftest.$ac_objext
20049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20050 (eval $ac_compile) 2>conftest.er1
20051 ac_status=$?
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
20057 { ac_try='test -z "$ac_c_werror_flag"
20058 || test ! -s conftest.err'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest.$ac_objext'
20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; }; then
20070 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20071 else
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20075 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20081 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
20083 cat >>confdefs.h <<\_ACEOF
20084 #define HAVE_PRPSINFO32_T 1
20085 _ACEOF
20088 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20089 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
20091 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20092 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20093 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096 cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h. */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20103 #define _SYSCALL32
20104 #include <sys/procfs.h>
20106 main ()
20108 psinfo_t avar
20110 return 0;
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115 (eval $ac_compile) 2>conftest.er1
20116 ac_status=$?
20117 grep -v '^ *+' conftest.er1 >conftest.err
20118 rm -f conftest.er1
20119 cat conftest.err >&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } &&
20122 { ac_try='test -z "$ac_c_werror_flag"
20123 || test ! -s conftest.err'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; } &&
20129 { ac_try='test -s conftest.$ac_objext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20136 else
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20140 bfd_cv_have_sys_procfs_type_psinfo_t=no
20143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20146 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
20148 cat >>confdefs.h <<\_ACEOF
20149 #define HAVE_PSINFO_T 1
20150 _ACEOF
20153 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20154 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
20156 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20157 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20158 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h. */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20168 #define _SYSCALL32
20169 #include <sys/procfs.h>
20171 main ()
20173 psinfo32_t avar
20175 return 0;
20177 _ACEOF
20178 rm -f conftest.$ac_objext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20180 (eval $ac_compile) 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag"
20188 || test ! -s conftest.err'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; } &&
20194 { ac_try='test -s conftest.$ac_objext'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
20200 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20201 else
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20205 bfd_cv_have_sys_procfs_type_psinfo32_t=no
20208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20211 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
20213 cat >>confdefs.h <<\_ACEOF
20214 #define HAVE_PSINFO32_T 1
20215 _ACEOF
20218 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20219 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
20221 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20222 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20223 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226 cat >conftest.$ac_ext <<_ACEOF
20227 /* confdefs.h. */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20233 #define _SYSCALL32
20234 #include <sys/procfs.h>
20236 main ()
20238 lwpstatus_t avar
20240 return 0;
20242 _ACEOF
20243 rm -f conftest.$ac_objext
20244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20245 (eval $ac_compile) 2>conftest.er1
20246 ac_status=$?
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } &&
20252 { ac_try='test -z "$ac_c_werror_flag"
20253 || test ! -s conftest.err'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20266 else
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20276 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
20278 cat >>confdefs.h <<\_ACEOF
20279 #define HAVE_LWPSTATUS_T 1
20280 _ACEOF
20283 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20284 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
20286 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20287 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20288 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291 cat >conftest.$ac_ext <<_ACEOF
20292 /* confdefs.h. */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20298 #define _SYSCALL32
20299 #include <sys/procfs.h>
20301 main ()
20303 lwpxstatus_t avar
20305 return 0;
20307 _ACEOF
20308 rm -f conftest.$ac_objext
20309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20310 (eval $ac_compile) 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -z "$ac_c_werror_flag"
20318 || test ! -s conftest.err'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; } &&
20324 { ac_try='test -s conftest.$ac_objext'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20331 else
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20341 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
20343 cat >>confdefs.h <<\_ACEOF
20344 #define HAVE_LWPXSTATUS_T 1
20345 _ACEOF
20348 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20349 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
20351 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20352 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20353 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356 cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h. */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20363 #define _SYSCALL32
20364 #include <sys/procfs.h>
20366 main ()
20368 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
20370 return 0;
20372 _ACEOF
20373 rm -f conftest.$ac_objext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375 (eval $ac_compile) 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try='test -z "$ac_c_werror_flag"
20383 || test ! -s conftest.err'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20386 ac_status=$?
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } &&
20389 { ac_try='test -s conftest.$ac_objext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20396 else
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20400 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20406 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
20408 cat >>confdefs.h <<\_ACEOF
20409 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
20410 _ACEOF
20413 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20414 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
20416 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20417 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20418 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421 cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h. */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20428 #define _SYSCALL32
20429 #include <sys/procfs.h>
20431 main ()
20433 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
20435 return 0;
20437 _ACEOF
20438 rm -f conftest.$ac_objext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20440 (eval $ac_compile) 2>conftest.er1
20441 ac_status=$?
20442 grep -v '^ *+' conftest.er1 >conftest.err
20443 rm -f conftest.er1
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
20447 { ac_try='test -z "$ac_c_werror_flag"
20448 || test ! -s conftest.err'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest.$ac_objext'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20461 else
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20471 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
20473 cat >>confdefs.h <<\_ACEOF
20474 #define HAVE_LWPSTATUS_T_PR_REG 1
20475 _ACEOF
20478 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20479 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
20481 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20482 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20483 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h. */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20493 #define _SYSCALL32
20494 #include <sys/procfs.h>
20496 main ()
20498 win32_pstatus_t avar
20500 return 0;
20502 _ACEOF
20503 rm -f conftest.$ac_objext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20505 (eval $ac_compile) 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
20512 { ac_try='test -z "$ac_c_werror_flag"
20513 || test ! -s conftest.err'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; } &&
20519 { ac_try='test -s conftest.$ac_objext'
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
20525 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20526 else
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20530 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20536 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
20538 cat >>confdefs.h <<\_ACEOF
20539 #define HAVE_WIN32_PSTATUS_T 1
20540 _ACEOF
20543 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20544 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
20550 if test -n "$TRAD_HEADER"; then
20552 cat >>confdefs.h <<_ACEOF
20553 #define TRAD_HEADER $TRAD_HEADER
20554 _ACEOF
20558 # Check if linker supports --as-needed and --no-as-needed options
20559 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
20560 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
20561 if test "${bfd_cv_ld_as_needed+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564 bfd_cv_ld_as_needed=no
20565 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
20566 bfd_cv_ld_as_needed=yes
20570 echo "$as_me:$LINENO: result: $bfd_cv_ld_as_needed" >&5
20571 echo "${ECHO_T}$bfd_cv_ld_as_needed" >&6
20573 LIBM=
20574 case $host in
20575 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
20576 # These system don't have libm, or don't need it
20578 *-ncr-sysv4.3*)
20579 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
20580 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
20581 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584 ac_check_lib_save_LIBS=$LIBS
20585 LIBS="-lmw $LIBS"
20586 cat >conftest.$ac_ext <<_ACEOF
20587 /* confdefs.h. */
20588 _ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h. */
20593 /* Override any gcc2 internal prototype to avoid an error. */
20594 #ifdef __cplusplus
20595 extern "C"
20596 #endif
20597 /* We use char because int might match the return type of a gcc2
20598 builtin and then its argument prototype would still apply. */
20599 char _mwvalidcheckl ();
20601 main ()
20603 _mwvalidcheckl ();
20605 return 0;
20607 _ACEOF
20608 rm -f conftest.$ac_objext conftest$ac_exeext
20609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20610 (eval $ac_link) 2>conftest.er1
20611 ac_status=$?
20612 grep -v '^ *+' conftest.er1 >conftest.err
20613 rm -f conftest.er1
20614 cat conftest.err >&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } &&
20617 { ac_try='test -z "$ac_c_werror_flag"
20618 || test ! -s conftest.err'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20621 ac_status=$?
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; } &&
20624 { ac_try='test -s conftest$ac_exeext'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; }; then
20630 ac_cv_lib_mw__mwvalidcheckl=yes
20631 else
20632 echo "$as_me: failed program was:" >&5
20633 sed 's/^/| /' conftest.$ac_ext >&5
20635 ac_cv_lib_mw__mwvalidcheckl=no
20637 rm -f conftest.err conftest.$ac_objext \
20638 conftest$ac_exeext conftest.$ac_ext
20639 LIBS=$ac_check_lib_save_LIBS
20641 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
20642 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
20643 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
20644 LIBM="-lmw"
20647 echo "$as_me:$LINENO: checking for cos in -lm" >&5
20648 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20649 if test "${ac_cv_lib_m_cos+set}" = set; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 else
20652 ac_check_lib_save_LIBS=$LIBS
20653 LIBS="-lm $LIBS"
20654 cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h. */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20661 /* Override any gcc2 internal prototype to avoid an error. */
20662 #ifdef __cplusplus
20663 extern "C"
20664 #endif
20665 /* We use char because int might match the return type of a gcc2
20666 builtin and then its argument prototype would still apply. */
20667 char cos ();
20669 main ()
20671 cos ();
20673 return 0;
20675 _ACEOF
20676 rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20678 (eval $ac_link) 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } &&
20685 { ac_try='test -z "$ac_c_werror_flag"
20686 || test ! -s conftest.err'
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try='test -s conftest$ac_exeext'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 ac_cv_lib_m_cos=yes
20699 else
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 ac_cv_lib_m_cos=no
20705 rm -f conftest.err conftest.$ac_objext \
20706 conftest$ac_exeext conftest.$ac_ext
20707 LIBS=$ac_check_lib_save_LIBS
20709 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20710 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20711 if test $ac_cv_lib_m_cos = yes; then
20712 LIBM="$LIBM -lm"
20717 echo "$as_me:$LINENO: checking for cos in -lm" >&5
20718 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20719 if test "${ac_cv_lib_m_cos+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 else
20722 ac_check_lib_save_LIBS=$LIBS
20723 LIBS="-lm $LIBS"
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20731 /* Override any gcc2 internal prototype to avoid an error. */
20732 #ifdef __cplusplus
20733 extern "C"
20734 #endif
20735 /* We use char because int might match the return type of a gcc2
20736 builtin and then its argument prototype would still apply. */
20737 char cos ();
20739 main ()
20741 cos ();
20743 return 0;
20745 _ACEOF
20746 rm -f conftest.$ac_objext conftest$ac_exeext
20747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20748 (eval $ac_link) 2>conftest.er1
20749 ac_status=$?
20750 grep -v '^ *+' conftest.er1 >conftest.err
20751 rm -f conftest.er1
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } &&
20755 { ac_try='test -z "$ac_c_werror_flag"
20756 || test ! -s conftest.err'
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest$ac_exeext'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_cv_lib_m_cos=yes
20769 else
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 ac_cv_lib_m_cos=no
20775 rm -f conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20777 LIBS=$ac_check_lib_save_LIBS
20779 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20780 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20781 if test $ac_cv_lib_m_cos = yes; then
20782 LIBM="-lm"
20786 esac
20790 # When building a shared libbfd, link against the pic version of libiberty
20791 # so that apps that use libbfd won't need libiberty just to satisfy any
20792 # libbfd references.
20793 # We can't do that if a pic libiberty is unavailable since including non-pic
20794 # code would insert text relocations into libbfd.
20795 SHARED_LIBADD=
20796 SHARED_LDFLAGS=
20797 if test "$enable_shared" = "yes"; then
20798 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20799 if test -n "$x"; then
20800 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
20803 # More hacks to build DLLs on Windows.
20804 case "${host}" in
20805 *-*-cygwin*)
20806 SHARED_LDFLAGS="-no-undefined"
20807 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20809 esac
20811 if test -n "$SHARED_LIBADD"; then
20812 if test -n "$LIBM"; then
20813 if test x"$bfd_cv_ld_as_needed" = xyes; then
20814 # Link against libm only when needed. Put -lc, -lm inside -Wl
20815 # to stop libtool reordering these options.
20816 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
20817 else
20818 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
20826 # target stuff:
20828 # Canonicalize the secondary target names.
20829 if test -n "$enable_targets" ; then
20830 for targ in `echo $enable_targets | sed 's/,/ /g'`
20832 result=`$ac_config_sub $targ 2>/dev/null`
20833 if test -n "$result" ; then
20834 canon_targets="$canon_targets $result"
20835 else
20836 # Allow targets that config.sub doesn't recognize, like "all".
20837 canon_targets="$canon_targets $targ"
20839 done
20842 all_targets=false
20843 defvec=
20844 selvecs=
20845 assocvecs=
20846 selarchs=
20847 TDEFINES=
20848 for targ in $target $canon_targets
20850 if test "x$targ" = "xall"; then
20851 all_targets=true
20852 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
20853 else
20854 . $srcdir/config.bfd
20855 if test "x$targ" = "x$target"; then
20856 defvec=$targ_defvec
20858 selvecs="$selvecs $targ_defvec $targ_selvecs"
20859 selarchs="$selarchs $targ_archs"
20860 TDEFINES="$TDEFINES $targ_cflags"
20862 done
20865 # This processing still needs to be done if we're to decide properly whether
20866 # 64-bit support needs to be compiled in. Currently, it will be included if
20867 # the default or any other explicitly requested target requires it; it
20868 # will not be included on a 32-bit host if no 64-bit target is requested, and
20869 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
20870 # used.
20872 # uniq the default and selected vectors in all the configured targets.
20873 f=""
20874 for i in $selvecs ; do
20875 case " $f " in
20876 *" $i "*) ;;
20877 *) f="$f $i" ;;
20878 esac
20879 done
20880 selvecs="$f"
20883 # uniq the associated vectors in all the configured targets.
20884 f=""
20885 for i in $assocvecs ; do
20886 case " $f " in
20887 *" $i "*) ;;
20888 *) f="$f $i" ;;
20889 esac
20890 done
20891 assocvecs="$f"
20894 # uniq the architectures in all the configured targets.
20895 f=""
20896 for i in $selarchs ; do
20897 case " $f " in
20898 *" $i "*) ;;
20899 *) f="$f $i" ;;
20900 esac
20901 done
20902 selarchs="$f"
20904 # Target backend .o files.
20907 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
20909 for vec in $selvecs
20911 target_size=32
20912 case "$vec" in
20913 # This list is alphabetized to make it easy to compare
20914 # with the two vector lists in targets.c. For the same reason,
20915 # use one entry per line, even though this leads to long lines.
20916 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
20917 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20918 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20919 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20920 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20921 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
20922 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20923 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20924 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20925 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20926 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20927 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20928 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20929 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20930 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20931 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20932 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20933 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20934 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20935 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20936 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20937 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20938 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
20939 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
20940 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20941 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
20942 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20943 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20944 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20945 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20946 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20947 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20948 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
20949 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
20950 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20951 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20952 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20953 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20954 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20955 bfd_elf32_bigarm_symbian_vec)
20956 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20957 bfd_elf32_bigarm_vxworks_vec)
20958 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20959 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20960 bfd_elf32_bigmips_vxworks_vec)
20961 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20962 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
20963 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
20964 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20965 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
20966 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20967 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
20968 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
20969 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
20970 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20971 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20972 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
20973 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
20974 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20975 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20976 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20977 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
20978 bfd_elf32_i386_dragonfly_vec)
20979 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20980 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20981 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20982 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20983 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20984 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20985 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
20986 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
20987 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
20988 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
20989 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
20990 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
20991 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
20992 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20993 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20994 bfd_elf32_littlearm_symbian_vec)
20995 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20996 bfd_elf32_littlearm_vxworks_vec)
20997 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20998 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20999 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21000 bfd_elf32_littlemips_vxworks_vec)
21001 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21002 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
21003 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
21004 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
21005 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
21006 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
21007 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
21008 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
21009 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
21010 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
21011 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
21012 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
21013 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
21014 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
21015 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
21016 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
21017 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
21018 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
21019 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21020 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21021 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21022 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21023 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
21024 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
21025 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
21026 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
21027 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
21028 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
21029 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
21030 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
21031 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
21032 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
21033 # FIXME: We include cofflink.lo not because it's needed for
21034 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
21035 # which needs it but does not list it. Should be fixed in right place.
21036 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21037 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21038 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21039 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21040 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
21041 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
21042 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21043 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21044 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21045 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21046 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21047 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21048 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21049 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21050 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21051 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
21052 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
21053 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
21054 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21055 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21056 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
21057 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
21058 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
21059 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
21060 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
21061 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
21062 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
21063 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
21064 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
21065 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
21066 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 ;;
21067 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
21068 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
21069 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
21070 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
21071 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
21072 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf vmsutil.lo"; target_size=64 ;;
21073 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
21074 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 ;;
21075 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
21076 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
21077 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
21078 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
21079 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21080 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21081 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21082 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21083 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21084 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21085 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
21086 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
21087 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 ;;
21088 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 ;;
21089 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
21090 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
21091 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
21092 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
21093 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
21094 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
21095 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
21096 cris_aout_vec) tb="$tb aout-cris.lo" ;;
21097 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
21098 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
21099 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
21100 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
21101 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
21102 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
21103 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
21104 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
21105 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
21106 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
21107 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
21108 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
21109 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
21110 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
21111 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
21112 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
21113 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
21114 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
21115 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
21116 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
21117 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
21118 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
21119 i386msdos_vec) tb="$tb i386msdos.lo" ;;
21120 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
21121 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
21122 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
21123 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
21124 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
21125 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
21126 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
21127 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
21128 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
21129 ieee_vec) tb="$tb ieee.lo" ;;
21130 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
21131 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
21132 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
21133 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
21134 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
21135 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
21136 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
21137 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
21138 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
21139 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
21140 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
21141 mach_o_be_vec) tb="$tb mach-o.lo" ;;
21142 mach_o_le_vec) tb="$tb mach-o.lo" ;;
21143 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
21144 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
21145 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
21146 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
21147 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
21148 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
21149 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
21150 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
21151 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
21152 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
21153 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
21154 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
21155 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
21156 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
21157 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
21158 pef_vec) tb="$tb pef.lo" ;;
21159 pef_xlib_vec) tb="$tb pef.lo" ;;
21160 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
21161 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
21162 ppcboot_vec) tb="$tb ppcboot.lo" ;;
21163 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
21164 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
21165 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
21166 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
21167 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
21168 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
21169 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
21170 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
21171 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
21172 som_vec) tb="$tb som.lo" ;;
21173 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
21174 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
21175 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
21176 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
21177 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
21178 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
21179 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
21180 sym_vec) tb="$tb xsym.lo" ;;
21181 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
21182 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
21183 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
21184 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
21185 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
21186 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
21187 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
21188 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
21189 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
21190 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
21191 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
21192 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
21193 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
21194 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
21195 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
21196 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
21197 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
21198 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
21199 versados_vec) tb="$tb versados.lo" ;;
21200 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
21201 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
21202 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
21203 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
21204 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
21205 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
21207 # These appear out of order in targets.c
21208 srec_vec) tb="$tb srec.lo" ;;
21209 symbolsrec_vec) tb="$tb srec.lo" ;;
21210 tekhex_vec) tb="$tb tekhex.lo" ;;
21211 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
21212 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
21214 "") ;;
21215 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
21216 echo "$as_me: error: *** unknown target vector $vec" >&2;}
21217 { (exit 1); exit 1; }; } ;;
21218 esac
21220 if test ${target_size} = 64; then
21221 target64=true
21223 if test x"${vec}" = x"${defvec}"; then
21224 bfd_default_target_size=${target_size}
21226 done
21228 # Target architecture .o files.
21229 # A couple of CPUs use shorter file names to avoid problems on DOS
21230 # filesystems.
21231 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
21233 # Weed out duplicate .o files.
21234 f=""
21235 for i in $tb ; do
21236 case " $f " in
21237 *" $i "*) ;;
21238 *) f="$f $i" ;;
21239 esac
21240 done
21241 tb="$f"
21243 f=""
21244 for i in $ta ; do
21245 case " $f " in
21246 *" $i "*) ;;
21247 *) f="$f $i" ;;
21248 esac
21249 done
21250 ta="$f"
21252 bfd_backends="$tb"
21253 bfd_machines="$ta"
21255 if test x${all_targets} = xtrue ; then
21256 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
21257 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
21258 selvecs=
21259 havevecs=
21260 selarchs=
21261 test -n "$assocvecs" &&
21262 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21263 else # all_targets is true
21264 # Only set these if they will be nonempty, for the clever echo.
21265 havevecs=
21266 assocvecs=
21267 test -n "$selvecs" &&
21268 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21269 test -n "$selvecs" &&
21270 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21271 test -n "$selarchs" &&
21272 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21273 fi # all_targets is true
21275 case ${host64}-${target64}-${want64} in
21276 *true*)
21277 wordsize=64
21278 bfd64_libs='$(BFD64_LIBS)'
21279 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
21280 if test $BFD_HOST_64_BIT_DEFINED = 0; then
21281 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21282 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21283 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21284 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
21286 if test -n "$GCC" ; then
21287 bad_64bit_gcc=no;
21288 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21289 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
21290 # Add more tests for gcc versions with non-working 64-bit support here.
21291 cat >conftest.$ac_ext <<_ACEOF
21292 /* confdefs.h. */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21297 :__GNUC__:__GNUC_MINOR__:__i386__:
21298 _ACEOF
21299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21300 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
21301 bad_64bit_gcc=yes;
21302 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21303 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
21304 else
21305 echo "$as_me:$LINENO: result: no" >&5
21306 echo "${ECHO_T}no" >&6
21308 rm -f conftest*
21310 if test $bad_64bit_gcc = yes ; then
21311 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21312 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21313 { (exit 1); exit 1; }; }
21317 false-false-false)
21318 wordsize=32
21319 all_backends='$(BFD32_BACKENDS)'
21321 esac
21330 # Determine the host dependant file_ptr a.k.a. off_t type. In order
21331 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21332 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21333 # Hopefully a reasonable assumption since fseeko et.al. should be
21334 # upward compatible.
21340 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
21342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21343 echo "$as_me:$LINENO: checking for $ac_func" >&5
21344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21345 if eval "test \"\${$as_ac_var+set}\" = set"; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21348 cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h. */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21356 #define $ac_func innocuous_$ac_func
21358 /* System header to define __stub macros and hopefully few prototypes,
21359 which can conflict with char $ac_func (); below.
21360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21361 <limits.h> exists even on freestanding compilers. */
21363 #ifdef __STDC__
21364 # include <limits.h>
21365 #else
21366 # include <assert.h>
21367 #endif
21369 #undef $ac_func
21371 /* Override any gcc2 internal prototype to avoid an error. */
21372 #ifdef __cplusplus
21373 extern "C"
21375 #endif
21376 /* We use char because int might match the return type of a gcc2
21377 builtin and then its argument prototype would still apply. */
21378 char $ac_func ();
21379 /* The GNU C library defines this for functions which it implements
21380 to always fail with ENOSYS. Some functions are actually named
21381 something starting with __ and the normal name is an alias. */
21382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21383 choke me
21384 #else
21385 char (*f) () = $ac_func;
21386 #endif
21387 #ifdef __cplusplus
21389 #endif
21392 main ()
21394 return f != $ac_func;
21396 return 0;
21398 _ACEOF
21399 rm -f conftest.$ac_objext conftest$ac_exeext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21401 (eval $ac_link) 2>conftest.er1
21402 ac_status=$?
21403 grep -v '^ *+' conftest.er1 >conftest.err
21404 rm -f conftest.er1
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
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
21415 { ac_try='test -s conftest$ac_exeext'
21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421 eval "$as_ac_var=yes"
21422 else
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 eval "$as_ac_var=no"
21428 rm -f conftest.err conftest.$ac_objext \
21429 conftest$ac_exeext conftest.$ac_ext
21431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21433 if test `eval echo '${'$as_ac_var'}'` = yes; then
21434 cat >>confdefs.h <<_ACEOF
21435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21436 _ACEOF
21439 done
21441 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21442 echo "$as_me:$LINENO: checking for off_t" >&5
21443 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21444 if test "${ac_cv_type_off_t+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 else
21447 cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h. */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 $ac_includes_default
21455 main ()
21457 if ((off_t *) 0)
21458 return 0;
21459 if (sizeof (off_t))
21460 return 0;
21462 return 0;
21464 _ACEOF
21465 rm -f conftest.$ac_objext
21466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21467 (eval $ac_compile) 2>conftest.er1
21468 ac_status=$?
21469 grep -v '^ *+' conftest.er1 >conftest.err
21470 rm -f conftest.er1
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } &&
21474 { ac_try='test -z "$ac_c_werror_flag"
21475 || test ! -s conftest.err'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; } &&
21481 { ac_try='test -s conftest.$ac_objext'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21484 ac_status=$?
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 ac_cv_type_off_t=yes
21488 else
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 ac_cv_type_off_t=no
21494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21496 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21497 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21499 echo "$as_me:$LINENO: checking size of off_t" >&5
21500 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21501 if test "${ac_cv_sizeof_off_t+set}" = set; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 else
21504 if test "$ac_cv_type_off_t" = yes; then
21505 # The cast to unsigned long works around a bug in the HP C Compiler
21506 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21507 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21508 # This bug is HP SR number 8606223364.
21509 if test "$cross_compiling" = yes; then
21510 # Depending upon the size, compute the lo and hi bounds.
21511 cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h. */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 $ac_includes_default
21519 main ()
21521 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21522 test_array [0] = 0
21525 return 0;
21527 _ACEOF
21528 rm -f conftest.$ac_objext
21529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21530 (eval $ac_compile) 2>conftest.er1
21531 ac_status=$?
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } &&
21537 { ac_try='test -z "$ac_c_werror_flag"
21538 || test ! -s conftest.err'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21541 ac_status=$?
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; } &&
21544 { ac_try='test -s conftest.$ac_objext'
21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546 (eval $ac_try) 2>&5
21547 ac_status=$?
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 ac_lo=0 ac_mid=0
21551 while :; do
21552 cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h. */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 $ac_includes_default
21560 main ()
21562 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21563 test_array [0] = 0
21566 return 0;
21568 _ACEOF
21569 rm -f conftest.$ac_objext
21570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21571 (eval $ac_compile) 2>conftest.er1
21572 ac_status=$?
21573 grep -v '^ *+' conftest.er1 >conftest.err
21574 rm -f conftest.er1
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } &&
21578 { ac_try='test -z "$ac_c_werror_flag"
21579 || test ! -s conftest.err'
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21582 ac_status=$?
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; } &&
21585 { ac_try='test -s conftest.$ac_objext'
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; }; then
21591 ac_hi=$ac_mid; break
21592 else
21593 echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21596 ac_lo=`expr $ac_mid + 1`
21597 if test $ac_lo -le $ac_mid; then
21598 ac_lo= ac_hi=
21599 break
21601 ac_mid=`expr 2 '*' $ac_mid + 1`
21603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21604 done
21605 else
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h. */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 $ac_includes_default
21617 main ()
21619 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21620 test_array [0] = 0
21623 return 0;
21625 _ACEOF
21626 rm -f conftest.$ac_objext
21627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21628 (eval $ac_compile) 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
21635 { ac_try='test -z "$ac_c_werror_flag"
21636 || test ! -s conftest.err'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; } &&
21642 { ac_try='test -s conftest.$ac_objext'
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_hi=-1 ac_mid=-1
21649 while :; do
21650 cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h. */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 $ac_includes_default
21658 main ()
21660 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21661 test_array [0] = 0
21664 return 0;
21666 _ACEOF
21667 rm -f conftest.$ac_objext
21668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21669 (eval $ac_compile) 2>conftest.er1
21670 ac_status=$?
21671 grep -v '^ *+' conftest.er1 >conftest.err
21672 rm -f conftest.er1
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } &&
21676 { ac_try='test -z "$ac_c_werror_flag"
21677 || test ! -s conftest.err'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21680 ac_status=$?
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; } &&
21683 { ac_try='test -s conftest.$ac_objext'
21684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21685 (eval $ac_try) 2>&5
21686 ac_status=$?
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); }; }; then
21689 ac_lo=$ac_mid; break
21690 else
21691 echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21694 ac_hi=`expr '(' $ac_mid ')' - 1`
21695 if test $ac_mid -le $ac_hi; then
21696 ac_lo= ac_hi=
21697 break
21699 ac_mid=`expr 2 '*' $ac_mid`
21701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21702 done
21703 else
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21707 ac_lo= ac_hi=
21709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21712 # Binary search between lo and hi bounds.
21713 while test "x$ac_lo" != "x$ac_hi"; do
21714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21715 cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h. */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 $ac_includes_default
21723 main ()
21725 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21726 test_array [0] = 0
21729 return 0;
21731 _ACEOF
21732 rm -f conftest.$ac_objext
21733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21734 (eval $ac_compile) 2>conftest.er1
21735 ac_status=$?
21736 grep -v '^ *+' conftest.er1 >conftest.err
21737 rm -f conftest.er1
21738 cat conftest.err >&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } &&
21741 { ac_try='test -z "$ac_c_werror_flag"
21742 || test ! -s conftest.err'
21743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744 (eval $ac_try) 2>&5
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; } &&
21748 { ac_try='test -s conftest.$ac_objext'
21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21751 ac_status=$?
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; }; then
21754 ac_hi=$ac_mid
21755 else
21756 echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21759 ac_lo=`expr '(' $ac_mid ')' + 1`
21761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21762 done
21763 case $ac_lo in
21764 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21765 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21766 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21767 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21768 See \`config.log' for more details." >&5
21769 echo "$as_me: error: cannot compute sizeof (off_t), 77
21770 See \`config.log' for more details." >&2;}
21771 { (exit 1); exit 1; }; }; } ;;
21772 esac
21773 else
21774 if test "$cross_compiling" = yes; then
21775 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21776 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21778 See \`config.log' for more details." >&5
21779 echo "$as_me: error: cannot run test program while cross compiling
21780 See \`config.log' for more details." >&2;}
21781 { (exit 1); exit 1; }; }; }
21782 else
21783 cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h. */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 $ac_includes_default
21790 long longval () { return (long) (sizeof (off_t)); }
21791 unsigned long ulongval () { return (long) (sizeof (off_t)); }
21792 #include <stdio.h>
21793 #include <stdlib.h>
21795 main ()
21798 FILE *f = fopen ("conftest.val", "w");
21799 if (! f)
21800 exit (1);
21801 if (((long) (sizeof (off_t))) < 0)
21803 long i = longval ();
21804 if (i != ((long) (sizeof (off_t))))
21805 exit (1);
21806 fprintf (f, "%ld\n", i);
21808 else
21810 unsigned long i = ulongval ();
21811 if (i != ((long) (sizeof (off_t))))
21812 exit (1);
21813 fprintf (f, "%lu\n", i);
21815 exit (ferror (f) || fclose (f) != 0);
21818 return 0;
21820 _ACEOF
21821 rm -f conftest$ac_exeext
21822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21823 (eval $ac_link) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21832 ac_cv_sizeof_off_t=`cat conftest.val`
21833 else
21834 echo "$as_me: program exited with status $ac_status" >&5
21835 echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21838 ( exit $ac_status )
21839 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21840 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21842 See \`config.log' for more details." >&5
21843 echo "$as_me: error: cannot compute sizeof (off_t), 77
21844 See \`config.log' for more details." >&2;}
21845 { (exit 1); exit 1; }; }; }
21847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21850 rm -f conftest.val
21851 else
21852 ac_cv_sizeof_off_t=0
21855 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21856 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
21857 cat >>confdefs.h <<_ACEOF
21858 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21859 _ACEOF
21863 echo "$as_me:$LINENO: checking file_ptr type" >&5
21864 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
21865 bfd_file_ptr="long"
21866 bfd_ufile_ptr="unsigned long"
21867 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21868 -o x"${ac_cv_sizeof_off_t}" = x8; then
21869 bfd_file_ptr=BFD_HOST_64_BIT
21870 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21872 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21873 echo "${ECHO_T}$bfd_file_ptr" >&6
21878 tdefaults=""
21879 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21880 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
21881 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
21882 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21883 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21888 for ac_header in stdlib.h unistd.h
21890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21892 echo "$as_me:$LINENO: checking for $ac_header" >&5
21893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21899 else
21900 # Is the header compilable?
21901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21903 cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h. */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21909 $ac_includes_default
21910 #include <$ac_header>
21911 _ACEOF
21912 rm -f conftest.$ac_objext
21913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21914 (eval $ac_compile) 2>conftest.er1
21915 ac_status=$?
21916 grep -v '^ *+' conftest.er1 >conftest.err
21917 rm -f conftest.er1
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } &&
21921 { ac_try='test -z "$ac_c_werror_flag"
21922 || test ! -s conftest.err'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; } &&
21928 { ac_try='test -s conftest.$ac_objext'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
21934 ac_header_compiler=yes
21935 else
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 ac_header_compiler=no
21941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21943 echo "${ECHO_T}$ac_header_compiler" >&6
21945 # Is the header present?
21946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21948 cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h. */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h. */
21954 #include <$ac_header>
21955 _ACEOF
21956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21958 ac_status=$?
21959 grep -v '^ *+' conftest.er1 >conftest.err
21960 rm -f conftest.er1
21961 cat conftest.err >&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } >/dev/null; then
21964 if test -s conftest.err; then
21965 ac_cpp_err=$ac_c_preproc_warn_flag
21966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21967 else
21968 ac_cpp_err=
21970 else
21971 ac_cpp_err=yes
21973 if test -z "$ac_cpp_err"; then
21974 ac_header_preproc=yes
21975 else
21976 echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21979 ac_header_preproc=no
21981 rm -f conftest.err conftest.$ac_ext
21982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21983 echo "${ECHO_T}$ac_header_preproc" >&6
21985 # So? What about this header?
21986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21987 yes:no: )
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21992 ac_header_preproc=yes
21994 no:yes:* )
21995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22008 cat <<\_ASBOX
22009 ## ------------------------------------------ ##
22010 ## Report this to the AC_PACKAGE_NAME lists. ##
22011 ## ------------------------------------------ ##
22012 _ASBOX
22014 sed "s/^/$as_me: WARNING: /" >&2
22016 esac
22017 echo "$as_me:$LINENO: checking for $ac_header" >&5
22018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 else
22022 eval "$as_ac_Header=\$ac_header_preproc"
22024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22029 cat >>confdefs.h <<_ACEOF
22030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22031 _ACEOF
22035 done
22038 for ac_func in getpagesize
22040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22041 echo "$as_me:$LINENO: checking for $ac_func" >&5
22042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22043 if eval "test \"\${$as_ac_var+set}\" = set"; then
22044 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 else
22046 cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h. */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22054 #define $ac_func innocuous_$ac_func
22056 /* System header to define __stub macros and hopefully few prototypes,
22057 which can conflict with char $ac_func (); below.
22058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22059 <limits.h> exists even on freestanding compilers. */
22061 #ifdef __STDC__
22062 # include <limits.h>
22063 #else
22064 # include <assert.h>
22065 #endif
22067 #undef $ac_func
22069 /* Override any gcc2 internal prototype to avoid an error. */
22070 #ifdef __cplusplus
22071 extern "C"
22073 #endif
22074 /* We use char because int might match the return type of a gcc2
22075 builtin and then its argument prototype would still apply. */
22076 char $ac_func ();
22077 /* The GNU C library defines this for functions which it implements
22078 to always fail with ENOSYS. Some functions are actually named
22079 something starting with __ and the normal name is an alias. */
22080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22081 choke me
22082 #else
22083 char (*f) () = $ac_func;
22084 #endif
22085 #ifdef __cplusplus
22087 #endif
22090 main ()
22092 return f != $ac_func;
22094 return 0;
22096 _ACEOF
22097 rm -f conftest.$ac_objext conftest$ac_exeext
22098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22099 (eval $ac_link) 2>conftest.er1
22100 ac_status=$?
22101 grep -v '^ *+' conftest.er1 >conftest.err
22102 rm -f conftest.er1
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
22106 { ac_try='test -z "$ac_c_werror_flag"
22107 || test ! -s conftest.err'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; } &&
22113 { ac_try='test -s conftest$ac_exeext'
22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
22119 eval "$as_ac_var=yes"
22120 else
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 eval "$as_ac_var=no"
22126 rm -f conftest.err conftest.$ac_objext \
22127 conftest$ac_exeext conftest.$ac_ext
22129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22131 if test `eval echo '${'$as_ac_var'}'` = yes; then
22132 cat >>confdefs.h <<_ACEOF
22133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22134 _ACEOF
22137 done
22139 echo "$as_me:$LINENO: checking for working mmap" >&5
22140 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22141 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 else
22144 if test "$cross_compiling" = yes; then
22145 ac_cv_func_mmap_fixed_mapped=no
22146 else
22147 cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h. */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 $ac_includes_default
22154 /* malloc might have been renamed as rpl_malloc. */
22155 #undef malloc
22157 /* Thanks to Mike Haertel and Jim Avera for this test.
22158 Here is a matrix of mmap possibilities:
22159 mmap private not fixed
22160 mmap private fixed at somewhere currently unmapped
22161 mmap private fixed at somewhere already mapped
22162 mmap shared not fixed
22163 mmap shared fixed at somewhere currently unmapped
22164 mmap shared fixed at somewhere already mapped
22165 For private mappings, we should verify that changes cannot be read()
22166 back from the file, nor mmap's back from the file at a different
22167 address. (There have been systems where private was not correctly
22168 implemented like the infamous i386 svr4.0, and systems where the
22169 VM page cache was not coherent with the file system buffer cache
22170 like early versions of FreeBSD and possibly contemporary NetBSD.)
22171 For shared mappings, we should conversely verify that changes get
22172 propagated back to all the places they're supposed to be.
22174 Grep wants private fixed already mapped.
22175 The main things grep needs to know about mmap are:
22176 * does it exist and is it safe to write into the mmap'd area
22177 * how to use it (BSD variants) */
22179 #include <fcntl.h>
22180 #include <sys/mman.h>
22182 #if !STDC_HEADERS && !HAVE_STDLIB_H
22183 char *malloc ();
22184 #endif
22186 /* This mess was copied from the GNU getpagesize.h. */
22187 #if !HAVE_GETPAGESIZE
22188 /* Assume that all systems that can run configure have sys/param.h. */
22189 # if !HAVE_SYS_PARAM_H
22190 # define HAVE_SYS_PARAM_H 1
22191 # endif
22193 # ifdef _SC_PAGESIZE
22194 # define getpagesize() sysconf(_SC_PAGESIZE)
22195 # else /* no _SC_PAGESIZE */
22196 # if HAVE_SYS_PARAM_H
22197 # include <sys/param.h>
22198 # ifdef EXEC_PAGESIZE
22199 # define getpagesize() EXEC_PAGESIZE
22200 # else /* no EXEC_PAGESIZE */
22201 # ifdef NBPG
22202 # define getpagesize() NBPG * CLSIZE
22203 # ifndef CLSIZE
22204 # define CLSIZE 1
22205 # endif /* no CLSIZE */
22206 # else /* no NBPG */
22207 # ifdef NBPC
22208 # define getpagesize() NBPC
22209 # else /* no NBPC */
22210 # ifdef PAGESIZE
22211 # define getpagesize() PAGESIZE
22212 # endif /* PAGESIZE */
22213 # endif /* no NBPC */
22214 # endif /* no NBPG */
22215 # endif /* no EXEC_PAGESIZE */
22216 # else /* no HAVE_SYS_PARAM_H */
22217 # define getpagesize() 8192 /* punt totally */
22218 # endif /* no HAVE_SYS_PARAM_H */
22219 # endif /* no _SC_PAGESIZE */
22221 #endif /* no HAVE_GETPAGESIZE */
22224 main ()
22226 char *data, *data2, *data3;
22227 int i, pagesize;
22228 int fd;
22230 pagesize = getpagesize ();
22232 /* First, make a file with some known garbage in it. */
22233 data = (char *) malloc (pagesize);
22234 if (!data)
22235 exit (1);
22236 for (i = 0; i < pagesize; ++i)
22237 *(data + i) = rand ();
22238 umask (0);
22239 fd = creat ("conftest.mmap", 0600);
22240 if (fd < 0)
22241 exit (1);
22242 if (write (fd, data, pagesize) != pagesize)
22243 exit (1);
22244 close (fd);
22246 /* Next, try to mmap the file at a fixed address which already has
22247 something else allocated at it. If we can, also make sure that
22248 we see the same garbage. */
22249 fd = open ("conftest.mmap", O_RDWR);
22250 if (fd < 0)
22251 exit (1);
22252 data2 = (char *) malloc (2 * pagesize);
22253 if (!data2)
22254 exit (1);
22255 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22256 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22257 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22258 exit (1);
22259 for (i = 0; i < pagesize; ++i)
22260 if (*(data + i) != *(data2 + i))
22261 exit (1);
22263 /* Finally, make sure that changes to the mapped area do not
22264 percolate back to the file as seen by read(). (This is a bug on
22265 some variants of i386 svr4.0.) */
22266 for (i = 0; i < pagesize; ++i)
22267 *(data2 + i) = *(data2 + i) + 1;
22268 data3 = (char *) malloc (pagesize);
22269 if (!data3)
22270 exit (1);
22271 if (read (fd, data3, pagesize) != pagesize)
22272 exit (1);
22273 for (i = 0; i < pagesize; ++i)
22274 if (*(data + i) != *(data3 + i))
22275 exit (1);
22276 close (fd);
22277 exit (0);
22279 _ACEOF
22280 rm -f conftest$ac_exeext
22281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22282 (eval $ac_link) 2>&5
22283 ac_status=$?
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 ac_cv_func_mmap_fixed_mapped=yes
22292 else
22293 echo "$as_me: program exited with status $ac_status" >&5
22294 echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297 ( exit $ac_status )
22298 ac_cv_func_mmap_fixed_mapped=no
22300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22303 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22304 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22305 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22307 cat >>confdefs.h <<\_ACEOF
22308 #define HAVE_MMAP 1
22309 _ACEOF
22312 rm -f conftest.mmap
22316 for ac_func in madvise mprotect
22318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22319 echo "$as_me:$LINENO: checking for $ac_func" >&5
22320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22321 if eval "test \"\${$as_ac_var+set}\" = set"; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324 cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h. */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22332 #define $ac_func innocuous_$ac_func
22334 /* System header to define __stub macros and hopefully few prototypes,
22335 which can conflict with char $ac_func (); below.
22336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22337 <limits.h> exists even on freestanding compilers. */
22339 #ifdef __STDC__
22340 # include <limits.h>
22341 #else
22342 # include <assert.h>
22343 #endif
22345 #undef $ac_func
22347 /* Override any gcc2 internal prototype to avoid an error. */
22348 #ifdef __cplusplus
22349 extern "C"
22351 #endif
22352 /* We use char because int might match the return type of a gcc2
22353 builtin and then its argument prototype would still apply. */
22354 char $ac_func ();
22355 /* The GNU C library defines this for functions which it implements
22356 to always fail with ENOSYS. Some functions are actually named
22357 something starting with __ and the normal name is an alias. */
22358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22359 choke me
22360 #else
22361 char (*f) () = $ac_func;
22362 #endif
22363 #ifdef __cplusplus
22365 #endif
22368 main ()
22370 return f != $ac_func;
22372 return 0;
22374 _ACEOF
22375 rm -f conftest.$ac_objext conftest$ac_exeext
22376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22377 (eval $ac_link) 2>conftest.er1
22378 ac_status=$?
22379 grep -v '^ *+' conftest.er1 >conftest.err
22380 rm -f conftest.er1
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } &&
22384 { ac_try='test -z "$ac_c_werror_flag"
22385 || test ! -s conftest.err'
22386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22388 ac_status=$?
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; } &&
22391 { ac_try='test -s conftest$ac_exeext'
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 eval "$as_ac_var=yes"
22398 else
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 eval "$as_ac_var=no"
22404 rm -f conftest.err conftest.$ac_objext \
22405 conftest$ac_exeext conftest.$ac_ext
22407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22409 if test `eval echo '${'$as_ac_var'}'` = yes; then
22410 cat >>confdefs.h <<_ACEOF
22411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22412 _ACEOF
22415 done
22417 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22418 true+yes )
22419 cat >>confdefs.h <<\_ACEOF
22420 #define USE_MMAP 1
22421 _ACEOF
22423 esac
22425 rm -f doc/config.status
22426 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22429 ac_config_commands="$ac_config_commands default"
22437 cat >confcache <<\_ACEOF
22438 # This file is a shell script that caches the results of configure
22439 # tests run on this system so they can be shared between configure
22440 # scripts and configure runs, see configure's option --config-cache.
22441 # It is not useful on other systems. If it contains results you don't
22442 # want to keep, you may remove or edit it.
22444 # config.status only pays attention to the cache file if you give it
22445 # the --recheck option to rerun configure.
22447 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22448 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22449 # following values.
22451 _ACEOF
22453 # The following way of writing the cache mishandles newlines in values,
22454 # but we know of no workaround that is simple, portable, and efficient.
22455 # So, don't put newlines in cache variables' values.
22456 # Ultrix sh set writes to stderr and can't be redirected directly,
22457 # and sets the high bit in the cache file unless we assign to the vars.
22459 (set) 2>&1 |
22460 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22461 *ac_space=\ *)
22462 # `set' does not quote correctly, so add quotes (double-quote
22463 # substitution turns \\\\ into \\, and sed turns \\ into \).
22464 sed -n \
22465 "s/'/'\\\\''/g;
22466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22469 # `set' quotes correctly as required by POSIX, so do not add quotes.
22470 sed -n \
22471 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22473 esac;
22475 sed '
22476 t clear
22477 : clear
22478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22479 t end
22480 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22481 : end' >>confcache
22482 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22483 if test -w $cache_file; then
22484 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22485 cat confcache >$cache_file
22486 else
22487 echo "not updating unwritable cache $cache_file"
22490 rm -f confcache
22492 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22493 # Let make expand exec_prefix.
22494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22496 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22497 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22498 # trailing colons and then remove the whole line if VPATH becomes empty
22499 # (actually we leave an empty line to preserve line numbers).
22500 if test "x$srcdir" = x.; then
22501 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22502 s/:*\$(srcdir):*/:/;
22503 s/:*\${srcdir}:*/:/;
22504 s/:*@srcdir@:*/:/;
22505 s/^\([^=]*=[ ]*\):*/\1/;
22506 s/:*$//;
22507 s/^[^=]*=[ ]*$//;
22511 DEFS=-DHAVE_CONFIG_H
22513 ac_libobjs=
22514 ac_ltlibobjs=
22515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22516 # 1. Remove the extension, and $U if already installed.
22517 ac_i=`echo "$ac_i" |
22518 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22519 # 2. Add them.
22520 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22521 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22522 done
22523 LIBOBJS=$ac_libobjs
22525 LTLIBOBJS=$ac_ltlibobjs
22528 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22529 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22530 Usually this means the macro was only invoked conditionally." >&5
22531 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22532 Usually this means the macro was only invoked conditionally." >&2;}
22533 { (exit 1); exit 1; }; }
22535 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22536 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22537 Usually this means the macro was only invoked conditionally." >&5
22538 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22539 Usually this means the macro was only invoked conditionally." >&2;}
22540 { (exit 1); exit 1; }; }
22542 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22543 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22544 Usually this means the macro was only invoked conditionally." >&5
22545 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22546 Usually this means the macro was only invoked conditionally." >&2;}
22547 { (exit 1); exit 1; }; }
22549 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22550 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22551 Usually this means the macro was only invoked conditionally." >&5
22552 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22553 Usually this means the macro was only invoked conditionally." >&2;}
22554 { (exit 1); exit 1; }; }
22556 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22557 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22558 Usually this means the macro was only invoked conditionally." >&5
22559 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22560 Usually this means the macro was only invoked conditionally." >&2;}
22561 { (exit 1); exit 1; }; }
22564 : ${CONFIG_STATUS=./config.status}
22565 ac_clean_files_save=$ac_clean_files
22566 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22567 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22568 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22569 cat >$CONFIG_STATUS <<_ACEOF
22570 #! $SHELL
22571 # Generated by $as_me.
22572 # Run this file to recreate the current configuration.
22573 # Compiler output produced by configure, useful for debugging
22574 # configure, is in config.log if it exists.
22576 debug=false
22577 ac_cs_recheck=false
22578 ac_cs_silent=false
22579 SHELL=\${CONFIG_SHELL-$SHELL}
22580 _ACEOF
22582 cat >>$CONFIG_STATUS <<\_ACEOF
22583 ## --------------------- ##
22584 ## M4sh Initialization. ##
22585 ## --------------------- ##
22587 # Be Bourne compatible
22588 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22589 emulate sh
22590 NULLCMD=:
22591 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22592 # is contrary to our usage. Disable this feature.
22593 alias -g '${1+"$@"}'='"$@"'
22594 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22595 set -o posix
22597 DUALCASE=1; export DUALCASE # for MKS sh
22599 # Support unset when possible.
22600 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22601 as_unset=unset
22602 else
22603 as_unset=false
22607 # Work around bugs in pre-3.0 UWIN ksh.
22608 $as_unset ENV MAIL MAILPATH
22609 PS1='$ '
22610 PS2='> '
22611 PS4='+ '
22613 # NLS nuisances.
22614 for as_var in \
22615 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22616 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22617 LC_TELEPHONE LC_TIME
22619 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22620 eval $as_var=C; export $as_var
22621 else
22622 $as_unset $as_var
22624 done
22626 # Required to use basename.
22627 if expr a : '\(a\)' >/dev/null 2>&1; then
22628 as_expr=expr
22629 else
22630 as_expr=false
22633 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22634 as_basename=basename
22635 else
22636 as_basename=false
22640 # Name of the executable.
22641 as_me=`$as_basename "$0" ||
22642 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22643 X"$0" : 'X\(//\)$' \| \
22644 X"$0" : 'X\(/\)$' \| \
22645 . : '\(.\)' 2>/dev/null ||
22646 echo X/"$0" |
22647 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22648 /^X\/\(\/\/\)$/{ s//\1/; q; }
22649 /^X\/\(\/\).*/{ s//\1/; q; }
22650 s/.*/./; q'`
22653 # PATH needs CR, and LINENO needs CR and PATH.
22654 # Avoid depending upon Character Ranges.
22655 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22656 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22657 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22658 as_cr_digits='0123456789'
22659 as_cr_alnum=$as_cr_Letters$as_cr_digits
22661 # The user is always right.
22662 if test "${PATH_SEPARATOR+set}" != set; then
22663 echo "#! /bin/sh" >conf$$.sh
22664 echo "exit 0" >>conf$$.sh
22665 chmod +x conf$$.sh
22666 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22667 PATH_SEPARATOR=';'
22668 else
22669 PATH_SEPARATOR=:
22671 rm -f conf$$.sh
22675 as_lineno_1=$LINENO
22676 as_lineno_2=$LINENO
22677 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22678 test "x$as_lineno_1" != "x$as_lineno_2" &&
22679 test "x$as_lineno_3" = "x$as_lineno_2" || {
22680 # Find who we are. Look in the path if we contain no path at all
22681 # relative or not.
22682 case $0 in
22683 *[\\/]* ) as_myself=$0 ;;
22684 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22685 for as_dir in $PATH
22687 IFS=$as_save_IFS
22688 test -z "$as_dir" && as_dir=.
22689 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22690 done
22693 esac
22694 # We did not find ourselves, most probably we were run as `sh COMMAND'
22695 # in which case we are not to be found in the path.
22696 if test "x$as_myself" = x; then
22697 as_myself=$0
22699 if test ! -f "$as_myself"; then
22700 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22701 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22702 { (exit 1); exit 1; }; }
22704 case $CONFIG_SHELL in
22706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22709 IFS=$as_save_IFS
22710 test -z "$as_dir" && as_dir=.
22711 for as_base in sh bash ksh sh5; do
22712 case $as_dir in
22714 if ("$as_dir/$as_base" -c '
22715 as_lineno_1=$LINENO
22716 as_lineno_2=$LINENO
22717 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22718 test "x$as_lineno_1" != "x$as_lineno_2" &&
22719 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22720 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22721 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22722 CONFIG_SHELL=$as_dir/$as_base
22723 export CONFIG_SHELL
22724 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22725 fi;;
22726 esac
22727 done
22728 done
22730 esac
22732 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22733 # uniformly replaced by the line number. The first 'sed' inserts a
22734 # line-number line before each line; the second 'sed' does the real
22735 # work. The second script uses 'N' to pair each line-number line
22736 # with the numbered line, and appends trailing '-' during
22737 # substitution so that $LINENO is not a special case at line end.
22738 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22739 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22740 sed '=' <$as_myself |
22741 sed '
22743 s,$,-,
22744 : loop
22745 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22746 t loop
22747 s,-$,,
22748 s,^['$as_cr_digits']*\n,,
22749 ' >$as_me.lineno &&
22750 chmod +x $as_me.lineno ||
22751 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22752 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22753 { (exit 1); exit 1; }; }
22755 # Don't try to exec as it changes $[0], causing all sort of problems
22756 # (the dirname of $[0] is not the place where we might find the
22757 # original and so on. Autoconf is especially sensible to this).
22758 . ./$as_me.lineno
22759 # Exit status is that of the last command.
22760 exit
22764 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22765 *c*,-n*) ECHO_N= ECHO_C='
22766 ' ECHO_T=' ' ;;
22767 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22768 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22769 esac
22771 if expr a : '\(a\)' >/dev/null 2>&1; then
22772 as_expr=expr
22773 else
22774 as_expr=false
22777 rm -f conf$$ conf$$.exe conf$$.file
22778 echo >conf$$.file
22779 if ln -s conf$$.file conf$$ 2>/dev/null; then
22780 # We could just check for DJGPP; but this test a) works b) is more generic
22781 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22782 if test -f conf$$.exe; then
22783 # Don't use ln at all; we don't have any links
22784 as_ln_s='cp -p'
22785 else
22786 as_ln_s='ln -s'
22788 elif ln conf$$.file conf$$ 2>/dev/null; then
22789 as_ln_s=ln
22790 else
22791 as_ln_s='cp -p'
22793 rm -f conf$$ conf$$.exe conf$$.file
22795 if mkdir -p . 2>/dev/null; then
22796 as_mkdir_p=:
22797 else
22798 test -d ./-p && rmdir ./-p
22799 as_mkdir_p=false
22802 as_executable_p="test -f"
22804 # Sed expression to map a string onto a valid CPP name.
22805 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22807 # Sed expression to map a string onto a valid variable name.
22808 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22811 # IFS
22812 # We need space, tab and new line, in precisely that order.
22813 as_nl='
22815 IFS=" $as_nl"
22817 # CDPATH.
22818 $as_unset CDPATH
22820 exec 6>&1
22822 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22823 # report actual input values of CONFIG_FILES etc. instead of their
22824 # values after options handling. Logging --version etc. is OK.
22825 exec 5>>config.log
22827 echo
22828 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22829 ## Running $as_me. ##
22830 _ASBOX
22831 } >&5
22832 cat >&5 <<_CSEOF
22834 This file was extended by $as_me, which was
22835 generated by GNU Autoconf 2.59. Invocation command line was
22837 CONFIG_FILES = $CONFIG_FILES
22838 CONFIG_HEADERS = $CONFIG_HEADERS
22839 CONFIG_LINKS = $CONFIG_LINKS
22840 CONFIG_COMMANDS = $CONFIG_COMMANDS
22841 $ $0 $@
22843 _CSEOF
22844 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22845 echo >&5
22846 _ACEOF
22848 # Files that config.status was made for.
22849 if test -n "$ac_config_files"; then
22850 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22853 if test -n "$ac_config_headers"; then
22854 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22857 if test -n "$ac_config_links"; then
22858 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22861 if test -n "$ac_config_commands"; then
22862 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22865 cat >>$CONFIG_STATUS <<\_ACEOF
22867 ac_cs_usage="\
22868 \`$as_me' instantiates files from templates according to the
22869 current configuration.
22871 Usage: $0 [OPTIONS] [FILE]...
22873 -h, --help print this help, then exit
22874 -V, --version print version number, then exit
22875 -q, --quiet do not print progress messages
22876 -d, --debug don't remove temporary files
22877 --recheck update $as_me by reconfiguring in the same conditions
22878 --file=FILE[:TEMPLATE]
22879 instantiate the configuration file FILE
22880 --header=FILE[:TEMPLATE]
22881 instantiate the configuration header FILE
22883 Configuration files:
22884 $config_files
22886 Configuration headers:
22887 $config_headers
22889 Configuration commands:
22890 $config_commands
22892 Report bugs to <bug-autoconf@gnu.org>."
22893 _ACEOF
22895 cat >>$CONFIG_STATUS <<_ACEOF
22896 ac_cs_version="\\
22897 config.status
22898 configured by $0, generated by GNU Autoconf 2.59,
22899 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22901 Copyright (C) 2003 Free Software Foundation, Inc.
22902 This config.status script is free software; the Free Software Foundation
22903 gives unlimited permission to copy, distribute and modify it."
22904 srcdir=$srcdir
22905 INSTALL="$INSTALL"
22906 _ACEOF
22908 cat >>$CONFIG_STATUS <<\_ACEOF
22909 # If no file are specified by the user, then we need to provide default
22910 # value. By we need to know if files were specified by the user.
22911 ac_need_defaults=:
22912 while test $# != 0
22914 case $1 in
22915 --*=*)
22916 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22917 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22918 ac_shift=:
22921 ac_option=$1
22922 ac_optarg=$2
22923 ac_shift=shift
22925 *) # This is not an option, so the user has probably given explicit
22926 # arguments.
22927 ac_option=$1
22928 ac_need_defaults=false;;
22929 esac
22931 case $ac_option in
22932 # Handling of the options.
22933 _ACEOF
22934 cat >>$CONFIG_STATUS <<\_ACEOF
22935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22936 ac_cs_recheck=: ;;
22937 --version | --vers* | -V )
22938 echo "$ac_cs_version"; exit 0 ;;
22939 --he | --h)
22940 # Conflict between --help and --header
22941 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22942 Try \`$0 --help' for more information." >&5
22943 echo "$as_me: error: ambiguous option: $1
22944 Try \`$0 --help' for more information." >&2;}
22945 { (exit 1); exit 1; }; };;
22946 --help | --hel | -h )
22947 echo "$ac_cs_usage"; exit 0 ;;
22948 --debug | --d* | -d )
22949 debug=: ;;
22950 --file | --fil | --fi | --f )
22951 $ac_shift
22952 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22953 ac_need_defaults=false;;
22954 --header | --heade | --head | --hea )
22955 $ac_shift
22956 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22957 ac_need_defaults=false;;
22958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22959 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22960 ac_cs_silent=: ;;
22962 # This is an error.
22963 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22964 Try \`$0 --help' for more information." >&5
22965 echo "$as_me: error: unrecognized option: $1
22966 Try \`$0 --help' for more information." >&2;}
22967 { (exit 1); exit 1; }; } ;;
22969 *) ac_config_targets="$ac_config_targets $1" ;;
22971 esac
22972 shift
22973 done
22975 ac_configure_extra_args=
22977 if $ac_cs_silent; then
22978 exec 6>/dev/null
22979 ac_configure_extra_args="$ac_configure_extra_args --silent"
22982 _ACEOF
22983 cat >>$CONFIG_STATUS <<_ACEOF
22984 if \$ac_cs_recheck; then
22985 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22986 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22989 _ACEOF
22991 cat >>$CONFIG_STATUS <<_ACEOF
22993 # INIT-COMMANDS section.
22996 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22999 # The HP-UX ksh and POSIX shell print the target directory to stdout
23000 # if CDPATH is set.
23001 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23003 sed_quote_subst='$sed_quote_subst'
23004 double_quote_subst='$double_quote_subst'
23005 delay_variable_subst='$delay_variable_subst'
23006 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23007 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23008 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23009 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23010 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23011 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23012 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23013 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23014 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23015 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23016 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23017 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23018 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23019 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23020 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23021 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23022 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23023 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23024 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23025 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23026 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23027 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23028 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23029 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23030 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23031 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23032 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23033 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23034 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
23035 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23036 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23037 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23038 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23039 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23040 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23041 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23042 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23043 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23044 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23045 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23046 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23047 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23048 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23049 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23050 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"`'
23051 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"`'
23052 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23053 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23054 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23055 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23056 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23057 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23058 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23059 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23060 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23061 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23062 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23063 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23064 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23065 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23066 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23067 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23068 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23069 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23070 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23071 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23072 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23073 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23074 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23075 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23076 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23077 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23078 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23079 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23080 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23081 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23082 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23083 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23084 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23085 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23086 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23087 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23088 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23089 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23090 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23091 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23092 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23093 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23094 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23095 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23096 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23097 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23098 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23099 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23100 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23101 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23102 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23103 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23104 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23105 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23106 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23107 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23108 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23109 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23110 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23111 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23112 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23113 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23114 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23115 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23116 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23117 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23118 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23119 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23120 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23121 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23122 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23123 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23125 LTCC='$LTCC'
23126 LTCFLAGS='$LTCFLAGS'
23127 compiler='$compiler_DEFAULT'
23129 # Quote evaled strings.
23130 for var in SED \
23131 GREP \
23132 EGREP \
23133 FGREP \
23134 LD \
23135 NM \
23136 LN_S \
23137 lt_SP2NL \
23138 lt_NL2SP \
23139 reload_flag \
23140 OBJDUMP \
23141 deplibs_check_method \
23142 file_magic_cmd \
23143 AR \
23144 AR_FLAGS \
23145 STRIP \
23146 RANLIB \
23147 CC \
23148 CFLAGS \
23149 compiler \
23150 lt_cv_sys_global_symbol_pipe \
23151 lt_cv_sys_global_symbol_to_cdecl \
23152 lt_cv_sys_global_symbol_to_c_name_address \
23153 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23154 SHELL \
23155 ECHO \
23156 lt_prog_compiler_no_builtin_flag \
23157 lt_prog_compiler_wl \
23158 lt_prog_compiler_pic \
23159 lt_prog_compiler_static \
23160 lt_cv_prog_compiler_c_o \
23161 need_locks \
23162 DSYMUTIL \
23163 NMEDIT \
23164 LIPO \
23165 OTOOL \
23166 OTOOL64 \
23167 shrext_cmds \
23168 export_dynamic_flag_spec \
23169 whole_archive_flag_spec \
23170 compiler_needs_object \
23171 with_gnu_ld \
23172 allow_undefined_flag \
23173 no_undefined_flag \
23174 hardcode_libdir_flag_spec \
23175 hardcode_libdir_flag_spec_ld \
23176 hardcode_libdir_separator \
23177 fix_srcfile_path \
23178 exclude_expsyms \
23179 include_expsyms \
23180 file_list_spec \
23181 variables_saved_for_relink \
23182 libname_spec \
23183 library_names_spec \
23184 soname_spec \
23185 finish_eval \
23186 old_striplib \
23187 striplib; do
23188 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23189 *[\\\\\\\`\\"\\\$]*)
23190 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23193 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23195 esac
23196 done
23198 # Double-quote double-evaled strings.
23199 for var in reload_cmds \
23200 old_postinstall_cmds \
23201 old_postuninstall_cmds \
23202 old_archive_cmds \
23203 extract_expsyms_cmds \
23204 old_archive_from_new_cmds \
23205 old_archive_from_expsyms_cmds \
23206 archive_cmds \
23207 archive_expsym_cmds \
23208 module_cmds \
23209 module_expsym_cmds \
23210 export_symbols_cmds \
23211 prelink_cmds \
23212 postinstall_cmds \
23213 postuninstall_cmds \
23214 finish_cmds \
23215 sys_lib_search_path_spec \
23216 sys_lib_dlsearch_path_spec; do
23217 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23218 *[\\\\\\\`\\"\\\$]*)
23219 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23222 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23224 esac
23225 done
23227 # Fix-up fallback echo if it was mangled by the above quoting rules.
23228 case \$lt_ECHO in
23229 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23231 esac
23233 ac_aux_dir='$ac_aux_dir'
23234 xsi_shell='$xsi_shell'
23235 lt_shell_append='$lt_shell_append'
23237 # See if we are running on zsh, and set the options which allow our
23238 # commands through without removal of \ escapes INIT.
23239 if test -n "\${ZSH_VERSION+set}" ; then
23240 setopt NO_GLOB_SUBST
23244 PACKAGE='$PACKAGE'
23245 VERSION='$VERSION'
23246 TIMESTAMP='$TIMESTAMP'
23247 RM='$RM'
23248 ofile='$ofile'
23252 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23253 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
23254 # from automake.
23255 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23256 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23257 LINGUAS="${LINGUAS-%UNSET%}"
23260 GCC="$GCC"
23261 CC="$CC"
23262 acx_cv_header_stdint="$acx_cv_header_stdint"
23263 acx_cv_type_int8_t="$acx_cv_type_int8_t"
23264 acx_cv_type_int16_t="$acx_cv_type_int16_t"
23265 acx_cv_type_int32_t="$acx_cv_type_int32_t"
23266 acx_cv_type_int64_t="$acx_cv_type_int64_t"
23267 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23268 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23269 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23270 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23271 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23272 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23273 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23274 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23275 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23279 _ACEOF
23283 cat >>$CONFIG_STATUS <<\_ACEOF
23284 for ac_config_target in $ac_config_targets
23286 case "$ac_config_target" in
23287 # Handling of arguments.
23288 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23289 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23290 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23291 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
23292 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23293 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23294 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23295 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
23296 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23297 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23298 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23299 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23300 { (exit 1); exit 1; }; };;
23301 esac
23302 done
23304 # If the user did not use the arguments to specify the items to instantiate,
23305 # then the envvar interface is used. Set only those that are not.
23306 # We use the long form for the default assignment because of an extremely
23307 # bizarre bug on SunOS 4.1.3.
23308 if $ac_need_defaults; then
23309 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23310 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23311 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23314 # Have a temporary directory for convenience. Make it in the build tree
23315 # simply because there is no reason to put it here, and in addition,
23316 # creating and moving files from /tmp can sometimes cause problems.
23317 # Create a temporary directory, and hook for its removal unless debugging.
23318 $debug ||
23320 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23321 trap '{ (exit 1); exit 1; }' 1 2 13 15
23324 # Create a (secure) tmp directory for tmp files.
23327 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23328 test -n "$tmp" && test -d "$tmp"
23329 } ||
23331 tmp=./confstat$$-$RANDOM
23332 (umask 077 && mkdir $tmp)
23333 } ||
23335 echo "$me: cannot create a temporary directory in ." >&2
23336 { (exit 1); exit 1; }
23339 _ACEOF
23341 cat >>$CONFIG_STATUS <<_ACEOF
23344 # CONFIG_FILES section.
23347 # No need to generate the scripts if there are no CONFIG_FILES.
23348 # This happens for instance when ./config.status config.h
23349 if test -n "\$CONFIG_FILES"; then
23350 # Protect against being on the right side of a sed subst in config.status.
23351 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23352 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23353 s,@SHELL@,$SHELL,;t t
23354 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23355 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23356 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23357 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23358 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23359 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23360 s,@exec_prefix@,$exec_prefix,;t t
23361 s,@prefix@,$prefix,;t t
23362 s,@program_transform_name@,$program_transform_name,;t t
23363 s,@bindir@,$bindir,;t t
23364 s,@sbindir@,$sbindir,;t t
23365 s,@libexecdir@,$libexecdir,;t t
23366 s,@datadir@,$datadir,;t t
23367 s,@sysconfdir@,$sysconfdir,;t t
23368 s,@sharedstatedir@,$sharedstatedir,;t t
23369 s,@localstatedir@,$localstatedir,;t t
23370 s,@libdir@,$libdir,;t t
23371 s,@includedir@,$includedir,;t t
23372 s,@oldincludedir@,$oldincludedir,;t t
23373 s,@infodir@,$infodir,;t t
23374 s,@mandir@,$mandir,;t t
23375 s,@build_alias@,$build_alias,;t t
23376 s,@host_alias@,$host_alias,;t t
23377 s,@target_alias@,$target_alias,;t t
23378 s,@DEFS@,$DEFS,;t t
23379 s,@ECHO_C@,$ECHO_C,;t t
23380 s,@ECHO_N@,$ECHO_N,;t t
23381 s,@ECHO_T@,$ECHO_T,;t t
23382 s,@LIBS@,$LIBS,;t t
23383 s,@build@,$build,;t t
23384 s,@build_cpu@,$build_cpu,;t t
23385 s,@build_vendor@,$build_vendor,;t t
23386 s,@build_os@,$build_os,;t t
23387 s,@host@,$host,;t t
23388 s,@host_cpu@,$host_cpu,;t t
23389 s,@host_vendor@,$host_vendor,;t t
23390 s,@host_os@,$host_os,;t t
23391 s,@target@,$target,;t t
23392 s,@target_cpu@,$target_cpu,;t t
23393 s,@target_vendor@,$target_vendor,;t t
23394 s,@target_os@,$target_os,;t t
23395 s,@CC@,$CC,;t t
23396 s,@CFLAGS@,$CFLAGS,;t t
23397 s,@LDFLAGS@,$LDFLAGS,;t t
23398 s,@CPPFLAGS@,$CPPFLAGS,;t t
23399 s,@ac_ct_CC@,$ac_ct_CC,;t t
23400 s,@EXEEXT@,$EXEEXT,;t t
23401 s,@OBJEXT@,$OBJEXT,;t t
23402 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23403 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23404 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23405 s,@CYGPATH_W@,$CYGPATH_W,;t t
23406 s,@PACKAGE@,$PACKAGE,;t t
23407 s,@VERSION@,$VERSION,;t t
23408 s,@ACLOCAL@,$ACLOCAL,;t t
23409 s,@AUTOCONF@,$AUTOCONF,;t t
23410 s,@AUTOMAKE@,$AUTOMAKE,;t t
23411 s,@AUTOHEADER@,$AUTOHEADER,;t t
23412 s,@MAKEINFO@,$MAKEINFO,;t t
23413 s,@install_sh@,$install_sh,;t t
23414 s,@STRIP@,$STRIP,;t t
23415 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23416 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23417 s,@mkdir_p@,$mkdir_p,;t t
23418 s,@AWK@,$AWK,;t t
23419 s,@SET_MAKE@,$SET_MAKE,;t t
23420 s,@am__leading_dot@,$am__leading_dot,;t t
23421 s,@AMTAR@,$AMTAR,;t t
23422 s,@am__tar@,$am__tar,;t t
23423 s,@am__untar@,$am__untar,;t t
23424 s,@DEPDIR@,$DEPDIR,;t t
23425 s,@am__include@,$am__include,;t t
23426 s,@am__quote@,$am__quote,;t t
23427 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23428 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23429 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23430 s,@CCDEPMODE@,$CCDEPMODE,;t t
23431 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23432 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23433 s,@AR@,$AR,;t t
23434 s,@ac_ct_AR@,$ac_ct_AR,;t t
23435 s,@RANLIB@,$RANLIB,;t t
23436 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23437 s,@CPP@,$CPP,;t t
23438 s,@EGREP@,$EGREP,;t t
23439 s,@LIBTOOL@,$LIBTOOL,;t t
23440 s,@SED@,$SED,;t t
23441 s,@FGREP@,$FGREP,;t t
23442 s,@GREP@,$GREP,;t t
23443 s,@LD@,$LD,;t t
23444 s,@DUMPBIN@,$DUMPBIN,;t t
23445 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23446 s,@NM@,$NM,;t t
23447 s,@LN_S@,$LN_S,;t t
23448 s,@OBJDUMP@,$OBJDUMP,;t t
23449 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23450 s,@lt_ECHO@,$lt_ECHO,;t t
23451 s,@DSYMUTIL@,$DSYMUTIL,;t t
23452 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23453 s,@NMEDIT@,$NMEDIT,;t t
23454 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23455 s,@LIPO@,$LIPO,;t t
23456 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23457 s,@OTOOL@,$OTOOL,;t t
23458 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23459 s,@OTOOL64@,$OTOOL64,;t t
23460 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
23461 s,@DEBUGDIR@,$DEBUGDIR,;t t
23462 s,@PKGVERSION@,$PKGVERSION,;t t
23463 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23464 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
23465 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23466 s,@NO_WERROR@,$NO_WERROR,;t t
23467 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23468 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23469 s,@MAINT@,$MAINT,;t t
23470 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23471 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
23472 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23473 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
23474 s,@host_noncanonical@,$host_noncanonical,;t t
23475 s,@target_noncanonical@,$target_noncanonical,;t t
23476 s,@bfdlibdir@,$bfdlibdir,;t t
23477 s,@bfdincludedir@,$bfdincludedir,;t t
23478 s,@USE_NLS@,$USE_NLS,;t t
23479 s,@LIBINTL@,$LIBINTL,;t t
23480 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23481 s,@INCINTL@,$INCINTL,;t t
23482 s,@XGETTEXT@,$XGETTEXT,;t t
23483 s,@GMSGFMT@,$GMSGFMT,;t t
23484 s,@POSUB@,$POSUB,;t t
23485 s,@CATALOGS@,$CATALOGS,;t t
23486 s,@DATADIRNAME@,$DATADIRNAME,;t t
23487 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23488 s,@GENCAT@,$GENCAT,;t t
23489 s,@CATOBJEXT@,$CATOBJEXT,;t t
23490 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23491 s,@MSGFMT@,$MSGFMT,;t t
23492 s,@MSGMERGE@,$MSGMERGE,;t t
23493 s,@HDEFINES@,$HDEFINES,;t t
23494 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
23495 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
23496 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23497 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23498 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
23499 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
23500 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23501 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23502 s,@COREFILE@,$COREFILE,;t t
23503 s,@COREFLAG@,$COREFLAG,;t t
23504 s,@LIBM@,$LIBM,;t t
23505 s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
23506 s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
23507 s,@TDEFINES@,$TDEFINES,;t t
23508 s,@wordsize@,$wordsize,;t t
23509 s,@bfd64_libs@,$bfd64_libs,;t t
23510 s,@all_backends@,$all_backends,;t t
23511 s,@bfd_backends@,$bfd_backends,;t t
23512 s,@bfd_machines@,$bfd_machines,;t t
23513 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23514 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23515 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23516 s,@tdefaults@,$tdefaults,;t t
23517 s,@datarootdir@,$datarootdir,;t t
23518 s,@docdir@,$docdir,;t t
23519 s,@htmldir@,$htmldir,;t t
23520 s,@pdfdir@,$pdfdir,;t t
23521 s,@LIBOBJS@,$LIBOBJS,;t t
23522 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23523 CEOF
23525 _ACEOF
23527 cat >>$CONFIG_STATUS <<\_ACEOF
23528 # Split the substitutions into bite-sized pieces for seds with
23529 # small command number limits, like on Digital OSF/1 and HP-UX.
23530 ac_max_sed_lines=48
23531 ac_sed_frag=1 # Number of current file.
23532 ac_beg=1 # First line for current file.
23533 ac_end=$ac_max_sed_lines # Line after last line for current file.
23534 ac_more_lines=:
23535 ac_sed_cmds=
23536 while $ac_more_lines; do
23537 if test $ac_beg -gt 1; then
23538 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23539 else
23540 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23542 if test ! -s $tmp/subs.frag; then
23543 ac_more_lines=false
23544 else
23545 # The purpose of the label and of the branching condition is to
23546 # speed up the sed processing (if there are no `@' at all, there
23547 # is no need to browse any of the substitutions).
23548 # These are the two extra sed commands mentioned above.
23549 (echo ':t
23550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23551 if test -z "$ac_sed_cmds"; then
23552 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23553 else
23554 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23556 ac_sed_frag=`expr $ac_sed_frag + 1`
23557 ac_beg=$ac_end
23558 ac_end=`expr $ac_end + $ac_max_sed_lines`
23560 done
23561 if test -z "$ac_sed_cmds"; then
23562 ac_sed_cmds=cat
23564 fi # test -n "$CONFIG_FILES"
23566 _ACEOF
23567 cat >>$CONFIG_STATUS <<\_ACEOF
23568 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23569 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23570 case $ac_file in
23571 - | *:- | *:-:* ) # input from stdin
23572 cat >$tmp/stdin
23573 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23574 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23575 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23577 * ) ac_file_in=$ac_file.in ;;
23578 esac
23580 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23581 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23582 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23583 X"$ac_file" : 'X\(//\)[^/]' \| \
23584 X"$ac_file" : 'X\(//\)$' \| \
23585 X"$ac_file" : 'X\(/\)' \| \
23586 . : '\(.\)' 2>/dev/null ||
23587 echo X"$ac_file" |
23588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23590 /^X\(\/\/\)$/{ s//\1/; q; }
23591 /^X\(\/\).*/{ s//\1/; q; }
23592 s/.*/./; q'`
23593 { if $as_mkdir_p; then
23594 mkdir -p "$ac_dir"
23595 else
23596 as_dir="$ac_dir"
23597 as_dirs=
23598 while test ! -d "$as_dir"; do
23599 as_dirs="$as_dir $as_dirs"
23600 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23602 X"$as_dir" : 'X\(//\)[^/]' \| \
23603 X"$as_dir" : 'X\(//\)$' \| \
23604 X"$as_dir" : 'X\(/\)' \| \
23605 . : '\(.\)' 2>/dev/null ||
23606 echo X"$as_dir" |
23607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23609 /^X\(\/\/\)$/{ s//\1/; q; }
23610 /^X\(\/\).*/{ s//\1/; q; }
23611 s/.*/./; q'`
23612 done
23613 test ! -n "$as_dirs" || mkdir $as_dirs
23614 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23615 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23616 { (exit 1); exit 1; }; }; }
23618 ac_builddir=.
23620 if test "$ac_dir" != .; then
23621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23622 # A "../" for each directory in $ac_dir_suffix.
23623 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23624 else
23625 ac_dir_suffix= ac_top_builddir=
23628 case $srcdir in
23629 .) # No --srcdir option. We are building in place.
23630 ac_srcdir=.
23631 if test -z "$ac_top_builddir"; then
23632 ac_top_srcdir=.
23633 else
23634 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23635 fi ;;
23636 [\\/]* | ?:[\\/]* ) # Absolute path.
23637 ac_srcdir=$srcdir$ac_dir_suffix;
23638 ac_top_srcdir=$srcdir ;;
23639 *) # Relative path.
23640 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23641 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23642 esac
23644 # Do not use `cd foo && pwd` to compute absolute paths, because
23645 # the directories may not exist.
23646 case `pwd` in
23647 .) ac_abs_builddir="$ac_dir";;
23649 case "$ac_dir" in
23650 .) ac_abs_builddir=`pwd`;;
23651 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23652 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23653 esac;;
23654 esac
23655 case $ac_abs_builddir in
23656 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23658 case ${ac_top_builddir}. in
23659 .) ac_abs_top_builddir=$ac_abs_builddir;;
23660 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23661 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23662 esac;;
23663 esac
23664 case $ac_abs_builddir in
23665 .) ac_abs_srcdir=$ac_srcdir;;
23667 case $ac_srcdir in
23668 .) ac_abs_srcdir=$ac_abs_builddir;;
23669 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23670 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23671 esac;;
23672 esac
23673 case $ac_abs_builddir in
23674 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23676 case $ac_top_srcdir in
23677 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23678 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23679 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23680 esac;;
23681 esac
23684 case $INSTALL in
23685 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23686 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23687 esac
23689 if test x"$ac_file" != x-; then
23690 { echo "$as_me:$LINENO: creating $ac_file" >&5
23691 echo "$as_me: creating $ac_file" >&6;}
23692 rm -f "$ac_file"
23694 # Let's still pretend it is `configure' which instantiates (i.e., don't
23695 # use $as_me), people would be surprised to read:
23696 # /* config.h. Generated by config.status. */
23697 if test x"$ac_file" = x-; then
23698 configure_input=
23699 else
23700 configure_input="$ac_file. "
23702 configure_input=$configure_input"Generated from `echo $ac_file_in |
23703 sed 's,.*/,,'` by configure."
23705 # First look for the input files in the build tree, otherwise in the
23706 # src tree.
23707 ac_file_inputs=`IFS=:
23708 for f in $ac_file_in; do
23709 case $f in
23710 -) echo $tmp/stdin ;;
23711 [\\/$]*)
23712 # Absolute (can't be DOS-style, as IFS=:)
23713 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23714 echo "$as_me: error: cannot find input file: $f" >&2;}
23715 { (exit 1); exit 1; }; }
23716 echo "$f";;
23717 *) # Relative
23718 if test -f "$f"; then
23719 # Build tree
23720 echo "$f"
23721 elif test -f "$srcdir/$f"; then
23722 # Source tree
23723 echo "$srcdir/$f"
23724 else
23725 # /dev/null tree
23726 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23727 echo "$as_me: error: cannot find input file: $f" >&2;}
23728 { (exit 1); exit 1; }; }
23729 fi;;
23730 esac
23731 done` || { (exit 1); exit 1; }
23732 _ACEOF
23733 cat >>$CONFIG_STATUS <<_ACEOF
23734 sed "$ac_vpsub
23735 $extrasub
23736 _ACEOF
23737 cat >>$CONFIG_STATUS <<\_ACEOF
23739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23740 s,@configure_input@,$configure_input,;t t
23741 s,@srcdir@,$ac_srcdir,;t t
23742 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23743 s,@top_srcdir@,$ac_top_srcdir,;t t
23744 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23745 s,@builddir@,$ac_builddir,;t t
23746 s,@abs_builddir@,$ac_abs_builddir,;t t
23747 s,@top_builddir@,$ac_top_builddir,;t t
23748 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23749 s,@INSTALL@,$ac_INSTALL,;t t
23750 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23751 rm -f $tmp/stdin
23752 if test x"$ac_file" != x-; then
23753 mv $tmp/out $ac_file
23754 else
23755 cat $tmp/out
23756 rm -f $tmp/out
23759 done
23760 _ACEOF
23761 cat >>$CONFIG_STATUS <<\_ACEOF
23764 # CONFIG_HEADER section.
23767 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23768 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23770 # ac_d sets the value in "#define NAME VALUE" lines.
23771 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23772 ac_dB='[ ].*$,\1#\2'
23773 ac_dC=' '
23774 ac_dD=',;t'
23775 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23776 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23777 ac_uB='$,\1#\2define\3'
23778 ac_uC=' '
23779 ac_uD=',;t'
23781 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23783 case $ac_file in
23784 - | *:- | *:-:* ) # input from stdin
23785 cat >$tmp/stdin
23786 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23788 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23790 * ) ac_file_in=$ac_file.in ;;
23791 esac
23793 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23794 echo "$as_me: creating $ac_file" >&6;}
23796 # First look for the input files in the build tree, otherwise in the
23797 # src tree.
23798 ac_file_inputs=`IFS=:
23799 for f in $ac_file_in; do
23800 case $f in
23801 -) echo $tmp/stdin ;;
23802 [\\/$]*)
23803 # Absolute (can't be DOS-style, as IFS=:)
23804 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23805 echo "$as_me: error: cannot find input file: $f" >&2;}
23806 { (exit 1); exit 1; }; }
23807 # Do quote $f, to prevent DOS paths from being IFS'd.
23808 echo "$f";;
23809 *) # Relative
23810 if test -f "$f"; then
23811 # Build tree
23812 echo "$f"
23813 elif test -f "$srcdir/$f"; then
23814 # Source tree
23815 echo "$srcdir/$f"
23816 else
23817 # /dev/null tree
23818 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23819 echo "$as_me: error: cannot find input file: $f" >&2;}
23820 { (exit 1); exit 1; }; }
23821 fi;;
23822 esac
23823 done` || { (exit 1); exit 1; }
23824 # Remove the trailing spaces.
23825 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23827 _ACEOF
23829 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23830 # `conftest.undefs', that substitutes the proper values into
23831 # config.h.in to produce config.h. The first handles `#define'
23832 # templates, and the second `#undef' templates.
23833 # And first: Protect against being on the right side of a sed subst in
23834 # config.status. Protect against being in an unquoted here document
23835 # in config.status.
23836 rm -f conftest.defines conftest.undefs
23837 # Using a here document instead of a string reduces the quoting nightmare.
23838 # Putting comments in sed scripts is not portable.
23840 # `end' is used to avoid that the second main sed command (meant for
23841 # 0-ary CPP macros) applies to n-ary macro definitions.
23842 # See the Autoconf documentation for `clear'.
23843 cat >confdef2sed.sed <<\_ACEOF
23844 s/[\\&,]/\\&/g
23845 s,[\\$`],\\&,g
23846 t clear
23847 : clear
23848 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23849 t end
23850 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23851 : end
23852 _ACEOF
23853 # If some macros were called several times there might be several times
23854 # the same #defines, which is useless. Nevertheless, we may not want to
23855 # sort them, since we want the *last* AC-DEFINE to be honored.
23856 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23857 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23858 rm -f confdef2sed.sed
23860 # This sed command replaces #undef with comments. This is necessary, for
23861 # example, in the case of _POSIX_SOURCE, which is predefined and required
23862 # on some systems where configure will not decide to define it.
23863 cat >>conftest.undefs <<\_ACEOF
23864 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23865 _ACEOF
23867 # Break up conftest.defines because some shells have a limit on the size
23868 # of here documents, and old seds have small limits too (100 cmds).
23869 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23870 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23871 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23872 echo ' :' >>$CONFIG_STATUS
23873 rm -f conftest.tail
23874 while grep . conftest.defines >/dev/null
23876 # Write a limited-size here document to $tmp/defines.sed.
23877 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23878 # Speed up: don't consider the non `#define' lines.
23879 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23880 # Work around the forget-to-reset-the-flag bug.
23881 echo 't clr' >>$CONFIG_STATUS
23882 echo ': clr' >>$CONFIG_STATUS
23883 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23884 echo 'CEOF
23885 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23886 rm -f $tmp/in
23887 mv $tmp/out $tmp/in
23888 ' >>$CONFIG_STATUS
23889 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23890 rm -f conftest.defines
23891 mv conftest.tail conftest.defines
23892 done
23893 rm -f conftest.defines
23894 echo ' fi # grep' >>$CONFIG_STATUS
23895 echo >>$CONFIG_STATUS
23897 # Break up conftest.undefs because some shells have a limit on the size
23898 # of here documents, and old seds have small limits too (100 cmds).
23899 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23900 rm -f conftest.tail
23901 while grep . conftest.undefs >/dev/null
23903 # Write a limited-size here document to $tmp/undefs.sed.
23904 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23905 # Speed up: don't consider the non `#undef'
23906 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23907 # Work around the forget-to-reset-the-flag bug.
23908 echo 't clr' >>$CONFIG_STATUS
23909 echo ': clr' >>$CONFIG_STATUS
23910 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23911 echo 'CEOF
23912 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23913 rm -f $tmp/in
23914 mv $tmp/out $tmp/in
23915 ' >>$CONFIG_STATUS
23916 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23917 rm -f conftest.undefs
23918 mv conftest.tail conftest.undefs
23919 done
23920 rm -f conftest.undefs
23922 cat >>$CONFIG_STATUS <<\_ACEOF
23923 # Let's still pretend it is `configure' which instantiates (i.e., don't
23924 # use $as_me), people would be surprised to read:
23925 # /* config.h. Generated by config.status. */
23926 if test x"$ac_file" = x-; then
23927 echo "/* Generated by configure. */" >$tmp/config.h
23928 else
23929 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23931 cat $tmp/in >>$tmp/config.h
23932 rm -f $tmp/in
23933 if test x"$ac_file" != x-; then
23934 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23935 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23936 echo "$as_me: $ac_file is unchanged" >&6;}
23937 else
23938 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23940 X"$ac_file" : 'X\(//\)[^/]' \| \
23941 X"$ac_file" : 'X\(//\)$' \| \
23942 X"$ac_file" : 'X\(/\)' \| \
23943 . : '\(.\)' 2>/dev/null ||
23944 echo X"$ac_file" |
23945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23947 /^X\(\/\/\)$/{ s//\1/; q; }
23948 /^X\(\/\).*/{ s//\1/; q; }
23949 s/.*/./; q'`
23950 { if $as_mkdir_p; then
23951 mkdir -p "$ac_dir"
23952 else
23953 as_dir="$ac_dir"
23954 as_dirs=
23955 while test ! -d "$as_dir"; do
23956 as_dirs="$as_dir $as_dirs"
23957 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23959 X"$as_dir" : 'X\(//\)[^/]' \| \
23960 X"$as_dir" : 'X\(//\)$' \| \
23961 X"$as_dir" : 'X\(/\)' \| \
23962 . : '\(.\)' 2>/dev/null ||
23963 echo X"$as_dir" |
23964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23966 /^X\(\/\/\)$/{ s//\1/; q; }
23967 /^X\(\/\).*/{ s//\1/; q; }
23968 s/.*/./; q'`
23969 done
23970 test ! -n "$as_dirs" || mkdir $as_dirs
23971 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23972 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23973 { (exit 1); exit 1; }; }; }
23975 rm -f $ac_file
23976 mv $tmp/config.h $ac_file
23978 else
23979 cat $tmp/config.h
23980 rm -f $tmp/config.h
23982 # Compute $ac_file's index in $config_headers.
23983 _am_stamp_count=1
23984 for _am_header in $config_headers :; do
23985 case $_am_header in
23986 $ac_file | $ac_file:* )
23987 break ;;
23989 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23990 esac
23991 done
23992 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23993 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23994 X$ac_file : 'X\(//\)[^/]' \| \
23995 X$ac_file : 'X\(//\)$' \| \
23996 X$ac_file : 'X\(/\)' \| \
23997 . : '\(.\)' 2>/dev/null ||
23998 echo X$ac_file |
23999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24001 /^X\(\/\/\)$/{ s//\1/; q; }
24002 /^X\(\/\).*/{ s//\1/; q; }
24003 s/.*/./; q'`/stamp-h$_am_stamp_count
24004 done
24005 _ACEOF
24006 cat >>$CONFIG_STATUS <<\_ACEOF
24009 # CONFIG_COMMANDS section.
24011 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24012 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24013 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24014 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24015 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24016 X"$ac_dest" : 'X\(//\)[^/]' \| \
24017 X"$ac_dest" : 'X\(//\)$' \| \
24018 X"$ac_dest" : 'X\(/\)' \| \
24019 . : '\(.\)' 2>/dev/null ||
24020 echo X"$ac_dest" |
24021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24023 /^X\(\/\/\)$/{ s//\1/; q; }
24024 /^X\(\/\).*/{ s//\1/; q; }
24025 s/.*/./; q'`
24026 { if $as_mkdir_p; then
24027 mkdir -p "$ac_dir"
24028 else
24029 as_dir="$ac_dir"
24030 as_dirs=
24031 while test ! -d "$as_dir"; do
24032 as_dirs="$as_dir $as_dirs"
24033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24035 X"$as_dir" : 'X\(//\)[^/]' \| \
24036 X"$as_dir" : 'X\(//\)$' \| \
24037 X"$as_dir" : 'X\(/\)' \| \
24038 . : '\(.\)' 2>/dev/null ||
24039 echo X"$as_dir" |
24040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24042 /^X\(\/\/\)$/{ s//\1/; q; }
24043 /^X\(\/\).*/{ s//\1/; q; }
24044 s/.*/./; q'`
24045 done
24046 test ! -n "$as_dirs" || mkdir $as_dirs
24047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24049 { (exit 1); exit 1; }; }; }
24051 ac_builddir=.
24053 if test "$ac_dir" != .; then
24054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24055 # A "../" for each directory in $ac_dir_suffix.
24056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24057 else
24058 ac_dir_suffix= ac_top_builddir=
24061 case $srcdir in
24062 .) # No --srcdir option. We are building in place.
24063 ac_srcdir=.
24064 if test -z "$ac_top_builddir"; then
24065 ac_top_srcdir=.
24066 else
24067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24068 fi ;;
24069 [\\/]* | ?:[\\/]* ) # Absolute path.
24070 ac_srcdir=$srcdir$ac_dir_suffix;
24071 ac_top_srcdir=$srcdir ;;
24072 *) # Relative path.
24073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24075 esac
24077 # Do not use `cd foo && pwd` to compute absolute paths, because
24078 # the directories may not exist.
24079 case `pwd` in
24080 .) ac_abs_builddir="$ac_dir";;
24082 case "$ac_dir" in
24083 .) ac_abs_builddir=`pwd`;;
24084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24086 esac;;
24087 esac
24088 case $ac_abs_builddir in
24089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24091 case ${ac_top_builddir}. in
24092 .) ac_abs_top_builddir=$ac_abs_builddir;;
24093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24095 esac;;
24096 esac
24097 case $ac_abs_builddir in
24098 .) ac_abs_srcdir=$ac_srcdir;;
24100 case $ac_srcdir in
24101 .) ac_abs_srcdir=$ac_abs_builddir;;
24102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24104 esac;;
24105 esac
24106 case $ac_abs_builddir in
24107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24109 case $ac_top_srcdir in
24110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24113 esac;;
24114 esac
24117 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24118 echo "$as_me: executing $ac_dest commands" >&6;}
24119 case $ac_dest in
24120 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24121 # Strip MF so we end up with the name of the file.
24122 mf=`echo "$mf" | sed -e 's/:.*$//'`
24123 # Check whether this is an Automake generated Makefile or not.
24124 # We used to match only the files named `Makefile.in', but
24125 # some people rename them; so instead we look at the file content.
24126 # Grep'ing the first line is not enough: some people post-process
24127 # each Makefile.in and add a new line on top of each file to say so.
24128 # So let's grep whole file.
24129 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24130 dirpart=`(dirname "$mf") 2>/dev/null ||
24131 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24132 X"$mf" : 'X\(//\)[^/]' \| \
24133 X"$mf" : 'X\(//\)$' \| \
24134 X"$mf" : 'X\(/\)' \| \
24135 . : '\(.\)' 2>/dev/null ||
24136 echo X"$mf" |
24137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24139 /^X\(\/\/\)$/{ s//\1/; q; }
24140 /^X\(\/\).*/{ s//\1/; q; }
24141 s/.*/./; q'`
24142 else
24143 continue
24145 # Extract the definition of DEPDIR, am__include, and am__quote
24146 # from the Makefile without running `make'.
24147 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24148 test -z "$DEPDIR" && continue
24149 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24150 test -z "am__include" && continue
24151 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24152 # When using ansi2knr, U may be empty or an underscore; expand it
24153 U=`sed -n 's/^U = //p' < "$mf"`
24154 # Find all dependency output files, they are included files with
24155 # $(DEPDIR) in their names. We invoke sed twice because it is the
24156 # simplest approach to changing $(DEPDIR) to its actual value in the
24157 # expansion.
24158 for file in `sed -n "
24159 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24160 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24161 # Make sure the directory exists.
24162 test -f "$dirpart/$file" && continue
24163 fdir=`(dirname "$file") 2>/dev/null ||
24164 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24165 X"$file" : 'X\(//\)[^/]' \| \
24166 X"$file" : 'X\(//\)$' \| \
24167 X"$file" : 'X\(/\)' \| \
24168 . : '\(.\)' 2>/dev/null ||
24169 echo X"$file" |
24170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24172 /^X\(\/\/\)$/{ s//\1/; q; }
24173 /^X\(\/\).*/{ s//\1/; q; }
24174 s/.*/./; q'`
24175 { if $as_mkdir_p; then
24176 mkdir -p $dirpart/$fdir
24177 else
24178 as_dir=$dirpart/$fdir
24179 as_dirs=
24180 while test ! -d "$as_dir"; do
24181 as_dirs="$as_dir $as_dirs"
24182 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24184 X"$as_dir" : 'X\(//\)[^/]' \| \
24185 X"$as_dir" : 'X\(//\)$' \| \
24186 X"$as_dir" : 'X\(/\)' \| \
24187 . : '\(.\)' 2>/dev/null ||
24188 echo X"$as_dir" |
24189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24191 /^X\(\/\/\)$/{ s//\1/; q; }
24192 /^X\(\/\).*/{ s//\1/; q; }
24193 s/.*/./; q'`
24194 done
24195 test ! -n "$as_dirs" || mkdir $as_dirs
24196 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24197 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24198 { (exit 1); exit 1; }; }; }
24200 # echo "creating $dirpart/$file"
24201 echo '# dummy' > "$dirpart/$file"
24202 done
24203 done
24205 libtool )
24207 # See if we are running on zsh, and set the options which allow our
24208 # commands through without removal of \ escapes.
24209 if test -n "${ZSH_VERSION+set}" ; then
24210 setopt NO_GLOB_SUBST
24213 cfgfile="${ofile}T"
24214 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24215 $RM "$cfgfile"
24217 cat <<_LT_EOF >> "$cfgfile"
24218 #! $SHELL
24220 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24221 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24222 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24223 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24225 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24226 # 2006, 2007, 2008 Free Software Foundation, Inc.
24227 # Written by Gordon Matzigkeit, 1996
24229 # This file is part of GNU Libtool.
24231 # GNU Libtool is free software; you can redistribute it and/or
24232 # modify it under the terms of the GNU General Public License as
24233 # published by the Free Software Foundation; either version 2 of
24234 # the License, or (at your option) any later version.
24236 # As a special exception to the GNU General Public License,
24237 # if you distribute this file as part of a program or library that
24238 # is built using GNU Libtool, you may include this file under the
24239 # same distribution terms that you use for the rest of that program.
24241 # GNU Libtool is distributed in the hope that it will be useful,
24242 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24243 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24244 # GNU General Public License for more details.
24246 # You should have received a copy of the GNU General Public License
24247 # along with GNU Libtool; see the file COPYING. If not, a copy
24248 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24249 # obtained by writing to the Free Software Foundation, Inc.,
24250 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24253 # The names of the tagged configurations supported by this script.
24254 available_tags=""
24256 # ### BEGIN LIBTOOL CONFIG
24258 # Whether or not to build shared libraries.
24259 build_libtool_libs=$enable_shared
24261 # Which release of libtool.m4 was used?
24262 macro_version=$macro_version
24263 macro_revision=$macro_revision
24265 # Whether or not to build static libraries.
24266 build_old_libs=$enable_static
24268 # What type of objects to build.
24269 pic_mode=$pic_mode
24271 # Whether or not to optimize for fast installation.
24272 fast_install=$enable_fast_install
24274 # The host system.
24275 host_alias=$host_alias
24276 host=$host
24277 host_os=$host_os
24279 # The build system.
24280 build_alias=$build_alias
24281 build=$build
24282 build_os=$build_os
24284 # A sed program that does not truncate output.
24285 SED=$lt_SED
24287 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24288 Xsed="\$SED -e 1s/^X//"
24290 # A grep program that handles long lines.
24291 GREP=$lt_GREP
24293 # An ERE matcher.
24294 EGREP=$lt_EGREP
24296 # A literal string matcher.
24297 FGREP=$lt_FGREP
24299 # A BSD- or MS-compatible name lister.
24300 NM=$lt_NM
24302 # Whether we need soft or hard links.
24303 LN_S=$lt_LN_S
24305 # What is the maximum length of a command?
24306 max_cmd_len=$max_cmd_len
24308 # Object file suffix (normally "o").
24309 objext=$ac_objext
24311 # Executable file suffix (normally "").
24312 exeext=$exeext
24314 # whether the shell understands "unset".
24315 lt_unset=$lt_unset
24317 # turn spaces into newlines.
24318 SP2NL=$lt_lt_SP2NL
24320 # turn newlines into spaces.
24321 NL2SP=$lt_lt_NL2SP
24323 # How to create reloadable object files.
24324 reload_flag=$lt_reload_flag
24325 reload_cmds=$lt_reload_cmds
24327 # An object symbol dumper.
24328 OBJDUMP=$lt_OBJDUMP
24330 # Method to check whether dependent libraries are shared objects.
24331 deplibs_check_method=$lt_deplibs_check_method
24333 # Command to use when deplibs_check_method == "file_magic".
24334 file_magic_cmd=$lt_file_magic_cmd
24336 # The archiver.
24337 AR=$lt_AR
24338 AR_FLAGS=$lt_AR_FLAGS
24340 # A symbol stripping program.
24341 STRIP=$lt_STRIP
24343 # Commands used to install an old-style archive.
24344 RANLIB=$lt_RANLIB
24345 old_postinstall_cmds=$lt_old_postinstall_cmds
24346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24348 # A C compiler.
24349 LTCC=$lt_CC
24351 # LTCC compiler flags.
24352 LTCFLAGS=$lt_CFLAGS
24354 # Take the output of nm and produce a listing of raw symbols and C names.
24355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24357 # Transform the output of nm in a proper C declaration.
24358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24360 # Transform the output of nm in a C name address pair.
24361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24363 # Transform the output of nm in a C name address pair when lib prefix is needed.
24364 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24366 # The name of the directory that contains temporary libtool files.
24367 objdir=$objdir
24369 # Shell to use when invoking shell scripts.
24370 SHELL=$lt_SHELL
24372 # An echo program that does not interpret backslashes.
24373 ECHO=$lt_ECHO
24375 # Used to examine libraries when file_magic_cmd begins with "file".
24376 MAGIC_CMD=$MAGIC_CMD
24378 # Must we lock files when doing compilation?
24379 need_locks=$lt_need_locks
24381 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24382 DSYMUTIL=$lt_DSYMUTIL
24384 # Tool to change global to local symbols on Mac OS X.
24385 NMEDIT=$lt_NMEDIT
24387 # Tool to manipulate fat objects and archives on Mac OS X.
24388 LIPO=$lt_LIPO
24390 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24391 OTOOL=$lt_OTOOL
24393 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24394 OTOOL64=$lt_OTOOL64
24396 # Old archive suffix (normally "a").
24397 libext=$libext
24399 # Shared library suffix (normally ".so").
24400 shrext_cmds=$lt_shrext_cmds
24402 # The commands to extract the exported symbol list from a shared archive.
24403 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24405 # Variables whose values should be saved in libtool wrapper scripts and
24406 # restored at link time.
24407 variables_saved_for_relink=$lt_variables_saved_for_relink
24409 # Do we need the "lib" prefix for modules?
24410 need_lib_prefix=$need_lib_prefix
24412 # Do we need a version for libraries?
24413 need_version=$need_version
24415 # Library versioning type.
24416 version_type=$version_type
24418 # Shared library runtime path variable.
24419 runpath_var=$runpath_var
24421 # Shared library path variable.
24422 shlibpath_var=$shlibpath_var
24424 # Is shlibpath searched before the hard-coded library search path?
24425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24427 # Format of library name prefix.
24428 libname_spec=$lt_libname_spec
24430 # List of archive names. First name is the real one, the rest are links.
24431 # The last name is the one that the linker finds with -lNAME
24432 library_names_spec=$lt_library_names_spec
24434 # The coded name of the library, if different from the real name.
24435 soname_spec=$lt_soname_spec
24437 # Command to use after installation of a shared archive.
24438 postinstall_cmds=$lt_postinstall_cmds
24440 # Command to use after uninstallation of a shared archive.
24441 postuninstall_cmds=$lt_postuninstall_cmds
24443 # Commands used to finish a libtool library installation in a directory.
24444 finish_cmds=$lt_finish_cmds
24446 # As "finish_cmds", except a single script fragment to be evaled but
24447 # not shown.
24448 finish_eval=$lt_finish_eval
24450 # Whether we should hardcode library paths into libraries.
24451 hardcode_into_libs=$hardcode_into_libs
24453 # Compile-time system search path for libraries.
24454 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24456 # Run-time system search path for libraries.
24457 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24459 # Whether dlopen is supported.
24460 dlopen_support=$enable_dlopen
24462 # Whether dlopen of programs is supported.
24463 dlopen_self=$enable_dlopen_self
24465 # Whether dlopen of statically linked programs is supported.
24466 dlopen_self_static=$enable_dlopen_self_static
24468 # Commands to strip libraries.
24469 old_striplib=$lt_old_striplib
24470 striplib=$lt_striplib
24473 # The linker used to build libraries.
24474 LD=$lt_LD
24476 # Commands used to build an old-style archive.
24477 old_archive_cmds=$lt_old_archive_cmds
24479 # A language specific compiler.
24480 CC=$lt_compiler
24482 # Is the compiler the GNU compiler?
24483 with_gcc=$GCC
24485 # Compiler flag to turn off builtin functions.
24486 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24488 # How to pass a linker flag through the compiler.
24489 wl=$lt_lt_prog_compiler_wl
24491 # Additional compiler flags for building library objects.
24492 pic_flag=$lt_lt_prog_compiler_pic
24494 # Compiler flag to prevent dynamic linking.
24495 link_static_flag=$lt_lt_prog_compiler_static
24497 # Does compiler simultaneously support -c and -o options?
24498 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24500 # Whether or not to add -lc for building shared libraries.
24501 build_libtool_need_lc=$archive_cmds_need_lc
24503 # Whether or not to disallow shared libs when runtime libs are static.
24504 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24506 # Compiler flag to allow reflexive dlopens.
24507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24509 # Compiler flag to generate shared objects directly from archives.
24510 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24512 # Whether the compiler copes with passing no objects directly.
24513 compiler_needs_object=$lt_compiler_needs_object
24515 # Create an old-style archive from a shared archive.
24516 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24518 # Create a temporary old-style archive to link instead of a shared archive.
24519 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24521 # Commands used to build a shared archive.
24522 archive_cmds=$lt_archive_cmds
24523 archive_expsym_cmds=$lt_archive_expsym_cmds
24525 # Commands used to build a loadable module if different from building
24526 # a shared archive.
24527 module_cmds=$lt_module_cmds
24528 module_expsym_cmds=$lt_module_expsym_cmds
24530 # Whether we are building with GNU ld or not.
24531 with_gnu_ld=$lt_with_gnu_ld
24533 # Flag that allows shared libraries with undefined symbols to be built.
24534 allow_undefined_flag=$lt_allow_undefined_flag
24536 # Flag that enforces no undefined symbols.
24537 no_undefined_flag=$lt_no_undefined_flag
24539 # Flag to hardcode \$libdir into a binary during linking.
24540 # This must work even if \$libdir does not exist
24541 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24543 # If ld is used when linking, flag to hardcode \$libdir into a binary
24544 # during linking. This must work even if \$libdir does not exist.
24545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24547 # Whether we need a single "-rpath" flag with a separated argument.
24548 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24550 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24551 # DIR into the resulting binary.
24552 hardcode_direct=$hardcode_direct
24554 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24555 # DIR into the resulting binary and the resulting library dependency is
24556 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24557 # library is relocated.
24558 hardcode_direct_absolute=$hardcode_direct_absolute
24560 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24561 # into the resulting binary.
24562 hardcode_minus_L=$hardcode_minus_L
24564 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24565 # into the resulting binary.
24566 hardcode_shlibpath_var=$hardcode_shlibpath_var
24568 # Set to "yes" if building a shared library automatically hardcodes DIR
24569 # into the library and all subsequent libraries and executables linked
24570 # against it.
24571 hardcode_automatic=$hardcode_automatic
24573 # Set to yes if linker adds runtime paths of dependent libraries
24574 # to runtime path list.
24575 inherit_rpath=$inherit_rpath
24577 # Whether libtool must link a program against all its dependency libraries.
24578 link_all_deplibs=$link_all_deplibs
24580 # Fix the shell variable \$srcfile for the compiler.
24581 fix_srcfile_path=$lt_fix_srcfile_path
24583 # Set to "yes" if exported symbols are required.
24584 always_export_symbols=$always_export_symbols
24586 # The commands to list exported symbols.
24587 export_symbols_cmds=$lt_export_symbols_cmds
24589 # Symbols that should not be listed in the preloaded symbols.
24590 exclude_expsyms=$lt_exclude_expsyms
24592 # Symbols that must always be exported.
24593 include_expsyms=$lt_include_expsyms
24595 # Commands necessary for linking programs (against libraries) with templates.
24596 prelink_cmds=$lt_prelink_cmds
24598 # Specify filename containing input files.
24599 file_list_spec=$lt_file_list_spec
24601 # How to hardcode a shared library path into an executable.
24602 hardcode_action=$hardcode_action
24604 # ### END LIBTOOL CONFIG
24606 _LT_EOF
24608 case $host_os in
24609 aix3*)
24610 cat <<\_LT_EOF >> "$cfgfile"
24611 # AIX sometimes has problems with the GCC collect2 program. For some
24612 # reason, if we set the COLLECT_NAMES environment variable, the problems
24613 # vanish in a puff of smoke.
24614 if test "X${COLLECT_NAMES+set}" != Xset; then
24615 COLLECT_NAMES=
24616 export COLLECT_NAMES
24618 _LT_EOF
24620 esac
24623 ltmain="$ac_aux_dir/ltmain.sh"
24626 # We use sed instead of cat because bash on DJGPP gets confused if
24627 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24628 # text mode, it properly converts lines to CR/LF. This bash problem
24629 # is reportedly fixed, but why not run on old versions too?
24630 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24631 || (rm -f "$cfgfile"; exit 1)
24633 case $xsi_shell in
24634 yes)
24635 cat << \_LT_EOF >> "$cfgfile"
24637 # func_dirname file append nondir_replacement
24638 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24639 # otherwise set result to NONDIR_REPLACEMENT.
24640 func_dirname ()
24642 case ${1} in
24643 */*) func_dirname_result="${1%/*}${2}" ;;
24644 * ) func_dirname_result="${3}" ;;
24645 esac
24648 # func_basename file
24649 func_basename ()
24651 func_basename_result="${1##*/}"
24654 # func_dirname_and_basename file append nondir_replacement
24655 # perform func_basename and func_dirname in a single function
24656 # call:
24657 # dirname: Compute the dirname of FILE. If nonempty,
24658 # add APPEND to the result, otherwise set result
24659 # to NONDIR_REPLACEMENT.
24660 # value returned in "$func_dirname_result"
24661 # basename: Compute filename of FILE.
24662 # value retuned in "$func_basename_result"
24663 # Implementation must be kept synchronized with func_dirname
24664 # and func_basename. For efficiency, we do not delegate to
24665 # those functions but instead duplicate the functionality here.
24666 func_dirname_and_basename ()
24668 case ${1} in
24669 */*) func_dirname_result="${1%/*}${2}" ;;
24670 * ) func_dirname_result="${3}" ;;
24671 esac
24672 func_basename_result="${1##*/}"
24675 # func_stripname prefix suffix name
24676 # strip PREFIX and SUFFIX off of NAME.
24677 # PREFIX and SUFFIX must not contain globbing or regex special
24678 # characters, hashes, percent signs, but SUFFIX may contain a leading
24679 # dot (in which case that matches only a dot).
24680 func_stripname ()
24682 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24683 # positional parameters, so assign one to ordinary parameter first.
24684 func_stripname_result=${3}
24685 func_stripname_result=${func_stripname_result#"${1}"}
24686 func_stripname_result=${func_stripname_result%"${2}"}
24689 # func_opt_split
24690 func_opt_split ()
24692 func_opt_split_opt=${1%%=*}
24693 func_opt_split_arg=${1#*=}
24696 # func_lo2o object
24697 func_lo2o ()
24699 case ${1} in
24700 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24701 *) func_lo2o_result=${1} ;;
24702 esac
24705 # func_xform libobj-or-source
24706 func_xform ()
24708 func_xform_result=${1%.*}.lo
24711 # func_arith arithmetic-term...
24712 func_arith ()
24714 func_arith_result=$(( $* ))
24717 # func_len string
24718 # STRING may not start with a hyphen.
24719 func_len ()
24721 func_len_result=${#1}
24724 _LT_EOF
24726 *) # Bourne compatible functions.
24727 cat << \_LT_EOF >> "$cfgfile"
24729 # func_dirname file append nondir_replacement
24730 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24731 # otherwise set result to NONDIR_REPLACEMENT.
24732 func_dirname ()
24734 # Extract subdirectory from the argument.
24735 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24736 if test "X$func_dirname_result" = "X${1}"; then
24737 func_dirname_result="${3}"
24738 else
24739 func_dirname_result="$func_dirname_result${2}"
24743 # func_basename file
24744 func_basename ()
24746 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24750 # func_stripname prefix suffix name
24751 # strip PREFIX and SUFFIX off of NAME.
24752 # PREFIX and SUFFIX must not contain globbing or regex special
24753 # characters, hashes, percent signs, but SUFFIX may contain a leading
24754 # dot (in which case that matches only a dot).
24755 # func_strip_suffix prefix name
24756 func_stripname ()
24758 case ${2} in
24759 .*) func_stripname_result=`$ECHO "X${3}" \
24760 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24761 *) func_stripname_result=`$ECHO "X${3}" \
24762 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24763 esac
24766 # sed scripts:
24767 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24768 my_sed_long_arg='1s/^-[^=]*=//'
24770 # func_opt_split
24771 func_opt_split ()
24773 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24774 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24777 # func_lo2o object
24778 func_lo2o ()
24780 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24783 # func_xform libobj-or-source
24784 func_xform ()
24786 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24789 # func_arith arithmetic-term...
24790 func_arith ()
24792 func_arith_result=`expr "$@"`
24795 # func_len string
24796 # STRING may not start with a hyphen.
24797 func_len ()
24799 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24802 _LT_EOF
24803 esac
24805 case $lt_shell_append in
24806 yes)
24807 cat << \_LT_EOF >> "$cfgfile"
24809 # func_append var value
24810 # Append VALUE to the end of shell variable VAR.
24811 func_append ()
24813 eval "$1+=\$2"
24815 _LT_EOF
24818 cat << \_LT_EOF >> "$cfgfile"
24820 # func_append var value
24821 # Append VALUE to the end of shell variable VAR.
24822 func_append ()
24824 eval "$1=\$$1\$2"
24827 _LT_EOF
24829 esac
24832 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24833 || (rm -f "$cfgfile"; exit 1)
24835 mv -f "$cfgfile" "$ofile" ||
24836 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24837 chmod +x "$ofile"
24840 default-1 )
24841 for ac_file in $CONFIG_FILES; do
24842 # Support "outfile[:infile[:infile...]]"
24843 case "$ac_file" in
24844 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24845 esac
24846 # PO directories have a Makefile.in generated from Makefile.in.in.
24847 case "$ac_file" in */Makefile.in)
24848 # Adjust a relative srcdir.
24849 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24850 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24851 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24852 # In autoconf-2.13 it is called $ac_given_srcdir.
24853 # In autoconf-2.50 it is called $srcdir.
24854 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24855 case "$ac_given_srcdir" in
24856 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24857 /*) top_srcdir="$ac_given_srcdir" ;;
24858 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24859 esac
24860 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24861 rm -f "$ac_dir/POTFILES"
24862 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24863 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24864 POMAKEFILEDEPS="POTFILES.in"
24865 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24866 # on $ac_dir but don't depend on user-specified configuration
24867 # parameters.
24868 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24869 # The LINGUAS file contains the set of available languages.
24870 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24871 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24873 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24874 # Hide the ALL_LINGUAS assigment from automake.
24875 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24876 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24877 else
24878 # The set of available languages was given in configure.in.
24879 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24881 case "$ac_given_srcdir" in
24882 .) srcdirpre= ;;
24883 *) srcdirpre='$(srcdir)/' ;;
24884 esac
24885 POFILES=
24886 GMOFILES=
24887 UPDATEPOFILES=
24888 DUMMYPOFILES=
24889 for lang in $ALL_LINGUAS; do
24890 POFILES="$POFILES $srcdirpre$lang.po"
24891 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24892 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24893 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24894 done
24895 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24896 # environment variable.
24897 INST_LINGUAS=
24898 if test -n "$ALL_LINGUAS"; then
24899 for presentlang in $ALL_LINGUAS; do
24900 useit=no
24901 if test "%UNSET%" != "$LINGUAS"; then
24902 desiredlanguages="$LINGUAS"
24903 else
24904 desiredlanguages="$ALL_LINGUAS"
24906 for desiredlang in $desiredlanguages; do
24907 # Use the presentlang catalog if desiredlang is
24908 # a. equal to presentlang, or
24909 # b. a variant of presentlang (because in this case,
24910 # presentlang can be used as a fallback for messages
24911 # which are not translated in the desiredlang catalog).
24912 case "$desiredlang" in
24913 "$presentlang"*) useit=yes;;
24914 esac
24915 done
24916 if test $useit = yes; then
24917 INST_LINGUAS="$INST_LINGUAS $presentlang"
24919 done
24921 CATALOGS=
24922 if test -n "$INST_LINGUAS"; then
24923 for lang in $INST_LINGUAS; do
24924 CATALOGS="$CATALOGS $lang.gmo"
24925 done
24927 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24928 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"
24929 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24930 if test -f "$f"; then
24931 case "$f" in
24932 *.orig | *.bak | *~) ;;
24933 *) cat "$f" >> "$ac_dir/Makefile" ;;
24934 esac
24936 done
24939 esac
24940 done ;;
24941 bfd_stdint.h )
24942 if test "$GCC" = yes; then
24943 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24944 else
24945 echo "/* generated for $CC */" > tmp-stdint.h
24948 sed 's/^ *//' >> tmp-stdint.h <<EOF
24950 #ifndef GCC_GENERATED_STDINT_H
24951 #define GCC_GENERATED_STDINT_H 1
24953 #include <sys/types.h>
24956 if test "$acx_cv_header_stdint" != stdint.h; then
24957 echo "#include <stddef.h>" >> tmp-stdint.h
24959 if test "$acx_cv_header_stdint" != stddef.h; then
24960 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24963 sed 's/^ *//' >> tmp-stdint.h <<EOF
24964 /* glibc uses these symbols as guards to prevent redefinitions. */
24965 #ifdef __int8_t_defined
24966 #define _INT8_T
24967 #define _INT16_T
24968 #define _INT32_T
24969 #endif
24970 #ifdef __uint32_t_defined
24971 #define _UINT32_T
24972 #endif
24976 # ----------------- done header, emit basic int types -------------
24977 if test "$acx_cv_header_stdint" = stddef.h; then
24978 sed 's/^ *//' >> tmp-stdint.h <<EOF
24980 #ifndef _UINT8_T
24981 #define _UINT8_T
24982 #ifndef __uint8_t_defined
24983 #define __uint8_t_defined
24984 typedef unsigned $acx_cv_type_int8_t uint8_t;
24985 #endif
24986 #endif
24988 #ifndef _UINT16_T
24989 #define _UINT16_T
24990 #ifndef __uint16_t_defined
24991 #define __uint16_t_defined
24992 typedef unsigned $acx_cv_type_int16_t uint16_t;
24993 #endif
24994 #endif
24996 #ifndef _UINT32_T
24997 #define _UINT32_T
24998 #ifndef __uint32_t_defined
24999 #define __uint32_t_defined
25000 typedef unsigned $acx_cv_type_int32_t uint32_t;
25001 #endif
25002 #endif
25004 #ifndef _INT8_T
25005 #define _INT8_T
25006 #ifndef __int8_t_defined
25007 #define __int8_t_defined
25008 typedef $acx_cv_type_int8_t int8_t;
25009 #endif
25010 #endif
25012 #ifndef _INT16_T
25013 #define _INT16_T
25014 #ifndef __int16_t_defined
25015 #define __int16_t_defined
25016 typedef $acx_cv_type_int16_t int16_t;
25017 #endif
25018 #endif
25020 #ifndef _INT32_T
25021 #define _INT32_T
25022 #ifndef __int32_t_defined
25023 #define __int32_t_defined
25024 typedef $acx_cv_type_int32_t int32_t;
25025 #endif
25026 #endif
25028 elif test "$ac_cv_type_u_int32_t" = yes; then
25029 sed 's/^ *//' >> tmp-stdint.h <<EOF
25031 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25032 #ifndef _INT8_T
25033 #define _INT8_T
25034 #endif
25035 #ifndef _INT16_T
25036 #define _INT16_T
25037 #endif
25038 #ifndef _INT32_T
25039 #define _INT32_T
25040 #endif
25042 #ifndef _UINT8_T
25043 #define _UINT8_T
25044 #ifndef __uint8_t_defined
25045 #define __uint8_t_defined
25046 typedef u_int8_t uint8_t;
25047 #endif
25048 #endif
25050 #ifndef _UINT16_T
25051 #define _UINT16_T
25052 #ifndef __uint16_t_defined
25053 #define __uint16_t_defined
25054 typedef u_int16_t uint16_t;
25055 #endif
25056 #endif
25058 #ifndef _UINT32_T
25059 #define _UINT32_T
25060 #ifndef __uint32_t_defined
25061 #define __uint32_t_defined
25062 typedef u_int32_t uint32_t;
25063 #endif
25064 #endif
25066 else
25067 sed 's/^ *//' >> tmp-stdint.h <<EOF
25069 /* Some systems have guard macros to prevent redefinitions, define them. */
25070 #ifndef _INT8_T
25071 #define _INT8_T
25072 #endif
25073 #ifndef _INT16_T
25074 #define _INT16_T
25075 #endif
25076 #ifndef _INT32_T
25077 #define _INT32_T
25078 #endif
25079 #ifndef _UINT8_T
25080 #define _UINT8_T
25081 #endif
25082 #ifndef _UINT16_T
25083 #define _UINT16_T
25084 #endif
25085 #ifndef _UINT32_T
25086 #define _UINT32_T
25087 #endif
25091 # ------------- done basic int types, emit int64_t types ------------
25092 if test "$ac_cv_type_uint64_t" = yes; then
25093 sed 's/^ *//' >> tmp-stdint.h <<EOF
25095 /* system headers have good uint64_t and int64_t */
25096 #ifndef _INT64_T
25097 #define _INT64_T
25098 #endif
25099 #ifndef _UINT64_T
25100 #define _UINT64_T
25101 #endif
25103 elif test "$ac_cv_type_u_int64_t" = yes; then
25104 sed 's/^ *//' >> tmp-stdint.h <<EOF
25106 /* system headers have an u_int64_t (and int64_t) */
25107 #ifndef _INT64_T
25108 #define _INT64_T
25109 #endif
25110 #ifndef _UINT64_T
25111 #define _UINT64_T
25112 #ifndef __uint64_t_defined
25113 #define __uint64_t_defined
25114 typedef u_int64_t uint64_t;
25115 #endif
25116 #endif
25118 elif test -n "$acx_cv_type_int64_t"; then
25119 sed 's/^ *//' >> tmp-stdint.h <<EOF
25121 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25122 #ifndef _INT64_T
25123 #define _INT64_T
25124 typedef $acx_cv_type_int64_t int64_t;
25125 #endif
25126 #ifndef _UINT64_T
25127 #define _UINT64_T
25128 #ifndef __uint64_t_defined
25129 #define __uint64_t_defined
25130 typedef unsigned $acx_cv_type_int64_t uint64_t;
25131 #endif
25132 #endif
25134 else
25135 sed 's/^ *//' >> tmp-stdint.h <<EOF
25137 /* some common heuristics for int64_t, using compiler-specific tests */
25138 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25139 #ifndef _INT64_T
25140 #define _INT64_T
25141 #ifndef __int64_t_defined
25142 typedef long long int64_t;
25143 #endif
25144 #endif
25145 #ifndef _UINT64_T
25146 #define _UINT64_T
25147 typedef unsigned long long uint64_t;
25148 #endif
25150 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25151 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25152 does not implement __extension__. But that compiler doesn't define
25153 __GNUC_MINOR__. */
25154 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25155 # define __extension__
25156 # endif
25158 # ifndef _INT64_T
25159 # define _INT64_T
25160 __extension__ typedef long long int64_t;
25161 # endif
25162 # ifndef _UINT64_T
25163 # define _UINT64_T
25164 __extension__ typedef unsigned long long uint64_t;
25165 # endif
25167 #elif !defined __STRICT_ANSI__
25168 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25170 # ifndef _INT64_T
25171 # define _INT64_T
25172 typedef __int64 int64_t;
25173 # endif
25174 # ifndef _UINT64_T
25175 # define _UINT64_T
25176 typedef unsigned __int64 uint64_t;
25177 # endif
25178 # endif /* compiler */
25180 #endif /* ANSI version */
25184 # ------------- done int64_t types, emit intptr types ------------
25185 if test "$ac_cv_type_uintptr_t" != yes; then
25186 sed 's/^ *//' >> tmp-stdint.h <<EOF
25188 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
25189 #ifndef __uintptr_t_defined
25190 typedef u$acx_cv_type_intptr_t uintptr_t;
25191 #endif
25192 #ifndef __intptr_t_defined
25193 typedef $acx_cv_type_intptr_t intptr_t;
25194 #endif
25198 # ------------- done intptr types, emit int_least types ------------
25199 if test "$ac_cv_type_int_least32_t" != yes; then
25200 sed 's/^ *//' >> tmp-stdint.h <<EOF
25202 /* Define int_least types */
25203 typedef int8_t int_least8_t;
25204 typedef int16_t int_least16_t;
25205 typedef int32_t int_least32_t;
25206 #ifdef _INT64_T
25207 typedef int64_t int_least64_t;
25208 #endif
25210 typedef uint8_t uint_least8_t;
25211 typedef uint16_t uint_least16_t;
25212 typedef uint32_t uint_least32_t;
25213 #ifdef _UINT64_T
25214 typedef uint64_t uint_least64_t;
25215 #endif
25219 # ------------- done intptr types, emit int_fast types ------------
25220 if test "$ac_cv_type_int_fast32_t" != yes; then
25221 sed 's/^ *//' >> tmp-stdint.h <<EOF
25223 /* Define int_fast types. short is often slow */
25224 typedef int8_t int_fast8_t;
25225 typedef int int_fast16_t;
25226 typedef int32_t int_fast32_t;
25227 #ifdef _INT64_T
25228 typedef int64_t int_fast64_t;
25229 #endif
25231 typedef uint8_t uint_fast8_t;
25232 typedef unsigned int uint_fast16_t;
25233 typedef uint32_t uint_fast32_t;
25234 #ifdef _UINT64_T
25235 typedef uint64_t uint_fast64_t;
25236 #endif
25240 if test "$ac_cv_type_uintmax_t" != yes; then
25241 sed 's/^ *//' >> tmp-stdint.h <<EOF
25243 /* Define intmax based on what we found */
25244 #ifdef _INT64_T
25245 typedef int64_t intmax_t;
25246 #else
25247 typedef long intmax_t;
25248 #endif
25249 #ifdef _UINT64_T
25250 typedef uint64_t uintmax_t;
25251 #else
25252 typedef unsigned long uintmax_t;
25253 #endif
25257 sed 's/^ *//' >> tmp-stdint.h <<EOF
25259 #endif /* GCC_GENERATED_STDINT_H */
25262 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
25263 rm -f tmp-stdint.h
25264 else
25265 mv -f tmp-stdint.h bfd_stdint.h
25269 default )
25270 case "$srcdir" in
25271 .) srcdirpre= ;;
25272 *) srcdirpre='$(srcdir)/' ;;
25273 esac
25274 POFILES=
25275 GMOFILES=
25276 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25277 if test $lang != dummy; then
25278 POFILES="$POFILES $srcdirpre$lang.po"
25279 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25281 done
25282 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25283 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25284 -e "s,@POFILES@,$POFILES," \
25285 -e "s,@GMOFILES@,$GMOFILES," \
25286 po/Makefile.in > po/Makefile ;;
25287 esac
25288 done
25289 _ACEOF
25291 cat >>$CONFIG_STATUS <<\_ACEOF
25293 { (exit 0); exit 0; }
25294 _ACEOF
25295 chmod +x $CONFIG_STATUS
25296 ac_clean_files=$ac_clean_files_save
25299 # configure is writing to config.log, and then calls config.status.
25300 # config.status does its own redirection, appending to config.log.
25301 # Unfortunately, on DOS this fails, as config.log is still kept open
25302 # by configure, so config.status won't be able to write to it; its
25303 # output is simply discarded. So we exec the FD to /dev/null,
25304 # effectively closing config.log, so it can be properly (re)opened and
25305 # appended to by config.status. When coming back to configure, we
25306 # need to make the FD available again.
25307 if test "$no_create" != yes; then
25308 ac_cs_success=:
25309 ac_config_status_args=
25310 test "$silent" = yes &&
25311 ac_config_status_args="$ac_config_status_args --quiet"
25312 exec 5>/dev/null
25313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25314 exec 5>>config.log
25315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25316 # would make configure fail if this is the last instruction.
25317 $ac_cs_success || { (exit 1); exit 1; }