Add support for building on a 64-bit Windows host.
[binutils.git] / bfd / configure
blob9a749c7ef855e2597fb57c4f48be0f3dc3b3191c
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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP 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_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
924 # Report the --help message.
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930 \`configure' configures this package to adapt to many kinds of systems.
932 Usage: $0 [OPTION]... [VAR=VALUE]...
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
937 Defaults for the options are specified in brackets.
939 Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950 _ACEOF
952 cat <<_ACEOF
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
964 For better control, use the options below.
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979 _ACEOF
981 cat <<\_ACEOF
983 Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
988 System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992 _ACEOF
995 if test -n "$ac_init_help"; then
997 cat <<\_ACEOF
999 Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=no]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-secureplt Default to creating read-only plt entries
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
1019 --enable-install-libbfd controls installation of libbfd and related headers
1020 --disable-nls do not use Native Language Support
1022 Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 --with-mmap try using mmap for BFD input files if available
1029 --with-separate-debug-dir=DIR
1030 Look for global separate debug info in DIR
1031 [default=LIBDIR/debug]
1032 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1033 Binutils"
1034 --with-bugurl=URL Direct users to URL to report a bug
1036 Some influential environment variables:
1037 CC C compiler command
1038 CFLAGS C compiler flags
1039 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040 nonstandard directory <lib dir>
1041 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042 headers in a nonstandard directory <include dir>
1043 CPP C preprocessor
1045 Use these variables to override the choices made by `configure' or to help
1046 it to find libraries and programs with nonstandard names/locations.
1048 _ACEOF
1051 if test "$ac_init_help" = "recursive"; then
1052 # If there are subdirs, report their specific --help.
1053 ac_popdir=`pwd`
1054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055 test -d $ac_dir || continue
1056 ac_builddir=.
1058 if test "$ac_dir" != .; then
1059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060 # A "../" for each directory in $ac_dir_suffix.
1061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062 else
1063 ac_dir_suffix= ac_top_builddir=
1066 case $srcdir in
1067 .) # No --srcdir option. We are building in place.
1068 ac_srcdir=.
1069 if test -z "$ac_top_builddir"; then
1070 ac_top_srcdir=.
1071 else
1072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073 fi ;;
1074 [\\/]* | ?:[\\/]* ) # Absolute path.
1075 ac_srcdir=$srcdir$ac_dir_suffix;
1076 ac_top_srcdir=$srcdir ;;
1077 *) # Relative path.
1078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080 esac
1082 # Do not use `cd foo && pwd` to compute absolute paths, because
1083 # the directories may not exist.
1084 case `pwd` in
1085 .) ac_abs_builddir="$ac_dir";;
1087 case "$ac_dir" in
1088 .) ac_abs_builddir=`pwd`;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1091 esac;;
1092 esac
1093 case $ac_abs_builddir in
1094 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 case ${ac_top_builddir}. in
1097 .) ac_abs_top_builddir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1100 esac;;
1101 esac
1102 case $ac_abs_builddir in
1103 .) ac_abs_srcdir=$ac_srcdir;;
1105 case $ac_srcdir in
1106 .) ac_abs_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1109 esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 case $ac_top_srcdir in
1115 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1118 esac;;
1119 esac
1121 cd $ac_dir
1122 # Check for guested configure; otherwise get Cygnus style configure.
1123 if test -f $ac_srcdir/configure.gnu; then
1124 echo
1125 $SHELL $ac_srcdir/configure.gnu --help=recursive
1126 elif test -f $ac_srcdir/configure; then
1127 echo
1128 $SHELL $ac_srcdir/configure --help=recursive
1129 elif test -f $ac_srcdir/configure.ac ||
1130 test -f $ac_srcdir/configure.in; then
1131 echo
1132 $ac_configure --help
1133 else
1134 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136 cd $ac_popdir
1137 done
1140 test -n "$ac_init_help" && exit 0
1141 if $ac_init_version; then
1142 cat <<\_ACEOF
1144 Copyright (C) 2003 Free Software Foundation, Inc.
1145 This configure script is free software; the Free Software Foundation
1146 gives unlimited permission to copy, distribute and modify it.
1147 _ACEOF
1148 exit 0
1150 exec 5>config.log
1151 cat >&5 <<_ACEOF
1152 This file contains any messages produced by compilers while
1153 running configure, to aid debugging if configure makes a mistake.
1155 It was created by $as_me, which was
1156 generated by GNU Autoconf 2.59. Invocation command line was
1158 $ $0 $@
1160 _ACEOF
1162 cat <<_ASUNAME
1163 ## --------- ##
1164 ## Platform. ##
1165 ## --------- ##
1167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1176 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1184 _ASUNAME
1186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187 for as_dir in $PATH
1189 IFS=$as_save_IFS
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1192 done
1194 } >&5
1196 cat >&5 <<_ACEOF
1199 ## ----------- ##
1200 ## Core tests. ##
1201 ## ----------- ##
1203 _ACEOF
1206 # Keep a trace of the command line.
1207 # Strip out --no-create and --no-recursion so they do not pile up.
1208 # Strip out --silent because we don't want to record it for future runs.
1209 # Also quote any args containing shell meta-characters.
1210 # Make two passes to allow for proper duplicate-argument suppression.
1211 ac_configure_args=
1212 ac_configure_args0=
1213 ac_configure_args1=
1214 ac_sep=
1215 ac_must_keep_next=false
1216 for ac_pass in 1 2
1218 for ac_arg
1220 case $ac_arg in
1221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 continue ;;
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 esac
1228 case $ac_pass in
1229 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232 if test $ac_must_keep_next = true; then
1233 ac_must_keep_next=false # Got value, back to normal.
1234 else
1235 case $ac_arg in
1236 *=* | --config-cache | -C | -disable-* | --disable-* \
1237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239 | -with-* | --with-* | -without-* | --without-* | --x)
1240 case "$ac_configure_args0 " in
1241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242 esac
1244 -* ) ac_must_keep_next=true ;;
1245 esac
1247 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248 # Get rid of the leading space.
1249 ac_sep=" "
1251 esac
1252 done
1253 done
1254 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257 # When interrupted or exit'd, cleanup temporary files, and complete
1258 # config.log. We remove comments because anyway the quotes in there
1259 # would cause problems or look ugly.
1260 # WARNING: Be sure not to use single quotes in there, as some shells,
1261 # such as our DU 5.0 friend, will then `close' the trap.
1262 trap 'exit_status=$?
1263 # Save into config.log some information that might help in debugging.
1265 echo
1267 cat <<\_ASBOX
1268 ## ---------------- ##
1269 ## Cache variables. ##
1270 ## ---------------- ##
1271 _ASBOX
1272 echo
1273 # The following way of writing the cache mishandles newlines in values,
1275 (set) 2>&1 |
1276 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277 *ac_space=\ *)
1278 sed -n \
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 sed -n \
1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 esac;
1288 echo
1290 cat <<\_ASBOX
1291 ## ----------------- ##
1292 ## Output variables. ##
1293 ## ----------------- ##
1294 _ASBOX
1295 echo
1296 for ac_var in $ac_subst_vars
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1303 if test -n "$ac_subst_files"; then
1304 cat <<\_ASBOX
1305 ## ------------- ##
1306 ## Output files. ##
1307 ## ------------- ##
1308 _ASBOX
1309 echo
1310 for ac_var in $ac_subst_files
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1318 if test -s confdefs.h; then
1319 cat <<\_ASBOX
1320 ## ----------- ##
1321 ## confdefs.h. ##
1322 ## ----------- ##
1323 _ASBOX
1324 echo
1325 sed "/^$/d" confdefs.h | sort
1326 echo
1328 test "$ac_signal" != 0 &&
1329 echo "$as_me: caught signal $ac_signal"
1330 echo "$as_me: exit $exit_status"
1331 } >&5
1332 rm -f core *.core &&
1333 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334 exit $exit_status
1336 for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338 done
1339 ac_signal=0
1341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1342 rm -rf conftest* confdefs.h
1343 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344 echo >confdefs.h
1346 # Predefined preprocessor variables.
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_NAME "$PACKAGE_NAME"
1350 _ACEOF
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355 _ACEOF
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1360 _ACEOF
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_STRING "$PACKAGE_STRING"
1365 _ACEOF
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370 _ACEOF
1373 # Let the site file select an alternate cache file if it wants to.
1374 # Prefer explicitly selected file to automatically selected ones.
1375 if test -z "$CONFIG_SITE"; then
1376 if test "x$prefix" != xNONE; then
1377 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 else
1379 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 for ac_site_file in $CONFIG_SITE; do
1383 if test -r "$ac_site_file"; then
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385 echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
1387 . "$ac_site_file"
1389 done
1391 if test -r "$cache_file"; then
1392 # Some versions of bash will fail to source /dev/null (special
1393 # files actually), so we avoid doing that.
1394 if test -f "$cache_file"; then
1395 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396 echo "$as_me: loading cache $cache_file" >&6;}
1397 case $cache_file in
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1400 esac
1402 else
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404 echo "$as_me: creating cache $cache_file" >&6;}
1405 >$cache_file
1408 # Check that the precious variables saved in the cache have kept the same
1409 # value.
1410 ac_cache_corrupted=false
1411 for ac_var in `(set) 2>&1 |
1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414 eval ac_new_set=\$ac_env_${ac_var}_set
1415 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416 eval ac_new_val="\$ac_env_${ac_var}_value"
1417 case $ac_old_set,$ac_new_set in
1418 set,)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,set)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,);;
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
1429 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1432 echo "$as_me: former value: $ac_old_val" >&2;}
1433 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1434 echo "$as_me: current value: $ac_new_val" >&2;}
1435 ac_cache_corrupted=:
1436 fi;;
1437 esac
1438 # Pass precious variables to config.status.
1439 if test "$ac_new_set" = set; then
1440 case $ac_new_val in
1441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443 *) ac_arg=$ac_var=$ac_new_val ;;
1444 esac
1445 case " $ac_configure_args " in
1446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1447 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1448 esac
1450 done
1451 if $ac_cache_corrupted; then
1452 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456 { (exit 1); exit 1; }; }
1459 ac_ext=c
1460 ac_cpp='$CPP $CPPFLAGS'
1461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485 ac_aux_dir=
1486 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1487 if test -f $ac_dir/install-sh; then
1488 ac_aux_dir=$ac_dir
1489 ac_install_sh="$ac_aux_dir/install-sh -c"
1490 break
1491 elif test -f $ac_dir/install.sh; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/install.sh -c"
1494 break
1495 elif test -f $ac_dir/shtool; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/shtool install -c"
1498 break
1500 done
1501 if test -z "$ac_aux_dir"; then
1502 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1503 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1504 { (exit 1); exit 1; }; }
1506 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510 # Make sure we can run config.sub.
1511 $ac_config_sub sun4 >/dev/null 2>&1 ||
1512 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1513 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1514 { (exit 1); exit 1; }; }
1516 echo "$as_me:$LINENO: checking build system type" >&5
1517 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1518 if test "${ac_cv_build+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 ac_cv_build_alias=$build_alias
1522 test -z "$ac_cv_build_alias" &&
1523 ac_cv_build_alias=`$ac_config_guess`
1524 test -z "$ac_cv_build_alias" &&
1525 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1526 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1527 { (exit 1); exit 1; }; }
1528 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1529 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1530 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1531 { (exit 1); exit 1; }; }
1534 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1535 echo "${ECHO_T}$ac_cv_build" >&6
1536 build=$ac_cv_build
1537 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1538 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1539 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1542 echo "$as_me:$LINENO: checking host system type" >&5
1543 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1544 if test "${ac_cv_host+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 ac_cv_host_alias=$host_alias
1548 test -z "$ac_cv_host_alias" &&
1549 ac_cv_host_alias=$ac_cv_build_alias
1550 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1551 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1552 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1553 { (exit 1); exit 1; }; }
1556 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1557 echo "${ECHO_T}$ac_cv_host" >&6
1558 host=$ac_cv_host
1559 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564 echo "$as_me:$LINENO: checking target system type" >&5
1565 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1566 if test "${ac_cv_target+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569 ac_cv_target_alias=$target_alias
1570 test "x$ac_cv_target_alias" = "x" &&
1571 ac_cv_target_alias=$ac_cv_host_alias
1572 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1579 echo "${ECHO_T}$ac_cv_target" >&6
1580 target=$ac_cv_target
1581 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 # The aliases save the names the user supplied, while $host etc.
1587 # will get canonicalized.
1588 test -n "$target_alias" &&
1589 test "$program_prefix$program_suffix$program_transform_name" = \
1590 NONENONEs,x,x, &&
1591 program_prefix=${target_alias}-
1592 ac_ext=c
1593 ac_cpp='$CPP $CPPFLAGS'
1594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1597 if test -n "$ac_tool_prefix"; then
1598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1611 IFS=$as_save_IFS
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 break 2
1619 done
1620 done
1624 CC=$ac_cv_prog_CC
1625 if test -n "$CC"; then
1626 echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1628 else
1629 echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1634 if test -z "$ac_cv_prog_CC"; then
1635 ac_ct_CC=$CC
1636 # Extract the first word of "gcc", so it can be a program name with args.
1637 set dummy gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643 if test -n "$ac_ct_CC"; then
1644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_ac_ct_CC="gcc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1657 done
1658 done
1662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663 if test -n "$ac_ct_CC"; then
1664 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665 echo "${ECHO_T}$ac_ct_CC" >&6
1666 else
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1671 CC=$ac_ct_CC
1672 else
1673 CC="$ac_cv_prog_CC"
1676 if test -z "$CC"; then
1677 if test -n "$ac_tool_prefix"; then
1678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1679 set dummy ${ac_tool_prefix}cc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_CC="${ac_tool_prefix}cc"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1699 done
1700 done
1704 CC=$ac_cv_prog_CC
1705 if test -n "$CC"; then
1706 echo "$as_me:$LINENO: result: $CC" >&5
1707 echo "${ECHO_T}$CC" >&6
1708 else
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1714 if test -z "$ac_cv_prog_CC"; then
1715 ac_ct_CC=$CC
1716 # Extract the first word of "cc", so it can be a program name with args.
1717 set dummy cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723 if test -n "$ac_ct_CC"; then
1724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725 else
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_ac_ct_CC="cc"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 break 2
1737 done
1738 done
1742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1743 if test -n "$ac_ct_CC"; then
1744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745 echo "${ECHO_T}$ac_ct_CC" >&6
1746 else
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1751 CC=$ac_ct_CC
1752 else
1753 CC="$ac_cv_prog_CC"
1757 if test -z "$CC"; then
1758 # Extract the first word of "cc", so it can be a program name with args.
1759 set dummy cc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1767 else
1768 ac_prog_rejected=no
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 for as_dir in $PATH
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
1774 for ac_exec_ext in '' $ac_executable_extensions; do
1775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1777 ac_prog_rejected=yes
1778 continue
1780 ac_cv_prog_CC="cc"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1784 done
1785 done
1787 if test $ac_prog_rejected = yes; then
1788 # We found a bogon in the path, so make sure we never use it.
1789 set dummy $ac_cv_prog_CC
1790 shift
1791 if test $# != 0; then
1792 # We chose a different compiler from the bogus one.
1793 # However, it has the same basename, so the bogon will be chosen
1794 # first if we set CC to just the basename; use the full file name.
1795 shift
1796 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1801 CC=$ac_cv_prog_CC
1802 if test -n "$CC"; then
1803 echo "$as_me:$LINENO: result: $CC" >&5
1804 echo "${ECHO_T}$CC" >&6
1805 else
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1811 if test -z "$CC"; then
1812 if test -n "$ac_tool_prefix"; then
1813 for ac_prog in cl
1815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1836 done
1837 done
1841 CC=$ac_cv_prog_CC
1842 if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844 echo "${ECHO_T}$CC" >&6
1845 else
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1850 test -n "$CC" && break
1851 done
1853 if test -z "$CC"; then
1854 ac_ct_CC=$CC
1855 for ac_prog in cl
1857 # Extract the first word of "$ac_prog", so it can be a program name with args.
1858 set dummy $ac_prog; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$ac_ct_CC"; then
1865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_ac_ct_CC="$ac_prog"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1878 done
1879 done
1883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1884 if test -n "$ac_ct_CC"; then
1885 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1886 echo "${ECHO_T}$ac_ct_CC" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1892 test -n "$ac_ct_CC" && break
1893 done
1895 CC=$ac_ct_CC
1901 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: no acceptable C compiler found in \$PATH
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1907 # Provide some information about the compiler.
1908 echo "$as_me:$LINENO:" \
1909 "checking for C compiler version" >&5
1910 ac_compiler=`set X $ac_compile; echo $2`
1911 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1912 (eval $ac_compiler --version </dev/null >&5) 2>&5
1913 ac_status=$?
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }
1916 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1917 (eval $ac_compiler -v </dev/null >&5) 2>&5
1918 ac_status=$?
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1922 (eval $ac_compiler -V </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1927 cat >conftest.$ac_ext <<_ACEOF
1928 /* confdefs.h. */
1929 _ACEOF
1930 cat confdefs.h >>conftest.$ac_ext
1931 cat >>conftest.$ac_ext <<_ACEOF
1932 /* end confdefs.h. */
1935 main ()
1939 return 0;
1941 _ACEOF
1942 ac_clean_files_save=$ac_clean_files
1943 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1944 # Try to create an executable without -o first, disregard a.out.
1945 # It will help us diagnose broken compilers, and finding out an intuition
1946 # of exeext.
1947 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1948 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1949 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1950 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1951 (eval $ac_link_default) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; then
1955 # Find the output, starting from the most likely. This scheme is
1956 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1957 # resort.
1959 # Be careful to initialize this variable, since it used to be cached.
1960 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1961 ac_cv_exeext=
1962 # b.out is created by i960 compilers.
1963 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1965 test -f "$ac_file" || continue
1966 case $ac_file in
1967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1969 conftest.$ac_ext )
1970 # This is the source file.
1972 [ab].out )
1973 # We found the default executable, but exeext='' is most
1974 # certainly right.
1975 break;;
1976 *.* )
1977 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1978 # FIXME: I believe we export ac_cv_exeext for Libtool,
1979 # but it would be cool to find out if it's true. Does anybody
1980 # maintain Libtool? --akim.
1981 export ac_cv_exeext
1982 break;;
1984 break;;
1985 esac
1986 done
1987 else
1988 echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: C compiler cannot create executables
1994 See \`config.log' for more details." >&2;}
1995 { (exit 77); exit 77; }; }
1998 ac_exeext=$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_file" >&5
2000 echo "${ECHO_T}$ac_file" >&6
2002 # Check the compiler produces executables we can run. If not, either
2003 # the compiler is broken, or we cross compile.
2004 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2005 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2006 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2007 # If not cross compiling, check that we can run a simple program.
2008 if test "$cross_compiling" != yes; then
2009 if { ac_try='./$ac_file'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 (eval $ac_try) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 cross_compiling=no
2016 else
2017 if test "$cross_compiling" = maybe; then
2018 cross_compiling=yes
2019 else
2020 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2021 If you meant to cross compile, use \`--host'.
2022 See \`config.log' for more details." >&5
2023 echo "$as_me: error: cannot run C compiled programs.
2024 If you meant to cross compile, use \`--host'.
2025 See \`config.log' for more details." >&2;}
2026 { (exit 1); exit 1; }; }
2030 echo "$as_me:$LINENO: result: yes" >&5
2031 echo "${ECHO_T}yes" >&6
2033 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2034 ac_clean_files=$ac_clean_files_save
2035 # Check the compiler produces executables we can run. If not, either
2036 # the compiler is broken, or we cross compile.
2037 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2038 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2039 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2040 echo "${ECHO_T}$cross_compiling" >&6
2042 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2043 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2045 (eval $ac_link) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; then
2049 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2050 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2051 # work properly (i.e., refer to `conftest.exe'), while it won't with
2052 # `rm'.
2053 for ac_file in conftest.exe conftest conftest.*; do
2054 test -f "$ac_file" || continue
2055 case $ac_file in
2056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058 export ac_cv_exeext
2059 break;;
2060 * ) break;;
2061 esac
2062 done
2063 else
2064 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2071 rm -f conftest$ac_cv_exeext
2072 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2073 echo "${ECHO_T}$ac_cv_exeext" >&6
2075 rm -f conftest.$ac_ext
2076 EXEEXT=$ac_cv_exeext
2077 ac_exeext=$EXEEXT
2078 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2079 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2080 if test "${ac_cv_objext+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 cat >conftest.$ac_ext <<_ACEOF
2084 /* confdefs.h. */
2085 _ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2091 main ()
2095 return 0;
2097 _ACEOF
2098 rm -f conftest.o conftest.obj
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; then
2104 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2105 case $ac_file in
2106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2107 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2108 break;;
2109 esac
2110 done
2111 else
2112 echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2115 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2124 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2125 echo "${ECHO_T}$ac_cv_objext" >&6
2126 OBJEXT=$ac_cv_objext
2127 ac_objext=$OBJEXT
2128 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2129 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2130 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h. */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2141 main ()
2143 #ifndef __GNUC__
2144 choke me
2145 #endif
2148 return 0;
2150 _ACEOF
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2154 ac_status=$?
2155 grep -v '^ *+' conftest.er1 >conftest.err
2156 rm -f conftest.er1
2157 cat conftest.err >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try='test -z "$ac_c_werror_flag"
2161 || test ! -s conftest.err'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2173 ac_compiler_gnu=yes
2174 else
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2178 ac_compiler_gnu=no
2180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2184 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2185 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2186 GCC=`test $ac_compiler_gnu = yes && echo yes`
2187 ac_test_CFLAGS=${CFLAGS+set}
2188 ac_save_CFLAGS=$CFLAGS
2189 CFLAGS="-g"
2190 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2191 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2192 if test "${ac_cv_prog_cc_g+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195 cat >conftest.$ac_ext <<_ACEOF
2196 /* confdefs.h. */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2203 main ()
2207 return 0;
2209 _ACEOF
2210 rm -f conftest.$ac_objext
2211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212 (eval $ac_compile) 2>conftest.er1
2213 ac_status=$?
2214 grep -v '^ *+' conftest.er1 >conftest.err
2215 rm -f conftest.er1
2216 cat conftest.err >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); } &&
2219 { ac_try='test -z "$ac_c_werror_flag"
2220 || test ! -s conftest.err'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; } &&
2226 { ac_try='test -s conftest.$ac_objext'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 ac_cv_prog_cc_g=yes
2233 else
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2237 ac_cv_prog_cc_g=no
2239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2242 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2243 if test "$ac_test_CFLAGS" = set; then
2244 CFLAGS=$ac_save_CFLAGS
2245 elif test $ac_cv_prog_cc_g = yes; then
2246 if test "$GCC" = yes; then
2247 CFLAGS="-g -O2"
2248 else
2249 CFLAGS="-g"
2251 else
2252 if test "$GCC" = yes; then
2253 CFLAGS="-O2"
2254 else
2255 CFLAGS=
2258 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2259 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2260 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 ac_cv_prog_cc_stdc=no
2264 ac_save_CC=$CC
2265 cat >conftest.$ac_ext <<_ACEOF
2266 /* confdefs.h. */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2271 #include <stdarg.h>
2272 #include <stdio.h>
2273 #include <sys/types.h>
2274 #include <sys/stat.h>
2275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2276 struct buf { int x; };
2277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2278 static char *e (p, i)
2279 char **p;
2280 int i;
2282 return p[i];
2284 static char *f (char * (*g) (char **, int), char **p, ...)
2286 char *s;
2287 va_list v;
2288 va_start (v,p);
2289 s = g (p, va_arg (v,int));
2290 va_end (v);
2291 return s;
2294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2295 function prototypes and stuff, but not '\xHH' hex character constants.
2296 These don't provoke an error unfortunately, instead are silently treated
2297 as 'x'. The following induces an error, until -std1 is added to get
2298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2299 array size at least. It's necessary to write '\x00'==0 to get something
2300 that's true only with -std1. */
2301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2303 int test (int i, double x);
2304 struct s1 {int (*f) (int a);};
2305 struct s2 {int (*f) (double a);};
2306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2307 int argc;
2308 char **argv;
2310 main ()
2312 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2314 return 0;
2316 _ACEOF
2317 # Don't try gcc -ansi; that turns off useful extensions and
2318 # breaks some systems' header files.
2319 # AIX -qlanglvl=ansi
2320 # Ultrix and OSF/1 -std1
2321 # HP-UX 10.20 and later -Ae
2322 # HP-UX older versions -Aa -D_HPUX_SOURCE
2323 # SVR4 -Xc -D__EXTENSIONS__
2324 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2326 CC="$ac_save_CC $ac_arg"
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>conftest.er1
2330 ac_status=$?
2331 grep -v '^ *+' conftest.er1 >conftest.err
2332 rm -f conftest.er1
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
2336 { ac_try='test -z "$ac_c_werror_flag"
2337 || test ! -s conftest.err'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 (eval $ac_try) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 (eval $ac_try) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 ac_cv_prog_cc_stdc=$ac_arg
2350 break
2351 else
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2356 rm -f conftest.err conftest.$ac_objext
2357 done
2358 rm -f conftest.$ac_ext conftest.$ac_objext
2359 CC=$ac_save_CC
2363 case "x$ac_cv_prog_cc_stdc" in
2364 x|xno)
2365 echo "$as_me:$LINENO: result: none needed" >&5
2366 echo "${ECHO_T}none needed" >&6 ;;
2368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2369 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2370 CC="$CC $ac_cv_prog_cc_stdc" ;;
2371 esac
2373 # Some people use a C++ compiler to compile C. Since we use `exit',
2374 # in C++ we need to declare it. In case someone uses the same compiler
2375 # for both compiling C and C++ we need to have the C++ compiler decide
2376 # the declaration of exit, since it's the most demanding environment.
2377 cat >conftest.$ac_ext <<_ACEOF
2378 #ifndef __cplusplus
2379 choke me
2380 #endif
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_c_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 for ac_declaration in \
2405 '' \
2406 'extern "C" void std::exit (int) throw (); using std::exit;' \
2407 'extern "C" void std::exit (int); using std::exit;' \
2408 'extern "C" void exit (int) throw ();' \
2409 'extern "C" void exit (int);' \
2410 'void exit (int);'
2412 cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h. */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2418 $ac_declaration
2419 #include <stdlib.h>
2421 main ()
2423 exit (42);
2425 return 0;
2427 _ACEOF
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2431 ac_status=$?
2432 grep -v '^ *+' conftest.er1 >conftest.err
2433 rm -f conftest.er1
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -z "$ac_c_werror_flag"
2438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2451 else
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2455 continue
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h. */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2464 $ac_declaration
2466 main ()
2468 exit (42);
2470 return 0;
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>conftest.er1
2476 ac_status=$?
2477 grep -v '^ *+' conftest.er1 >conftest.err
2478 rm -f conftest.er1
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -z "$ac_c_werror_flag"
2483 || test ! -s conftest.err'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 (eval $ac_try) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; } &&
2489 { ac_try='test -s conftest.$ac_objext'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 (eval $ac_try) 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 break
2496 else
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502 done
2503 rm -f conftest*
2504 if test -n "$ac_declaration"; then
2505 echo '#ifdef __cplusplus' >>confdefs.h
2506 echo $ac_declaration >>confdefs.h
2507 echo '#endif' >>confdefs.h
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 ac_ext=c
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2524 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2525 if test "${ac_cv_search_strerror+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528 ac_func_search_save_LIBS=$LIBS
2529 ac_cv_search_strerror=no
2530 cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h. */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2537 /* Override any gcc2 internal prototype to avoid an error. */
2538 #ifdef __cplusplus
2539 extern "C"
2540 #endif
2541 /* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2543 char strerror ();
2545 main ()
2547 strerror ();
2549 return 0;
2551 _ACEOF
2552 rm -f conftest.$ac_objext conftest$ac_exeext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2554 (eval $ac_link) 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest$ac_exeext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 ac_cv_search_strerror="none required"
2575 else
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2580 rm -f conftest.err conftest.$ac_objext \
2581 conftest$ac_exeext conftest.$ac_ext
2582 if test "$ac_cv_search_strerror" = no; then
2583 for ac_lib in cposix; do
2584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2592 /* Override any gcc2 internal prototype to avoid an error. */
2593 #ifdef __cplusplus
2594 extern "C"
2595 #endif
2596 /* We use char because int might match the return type of a gcc2
2597 builtin and then its argument prototype would still apply. */
2598 char strerror ();
2600 main ()
2602 strerror ();
2604 return 0;
2606 _ACEOF
2607 rm -f conftest.$ac_objext conftest$ac_exeext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609 (eval $ac_link) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest$ac_exeext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 ac_cv_search_strerror="-l$ac_lib"
2630 break
2631 else
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.err conftest.$ac_objext \
2637 conftest$ac_exeext conftest.$ac_ext
2638 done
2640 LIBS=$ac_func_search_save_LIBS
2642 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2643 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2644 if test "$ac_cv_search_strerror" != no; then
2645 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2650 am__api_version="1.9"
2651 # Find a good install program. We prefer a C program (faster),
2652 # so one script is as good as another. But avoid the broken or
2653 # incompatible versions:
2654 # SysV /etc/install, /usr/sbin/install
2655 # SunOS /usr/etc/install
2656 # IRIX /sbin/install
2657 # AIX /bin/install
2658 # AmigaOS /C/install, which installs bootblocks on floppy discs
2659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2662 # OS/2's system install, which has a completely different semantic
2663 # ./install, which can be erroneously created by make from ./install.sh.
2664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2666 if test -z "$INSTALL"; then
2667 if test "${ac_cv_path_install+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 # Account for people who put trailing slashes in PATH elements.
2676 case $as_dir/ in
2677 ./ | .// | /cC/* | \
2678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2680 /usr/ucb/* ) ;;
2682 # OSF1 and SCO ODT 3.0 have their own names for install.
2683 # Don't use installbsd from OSF since it installs stuff as root
2684 # by default.
2685 for ac_prog in ginstall scoinst install; do
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2688 if test $ac_prog = install &&
2689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2690 # AIX install. It has an incompatible calling convention.
2692 elif test $ac_prog = install &&
2693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2694 # program-specific install script used by HP pwplus--don't use.
2696 else
2697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2698 break 3
2701 done
2702 done
2704 esac
2705 done
2709 if test "${ac_cv_path_install+set}" = set; then
2710 INSTALL=$ac_cv_path_install
2711 else
2712 # As a last resort, use the slow shell script. We don't cache a
2713 # path for INSTALL within a source directory, because that will
2714 # break other packages using the cache if that directory is
2715 # removed, or if the path is relative.
2716 INSTALL=$ac_install_sh
2719 echo "$as_me:$LINENO: result: $INSTALL" >&5
2720 echo "${ECHO_T}$INSTALL" >&6
2722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2723 # It thinks the first close brace ends the variable substitution.
2724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2730 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2731 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2732 # Just in case
2733 sleep 1
2734 echo timestamp > conftest.file
2735 # Do `set' in a subshell so we don't clobber the current shell's
2736 # arguments. Must try -L first in case configure is actually a
2737 # symlink; some systems play weird games with the mod time of symlinks
2738 # (eg FreeBSD returns the mod time of the symlink's containing
2739 # directory).
2740 if (
2741 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2742 if test "$*" = "X"; then
2743 # -L didn't work.
2744 set X `ls -t $srcdir/configure conftest.file`
2746 rm -f conftest.file
2747 if test "$*" != "X $srcdir/configure conftest.file" \
2748 && test "$*" != "X conftest.file $srcdir/configure"; then
2750 # If neither matched, then we have a broken ls. This can happen
2751 # if, for instance, CONFIG_SHELL is bash and it inherits a
2752 # broken ls alias from the environment. This has actually
2753 # happened. Such a system could not be considered "sane".
2754 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2755 alias in your environment" >&5
2756 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2757 alias in your environment" >&2;}
2758 { (exit 1); exit 1; }; }
2761 test "$2" = conftest.file
2763 then
2764 # Ok.
2766 else
2767 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2768 Check your system clock" >&5
2769 echo "$as_me: error: newly created file is older than distributed files!
2770 Check your system clock" >&2;}
2771 { (exit 1); exit 1; }; }
2773 echo "$as_me:$LINENO: result: yes" >&5
2774 echo "${ECHO_T}yes" >&6
2775 test "$program_prefix" != NONE &&
2776 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2777 # Use a double $ so make ignores it.
2778 test "$program_suffix" != NONE &&
2779 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2780 # Double any \ or $. echo might interpret backslashes.
2781 # By default was `s,x,x', remove it if useless.
2782 cat <<\_ACEOF >conftest.sed
2783 s/[\\$]/&&/g;s/;s,x,x,$//
2784 _ACEOF
2785 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2786 rm conftest.sed
2788 # expand $ac_aux_dir to an absolute path
2789 am_aux_dir=`cd $ac_aux_dir && pwd`
2791 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2792 # Use eval to expand $SHELL
2793 if eval "$MISSING --run true"; then
2794 am_missing_run="$MISSING --run "
2795 else
2796 am_missing_run=
2797 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2798 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2801 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2802 # We used to keeping the `.' as first argument, in order to
2803 # allow $(mkdir_p) to be used without argument. As in
2804 # $(mkdir_p) $(somedir)
2805 # where $(somedir) is conditionally defined. However this is wrong
2806 # for two reasons:
2807 # 1. if the package is installed by a user who cannot write `.'
2808 # make install will fail,
2809 # 2. the above comment should most certainly read
2810 # $(mkdir_p) $(DESTDIR)$(somedir)
2811 # so it does not work when $(somedir) is undefined and
2812 # $(DESTDIR) is not.
2813 # To support the latter case, we have to write
2814 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2815 # so the `.' trick is pointless.
2816 mkdir_p='mkdir -p --'
2817 else
2818 # On NextStep and OpenStep, the `mkdir' command does not
2819 # recognize any option. It will interpret all options as
2820 # directories to create, and then abort because `.' already
2821 # exists.
2822 for d in ./-p ./--version;
2824 test -d $d && rmdir $d
2825 done
2826 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2827 if test -f "$ac_aux_dir/mkinstalldirs"; then
2828 mkdir_p='$(mkinstalldirs)'
2829 else
2830 mkdir_p='$(install_sh) -d'
2834 for ac_prog in gawk mawk nawk awk
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840 if test "${ac_cv_prog_AWK+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843 if test -n "$AWK"; then
2844 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_AWK="$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2857 done
2858 done
2862 AWK=$ac_cv_prog_AWK
2863 if test -n "$AWK"; then
2864 echo "$as_me:$LINENO: result: $AWK" >&5
2865 echo "${ECHO_T}$AWK" >&6
2866 else
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2871 test -n "$AWK" && break
2872 done
2874 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2875 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2876 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2877 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 cat >conftest.make <<\_ACEOF
2881 all:
2882 @echo 'ac_maketemp="$(MAKE)"'
2883 _ACEOF
2884 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2885 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2886 if test -n "$ac_maketemp"; then
2887 eval ac_cv_prog_make_${ac_make}_set=yes
2888 else
2889 eval ac_cv_prog_make_${ac_make}_set=no
2891 rm -f conftest.make
2893 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2894 echo "$as_me:$LINENO: result: yes" >&5
2895 echo "${ECHO_T}yes" >&6
2896 SET_MAKE=
2897 else
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900 SET_MAKE="MAKE=${MAKE-make}"
2903 rm -rf .tst 2>/dev/null
2904 mkdir .tst 2>/dev/null
2905 if test -d .tst; then
2906 am__leading_dot=.
2907 else
2908 am__leading_dot=_
2910 rmdir .tst 2>/dev/null
2912 DEPDIR="${am__leading_dot}deps"
2914 ac_config_commands="$ac_config_commands depfiles"
2917 am_make=${MAKE-make}
2918 cat > confinc << 'END'
2919 am__doit:
2920 @echo done
2921 .PHONY: am__doit
2923 # If we don't find an include directive, just comment out the code.
2924 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2925 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2926 am__include="#"
2927 am__quote=
2928 _am_result=none
2929 # First try GNU make style include.
2930 echo "include confinc" > confmf
2931 # We grep out `Entering directory' and `Leaving directory'
2932 # messages which can occur if `w' ends up in MAKEFLAGS.
2933 # In particular we don't look at `^make:' because GNU make might
2934 # be invoked under some other name (usually "gmake"), in which
2935 # case it prints its new name instead of `make'.
2936 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2937 am__include=include
2938 am__quote=
2939 _am_result=GNU
2941 # Now try BSD make style include.
2942 if test "$am__include" = "#"; then
2943 echo '.include "confinc"' > confmf
2944 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2945 am__include=.include
2946 am__quote="\""
2947 _am_result=BSD
2952 echo "$as_me:$LINENO: result: $_am_result" >&5
2953 echo "${ECHO_T}$_am_result" >&6
2954 rm -f confinc confmf
2956 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2957 if test "${enable_dependency_tracking+set}" = set; then
2958 enableval="$enable_dependency_tracking"
2961 if test "x$enable_dependency_tracking" != xno; then
2962 am_depcomp="$ac_aux_dir/depcomp"
2963 AMDEPBACKSLASH='\'
2967 if test "x$enable_dependency_tracking" != xno; then
2968 AMDEP_TRUE=
2969 AMDEP_FALSE='#'
2970 else
2971 AMDEP_TRUE='#'
2972 AMDEP_FALSE=
2977 # test to see if srcdir already configured
2978 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2979 test -f $srcdir/config.status; then
2980 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2981 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2982 { (exit 1); exit 1; }; }
2985 # test whether we have cygpath
2986 if test -z "$CYGPATH_W"; then
2987 if (cygpath --version) >/dev/null 2>/dev/null; then
2988 CYGPATH_W='cygpath -w'
2989 else
2990 CYGPATH_W=echo
2995 # Define the identity of the package.
2996 PACKAGE=bfd
2997 VERSION=2.17.50
3000 cat >>confdefs.h <<_ACEOF
3001 #define PACKAGE "$PACKAGE"
3002 _ACEOF
3005 cat >>confdefs.h <<_ACEOF
3006 #define VERSION "$VERSION"
3007 _ACEOF
3009 # Some tools Automake needs.
3011 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3014 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3017 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3020 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3023 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3025 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3027 # Installed binaries are usually stripped using `strip' when the user
3028 # run `make install-strip'. However `strip' might not be the right
3029 # tool to use in cross-compilation environments, therefore Automake
3030 # will honor the `STRIP' environment variable to overrule this program.
3031 if test "$cross_compiling" != no; then
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}strip; ac_word=$2
3035 echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037 if test "${ac_cv_prog_STRIP+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040 if test -n "$STRIP"; then
3041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3054 done
3055 done
3059 STRIP=$ac_cv_prog_STRIP
3060 if test -n "$STRIP"; then
3061 echo "$as_me:$LINENO: result: $STRIP" >&5
3062 echo "${ECHO_T}$STRIP" >&6
3063 else
3064 echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3069 if test -z "$ac_cv_prog_STRIP"; then
3070 ac_ct_STRIP=$STRIP
3071 # Extract the first word of "strip", so it can be a program name with args.
3072 set dummy 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_ac_ct_STRIP+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 if test -n "$ac_ct_STRIP"; then
3079 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3092 done
3093 done
3095 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3099 if test -n "$ac_ct_STRIP"; then
3100 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3101 echo "${ECHO_T}$ac_ct_STRIP" >&6
3102 else
3103 echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3107 STRIP=$ac_ct_STRIP
3108 else
3109 STRIP="$ac_cv_prog_STRIP"
3113 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3115 # We need awk for the "check" target. The system "awk" is bad on
3116 # some platforms.
3117 # Always define AMTAR for backward compatibility.
3119 AMTAR=${AMTAR-"${am_missing_run}tar"}
3121 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3126 depcc="$CC" am_compiler_list=
3128 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3129 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3130 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3134 # We make a subdir and do the tests there. Otherwise we can end up
3135 # making bogus files that we don't know about and never remove. For
3136 # instance it was reported that on HP-UX the gcc test will end up
3137 # making a dummy file named `D' -- because `-MD' means `put the output
3138 # in D'.
3139 mkdir conftest.dir
3140 # Copy depcomp to subdir because otherwise we won't find it if we're
3141 # using a relative directory.
3142 cp "$am_depcomp" conftest.dir
3143 cd conftest.dir
3144 # We will build objects and dependencies in a subdirectory because
3145 # it helps to detect inapplicable dependency modes. For instance
3146 # both Tru64's cc and ICC support -MD to output dependencies as a
3147 # side effect of compilation, but ICC will put the dependencies in
3148 # the current directory while Tru64 will put them in the object
3149 # directory.
3150 mkdir sub
3152 am_cv_CC_dependencies_compiler_type=none
3153 if test "$am_compiler_list" = ""; then
3154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3156 for depmode in $am_compiler_list; do
3157 # Setup a source with many dependencies, because some compilers
3158 # like to wrap large dependency lists on column 80 (with \), and
3159 # we should not choose a depcomp mode which is confused by this.
3161 # We need to recreate these files for each test, as the compiler may
3162 # overwrite some of them when testing with obscure command lines.
3163 # This happens at least with the AIX C compiler.
3164 : > sub/conftest.c
3165 for i in 1 2 3 4 5 6; do
3166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3167 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3168 # Solaris 8's {/usr,}/bin/sh.
3169 touch sub/conftst$i.h
3170 done
3171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3173 case $depmode in
3174 nosideeffect)
3175 # after this tag, mechanisms are not by side-effect, so they'll
3176 # only be used when explicitly requested
3177 if test "x$enable_dependency_tracking" = xyes; then
3178 continue
3179 else
3180 break
3183 none) break ;;
3184 esac
3185 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3186 # mode. It turns out that the SunPro C++ compiler does not properly
3187 # handle `-M -o', and we need to detect this.
3188 if depmode=$depmode \
3189 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3190 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3191 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3192 >/dev/null 2>conftest.err &&
3193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3194 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3196 # icc doesn't choke on unknown options, it will just issue warnings
3197 # or remarks (even with -Werror). So we grep stderr for any message
3198 # that says an option was ignored or not supported.
3199 # When given -MP, icc 7.0 and 7.1 complain thusly:
3200 # icc: Command line warning: ignoring option '-M'; no argument required
3201 # The diagnosis changed in icc 8.0:
3202 # icc: Command line remark: option '-MP' not supported
3203 if (grep 'ignoring option' conftest.err ||
3204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3205 am_cv_CC_dependencies_compiler_type=$depmode
3206 break
3209 done
3211 cd ..
3212 rm -rf conftest.dir
3213 else
3214 am_cv_CC_dependencies_compiler_type=none
3218 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3219 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3220 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3225 test "x$enable_dependency_tracking" != xno \
3226 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3227 am__fastdepCC_TRUE=
3228 am__fastdepCC_FALSE='#'
3229 else
3230 am__fastdepCC_TRUE='#'
3231 am__fastdepCC_FALSE=
3237 if test -n "$ac_tool_prefix"; then
3238 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3239 set dummy ${ac_tool_prefix}ar; ac_word=$2
3240 echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_AR+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245 if test -n "$AR"; then
3246 ac_cv_prog_AR="$AR" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_AR="${ac_tool_prefix}ar"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3264 AR=$ac_cv_prog_AR
3265 if test -n "$AR"; then
3266 echo "$as_me:$LINENO: result: $AR" >&5
3267 echo "${ECHO_T}$AR" >&6
3268 else
3269 echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3274 if test -z "$ac_cv_prog_AR"; then
3275 ac_ct_AR=$AR
3276 # Extract the first word of "ar", so it can be a program name with args.
3277 set dummy 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_ac_ct_AR+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$ac_ct_AR"; then
3284 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="ar"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3302 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3303 if test -n "$ac_ct_AR"; then
3304 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3305 echo "${ECHO_T}$ac_ct_AR" >&6
3306 else
3307 echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3311 AR=$ac_ct_AR
3312 else
3313 AR="$ac_cv_prog_AR"
3316 if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3319 echo "$as_me:$LINENO: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321 if test "${ac_cv_prog_RANLIB+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 if test -n "$RANLIB"; then
3325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3343 RANLIB=$ac_cv_prog_RANLIB
3344 if test -n "$RANLIB"; then
3345 echo "$as_me:$LINENO: result: $RANLIB" >&5
3346 echo "${ECHO_T}$RANLIB" >&6
3347 else
3348 echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3353 if test -z "$ac_cv_prog_RANLIB"; then
3354 ac_ct_RANLIB=$RANLIB
3355 # Extract the first word of "ranlib", so it can be a program name with args.
3356 set dummy 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_ac_ct_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 if test -n "$ac_ct_RANLIB"; then
3363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3376 done
3377 done
3379 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3383 if test -n "$ac_ct_RANLIB"; then
3384 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3385 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3391 RANLIB=$ac_ct_RANLIB
3392 else
3393 RANLIB="$ac_cv_prog_RANLIB"
3397 # Check whether --enable-shared or --disable-shared was given.
3398 if test "${enable_shared+set}" = set; then
3399 enableval="$enable_shared"
3400 p=${PACKAGE-default}
3401 case $enableval in
3402 yes) enable_shared=yes ;;
3403 no) enable_shared=no ;;
3405 enable_shared=no
3406 # Look at the argument we got. We use all the common list separators.
3407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3408 for pkg in $enableval; do
3409 IFS="$lt_save_ifs"
3410 if test "X$pkg" = "X$p"; then
3411 enable_shared=yes
3413 done
3414 IFS="$lt_save_ifs"
3416 esac
3417 else
3418 enable_shared=no
3429 ac_ext=c
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 if test -n "$ac_tool_prefix"; then
3435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3437 echo "$as_me:$LINENO: checking for $ac_word" >&5
3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439 if test "${ac_cv_prog_CC+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3456 done
3457 done
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463 echo "$as_me:$LINENO: result: $CC" >&5
3464 echo "${ECHO_T}$CC" >&6
3465 else
3466 echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3471 if test -z "$ac_cv_prog_CC"; then
3472 ac_ct_CC=$CC
3473 # Extract the first word of "gcc", so it can be a program name with args.
3474 set dummy 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_ac_ct_CC+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 if test -n "$ac_ct_CC"; then
3481 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3494 done
3495 done
3499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3500 if test -n "$ac_ct_CC"; then
3501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3502 echo "${ECHO_T}$ac_ct_CC" >&6
3503 else
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3508 CC=$ac_ct_CC
3509 else
3510 CC="$ac_cv_prog_CC"
3513 if test -z "$CC"; then
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}cc; ac_word=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_prog_CC+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_CC="${ac_tool_prefix}cc"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3541 CC=$ac_cv_prog_CC
3542 if test -n "$CC"; then
3543 echo "$as_me:$LINENO: result: $CC" >&5
3544 echo "${ECHO_T}$CC" >&6
3545 else
3546 echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3551 if test -z "$ac_cv_prog_CC"; then
3552 ac_ct_CC=$CC
3553 # Extract the first word of "cc", so it can be a program name with args.
3554 set dummy 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_ac_ct_CC+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 if test -n "$ac_ct_CC"; then
3561 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="cc"
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3580 if test -n "$ac_ct_CC"; then
3581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3582 echo "${ECHO_T}$ac_ct_CC" >&6
3583 else
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3588 CC=$ac_ct_CC
3589 else
3590 CC="$ac_cv_prog_CC"
3594 if test -z "$CC"; then
3595 # Extract the first word of "cc", so it can be a program name with args.
3596 set dummy cc; ac_word=$2
3597 echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599 if test "${ac_cv_prog_CC+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602 if test -n "$CC"; then
3603 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 else
3605 ac_prog_rejected=no
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3614 ac_prog_rejected=yes
3615 continue
3617 ac_cv_prog_CC="cc"
3618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 break 2
3621 done
3622 done
3624 if test $ac_prog_rejected = yes; then
3625 # We found a bogon in the path, so make sure we never use it.
3626 set dummy $ac_cv_prog_CC
3627 shift
3628 if test $# != 0; then
3629 # We chose a different compiler from the bogus one.
3630 # However, it has the same basename, so the bogon will be chosen
3631 # first if we set CC to just the basename; use the full file name.
3632 shift
3633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 echo "$as_me:$LINENO: result: $CC" >&5
3641 echo "${ECHO_T}$CC" >&6
3642 else
3643 echo "$as_me:$LINENO: result: no" >&5
3644 echo "${ECHO_T}no" >&6
3648 if test -z "$CC"; then
3649 if test -n "$ac_tool_prefix"; then
3650 for ac_prog in cl
3652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3654 echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656 if test "${ac_cv_prog_CC+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3673 done
3674 done
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 echo "$as_me:$LINENO: result: $CC" >&5
3681 echo "${ECHO_T}$CC" >&6
3682 else
3683 echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3687 test -n "$CC" && break
3688 done
3690 if test -z "$CC"; then
3691 ac_ct_CC=$CC
3692 for ac_prog in cl
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_ac_ct_CC="$ac_prog"
3712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3721 if test -n "$ac_ct_CC"; then
3722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3723 echo "${ECHO_T}$ac_ct_CC" >&6
3724 else
3725 echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3729 test -n "$ac_ct_CC" && break
3730 done
3732 CC=$ac_ct_CC
3738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3739 See \`config.log' for more details." >&5
3740 echo "$as_me: error: no acceptable C compiler found in \$PATH
3741 See \`config.log' for more details." >&2;}
3742 { (exit 1); exit 1; }; }
3744 # Provide some information about the compiler.
3745 echo "$as_me:$LINENO:" \
3746 "checking for C compiler version" >&5
3747 ac_compiler=`set X $ac_compile; echo $2`
3748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3749 (eval $ac_compiler --version </dev/null >&5) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }
3753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3754 (eval $ac_compiler -v </dev/null >&5) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }
3758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3759 (eval $ac_compiler -V </dev/null >&5) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }
3764 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3765 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h. */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3777 main ()
3779 #ifndef __GNUC__
3780 choke me
3781 #endif
3784 return 0;
3786 _ACEOF
3787 rm -f conftest.$ac_objext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789 (eval $ac_compile) 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -z "$ac_c_werror_flag"
3797 || test ! -s conftest.err'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 (eval $ac_try) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; } &&
3803 { ac_try='test -s conftest.$ac_objext'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 (eval $ac_try) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3809 ac_compiler_gnu=yes
3810 else
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 ac_compiler_gnu=no
3816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3820 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3821 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3822 GCC=`test $ac_compiler_gnu = yes && echo yes`
3823 ac_test_CFLAGS=${CFLAGS+set}
3824 ac_save_CFLAGS=$CFLAGS
3825 CFLAGS="-g"
3826 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3827 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3828 if test "${ac_cv_prog_cc_g+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3839 main ()
3843 return 0;
3845 _ACEOF
3846 rm -f conftest.$ac_objext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848 (eval $ac_compile) 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -z "$ac_c_werror_flag"
3856 || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 ac_cv_prog_cc_g=yes
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 ac_cv_prog_cc_g=no
3875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3877 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3878 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3879 if test "$ac_test_CFLAGS" = set; then
3880 CFLAGS=$ac_save_CFLAGS
3881 elif test $ac_cv_prog_cc_g = yes; then
3882 if test "$GCC" = yes; then
3883 CFLAGS="-g -O2"
3884 else
3885 CFLAGS="-g"
3887 else
3888 if test "$GCC" = yes; then
3889 CFLAGS="-O2"
3890 else
3891 CFLAGS=
3894 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3895 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3896 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 ac_cv_prog_cc_stdc=no
3900 ac_save_CC=$CC
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h. */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <stdarg.h>
3908 #include <stdio.h>
3909 #include <sys/types.h>
3910 #include <sys/stat.h>
3911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3912 struct buf { int x; };
3913 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3914 static char *e (p, i)
3915 char **p;
3916 int i;
3918 return p[i];
3920 static char *f (char * (*g) (char **, int), char **p, ...)
3922 char *s;
3923 va_list v;
3924 va_start (v,p);
3925 s = g (p, va_arg (v,int));
3926 va_end (v);
3927 return s;
3930 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3931 function prototypes and stuff, but not '\xHH' hex character constants.
3932 These don't provoke an error unfortunately, instead are silently treated
3933 as 'x'. The following induces an error, until -std1 is added to get
3934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3935 array size at least. It's necessary to write '\x00'==0 to get something
3936 that's true only with -std1. */
3937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3939 int test (int i, double x);
3940 struct s1 {int (*f) (int a);};
3941 struct s2 {int (*f) (double a);};
3942 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3943 int argc;
3944 char **argv;
3946 main ()
3948 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3950 return 0;
3952 _ACEOF
3953 # Don't try gcc -ansi; that turns off useful extensions and
3954 # breaks some systems' header files.
3955 # AIX -qlanglvl=ansi
3956 # Ultrix and OSF/1 -std1
3957 # HP-UX 10.20 and later -Ae
3958 # HP-UX older versions -Aa -D_HPUX_SOURCE
3959 # SVR4 -Xc -D__EXTENSIONS__
3960 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3962 CC="$ac_save_CC $ac_arg"
3963 rm -f conftest.$ac_objext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_c_werror_flag"
3973 || test ! -s conftest.err'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 (eval $ac_try) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_cv_prog_cc_stdc=$ac_arg
3986 break
3987 else
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3992 rm -f conftest.err conftest.$ac_objext
3993 done
3994 rm -f conftest.$ac_ext conftest.$ac_objext
3995 CC=$ac_save_CC
3999 case "x$ac_cv_prog_cc_stdc" in
4000 x|xno)
4001 echo "$as_me:$LINENO: result: none needed" >&5
4002 echo "${ECHO_T}none needed" >&6 ;;
4004 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4005 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4006 CC="$CC $ac_cv_prog_cc_stdc" ;;
4007 esac
4009 # Some people use a C++ compiler to compile C. Since we use `exit',
4010 # in C++ we need to declare it. In case someone uses the same compiler
4011 # for both compiling C and C++ we need to have the C++ compiler decide
4012 # the declaration of exit, since it's the most demanding environment.
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #ifndef __cplusplus
4015 choke me
4016 #endif
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020 (eval $ac_compile) 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } &&
4027 { ac_try='test -z "$ac_c_werror_flag"
4028 || test ! -s conftest.err'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; } &&
4034 { ac_try='test -s conftest.$ac_objext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 for ac_declaration in \
4041 '' \
4042 'extern "C" void std::exit (int) throw (); using std::exit;' \
4043 'extern "C" void std::exit (int); using std::exit;' \
4044 'extern "C" void exit (int) throw ();' \
4045 'extern "C" void exit (int);' \
4046 'void exit (int);'
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h. */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 $ac_declaration
4055 #include <stdlib.h>
4057 main ()
4059 exit (42);
4061 return 0;
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
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); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4087 else
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 continue
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 $ac_declaration
4102 main ()
4104 exit (42);
4106 return 0;
4108 _ACEOF
4109 rm -f conftest.$ac_objext
4110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag"
4119 || test ! -s conftest.err'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; } &&
4125 { ac_try='test -s conftest.$ac_objext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 break
4132 else
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138 done
4139 rm -f conftest*
4140 if test -n "$ac_declaration"; then
4141 echo '#ifdef __cplusplus' >>confdefs.h
4142 echo $ac_declaration >>confdefs.h
4143 echo '#endif' >>confdefs.h
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_ext=c
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 cat >>confdefs.h <<\_ACEOF
4160 #define _GNU_SOURCE 1
4161 _ACEOF
4167 macro_version='2.1a'
4168 macro_revision='1.2435'
4181 ltmain="$ac_aux_dir/ltmain.sh"
4183 # Set options
4185 enable_dlopen=no
4188 enable_win32_dll=no
4192 # Check whether --enable-static or --disable-static was given.
4193 if test "${enable_static+set}" = set; then
4194 enableval="$enable_static"
4195 p=${PACKAGE-default}
4196 case $enableval in
4197 yes) enable_static=yes ;;
4198 no) enable_static=no ;;
4200 enable_static=no
4201 # Look at the argument we got. We use all the common list separators.
4202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4203 for pkg in $enableval; do
4204 IFS="$lt_save_ifs"
4205 if test "X$pkg" = "X$p"; then
4206 enable_static=yes
4208 done
4209 IFS="$lt_save_ifs"
4211 esac
4212 else
4213 enable_static=yes
4224 # Check whether --with-pic or --without-pic was given.
4225 if test "${with_pic+set}" = set; then
4226 withval="$with_pic"
4227 pic_mode="$withval"
4228 else
4229 pic_mode=default
4232 test -z "$pic_mode" && pic_mode=default
4240 # Check whether --enable-fast-install or --disable-fast-install was given.
4241 if test "${enable_fast_install+set}" = set; then
4242 enableval="$enable_fast_install"
4243 p=${PACKAGE-default}
4244 case $enableval in
4245 yes) enable_fast_install=yes ;;
4246 no) enable_fast_install=no ;;
4248 enable_fast_install=no
4249 # Look at the argument we got. We use all the common list separators.
4250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4251 for pkg in $enableval; do
4252 IFS="$lt_save_ifs"
4253 if test "X$pkg" = "X$p"; then
4254 enable_fast_install=yes
4256 done
4257 IFS="$lt_save_ifs"
4259 esac
4260 else
4261 enable_fast_install=yes
4271 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4272 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4273 if test "${lt_cv_path_SED+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 # Loop through the user's path and test for sed and gsed.
4277 # Then use that list of sed's as ones to test for truncation.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for lt_ac_prog in sed gsed; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4286 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4288 done
4289 done
4290 done
4291 IFS=$as_save_IFS
4292 lt_ac_max=0
4293 lt_ac_count=0
4294 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4295 # along with /bin/sed that truncates output.
4296 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4297 test ! -f $lt_ac_sed && continue
4298 cat /dev/null > conftest.in
4299 lt_ac_count=0
4300 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4301 # Check for GNU sed and select it if it is found.
4302 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4303 lt_cv_path_SED=$lt_ac_sed
4304 break
4306 while true; do
4307 cat conftest.in conftest.in >conftest.tmp
4308 mv conftest.tmp conftest.in
4309 cp conftest.in conftest.nl
4310 echo >>conftest.nl
4311 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4312 cmp -s conftest.out conftest.nl || break
4313 # 10000 chars as input seems more than enough
4314 test $lt_ac_count -gt 10 && break
4315 lt_ac_count=`expr $lt_ac_count + 1`
4316 if test $lt_ac_count -gt $lt_ac_max; then
4317 lt_ac_max=$lt_ac_count
4318 lt_cv_path_SED=$lt_ac_sed
4320 done
4321 done
4325 SED=$lt_cv_path_SED
4327 echo "$as_me:$LINENO: result: $SED" >&5
4328 echo "${ECHO_T}$SED" >&6
4330 test -z "$SED" && SED=sed
4331 Xsed="$SED -e 1s/^X//"
4343 echo "$as_me:$LINENO: checking for egrep" >&5
4344 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4345 if test "${ac_cv_prog_egrep+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4349 then ac_cv_prog_egrep='grep -E'
4350 else ac_cv_prog_egrep='egrep'
4353 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4354 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4355 EGREP=$ac_cv_prog_egrep
4358 echo "$as_me:$LINENO: checking for fgrep" >&5
4359 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4360 if test "${ac_cv_prog_fgrep+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4364 then ac_cv_prog_fgrep='grep -F'
4365 else ac_cv_prog_fgrep='fgrep'
4368 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4369 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4370 FGREP=$ac_cv_prog_fgrep
4373 test -z "$GREP" && GREP=grep
4393 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4394 if test "${with_gnu_ld+set}" = set; then
4395 withval="$with_gnu_ld"
4396 test "$withval" = no || with_gnu_ld=yes
4397 else
4398 with_gnu_ld=no
4400 ac_prog=ld
4401 if test "$GCC" = yes; then
4402 # Check if gcc -print-prog-name=ld gives a path.
4403 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4404 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4405 case $host in
4406 *-*-mingw*)
4407 # gcc leaves a trailing carriage return which upsets mingw
4408 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4410 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4411 esac
4412 case $ac_prog in
4413 # Accept absolute paths.
4414 [\\/]* | ?:[\\/]*)
4415 re_direlt='/[^/][^/]*/\.\./'
4416 # Canonicalize the pathname of ld
4417 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4418 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4419 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4420 done
4421 test -z "$LD" && LD="$ac_prog"
4424 # If it fails, then pretend we aren't using GCC.
4425 ac_prog=ld
4428 # If it is relative, then search for the first ld in PATH.
4429 with_gnu_ld=unknown
4431 esac
4432 elif test "$with_gnu_ld" = yes; then
4433 echo "$as_me:$LINENO: checking for GNU ld" >&5
4434 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4435 else
4436 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4437 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4439 if test "${lt_cv_path_LD+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 if test -z "$LD"; then
4443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4444 for ac_dir in $PATH; do
4445 IFS="$lt_save_ifs"
4446 test -z "$ac_dir" && ac_dir=.
4447 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4448 lt_cv_path_LD="$ac_dir/$ac_prog"
4449 # Check to see if the program is GNU ld. I'd rather use --version,
4450 # but apparently some variants of GNU ld only accept -v.
4451 # Break only if it was the GNU/non-GNU ld that we prefer.
4452 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4453 *GNU* | *'with BFD'*)
4454 test "$with_gnu_ld" != no && break
4457 test "$with_gnu_ld" != yes && break
4459 esac
4461 done
4462 IFS="$lt_save_ifs"
4463 else
4464 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4468 LD="$lt_cv_path_LD"
4469 if test -n "$LD"; then
4470 echo "$as_me:$LINENO: result: $LD" >&5
4471 echo "${ECHO_T}$LD" >&6
4472 else
4473 echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6
4476 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4477 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4478 { (exit 1); exit 1; }; }
4479 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4480 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4481 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4485 case `$LD -v 2>&1 </dev/null` in
4486 *GNU* | *'with BFD'*)
4487 lt_cv_prog_gnu_ld=yes
4490 lt_cv_prog_gnu_ld=no
4492 esac
4494 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4495 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4496 with_gnu_ld=$lt_cv_prog_gnu_ld
4507 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4508 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4509 if test "${lt_cv_path_NM+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 if test -n "$NM"; then
4513 # Let the user override the test.
4514 lt_cv_path_NM="$NM"
4515 else
4516 lt_nm_to_check="${ac_tool_prefix}nm"
4517 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4518 lt_nm_to_check="$lt_nm_to_check nm"
4520 for lt_tmp_nm in $lt_nm_to_check; do
4521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4522 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4523 IFS="$lt_save_ifs"
4524 test -z "$ac_dir" && ac_dir=.
4525 tmp_nm="$ac_dir/$lt_tmp_nm"
4526 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4527 # Check to see if the nm accepts a BSD-compat flag.
4528 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4529 # nm: unknown option "B" ignored
4530 # Tru64's nm complains that /dev/null is an invalid object file
4531 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4532 */dev/null* | *'Invalid file or object type'*)
4533 lt_cv_path_NM="$tmp_nm -B"
4534 break
4537 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4538 */dev/null*)
4539 lt_cv_path_NM="$tmp_nm -p"
4540 break
4543 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4544 continue # so that we can try to find one that supports BSD flags
4546 esac
4548 esac
4550 done
4551 IFS="$lt_save_ifs"
4552 done
4553 : ${lt_cv_path_NM=no}
4556 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4557 echo "${ECHO_T}$lt_cv_path_NM" >&6
4558 if test "$lt_cv_path_NM" != "no"; then
4559 NM="$lt_cv_path_NM"
4560 else
4561 # Didn't find any BSD compatible name lister, look for dumpbin.
4562 if test -n "$ac_tool_prefix"; then
4563 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4567 echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 if test -n "$DUMPBIN"; then
4573 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4586 done
4587 done
4591 DUMPBIN=$ac_cv_prog_DUMPBIN
4592 if test -n "$DUMPBIN"; then
4593 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4594 echo "${ECHO_T}$DUMPBIN" >&6
4595 else
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4600 test -n "$DUMPBIN" && break
4601 done
4603 if test -z "$DUMPBIN"; then
4604 ac_ct_DUMPBIN=$DUMPBIN
4605 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4607 # Extract the first word of "$ac_prog", so it can be a program name with args.
4608 set dummy $ac_prog; ac_word=$2
4609 echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 if test -n "$ac_ct_DUMPBIN"; then
4615 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4628 done
4629 done
4633 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4634 if test -n "$ac_ct_DUMPBIN"; then
4635 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4636 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4637 else
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4642 test -n "$ac_ct_DUMPBIN" && break
4643 done
4644 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4646 DUMPBIN=$ac_ct_DUMPBIN
4650 if test "$DUMPBIN" != ":"; then
4651 NM="$DUMPBIN"
4654 test -z "$NM" && NM=nm
4661 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4662 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4663 if test "${lt_cv_nm_interface+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 lt_cv_nm_interface="BSD nm"
4667 echo "int some_variable = 0;" > conftest.$ac_ext
4668 (eval echo "\"\$as_me:4668: $ac_compile\"" >&5)
4669 (eval "$ac_compile" 2>conftest.err)
4670 cat conftest.err >&5
4671 (eval echo "\"\$as_me:4671: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4672 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4673 cat conftest.err >&5
4674 (eval echo "\"\$as_me:4674: output\"" >&5)
4675 cat conftest.out >&5
4676 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4677 lt_cv_nm_interface="MS dumpbin"
4679 rm -f conftest*
4681 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4682 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4684 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4685 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4686 LN_S=$as_ln_s
4687 if test "$LN_S" = "ln -s"; then
4688 echo "$as_me:$LINENO: result: yes" >&5
4689 echo "${ECHO_T}yes" >&6
4690 else
4691 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4692 echo "${ECHO_T}no, using $LN_S" >&6
4695 # find the maximum length of command line arguments
4696 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4697 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4698 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4702 teststring="ABCD"
4704 case $build_os in
4705 msdosdjgpp*)
4706 # On DJGPP, this test can blow up pretty badly due to problems in libc
4707 # (any single argument exceeding 2000 bytes causes a buffer overrun
4708 # during glob expansion). Even if it were fixed, the result of this
4709 # check would be larger than it should be.
4710 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4713 gnu*)
4714 # Under GNU Hurd, this test is not required because there is
4715 # no limit to the length of command line arguments.
4716 # Libtool will interpret -1 as no limit whatsoever
4717 lt_cv_sys_max_cmd_len=-1;
4720 cygwin* | mingw*)
4721 # On Win9x/ME, this test blows up -- it succeeds, but takes
4722 # about 5 minutes as the teststring grows exponentially.
4723 # Worse, since 9x/ME are not pre-emptively multitasking,
4724 # you end up with a "frozen" computer, even though with patience
4725 # the test eventually succeeds (with a max line length of 256k).
4726 # Instead, let's just punt: use the minimum linelength reported by
4727 # all of the supported platforms: 8192 (on NT/2K/XP).
4728 lt_cv_sys_max_cmd_len=8192;
4731 amigaos*)
4732 # On AmigaOS with pdksh, this test takes hours, literally.
4733 # So we just punt and use a minimum line length of 8192.
4734 lt_cv_sys_max_cmd_len=8192;
4737 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4738 # This has been around since 386BSD, at least. Likely further.
4739 if test -x /sbin/sysctl; then
4740 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4741 elif test -x /usr/sbin/sysctl; then
4742 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4743 else
4744 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4746 # And add a safety zone
4747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4751 interix*)
4752 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4753 lt_cv_sys_max_cmd_len=196608
4756 osf*)
4757 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4758 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4759 # nice to cause kernel panics so lets avoid the loop below.
4760 # First set a reasonable default.
4761 lt_cv_sys_max_cmd_len=16384
4763 if test -x /sbin/sysconfig; then
4764 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4765 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4766 esac
4769 sco3.2v5*)
4770 lt_cv_sys_max_cmd_len=102400
4772 sysv5* | sco5v6* | sysv4.2uw2*)
4773 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4774 if test -n "$kargmax"; then
4775 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4776 else
4777 lt_cv_sys_max_cmd_len=32768
4781 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4782 if test -n $lt_cv_sys_max_cmd_len; then
4783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4785 else
4786 # Make teststring a little bigger before we do anything with it.
4787 # a 1K string should be a reasonable start.
4788 for i in 1 2 3 4 5 6 7 8 ; do
4789 teststring=$teststring$teststring
4790 done
4791 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4792 # If test is not a shell built-in, we'll probably end up computing a
4793 # maximum length that is only half of the actual maximum length, but
4794 # we can't tell.
4795 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4796 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4797 test $i != 17 # 1/2 MB should be enough
4799 i=`expr $i + 1`
4800 teststring=$teststring$teststring
4801 done
4802 # Only check the string length outside the loop.
4803 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4804 teststring=
4805 # Add a significant safety factor because C++ compilers can tack on
4806 # massive amounts of additional arguments before passing them to the
4807 # linker. It appears as though 1/2 is a usable value.
4808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4811 esac
4815 if test -n $lt_cv_sys_max_cmd_len ; then
4816 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4817 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4818 else
4819 echo "$as_me:$LINENO: result: none" >&5
4820 echo "${ECHO_T}none" >&6
4822 max_cmd_len=$lt_cv_sys_max_cmd_len
4830 : ${CP="cp -f"}
4831 : ${MV="mv -f"}
4832 : ${RM="rm -f"}
4834 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4835 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4836 # Try some XSI features
4837 xsi_shell=no
4838 ( _lt_dummy="a/b/c"
4839 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4840 = c,a/b,, ) >/dev/null 2>&1 \
4841 && xsi_shell=yes
4842 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4843 echo "${ECHO_T}$xsi_shell" >&6
4846 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4847 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4848 lt_shell_append=no
4849 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4850 >/dev/null 2>&1 \
4851 && lt_shell_append=yes
4852 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4853 echo "${ECHO_T}$lt_shell_append" >&6
4856 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4857 lt_unset=unset
4858 else
4859 lt_unset=false
4866 # test EBCDIC or ASCII
4867 case `echo X|tr X '\101'` in
4868 A) # ASCII based system
4869 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4870 lt_SP2NL='tr \040 \012'
4871 lt_NL2SP='tr \015\012 \040\040'
4873 *) # EBCDIC based system
4874 lt_SP2NL='tr \100 \n'
4875 lt_NL2SP='tr \r\n \100\100'
4877 esac
4887 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4888 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4889 if test "${lt_cv_ld_reload_flag+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892 lt_cv_ld_reload_flag='-r'
4894 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4895 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4896 reload_flag=$lt_cv_ld_reload_flag
4897 case $reload_flag in
4898 "" | " "*) ;;
4899 *) reload_flag=" $reload_flag" ;;
4900 esac
4901 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4902 case $host_os in
4903 darwin*)
4904 if test "$GCC" = yes; then
4905 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4906 else
4907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4910 esac
4921 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4922 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4923 if test "${lt_cv_deplibs_check_method+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 lt_cv_file_magic_cmd='$MAGIC_CMD'
4927 lt_cv_file_magic_test_file=
4928 lt_cv_deplibs_check_method='unknown'
4929 # Need to set the preceding variable on all platforms that support
4930 # interlibrary dependencies.
4931 # 'none' -- dependencies not supported.
4932 # `unknown' -- same as none, but documents that we really don't know.
4933 # 'pass_all' -- all dependencies passed with no checks.
4934 # 'test_compile' -- check by making test program.
4935 # 'file_magic [[regex]]' -- check by looking for files in library path
4936 # which responds to the $file_magic_cmd with a given extended regex.
4937 # If you have `file' or equivalent on your system and you're not sure
4938 # whether `pass_all' will *always* work, you probably want this one.
4940 case $host_os in
4941 aix4* | aix5*)
4942 lt_cv_deplibs_check_method=pass_all
4945 beos*)
4946 lt_cv_deplibs_check_method=pass_all
4949 bsdi[45]*)
4950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4951 lt_cv_file_magic_cmd='/usr/bin/file -L'
4952 lt_cv_file_magic_test_file=/shlib/libc.so
4955 cygwin*)
4956 # func_win32_libid is a shell function defined in ltmain.sh
4957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4958 lt_cv_file_magic_cmd='func_win32_libid'
4961 mingw* | pw32*)
4962 # Base MSYS/MinGW do not provide the 'file' command needed by
4963 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4964 # unless we find 'file', for example because we are cross-compiling.
4965 if ( file / ) >/dev/null 2>&1; then
4966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4967 lt_cv_file_magic_cmd='func_win32_libid'
4968 else
4969 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4970 lt_cv_file_magic_cmd='$OBJDUMP -f'
4974 darwin* | rhapsody*)
4975 lt_cv_deplibs_check_method=pass_all
4978 freebsd* | dragonfly*)
4979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4980 case $host_cpu in
4981 i*86 )
4982 # Not sure whether the presence of OpenBSD here was a mistake.
4983 # Let's accept both of them until this is cleared up.
4984 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4985 lt_cv_file_magic_cmd=/usr/bin/file
4986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4988 esac
4989 else
4990 lt_cv_deplibs_check_method=pass_all
4994 gnu*)
4995 lt_cv_deplibs_check_method=pass_all
4998 hpux10.20* | hpux11*)
4999 lt_cv_file_magic_cmd=/usr/bin/file
5000 case $host_cpu in
5001 ia64*)
5002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5003 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5005 hppa*64*)
5006 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]'
5007 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5011 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5013 esac
5016 interix[3-9]*)
5017 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5021 irix5* | irix6* | nonstopux*)
5022 case $LD in
5023 *-32|*"-32 ") libmagic=32-bit;;
5024 *-n32|*"-n32 ") libmagic=N32;;
5025 *-64|*"-64 ") libmagic=64-bit;;
5026 *) libmagic=never-match;;
5027 esac
5028 lt_cv_deplibs_check_method=pass_all
5031 # This must be Linux ELF.
5032 linux* | k*bsd*-gnu)
5033 lt_cv_deplibs_check_method=pass_all
5036 netbsd*)
5037 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5039 else
5040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5044 newos6*)
5045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5046 lt_cv_file_magic_cmd=/usr/bin/file
5047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5050 *nto* | *qnx*)
5051 lt_cv_deplibs_check_method=pass_all
5054 openbsd*)
5055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5057 else
5058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5062 osf3* | osf4* | osf5*)
5063 lt_cv_deplibs_check_method=pass_all
5066 rdos*)
5067 lt_cv_deplibs_check_method=pass_all
5070 solaris*)
5071 lt_cv_deplibs_check_method=pass_all
5074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5075 lt_cv_deplibs_check_method=pass_all
5078 sysv4 | sysv4.3*)
5079 case $host_vendor in
5080 motorola)
5081 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]'
5082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5084 ncr)
5085 lt_cv_deplibs_check_method=pass_all
5087 sequent)
5088 lt_cv_file_magic_cmd='/bin/file'
5089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5091 sni)
5092 lt_cv_file_magic_cmd='/bin/file'
5093 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5094 lt_cv_file_magic_test_file=/lib/libc.so
5096 siemens)
5097 lt_cv_deplibs_check_method=pass_all
5100 lt_cv_deplibs_check_method=pass_all
5102 esac
5105 tpf*)
5106 lt_cv_deplibs_check_method=pass_all
5108 esac
5111 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5112 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5113 file_magic_cmd=$lt_cv_file_magic_cmd
5114 deplibs_check_method=$lt_cv_deplibs_check_method
5115 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5128 if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5130 set dummy ${ac_tool_prefix}ar; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_prog_AR+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 if test -n "$AR"; then
5137 ac_cv_prog_AR="$AR" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_AR="${ac_tool_prefix}ar"
5147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5150 done
5151 done
5155 AR=$ac_cv_prog_AR
5156 if test -n "$AR"; then
5157 echo "$as_me:$LINENO: result: $AR" >&5
5158 echo "${ECHO_T}$AR" >&6
5159 else
5160 echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5165 if test -z "$ac_cv_prog_AR"; then
5166 ac_ct_AR=$AR
5167 # Extract the first word of "ar", so it can be a program name with args.
5168 set dummy ar; ac_word=$2
5169 echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 if test -n "$ac_ct_AR"; then
5175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_ac_ct_AR="ar"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5188 done
5189 done
5191 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5195 if test -n "$ac_ct_AR"; then
5196 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5197 echo "${ECHO_T}$ac_ct_AR" >&6
5198 else
5199 echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5203 AR=$ac_ct_AR
5204 else
5205 AR="$ac_cv_prog_AR"
5208 test -z "$AR" && AR=ar
5209 test -z "$AR_FLAGS" && AR_FLAGS=cru
5221 if test -n "$ac_tool_prefix"; then
5222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5223 set dummy ${ac_tool_prefix}strip; ac_word=$2
5224 echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5226 if test "${ac_cv_prog_STRIP+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 if test -n "$STRIP"; then
5230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5248 STRIP=$ac_cv_prog_STRIP
5249 if test -n "$STRIP"; then
5250 echo "$as_me:$LINENO: result: $STRIP" >&5
5251 echo "${ECHO_T}$STRIP" >&6
5252 else
5253 echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6
5258 if test -z "$ac_cv_prog_STRIP"; then
5259 ac_ct_STRIP=$STRIP
5260 # Extract the first word of "strip", so it can be a program name with args.
5261 set dummy strip; ac_word=$2
5262 echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5264 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 if test -n "$ac_ct_STRIP"; then
5268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_prog_ac_ct_STRIP="strip"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5281 done
5282 done
5284 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5287 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5288 if test -n "$ac_ct_STRIP"; then
5289 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5290 echo "${ECHO_T}$ac_ct_STRIP" >&6
5291 else
5292 echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5296 STRIP=$ac_ct_STRIP
5297 else
5298 STRIP="$ac_cv_prog_STRIP"
5301 test -z "$STRIP" && STRIP=:
5308 if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5311 echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5313 if test "${ac_cv_prog_RANLIB+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316 if test -n "$RANLIB"; then
5317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5330 done
5331 done
5335 RANLIB=$ac_cv_prog_RANLIB
5336 if test -n "$RANLIB"; then
5337 echo "$as_me:$LINENO: result: $RANLIB" >&5
5338 echo "${ECHO_T}$RANLIB" >&6
5339 else
5340 echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6
5345 if test -z "$ac_cv_prog_RANLIB"; then
5346 ac_ct_RANLIB=$RANLIB
5347 # Extract the first word of "ranlib", so it can be a program name with args.
5348 set dummy ranlib; ac_word=$2
5349 echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5351 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 if test -n "$ac_ct_RANLIB"; then
5355 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_prog_ac_ct_RANLIB="ranlib"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5368 done
5369 done
5371 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5374 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5375 if test -n "$ac_ct_RANLIB"; then
5376 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5377 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5378 else
5379 echo "$as_me:$LINENO: result: no" >&5
5380 echo "${ECHO_T}no" >&6
5383 RANLIB=$ac_ct_RANLIB
5384 else
5385 RANLIB="$ac_cv_prog_RANLIB"
5388 test -z "$RANLIB" && RANLIB=:
5395 # Determine commands to create old-style static archives.
5396 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5397 old_postinstall_cmds='chmod 644 $oldlib'
5398 old_postuninstall_cmds=
5400 if test -n "$RANLIB"; then
5401 case $host_os in
5402 openbsd*)
5403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5408 esac
5409 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5445 # If no C compiler was specified, use CC.
5446 LTCC=${LTCC-"$CC"}
5448 # If no C compiler flags were specified, use CFLAGS.
5449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5451 # Allow CC to be a program name with arguments.
5452 compiler=$CC
5455 # Check for command to grab the raw symbol name followed by C symbol from nm.
5456 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5457 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5458 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5462 # These are sane defaults that work on at least a few old systems.
5463 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5465 # Character class describing NM global symbol codes.
5466 symcode='[BCDEGRST]'
5468 # Regexp to match symbols that can be accessed directly from C.
5469 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5471 # Define system-specific variables.
5472 case $host_os in
5473 aix*)
5474 symcode='[BCDT]'
5476 cygwin* | mingw* | pw32*)
5477 symcode='[ABCDGISTW]'
5479 hpux*)
5480 if test "$host_cpu" = ia64; then
5481 symcode='[ABCDEGRST]'
5484 irix* | nonstopux*)
5485 symcode='[BCDEGRST]'
5487 osf*)
5488 symcode='[BCDEGQRST]'
5490 solaris*)
5491 symcode='[BDRT]'
5493 sco3.2v5*)
5494 symcode='[DT]'
5496 sysv4.2uw2*)
5497 symcode='[DT]'
5499 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5500 symcode='[ABDT]'
5502 sysv4)
5503 symcode='[DFNSTU]'
5505 esac
5507 # If we're using GNU nm, then use its standard symbol codes.
5508 case `$NM -V 2>&1` in
5509 *GNU* | *'with BFD'*)
5510 symcode='[ABCDGIRSTW]' ;;
5511 esac
5513 # Transform an extracted symbol line into a proper C declaration.
5514 # Some systems (esp. on ia64) link data and code symbols differently,
5515 # so use this general approach.
5516 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5518 # Transform an extracted symbol line into symbol name and symbol address
5519 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5521 # Handle CRLF in mingw tool chain
5522 opt_cr=
5523 case $build_os in
5524 mingw*)
5525 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5527 esac
5529 # Try without a prefix underscore, then with it.
5530 for ac_symprfx in "" "_"; do
5532 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5533 symxfrm="\\1 $ac_symprfx\\2 \\2"
5535 # Write the raw and C identifiers.
5536 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5537 # Fake it for dumpbin and say T for any non-static function
5538 # and D for any global variable.
5539 # Also find C++ and __fastcall symbols from MSVC++,
5540 # which start with @ or ?.
5541 lt_cv_sys_global_symbol_pipe="$AWK '"\
5542 " {last_section=section; section=\$ 3};"\
5543 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5544 " \$ 0!~/External *\|/{next};"\
5545 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5546 " {if(hide[section]) next};"\
5547 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5548 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5549 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5550 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5551 " ' prfx=^$ac_symprfx"
5552 else
5553 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5556 # Check to see that the pipe works correctly.
5557 pipe_works=no
5559 rm -f conftest*
5560 cat > conftest.$ac_ext <<_LT_EOF
5561 #ifdef __cplusplus
5562 extern "C" {
5563 #endif
5564 char nm_test_var;
5565 void nm_test_func(void);
5566 void nm_test_func(void){}
5567 #ifdef __cplusplus
5569 #endif
5570 int main(){nm_test_var='a';nm_test_func();return(0);}
5571 _LT_EOF
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574 (eval $ac_compile) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; then
5578 # Now try to grab the symbols.
5579 nlist=conftest.nm
5580 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5581 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && test -s "$nlist"; then
5585 # Try sorting and uniquifying the output.
5586 if sort "$nlist" | uniq > "$nlist"T; then
5587 mv -f "$nlist"T "$nlist"
5588 else
5589 rm -f "$nlist"T
5592 # Make sure that we snagged all the symbols we need.
5593 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5594 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5595 cat <<_LT_EOF > conftest.$ac_ext
5596 #ifdef __cplusplus
5597 extern "C" {
5598 #endif
5600 _LT_EOF
5601 # Now generate the symbol file.
5602 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5604 cat <<_LT_EOF >> conftest.$ac_ext
5606 /* The mapping between symbol names and symbols. */
5607 const struct {
5608 const char *name;
5609 void *address;
5611 lt__PROGRAM__LTX_preloaded_symbols[] =
5613 { "@PROGRAM@", (void *) 0 },
5614 _LT_EOF
5615 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5616 cat <<\_LT_EOF >> conftest.$ac_ext
5617 {0, (void *) 0}
5620 /* This works around a problem in FreeBSD linker */
5621 #ifdef FREEBSD_WORKAROUND
5622 static const void *lt_preloaded_setup() {
5623 return lt__PROGRAM__LTX_preloaded_symbols;
5625 #endif
5627 #ifdef __cplusplus
5629 #endif
5630 _LT_EOF
5631 # Now try linking the two files.
5632 mv conftest.$ac_objext conftstm.$ac_objext
5633 lt_save_LIBS="$LIBS"
5634 lt_save_CFLAGS="$CFLAGS"
5635 LIBS="conftstm.$ac_objext"
5636 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638 (eval $ac_link) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5642 pipe_works=yes
5644 LIBS="$lt_save_LIBS"
5645 CFLAGS="$lt_save_CFLAGS"
5646 else
5647 echo "cannot find nm_test_func in $nlist" >&5
5649 else
5650 echo "cannot find nm_test_var in $nlist" >&5
5652 else
5653 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5655 else
5656 echo "$progname: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5659 rm -f conftest* conftst*
5661 # Do not use the global_symbol_pipe unless it works.
5662 if test "$pipe_works" = yes; then
5663 break
5664 else
5665 lt_cv_sys_global_symbol_pipe=
5667 done
5671 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5672 lt_cv_sys_global_symbol_to_cdecl=
5674 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5675 echo "$as_me:$LINENO: result: failed" >&5
5676 echo "${ECHO_T}failed" >&6
5677 else
5678 echo "$as_me:$LINENO: result: ok" >&5
5679 echo "${ECHO_T}ok" >&6
5698 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5699 if test "${enable_libtool_lock+set}" = set; then
5700 enableval="$enable_libtool_lock"
5703 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5705 # Some flags need to be propagated to the compiler or linker for good
5706 # libtool support.
5707 case $host in
5708 ia64-*-hpux*)
5709 # Find out which ABI we are using.
5710 echo 'int i;' > conftest.$ac_ext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; then
5716 case `/usr/bin/file conftest.$ac_objext` in
5717 *ELF-32*)
5718 HPUX_IA64_MODE="32"
5720 *ELF-64*)
5721 HPUX_IA64_MODE="64"
5723 esac
5725 rm -rf conftest*
5727 *-*-irix6*)
5728 # Find out which ABI we are using.
5729 echo '#line 5729 "configure"' > conftest.$ac_ext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; then
5735 if test "$lt_cv_prog_gnu_ld" = yes; then
5736 case `/usr/bin/file conftest.$ac_objext` in
5737 *32-bit*)
5738 LD="${LD-ld} -melf32bsmip"
5740 *N32*)
5741 LD="${LD-ld} -melf32bmipn32"
5743 *64-bit*)
5744 LD="${LD-ld} -melf64bmip"
5746 esac
5747 else
5748 case `/usr/bin/file conftest.$ac_objext` in
5749 *32-bit*)
5750 LD="${LD-ld} -32"
5752 *N32*)
5753 LD="${LD-ld} -n32"
5755 *64-bit*)
5756 LD="${LD-ld} -64"
5758 esac
5761 rm -rf conftest*
5764 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5765 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5766 # Find out which ABI we are using.
5767 echo 'int i;' > conftest.$ac_ext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; then
5773 case `/usr/bin/file conftest.o` in
5774 *32-bit*)
5775 case $host in
5776 x86_64-*kfreebsd*-gnu)
5777 LD="${LD-ld} -m elf_i386_fbsd"
5779 x86_64-*linux*)
5780 LD="${LD-ld} -m elf_i386"
5782 ppc64-*linux*|powerpc64-*linux*)
5783 LD="${LD-ld} -m elf32ppclinux"
5785 s390x-*linux*)
5786 LD="${LD-ld} -m elf_s390"
5788 sparc64-*linux*)
5789 LD="${LD-ld} -m elf32_sparc"
5791 esac
5793 *64-bit*)
5794 case $host in
5795 x86_64-*kfreebsd*-gnu)
5796 LD="${LD-ld} -m elf_x86_64_fbsd"
5798 x86_64-*linux*)
5799 LD="${LD-ld} -m elf_x86_64"
5801 ppc*-*linux*|powerpc*-*linux*)
5802 LD="${LD-ld} -m elf64ppc"
5804 s390*-*linux*|s390*-*tpf*)
5805 LD="${LD-ld} -m elf64_s390"
5807 sparc*-*linux*)
5808 LD="${LD-ld} -m elf64_sparc"
5810 esac
5812 esac
5814 rm -rf conftest*
5817 *-*-sco3.2v5*)
5818 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5819 SAVE_CFLAGS="$CFLAGS"
5820 CFLAGS="$CFLAGS -belf"
5821 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5822 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5823 if test "${lt_cv_cc_needs_belf+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826 ac_ext=c
5827 ac_cpp='$CPP $CPPFLAGS'
5828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5840 main ()
5844 return 0;
5846 _ACEOF
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849 (eval $ac_link) 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_c_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 lt_cv_cc_needs_belf=yes
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 lt_cv_cc_needs_belf=no
5876 rm -f conftest.err conftest.$ac_objext \
5877 conftest$ac_exeext conftest.$ac_ext
5878 ac_ext=c
5879 ac_cpp='$CPP $CPPFLAGS'
5880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5885 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5886 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5887 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5888 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5889 CFLAGS="$SAVE_CFLAGS"
5892 sparc*-*solaris*)
5893 # Find out which ABI we are using.
5894 echo 'int i;' > conftest.$ac_ext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896 (eval $ac_compile) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; then
5900 case `/usr/bin/file conftest.o` in
5901 *64-bit*)
5902 case $lt_cv_prog_gnu_ld in
5903 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5904 *) LD="${LD-ld} -64" ;;
5905 esac
5907 esac
5909 rm -rf conftest*
5911 esac
5913 need_locks="$enable_libtool_lock"
5915 ac_ext=c
5916 ac_cpp='$CPP $CPPFLAGS'
5917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5920 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5922 # On Suns, sometimes $CPP names a directory.
5923 if test -n "$CPP" && test -d "$CPP"; then
5924 CPP=
5926 if test -z "$CPP"; then
5927 if test "${ac_cv_prog_CPP+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 # Double quotes because CPP needs to be expanded
5931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5933 ac_preproc_ok=false
5934 for ac_c_preproc_warn_flag in '' yes
5936 # Use a header file that comes with gcc, so configuring glibc
5937 # with a fresh cross-compiler works.
5938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5939 # <limits.h> exists even on freestanding compilers.
5940 # On the NeXT, cc -E runs the code through the compiler's parser,
5941 # not just through cpp. "Syntax error" is here to catch this case.
5942 cat >conftest.$ac_ext <<_ACEOF
5943 /* confdefs.h. */
5944 _ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5948 #ifdef __STDC__
5949 # include <limits.h>
5950 #else
5951 # include <assert.h>
5952 #endif
5953 Syntax error
5954 _ACEOF
5955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } >/dev/null; then
5963 if test -s conftest.err; then
5964 ac_cpp_err=$ac_c_preproc_warn_flag
5965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5966 else
5967 ac_cpp_err=
5969 else
5970 ac_cpp_err=yes
5972 if test -z "$ac_cpp_err"; then
5974 else
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 # Broken: fails on valid input.
5979 continue
5981 rm -f conftest.err conftest.$ac_ext
5983 # OK, works on sane cases. Now check whether non-existent headers
5984 # can be detected and how.
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h. */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 #include <ac_nonexistent.h>
5992 _ACEOF
5993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } >/dev/null; then
6001 if test -s conftest.err; then
6002 ac_cpp_err=$ac_c_preproc_warn_flag
6003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6004 else
6005 ac_cpp_err=
6007 else
6008 ac_cpp_err=yes
6010 if test -z "$ac_cpp_err"; then
6011 # Broken: success on invalid input.
6012 continue
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 # Passes both tests.
6018 ac_preproc_ok=:
6019 break
6021 rm -f conftest.err conftest.$ac_ext
6023 done
6024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6025 rm -f conftest.err conftest.$ac_ext
6026 if $ac_preproc_ok; then
6027 break
6030 done
6031 ac_cv_prog_CPP=$CPP
6034 CPP=$ac_cv_prog_CPP
6035 else
6036 ac_cv_prog_CPP=$CPP
6038 echo "$as_me:$LINENO: result: $CPP" >&5
6039 echo "${ECHO_T}$CPP" >&6
6040 ac_preproc_ok=false
6041 for ac_c_preproc_warn_flag in '' yes
6043 # Use a header file that comes with gcc, so configuring glibc
6044 # with a fresh cross-compiler works.
6045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6046 # <limits.h> exists even on freestanding compilers.
6047 # On the NeXT, cc -E runs the code through the compiler's parser,
6048 # not just through cpp. "Syntax error" is here to catch this case.
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #ifdef __STDC__
6056 # include <limits.h>
6057 #else
6058 # include <assert.h>
6059 #endif
6060 Syntax error
6061 _ACEOF
6062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } >/dev/null; then
6070 if test -s conftest.err; then
6071 ac_cpp_err=$ac_c_preproc_warn_flag
6072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6073 else
6074 ac_cpp_err=
6076 else
6077 ac_cpp_err=yes
6079 if test -z "$ac_cpp_err"; then
6081 else
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 # Broken: fails on valid input.
6086 continue
6088 rm -f conftest.err conftest.$ac_ext
6090 # OK, works on sane cases. Now check whether non-existent headers
6091 # can be detected and how.
6092 cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h. */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6098 #include <ac_nonexistent.h>
6099 _ACEOF
6100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } >/dev/null; then
6108 if test -s conftest.err; then
6109 ac_cpp_err=$ac_c_preproc_warn_flag
6110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6111 else
6112 ac_cpp_err=
6114 else
6115 ac_cpp_err=yes
6117 if test -z "$ac_cpp_err"; then
6118 # Broken: success on invalid input.
6119 continue
6120 else
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 # Passes both tests.
6125 ac_preproc_ok=:
6126 break
6128 rm -f conftest.err conftest.$ac_ext
6130 done
6131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6132 rm -f conftest.err conftest.$ac_ext
6133 if $ac_preproc_ok; then
6135 else
6136 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6137 See \`config.log' for more details." >&5
6138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6139 See \`config.log' for more details." >&2;}
6140 { (exit 1); exit 1; }; }
6143 ac_ext=c
6144 ac_cpp='$CPP $CPPFLAGS'
6145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6150 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6151 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6152 if test "${ac_cv_header_stdc+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <stdlib.h>
6162 #include <stdarg.h>
6163 #include <string.h>
6164 #include <float.h>
6167 main ()
6171 return 0;
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_header_stdc=yes
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6201 ac_cv_header_stdc=no
6203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6205 if test $ac_cv_header_stdc = yes; then
6206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 #include <string.h>
6215 _ACEOF
6216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6217 $EGREP "memchr" >/dev/null 2>&1; then
6219 else
6220 ac_cv_header_stdc=no
6222 rm -f conftest*
6226 if test $ac_cv_header_stdc = yes; then
6227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <stdlib.h>
6236 _ACEOF
6237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6238 $EGREP "free" >/dev/null 2>&1; then
6240 else
6241 ac_cv_header_stdc=no
6243 rm -f conftest*
6247 if test $ac_cv_header_stdc = yes; then
6248 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6249 if test "$cross_compiling" = yes; then
6251 else
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 #include <ctype.h>
6259 #if ((' ' & 0x0FF) == 0x020)
6260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6262 #else
6263 # define ISLOWER(c) \
6264 (('a' <= (c) && (c) <= 'i') \
6265 || ('j' <= (c) && (c) <= 'r') \
6266 || ('s' <= (c) && (c) <= 'z'))
6267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6268 #endif
6270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6272 main ()
6274 int i;
6275 for (i = 0; i < 256; i++)
6276 if (XOR (islower (i), ISLOWER (i))
6277 || toupper (i) != TOUPPER (i))
6278 exit(2);
6279 exit (0);
6281 _ACEOF
6282 rm -f conftest$ac_exeext
6283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6284 (eval $ac_link) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6294 else
6295 echo "$as_me: program exited with status $ac_status" >&5
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ( exit $ac_status )
6300 ac_cv_header_stdc=no
6302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6306 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6307 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6308 if test $ac_cv_header_stdc = yes; then
6310 cat >>confdefs.h <<\_ACEOF
6311 #define STDC_HEADERS 1
6312 _ACEOF
6316 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6326 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6327 inttypes.h stdint.h unistd.h
6329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330 echo "$as_me:$LINENO: checking for $ac_header" >&5
6331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6343 #include <$ac_header>
6344 _ACEOF
6345 rm -f conftest.$ac_objext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347 (eval $ac_compile) 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_c_werror_flag"
6355 || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 eval "$as_ac_Header=yes"
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 eval "$as_ac_Header=no"
6374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6379 cat >>confdefs.h <<_ACEOF
6380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6381 _ACEOF
6385 done
6389 for ac_header in dlfcn.h
6391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6392 echo "$as_me:$LINENO: checking for $ac_header" >&5
6393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 $ac_includes_default
6405 #include <$ac_header>
6406 _ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -z "$ac_c_werror_flag"
6417 || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 eval "$as_ac_Header=yes"
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 eval "$as_ac_Header=no"
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6441 cat >>confdefs.h <<_ACEOF
6442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6443 _ACEOF
6447 done
6451 # This can be used to rebuild libtool when needed
6452 LIBTOOL_DEPS="$ltmain"
6454 # Always use our own libtool.
6455 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6481 test -z "$LN_S" && LN_S="ln -s"
6496 if test -n "${ZSH_VERSION+set}" ; then
6497 setopt NO_GLOB_SUBST
6500 echo "$as_me:$LINENO: checking for objdir" >&5
6501 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6502 if test "${lt_cv_objdir+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 rm -f .libs 2>/dev/null
6506 mkdir .libs 2>/dev/null
6507 if test -d .libs; then
6508 lt_cv_objdir=.libs
6509 else
6510 # MS-DOS does not allow filenames that begin with a dot.
6511 lt_cv_objdir=_libs
6513 rmdir .libs 2>/dev/null
6515 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6516 echo "${ECHO_T}$lt_cv_objdir" >&6
6517 objdir=$lt_cv_objdir
6523 cat >>confdefs.h <<_ACEOF
6524 #define LT_OBJDIR "$lt_cv_objdir/"
6525 _ACEOF
6543 case $host_os in
6544 aix3*)
6545 # AIX sometimes has problems with the GCC collect2 program. For some
6546 # reason, if we set the COLLECT_NAMES environment variable, the problems
6547 # vanish in a puff of smoke.
6548 if test "X${COLLECT_NAMES+set}" != Xset; then
6549 COLLECT_NAMES=
6550 export COLLECT_NAMES
6553 esac
6555 # Sed substitution that helps us do robust quoting. It backslashifies
6556 # metacharacters that are still active within double-quoted strings.
6557 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6559 # Same as above, but do not quote variable references.
6560 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6562 # Sed substitution to delay expansion of an escaped shell variable in a
6563 # double_quote_subst'ed string.
6564 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6566 # Sed substitution to delay expansion of an escaped single quote.
6567 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6569 # Sed substitution to avoid accidental globbing in evaled expressions
6570 no_glob_subst='s/\*/\\\*/g'
6572 # Global variables:
6573 ofile=libtool
6574 can_build_shared=yes
6576 # All known linkers require a `.a' archive for static linking (except MSVC,
6577 # which needs '.lib').
6578 libext=a
6580 with_gnu_ld="$lt_cv_prog_gnu_ld"
6582 old_CC="$CC"
6583 old_CFLAGS="$CFLAGS"
6585 # Set sane defaults for various variables
6586 test -z "$CC" && CC=cc
6587 test -z "$LTCC" && LTCC=$CC
6588 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6589 test -z "$LD" && LD=ld
6590 test -z "$ac_objext" && ac_objext=o
6592 for cc_temp in $compiler""; do
6593 case $cc_temp in
6594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6596 \-*) ;;
6597 *) break;;
6598 esac
6599 done
6600 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6603 # Only perform the check for file, if the check method requires it
6604 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6605 case $deplibs_check_method in
6606 file_magic*)
6607 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6608 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6609 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6610 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613 case $MAGIC_CMD in
6614 [\\/*] | ?:[\\/]*)
6615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6618 lt_save_MAGIC_CMD="$MAGIC_CMD"
6619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6621 for ac_dir in $ac_dummy; do
6622 IFS="$lt_save_ifs"
6623 test -z "$ac_dir" && ac_dir=.
6624 if test -f $ac_dir/${ac_tool_prefix}file; then
6625 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6626 if test -n "$file_magic_test_file"; then
6627 case $deplibs_check_method in
6628 "file_magic "*)
6629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6632 $EGREP "$file_magic_regex" > /dev/null; then
6634 else
6635 cat <<_LT_EOF 1>&2
6637 *** Warning: the command libtool uses to detect shared libraries,
6638 *** $file_magic_cmd, produces output that libtool cannot recognize.
6639 *** The result is that libtool may fail to recognize shared libraries
6640 *** as such. This will affect the creation of libtool libraries that
6641 *** depend on shared libraries, but programs linked with such libtool
6642 *** libraries will work regardless of this problem. Nevertheless, you
6643 *** may want to report the problem to your system manager and/or to
6644 *** bug-libtool@gnu.org
6646 _LT_EOF
6647 fi ;;
6648 esac
6650 break
6652 done
6653 IFS="$lt_save_ifs"
6654 MAGIC_CMD="$lt_save_MAGIC_CMD"
6656 esac
6659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6660 if test -n "$MAGIC_CMD"; then
6661 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6662 echo "${ECHO_T}$MAGIC_CMD" >&6
6663 else
6664 echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6
6672 if test -z "$lt_cv_path_MAGIC_CMD"; then
6673 if test -n "$ac_tool_prefix"; then
6674 echo "$as_me:$LINENO: checking for file" >&5
6675 echo $ECHO_N "checking for file... $ECHO_C" >&6
6676 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 case $MAGIC_CMD in
6680 [\\/*] | ?:[\\/]*)
6681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6684 lt_save_MAGIC_CMD="$MAGIC_CMD"
6685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6687 for ac_dir in $ac_dummy; do
6688 IFS="$lt_save_ifs"
6689 test -z "$ac_dir" && ac_dir=.
6690 if test -f $ac_dir/file; then
6691 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6692 if test -n "$file_magic_test_file"; then
6693 case $deplibs_check_method in
6694 "file_magic "*)
6695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6698 $EGREP "$file_magic_regex" > /dev/null; then
6700 else
6701 cat <<_LT_EOF 1>&2
6703 *** Warning: the command libtool uses to detect shared libraries,
6704 *** $file_magic_cmd, produces output that libtool cannot recognize.
6705 *** The result is that libtool may fail to recognize shared libraries
6706 *** as such. This will affect the creation of libtool libraries that
6707 *** depend on shared libraries, but programs linked with such libtool
6708 *** libraries will work regardless of this problem. Nevertheless, you
6709 *** may want to report the problem to your system manager and/or to
6710 *** bug-libtool@gnu.org
6712 _LT_EOF
6713 fi ;;
6714 esac
6716 break
6718 done
6719 IFS="$lt_save_ifs"
6720 MAGIC_CMD="$lt_save_MAGIC_CMD"
6722 esac
6725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6726 if test -n "$MAGIC_CMD"; then
6727 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6728 echo "${ECHO_T}$MAGIC_CMD" >&6
6729 else
6730 echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6
6735 else
6736 MAGIC_CMD=:
6742 esac
6744 # Use C for the default configuration in the libtool script
6746 lt_save_CC="$CC"
6747 ac_ext=c
6748 ac_cpp='$CPP $CPPFLAGS'
6749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6754 # Source file extension for C test sources.
6755 ac_ext=c
6757 # Object file extension for compiled C test sources.
6758 objext=o
6759 objext=$objext
6761 # Code to be used in simple compile tests
6762 lt_simple_compile_test_code="int some_variable = 0;"
6764 # Code to be used in simple link tests
6765 lt_simple_link_test_code='int main(){return(0);}'
6773 # If no C compiler was specified, use CC.
6774 LTCC=${LTCC-"$CC"}
6776 # If no C compiler flags were specified, use CFLAGS.
6777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6779 # Allow CC to be a program name with arguments.
6780 compiler=$CC
6782 # Save the default compiler, since it gets overwritten when the other
6783 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6784 compiler_DEFAULT=$CC
6786 # save warnings/boilerplate of simple test code
6787 ac_outfile=conftest.$ac_objext
6788 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6789 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6790 _lt_compiler_boilerplate=`cat conftest.err`
6791 $RM conftest*
6793 ac_outfile=conftest.$ac_objext
6794 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6795 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6796 _lt_linker_boilerplate=`cat conftest.err`
6797 $RM conftest*
6800 ## CAVEAT EMPTOR:
6801 ## There is no encapsulation within the following macros, do not change
6802 ## the running order or otherwise move them around unless you know exactly
6803 ## what you are doing...
6804 if test -n "$compiler"; then
6806 lt_prog_compiler_no_builtin_flag=
6808 if test "$GCC" = yes; then
6809 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6811 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6812 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6813 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 lt_cv_prog_compiler_rtti_exceptions=no
6817 ac_outfile=conftest.$ac_objext
6818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6819 lt_compiler_flag="-fno-rtti -fno-exceptions"
6820 # Insert the option either (1) after the last *FLAGS variable, or
6821 # (2) before a word containing "conftest.", or (3) at the end.
6822 # Note that $ac_compile itself does not contain backslashes and begins
6823 # with a dollar sign (not a hyphen), so the echo should work correctly.
6824 # The option is referenced via a variable to avoid confusing sed.
6825 lt_compile=`echo "$ac_compile" | $SED \
6826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6828 -e 's:$: $lt_compiler_flag:'`
6829 (eval echo "\"\$as_me:6829: $lt_compile\"" >&5)
6830 (eval "$lt_compile" 2>conftest.err)
6831 ac_status=$?
6832 cat conftest.err >&5
6833 echo "$as_me:6833: \$? = $ac_status" >&5
6834 if (exit $ac_status) && test -s "$ac_outfile"; then
6835 # The compiler can only warn and ignore the option if not recognized
6836 # So say no if there are warnings other than the usual output.
6837 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6840 lt_cv_prog_compiler_rtti_exceptions=yes
6843 $RM conftest*
6846 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6847 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6849 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6850 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6851 else
6862 lt_prog_compiler_wl=
6863 lt_prog_compiler_pic=
6864 lt_prog_compiler_static=
6866 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6867 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6869 if test "$GCC" = yes; then
6870 lt_prog_compiler_wl='-Wl,'
6871 lt_prog_compiler_static='-static'
6873 case $host_os in
6874 aix*)
6875 # All AIX code is PIC.
6876 if test "$host_cpu" = ia64; then
6877 # AIX 5 now supports IA64 processor
6878 lt_prog_compiler_static='-Bstatic'
6882 amigaos*)
6883 if test "$host_cpu" = m68k; then
6884 # FIXME: we need at least 68020 code to build shared libraries, but
6885 # adding the `-m68020' flag to GCC prevents building anything better,
6886 # like `-m68040'.
6887 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6891 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6892 # PIC is the default for these OSes.
6895 mingw* | cygwin* | pw32* | os2*)
6896 # This hack is so that the source file can tell whether it is being
6897 # built for inclusion in a dll (and should export symbols for example).
6898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6899 # (--disable-auto-import) libraries
6900 lt_prog_compiler_pic='-DDLL_EXPORT'
6903 darwin* | rhapsody*)
6904 # PIC is the default on this platform
6905 # Common symbols not allowed in MH_DYLIB files
6906 lt_prog_compiler_pic='-fno-common'
6909 hpux*)
6910 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6911 # not for PA HP-UX.
6912 case $host_cpu in
6913 hppa*64*|ia64*)
6914 # +Z the default
6917 lt_prog_compiler_pic='-fPIC'
6919 esac
6922 interix[3-9]*)
6923 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6924 # Instead, we relocate shared libraries at runtime.
6927 msdosdjgpp*)
6928 # Just because we use GCC doesn't mean we suddenly get shared libraries
6929 # on systems that don't support them.
6930 lt_prog_compiler_can_build_shared=no
6931 enable_shared=no
6934 *nto* | *qnx*)
6935 # QNX uses GNU C++, but need to define -shared option too, otherwise
6936 # it will coredump.
6937 lt_prog_compiler_pic='-fPIC -shared'
6940 sysv4*MP*)
6941 if test -d /usr/nec; then
6942 lt_prog_compiler_pic=-Kconform_pic
6947 lt_prog_compiler_pic='-fPIC'
6949 esac
6950 else
6951 # PORTME Check for flag to pass linker flags through the system compiler.
6952 case $host_os in
6953 aix*)
6954 lt_prog_compiler_wl='-Wl,'
6955 if test "$host_cpu" = ia64; then
6956 # AIX 5 now supports IA64 processor
6957 lt_prog_compiler_static='-Bstatic'
6958 else
6959 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6962 darwin*)
6963 # PIC is the default on this platform
6964 # Common symbols not allowed in MH_DYLIB files
6965 case $cc_basename in
6966 xlc*)
6967 lt_prog_compiler_pic='-qnocommon'
6968 lt_prog_compiler_wl='-Wl,'
6970 esac
6973 mingw* | cygwin* | pw32* | os2*)
6974 # This hack is so that the source file can tell whether it is being
6975 # built for inclusion in a dll (and should export symbols for example).
6976 lt_prog_compiler_pic='-DDLL_EXPORT'
6979 hpux9* | hpux10* | hpux11*)
6980 lt_prog_compiler_wl='-Wl,'
6981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6982 # not for PA HP-UX.
6983 case $host_cpu in
6984 hppa*64*|ia64*)
6985 # +Z the default
6988 lt_prog_compiler_pic='+Z'
6990 esac
6991 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6992 lt_prog_compiler_static='${wl}-a ${wl}archive'
6995 irix5* | irix6* | nonstopux*)
6996 lt_prog_compiler_wl='-Wl,'
6997 # PIC (with -KPIC) is the default.
6998 lt_prog_compiler_static='-non_shared'
7001 linux* | k*bsd*-gnu)
7002 case $cc_basename in
7003 icc* | ecc*)
7004 lt_prog_compiler_wl='-Wl,'
7005 lt_prog_compiler_pic='-KPIC'
7006 lt_prog_compiler_static='-static'
7008 pgcc* | pgf77* | pgf90* | pgf95*)
7009 # Portland Group compilers (*not* the Pentium gcc compiler,
7010 # which looks to be a dead project)
7011 lt_prog_compiler_wl='-Wl,'
7012 lt_prog_compiler_pic='-fpic'
7013 lt_prog_compiler_static='-Bstatic'
7015 ccc*)
7016 lt_prog_compiler_wl='-Wl,'
7017 # All Alpha code is PIC.
7018 lt_prog_compiler_static='-non_shared'
7021 case `$CC -V 2>&1 | sed 5q` in
7022 *Sun\ C*)
7023 # Sun C 5.9
7024 lt_prog_compiler_pic='-KPIC'
7025 lt_prog_compiler_static='-Bstatic'
7026 lt_prog_compiler_wl='-Wl,'
7028 *Sun\ F*)
7029 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7030 lt_prog_compiler_pic='-KPIC'
7031 lt_prog_compiler_static='-Bstatic'
7032 lt_prog_compiler_wl=''
7034 esac
7036 esac
7039 newsos6)
7040 lt_prog_compiler_pic='-KPIC'
7041 lt_prog_compiler_static='-Bstatic'
7044 *nto* | *qnx*)
7045 # QNX uses GNU C++, but need to define -shared option too, otherwise
7046 # it will coredump.
7047 lt_prog_compiler_pic='-fPIC -shared'
7050 osf3* | osf4* | osf5*)
7051 lt_prog_compiler_wl='-Wl,'
7052 # All OSF/1 code is PIC.
7053 lt_prog_compiler_static='-non_shared'
7056 rdos*)
7057 lt_prog_compiler_static='-non_shared'
7060 solaris*)
7061 lt_prog_compiler_pic='-KPIC'
7062 lt_prog_compiler_static='-Bstatic'
7063 case $cc_basename in
7064 f77* | f90* | f95*)
7065 lt_prog_compiler_wl='-Qoption ld ';;
7067 lt_prog_compiler_wl='-Wl,';;
7068 esac
7071 sunos4*)
7072 lt_prog_compiler_wl='-Qoption ld '
7073 lt_prog_compiler_pic='-PIC'
7074 lt_prog_compiler_static='-Bstatic'
7077 sysv4 | sysv4.2uw2* | sysv4.3*)
7078 lt_prog_compiler_wl='-Wl,'
7079 lt_prog_compiler_pic='-KPIC'
7080 lt_prog_compiler_static='-Bstatic'
7083 sysv4*MP*)
7084 if test -d /usr/nec ;then
7085 lt_prog_compiler_pic='-Kconform_pic'
7086 lt_prog_compiler_static='-Bstatic'
7090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7091 lt_prog_compiler_wl='-Wl,'
7092 lt_prog_compiler_pic='-KPIC'
7093 lt_prog_compiler_static='-Bstatic'
7096 unicos*)
7097 lt_prog_compiler_wl='-Wl,'
7098 lt_prog_compiler_can_build_shared=no
7101 uts4*)
7102 lt_prog_compiler_pic='-pic'
7103 lt_prog_compiler_static='-Bstatic'
7107 lt_prog_compiler_can_build_shared=no
7109 esac
7112 case $host_os in
7113 # For platforms which do not support PIC, -DPIC is meaningless:
7114 *djgpp*)
7115 lt_prog_compiler_pic=
7118 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7120 esac
7121 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7122 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7130 # Check to make sure the PIC flag actually works.
7132 if test -n "$lt_prog_compiler_pic"; then
7133 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7134 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7135 if test "${lt_prog_compiler_pic_works+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138 lt_prog_compiler_pic_works=no
7139 ac_outfile=conftest.$ac_objext
7140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7141 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7142 # Insert the option either (1) after the last *FLAGS variable, or
7143 # (2) before a word containing "conftest.", or (3) at the end.
7144 # Note that $ac_compile itself does not contain backslashes and begins
7145 # with a dollar sign (not a hyphen), so the echo should work correctly.
7146 # The option is referenced via a variable to avoid confusing sed.
7147 lt_compile=`echo "$ac_compile" | $SED \
7148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7150 -e 's:$: $lt_compiler_flag:'`
7151 (eval echo "\"\$as_me:7151: $lt_compile\"" >&5)
7152 (eval "$lt_compile" 2>conftest.err)
7153 ac_status=$?
7154 cat conftest.err >&5
7155 echo "$as_me:7155: \$? = $ac_status" >&5
7156 if (exit $ac_status) && test -s "$ac_outfile"; then
7157 # The compiler can only warn and ignore the option if not recognized
7158 # So say no if there are warnings other than the usual output.
7159 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7162 lt_prog_compiler_pic_works=yes
7165 $RM conftest*
7168 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7169 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7171 if test x"$lt_prog_compiler_pic_works" = xyes; then
7172 case $lt_prog_compiler_pic in
7173 "" | " "*) ;;
7174 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7175 esac
7176 else
7177 lt_prog_compiler_pic=
7178 lt_prog_compiler_can_build_shared=no
7189 # Check to make sure the static flag actually works.
7191 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7192 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7193 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7194 if test "${lt_prog_compiler_static_works+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 lt_prog_compiler_static_works=no
7198 save_LDFLAGS="$LDFLAGS"
7199 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7200 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7202 # The linker can only warn and ignore the option if not recognized
7203 # So say no if there are warnings
7204 if test -s conftest.err; then
7205 # Append any errors to the config.log.
7206 cat conftest.err 1>&5
7207 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7209 if diff conftest.exp conftest.er2 >/dev/null; then
7210 lt_prog_compiler_static_works=yes
7212 else
7213 lt_prog_compiler_static_works=yes
7216 $RM conftest*
7217 LDFLAGS="$save_LDFLAGS"
7220 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7221 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7223 if test x"$lt_prog_compiler_static_works" = xyes; then
7225 else
7226 lt_prog_compiler_static=
7235 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7236 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7237 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240 lt_cv_prog_compiler_c_o=no
7241 $RM -r conftest 2>/dev/null
7242 mkdir conftest
7243 cd conftest
7244 mkdir out
7245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7247 lt_compiler_flag="-o out/conftest2.$ac_objext"
7248 # Insert the option either (1) after the last *FLAGS variable, or
7249 # (2) before a word containing "conftest.", or (3) at the end.
7250 # Note that $ac_compile itself does not contain backslashes and begins
7251 # with a dollar sign (not a hyphen), so the echo should work correctly.
7252 lt_compile=`echo "$ac_compile" | $SED \
7253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7255 -e 's:$: $lt_compiler_flag:'`
7256 (eval echo "\"\$as_me:7256: $lt_compile\"" >&5)
7257 (eval "$lt_compile" 2>out/conftest.err)
7258 ac_status=$?
7259 cat out/conftest.err >&5
7260 echo "$as_me:7260: \$? = $ac_status" >&5
7261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7262 then
7263 # The compiler can only warn and ignore the option if not recognized
7264 # So say no if there are warnings
7265 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7268 lt_cv_prog_compiler_c_o=yes
7271 chmod u+w . 2>&5
7272 $RM conftest*
7273 # SGI C++ compiler will create directory out/ii_files/ for
7274 # template instantiation
7275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7276 $RM out/* && rmdir out
7277 cd ..
7278 $RM -r conftest
7279 $RM conftest*
7282 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7283 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7290 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7291 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7292 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295 lt_cv_prog_compiler_c_o=no
7296 $RM -r conftest 2>/dev/null
7297 mkdir conftest
7298 cd conftest
7299 mkdir out
7300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7302 lt_compiler_flag="-o out/conftest2.$ac_objext"
7303 # Insert the option either (1) after the last *FLAGS variable, or
7304 # (2) before a word containing "conftest.", or (3) at the end.
7305 # Note that $ac_compile itself does not contain backslashes and begins
7306 # with a dollar sign (not a hyphen), so the echo should work correctly.
7307 lt_compile=`echo "$ac_compile" | $SED \
7308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7310 -e 's:$: $lt_compiler_flag:'`
7311 (eval echo "\"\$as_me:7311: $lt_compile\"" >&5)
7312 (eval "$lt_compile" 2>out/conftest.err)
7313 ac_status=$?
7314 cat out/conftest.err >&5
7315 echo "$as_me:7315: \$? = $ac_status" >&5
7316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7317 then
7318 # The compiler can only warn and ignore the option if not recognized
7319 # So say no if there are warnings
7320 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7323 lt_cv_prog_compiler_c_o=yes
7326 chmod u+w . 2>&5
7327 $RM conftest*
7328 # SGI C++ compiler will create directory out/ii_files/ for
7329 # template instantiation
7330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7331 $RM out/* && rmdir out
7332 cd ..
7333 $RM -r conftest
7334 $RM conftest*
7337 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7338 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7343 hard_links="nottested"
7344 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7345 # do not overwrite the value of need_locks provided by the user
7346 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7347 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7348 hard_links=yes
7349 $RM conftest*
7350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7351 touch conftest.a
7352 ln conftest.a conftest.b 2>&5 || hard_links=no
7353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7354 echo "$as_me:$LINENO: result: $hard_links" >&5
7355 echo "${ECHO_T}$hard_links" >&6
7356 if test "$hard_links" = no; then
7357 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7358 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7359 need_locks=warn
7361 else
7362 need_locks=no
7370 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7371 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7373 runpath_var=
7374 allow_undefined_flag=
7375 always_export_symbols=no
7376 archive_cmds=
7377 archive_expsym_cmds=
7378 compiler_needs_object=no
7379 enable_shared_with_static_runtimes=no
7380 export_dynamic_flag_spec=
7381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7382 hardcode_automatic=no
7383 hardcode_direct=no
7384 hardcode_direct_absolute=no
7385 hardcode_libdir_flag_spec=
7386 hardcode_libdir_flag_spec_ld=
7387 hardcode_libdir_separator=
7388 hardcode_minus_L=no
7389 hardcode_shlibpath_var=unsupported
7390 inherit_rpath=no
7391 link_all_deplibs=unknown
7392 module_cmds=
7393 module_expsym_cmds=
7394 old_archive_from_new_cmds=
7395 old_archive_from_expsyms_cmds=
7396 thread_safe_flag_spec=
7397 whole_archive_flag_spec=
7398 # include_expsyms should be a list of space-separated symbols to be *always*
7399 # included in the symbol list
7400 include_expsyms=
7401 # exclude_expsyms can be an extended regexp of symbols to exclude
7402 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7403 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7404 # as well as any symbol that contains `d'.
7405 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7406 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7407 # platforms (ab)use it in PIC code, but their linkers get confused if
7408 # the symbol is explicitly referenced. Since portable code cannot
7409 # rely on this symbol name, it's probably fine to never include it in
7410 # preloaded symbol tables.
7411 extract_expsyms_cmds=
7413 case $host_os in
7414 cygwin* | mingw* | pw32*)
7415 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7416 # When not using gcc, we currently assume that we are using
7417 # Microsoft Visual C++.
7418 if test "$GCC" != yes; then
7419 with_gnu_ld=no
7422 interix*)
7423 # we just hope/assume this is gcc and not c89 (= MSVC++)
7424 with_gnu_ld=yes
7426 openbsd*)
7427 with_gnu_ld=no
7429 esac
7431 ld_shlibs=yes
7432 if test "$with_gnu_ld" = yes; then
7433 # If archive_cmds runs LD, not CC, wlarc should be empty
7434 wlarc='${wl}'
7436 # Set some defaults for GNU ld with shared library support. These
7437 # are reset later if shared libraries are not supported. Putting them
7438 # here allows them to be overridden if necessary.
7439 runpath_var=LD_RUN_PATH
7440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7441 export_dynamic_flag_spec='${wl}--export-dynamic'
7442 # ancient GNU ld didn't support --whole-archive et. al.
7443 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7444 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7445 else
7446 whole_archive_flag_spec=
7448 supports_anon_versioning=no
7449 case `$LD -v 2>&1` in
7450 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7451 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7452 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7453 *\ 2.11.*) ;; # other 2.11 versions
7454 *) supports_anon_versioning=yes ;;
7455 esac
7457 # See if GNU ld supports shared libraries.
7458 case $host_os in
7459 aix3* | aix4* | aix5*)
7460 # On AIX/PPC, the GNU linker is very broken
7461 if test "$host_cpu" != ia64; then
7462 ld_shlibs=no
7463 cat <<_LT_EOF 1>&2
7465 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7466 *** to be unable to reliably create shared libraries on AIX.
7467 *** Therefore, libtool is disabling shared libraries support. If you
7468 *** really care for shared libraries, you may want to modify your PATH
7469 *** so that a non-GNU linker is found, and then restart.
7471 _LT_EOF
7475 amigaos*)
7476 if test "$host_cpu" = m68k; then
7477 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)'
7478 hardcode_libdir_flag_spec='-L$libdir'
7479 hardcode_minus_L=yes
7482 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7483 # that the semantics of dynamic libraries on AmigaOS, at least up
7484 # to version 4, is to share data among multiple programs linked
7485 # with the same dynamic library. Since this doesn't match the
7486 # behavior of shared libraries on other platforms, we can't use
7487 # them.
7488 ld_shlibs=no
7491 beos*)
7492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7493 allow_undefined_flag=unsupported
7494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7495 # support --undefined. This deserves some investigation. FIXME
7496 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7497 else
7498 ld_shlibs=no
7502 cygwin* | mingw* | pw32*)
7503 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7504 # as there is no search path for DLLs.
7505 hardcode_libdir_flag_spec='-L$libdir'
7506 allow_undefined_flag=unsupported
7507 always_export_symbols=no
7508 enable_shared_with_static_runtimes=yes
7509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7511 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7513 # If the export-symbols file already is a .def file (1st line
7514 # is EXPORTS), use it as is; otherwise, prepend...
7515 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7516 cp $export_symbols $output_objdir/$soname.def;
7517 else
7518 echo EXPORTS > $output_objdir/$soname.def;
7519 cat $export_symbols >> $output_objdir/$soname.def;
7521 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7522 else
7523 ld_shlibs=no
7527 interix[3-9]*)
7528 hardcode_direct=no
7529 hardcode_shlibpath_var=no
7530 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7531 export_dynamic_flag_spec='${wl}-E'
7532 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7533 # Instead, shared libraries are loaded at an image base (0x10000000 by
7534 # default) and relocated if they conflict, which is a slow very memory
7535 # consuming and fragmenting process. To avoid this, we pick a random,
7536 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7537 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7538 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7539 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'
7542 gnu* | linux* | tpf* | k*bsd*-gnu)
7543 tmp_diet=no
7544 if test "$host_os" = linux-dietlibc; then
7545 case $cc_basename in
7546 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7547 esac
7549 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7550 && test "$tmp_diet" = no
7551 then
7552 tmp_addflag=
7553 case $cc_basename,$host_cpu in
7554 pgcc*) # Portland Group C compiler
7555 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'
7556 tmp_addflag=' $pic_flag'
7558 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7559 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'
7560 tmp_addflag=' $pic_flag -Mnomain' ;;
7561 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7562 tmp_addflag=' -i_dynamic' ;;
7563 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7564 tmp_addflag=' -i_dynamic -nofor_main' ;;
7565 ifc* | ifort*) # Intel Fortran compiler
7566 tmp_addflag=' -nofor_main' ;;
7567 esac
7568 case `$CC -V 2>&1 | sed 5q` in
7569 *Sun\ C*) # Sun C 5.9
7570 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'
7571 compiler_needs_object=yes
7572 tmp_sharedflag='-G' ;;
7573 *Sun\ F*) # Sun Fortran 8.3
7574 tmp_sharedflag='-G' ;;
7576 tmp_sharedflag='-shared' ;;
7577 esac
7578 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7580 if test "x$supports_anon_versioning" = xyes; then
7581 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7582 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7583 echo "local: *; };" >> $output_objdir/$libname.ver~
7584 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7586 else
7587 ld_shlibs=no
7591 netbsd*)
7592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7593 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7594 wlarc=
7595 else
7596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7601 solaris*)
7602 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7603 ld_shlibs=no
7604 cat <<_LT_EOF 1>&2
7606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7607 *** create shared libraries on Solaris systems. Therefore, libtool
7608 *** is disabling shared libraries support. We urge you to upgrade GNU
7609 *** binutils to release 2.9.1 or newer. Another option is to modify
7610 *** your PATH or compiler configuration so that the native linker is
7611 *** used, and then restart.
7613 _LT_EOF
7614 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7616 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7617 else
7618 ld_shlibs=no
7622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7623 case `$LD -v 2>&1` in
7624 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7625 ld_shlibs=no
7626 cat <<_LT_EOF 1>&2
7628 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7629 *** reliably create shared libraries on SCO systems. Therefore, libtool
7630 *** is disabling shared libraries support. We urge you to upgrade GNU
7631 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7632 *** your PATH or compiler configuration so that the native linker is
7633 *** used, and then restart.
7635 _LT_EOF
7638 # For security reasons, it is highly recommended that you always
7639 # use absolute paths for naming shared libraries, and exclude the
7640 # DT_RUNPATH tag from executables and libraries. But doing so
7641 # requires that you compile everything twice, which is a pain.
7642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7646 else
7647 ld_shlibs=no
7650 esac
7653 sunos4*)
7654 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7655 wlarc=
7656 hardcode_direct=yes
7657 hardcode_shlibpath_var=no
7661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664 else
7665 ld_shlibs=no
7668 esac
7670 if test "$ld_shlibs" = no; then
7671 runpath_var=
7672 hardcode_libdir_flag_spec=
7673 export_dynamic_flag_spec=
7674 whole_archive_flag_spec=
7676 else
7677 # PORTME fill in a description of your system's linker (not GNU ld)
7678 case $host_os in
7679 aix3*)
7680 allow_undefined_flag=unsupported
7681 always_export_symbols=yes
7682 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'
7683 # Note: this linker hardcodes the directories in LIBPATH if there
7684 # are no directories specified by -L.
7685 hardcode_minus_L=yes
7686 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7687 # Neither direct hardcoding nor static linking is supported with a
7688 # broken collect2.
7689 hardcode_direct=unsupported
7693 aix4* | aix5*)
7694 if test "$host_cpu" = ia64; then
7695 # On IA64, the linker does run time linking by default, so we don't
7696 # have to do anything special.
7697 aix_use_runtimelinking=no
7698 exp_sym_flag='-Bexport'
7699 no_entry_flag=""
7700 else
7701 # If we're using GNU nm, then we don't want the "-C" option.
7702 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7703 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7704 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'
7705 else
7706 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'
7708 aix_use_runtimelinking=no
7710 # Test if we are trying to use run time linking or normal
7711 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7712 # need to do runtime linking.
7713 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7714 for ld_flag in $LDFLAGS; do
7715 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7716 aix_use_runtimelinking=yes
7717 break
7719 done
7721 esac
7723 exp_sym_flag='-bexport'
7724 no_entry_flag='-bnoentry'
7727 # When large executables or shared objects are built, AIX ld can
7728 # have problems creating the table of contents. If linking a library
7729 # or program results in "error TOC overflow" add -mminimal-toc to
7730 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7731 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7733 archive_cmds=''
7734 hardcode_direct=yes
7735 hardcode_direct_absolute=yes
7736 hardcode_libdir_separator=':'
7737 link_all_deplibs=yes
7738 file_list_spec='${wl}-f,'
7740 if test "$GCC" = yes; then
7741 case $host_os in aix4.[012]|aix4.[012].*)
7742 # We only want to do this on AIX 4.2 and lower, the check
7743 # below for broken collect2 doesn't work under 4.3+
7744 collect2name=`${CC} -print-prog-name=collect2`
7745 if test -f "$collect2name" &&
7746 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7747 then
7748 # We have reworked collect2
7750 else
7751 # We have old collect2
7752 hardcode_direct=unsupported
7753 # It fails to find uninstalled libraries when the uninstalled
7754 # path is not listed in the libpath. Setting hardcode_minus_L
7755 # to unsupported forces relinking
7756 hardcode_minus_L=yes
7757 hardcode_libdir_flag_spec='-L$libdir'
7758 hardcode_libdir_separator=
7761 esac
7762 shared_flag='-shared'
7763 if test "$aix_use_runtimelinking" = yes; then
7764 shared_flag="$shared_flag "'${wl}-G'
7766 else
7767 # not using gcc
7768 if test "$host_cpu" = ia64; then
7769 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7770 # chokes on -Wl,-G. The following line is correct:
7771 shared_flag='-G'
7772 else
7773 if test "$aix_use_runtimelinking" = yes; then
7774 shared_flag='${wl}-G'
7775 else
7776 shared_flag='${wl}-bM:SRE'
7781 # It seems that -bexpall does not export symbols beginning with
7782 # underscore (_), so it is better to generate a list of symbols to export.
7783 always_export_symbols=yes
7784 if test "$aix_use_runtimelinking" = yes; then
7785 # Warning - without using the other runtime loading flags (-brtl),
7786 # -berok will link without error, but may produce a broken library.
7787 allow_undefined_flag='-berok'
7788 # Determine the default libpath from the value encoded in an
7789 # empty executable.
7790 cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h. */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7798 main ()
7802 return 0;
7804 _ACEOF
7805 rm -f conftest.$ac_objext conftest$ac_exeext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7807 (eval $ac_link) 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -z "$ac_c_werror_flag"
7815 || test ! -s conftest.err'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try='test -s conftest$ac_exeext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7828 lt_aix_libpath_sed='
7829 /Import File Strings/,/^$/ {
7830 /^0/ {
7831 s/^0 *\(.*\)$/\1/
7835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7836 # Check for a 64-bit object if we didn't find anything.
7837 if test -z "$aix_libpath"; then
7838 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7840 else
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7845 rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7849 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7850 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"
7851 else
7852 if test "$host_cpu" = ia64; then
7853 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7854 allow_undefined_flag="-z nodefs"
7855 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"
7856 else
7857 # Determine the default libpath from the value encoded in an
7858 # empty executable.
7859 cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h. */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7867 main ()
7871 return 0;
7873 _ACEOF
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876 (eval $ac_link) 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7897 lt_aix_libpath_sed='
7898 /Import File Strings/,/^$/ {
7899 /^0/ {
7900 s/^0 *\(.*\)$/\1/
7904 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7905 # Check for a 64-bit object if we didn't find anything.
7906 if test -z "$aix_libpath"; then
7907 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7909 else
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7914 rm -f conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7918 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7919 # Warning - without using the other run time loading flags,
7920 # -berok will link without error, but may produce a broken library.
7921 no_undefined_flag=' ${wl}-bernotok'
7922 allow_undefined_flag=' ${wl}-berok'
7923 # Exported symbols can be pulled into shared objects from archives
7924 whole_archive_flag_spec='$convenience'
7925 archive_cmds_need_lc=yes
7926 # This is similar to how AIX traditionally builds its shared libraries.
7927 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'
7932 amigaos*)
7933 if test "$host_cpu" = m68k; then
7934 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)'
7935 hardcode_libdir_flag_spec='-L$libdir'
7936 hardcode_minus_L=yes
7938 # see comment about different semantics on the GNU ld section
7939 ld_shlibs=no
7942 bsdi[45]*)
7943 export_dynamic_flag_spec=-rdynamic
7946 cygwin* | mingw* | pw32*)
7947 # When not using gcc, we currently assume that we are using
7948 # Microsoft Visual C++.
7949 # hardcode_libdir_flag_spec is actually meaningless, as there is
7950 # no search path for DLLs.
7951 hardcode_libdir_flag_spec=' '
7952 allow_undefined_flag=unsupported
7953 # Tell ltmain to make .lib files, not .a files.
7954 libext=lib
7955 # Tell ltmain to make .dll files, not .so files.
7956 shrext_cmds=".dll"
7957 # FIXME: Setting linknames here is a bad hack.
7958 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7959 # The linker will automatically build a .lib file if we build a DLL.
7960 old_archive_from_new_cmds='true'
7961 # FIXME: Should let the user specify the lib program.
7962 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7963 fix_srcfile_path='`cygpath -w "$srcfile"`'
7964 enable_shared_with_static_runtimes=yes
7967 darwin* | rhapsody*)
7968 case $host_os in
7969 rhapsody* | darwin1.[012])
7970 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7972 *) # Darwin 1.3 on
7973 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7974 10.[012])
7975 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7977 10.*)
7978 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7980 esac
7982 esac
7983 archive_cmds_need_lc=no
7984 hardcode_direct=no
7985 hardcode_automatic=yes
7986 hardcode_shlibpath_var=unsupported
7987 whole_archive_flag_spec=''
7988 link_all_deplibs=yes
7989 if test "$GCC" = yes ; then
7990 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 lt_cv_apple_cc_single_mod=no
7994 if test -z "${LT_MULTI_MODULE}"; then
7995 # By default we will add the -single_module flag. You can override
7996 # by either setting the environment variable LT_MULTI_MODULE
7997 # non-empty at configure time, or by adding -multi-module to the
7998 # link flags.
7999 echo "int foo(void){return 1;}" > conftest.c
8000 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8001 -dynamiclib ${wl}-single_module conftest.c
8002 if test -f libconftest.dylib; then
8003 lt_cv_apple_cc_single_mod=yes
8004 rm libconftest.dylib
8006 rm conftest.$ac_ext
8010 output_verbose_link_cmd=echo
8011 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8012 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8013 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8014 else
8015 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8016 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8018 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8019 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8020 else
8021 case $cc_basename in
8022 xlc*)
8023 output_verbose_link_cmd=echo
8024 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8025 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8027 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8028 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8031 ld_shlibs=no
8033 esac
8037 dgux*)
8038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8039 hardcode_libdir_flag_spec='-L$libdir'
8040 hardcode_shlibpath_var=no
8043 freebsd1*)
8044 ld_shlibs=no
8047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8048 # support. Future versions do this automatically, but an explicit c++rt0.o
8049 # does not break anything, and helps significantly (at the cost of a little
8050 # extra space).
8051 freebsd2.2*)
8052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8053 hardcode_libdir_flag_spec='-R$libdir'
8054 hardcode_direct=yes
8055 hardcode_shlibpath_var=no
8058 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8059 freebsd2*)
8060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8061 hardcode_direct=yes
8062 hardcode_minus_L=yes
8063 hardcode_shlibpath_var=no
8066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8067 freebsd* | dragonfly*)
8068 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8069 hardcode_libdir_flag_spec='-R$libdir'
8070 hardcode_direct=yes
8071 hardcode_shlibpath_var=no
8074 hpux9*)
8075 if test "$GCC" = yes; then
8076 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'
8077 else
8078 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'
8080 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8081 hardcode_libdir_separator=:
8082 hardcode_direct=yes
8084 # hardcode_minus_L: Not really in the search PATH,
8085 # but as the default location of the library.
8086 hardcode_minus_L=yes
8087 export_dynamic_flag_spec='${wl}-E'
8090 hpux10*)
8091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8093 else
8094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8096 if test "$with_gnu_ld" = no; then
8097 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8098 hardcode_libdir_flag_spec_ld='+b $libdir'
8099 hardcode_libdir_separator=:
8100 hardcode_direct=yes
8101 hardcode_direct_absolute=yes
8102 export_dynamic_flag_spec='${wl}-E'
8103 # hardcode_minus_L: Not really in the search PATH,
8104 # but as the default location of the library.
8105 hardcode_minus_L=yes
8109 hpux11*)
8110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8111 case $host_cpu in
8112 hppa*64*)
8113 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8115 ia64*)
8116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8121 esac
8122 else
8123 case $host_cpu in
8124 hppa*64*)
8125 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8127 ia64*)
8128 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8133 esac
8135 if test "$with_gnu_ld" = no; then
8136 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8137 hardcode_libdir_separator=:
8139 case $host_cpu in
8140 hppa*64*|ia64*)
8141 hardcode_direct=no
8142 hardcode_shlibpath_var=no
8145 hardcode_direct=yes
8146 hardcode_direct_absolute=yes
8147 export_dynamic_flag_spec='${wl}-E'
8149 # hardcode_minus_L: Not really in the search PATH,
8150 # but as the default location of the library.
8151 hardcode_minus_L=yes
8153 esac
8157 irix5* | irix6* | nonstopux*)
8158 if test "$GCC" = yes; then
8159 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'
8160 # Try to use the -exported_symbol ld option, if it does not
8161 # work, assume that -exports_file does not work either and
8162 # implicitly export all symbols.
8163 save_LDFLAGS="$LDFLAGS"
8164 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8165 cat >conftest.$ac_ext <<_ACEOF
8166 int foo(void) {}
8167 _ACEOF
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170 (eval $ac_link) 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag"
8178 || test ! -s conftest.err'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 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'
8192 else
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8197 rm -f conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199 LDFLAGS="$save_LDFLAGS"
8200 else
8201 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'
8202 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'
8204 archive_cmds_need_lc='no'
8205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8206 hardcode_libdir_separator=:
8207 inherit_rpath=yes
8208 link_all_deplibs=yes
8211 netbsd*)
8212 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8214 else
8215 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8217 hardcode_libdir_flag_spec='-R$libdir'
8218 hardcode_direct=yes
8219 hardcode_shlibpath_var=no
8222 newsos6)
8223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8224 hardcode_direct=yes
8225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8226 hardcode_libdir_separator=:
8227 hardcode_shlibpath_var=no
8230 *nto* | *qnx*)
8233 openbsd*)
8234 hardcode_direct=yes
8235 hardcode_shlibpath_var=no
8236 hardcode_direct_absolute=yes
8237 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8239 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8241 export_dynamic_flag_spec='${wl}-E'
8242 else
8243 case $host_os in
8244 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8246 hardcode_libdir_flag_spec='-R$libdir'
8249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8250 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8252 esac
8256 os2*)
8257 hardcode_libdir_flag_spec='-L$libdir'
8258 hardcode_minus_L=yes
8259 allow_undefined_flag=unsupported
8260 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'
8261 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8264 osf3*)
8265 if test "$GCC" = yes; then
8266 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8267 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'
8268 else
8269 allow_undefined_flag=' -expect_unresolved \*'
8270 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'
8272 archive_cmds_need_lc='no'
8273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8274 hardcode_libdir_separator=:
8277 osf4* | osf5*) # as osf3* with the addition of -msym flag
8278 if test "$GCC" = yes; then
8279 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8280 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'
8281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8282 else
8283 allow_undefined_flag=' -expect_unresolved \*'
8284 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'
8285 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~
8286 $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'
8288 # Both c and cxx compiler support -rpath directly
8289 hardcode_libdir_flag_spec='-rpath $libdir'
8291 archive_cmds_need_lc='no'
8292 hardcode_libdir_separator=:
8295 solaris*)
8296 no_undefined_flag=' -z defs'
8297 if test "$GCC" = yes; then
8298 wlarc='${wl}'
8299 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8301 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8302 else
8303 case `$CC -V 2>&1` in
8304 *"Compilers 5.0"*)
8305 wlarc=''
8306 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8311 wlarc='${wl}'
8312 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8314 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8316 esac
8318 hardcode_libdir_flag_spec='-R$libdir'
8319 hardcode_shlibpath_var=no
8320 case $host_os in
8321 solaris2.[0-5] | solaris2.[0-5].*) ;;
8323 # The compiler driver will combine and reorder linker options,
8324 # but understands `-z linker_flag'. GCC discards it without `$wl',
8325 # but is careful enough not to reorder.
8326 # Supported since Solaris 2.6 (maybe 2.5.1?)
8327 if test "$GCC" = yes; then
8328 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8329 else
8330 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8333 esac
8334 link_all_deplibs=yes
8337 sunos4*)
8338 if test "x$host_vendor" = xsequent; then
8339 # Use $CC to link under sequent, because it throws in some extra .o
8340 # files that make .init and .fini sections work.
8341 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8342 else
8343 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8345 hardcode_libdir_flag_spec='-L$libdir'
8346 hardcode_direct=yes
8347 hardcode_minus_L=yes
8348 hardcode_shlibpath_var=no
8351 sysv4)
8352 case $host_vendor in
8353 sni)
8354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8355 hardcode_direct=yes # is this really true???
8357 siemens)
8358 ## LD is ld it makes a PLAMLIB
8359 ## CC just makes a GrossModule.
8360 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8361 reload_cmds='$CC -r -o $output$reload_objs'
8362 hardcode_direct=no
8364 motorola)
8365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8366 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8368 esac
8369 runpath_var='LD_RUN_PATH'
8370 hardcode_shlibpath_var=no
8373 sysv4.3*)
8374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375 hardcode_shlibpath_var=no
8376 export_dynamic_flag_spec='-Bexport'
8379 sysv4*MP*)
8380 if test -d /usr/nec; then
8381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382 hardcode_shlibpath_var=no
8383 runpath_var=LD_RUN_PATH
8384 hardcode_runpath_var=yes
8385 ld_shlibs=yes
8389 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8390 no_undefined_flag='${wl}-z,text'
8391 archive_cmds_need_lc=no
8392 hardcode_shlibpath_var=no
8393 runpath_var='LD_RUN_PATH'
8395 if test "$GCC" = yes; then
8396 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8397 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 else
8399 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8400 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8404 sysv5* | sco3.2v5* | sco5v6*)
8405 # Note: We can NOT use -z defs as we might desire, because we do not
8406 # link with -lc, and that would cause any symbols used from libc to
8407 # always be unresolved, which means just about no library would
8408 # ever link correctly. If we're not using GNU ld we use -z text
8409 # though, which does catch some bad symbols but isn't as heavy-handed
8410 # as -z defs.
8411 no_undefined_flag='${wl}-z,text'
8412 allow_undefined_flag='${wl}-z,nodefs'
8413 archive_cmds_need_lc=no
8414 hardcode_shlibpath_var=no
8415 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8416 hardcode_libdir_separator=':'
8417 link_all_deplibs=yes
8418 export_dynamic_flag_spec='${wl}-Bexport'
8419 runpath_var='LD_RUN_PATH'
8421 if test "$GCC" = yes; then
8422 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 else
8425 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8430 uts4*)
8431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8432 hardcode_libdir_flag_spec='-L$libdir'
8433 hardcode_shlibpath_var=no
8437 ld_shlibs=no
8439 esac
8441 if test x$host_vendor = xsni; then
8442 case $host in
8443 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8444 export_dynamic_flag_spec='${wl}-Blargedynsym'
8446 esac
8450 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8451 echo "${ECHO_T}$ld_shlibs" >&6
8452 test "$ld_shlibs" = no && can_build_shared=no
8454 with_gnu_ld=$with_gnu_ld
8471 # Do we need to explicitly link libc?
8473 case "x$archive_cmds_need_lc" in
8474 x|xyes)
8475 # Assume -lc should be added
8476 archive_cmds_need_lc=yes
8478 if test "$enable_shared" = yes && test "$GCC" = yes; then
8479 case $archive_cmds in
8480 *'~'*)
8481 # FIXME: we may have to deal with multi-command sequences.
8483 '$CC '*)
8484 # Test whether the compiler implicitly links with -lc since on some
8485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8486 # to ld, don't add -lc before -lgcc.
8487 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8488 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8489 $RM conftest*
8490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } 2>conftest.err; then
8497 soname=conftest
8498 lib=conftest
8499 libobjs=conftest.$ac_objext
8500 deplibs=
8501 wl=$lt_prog_compiler_wl
8502 pic_flag=$lt_prog_compiler_pic
8503 compiler_flags=-v
8504 linker_flags=-v
8505 verstring=
8506 output_objdir=.
8507 libname=conftest
8508 lt_save_allow_undefined_flag=$allow_undefined_flag
8509 allow_undefined_flag=
8510 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8511 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }
8515 then
8516 archive_cmds_need_lc=no
8517 else
8518 archive_cmds_need_lc=yes
8520 allow_undefined_flag=$lt_save_allow_undefined_flag
8521 else
8522 cat conftest.err 1>&5
8524 $RM conftest*
8525 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8526 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8528 esac
8531 esac
8689 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8690 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8691 withGCC=$GCC
8692 if test "$withGCC" = yes; then
8693 case $host_os in
8694 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8695 *) lt_awk_arg="/^libraries:/" ;;
8696 esac
8697 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8698 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8699 # if the path contains ";" then we assume it to be the separator
8700 # otherwise default to the standard path separator (i.e. ":") - it is
8701 # assumed that no part of a normal pathname contains ";" but that should
8702 # okay in the real world where ";" in dirpaths is itself problematic.
8703 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8704 else
8705 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8707 # Ok, now we have the path, separated by spaces, we can step through it
8708 # and add multilib dir if necessary.
8709 lt_tmp_lt_search_path_spec=
8710 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8711 for lt_sys_path in $lt_search_path_spec; do
8712 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8714 else
8715 test -d "$lt_sys_path" && \
8716 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8718 done
8719 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8720 BEGIN {RS=" "; FS="/|\n";} {
8721 lt_foo="";
8722 lt_count=0;
8723 for (lt_i = NF; lt_i > 0; lt_i--) {
8724 if ($lt_i != "" && $lt_i != ".") {
8725 if ($lt_i == "..") {
8726 lt_count++;
8727 } else {
8728 if (lt_count == 0) {
8729 lt_foo="/" $lt_i lt_foo;
8730 } else {
8731 lt_count--;
8736 if (lt_foo != "") { lt_freq[lt_foo]++; }
8737 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8739 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8740 else
8741 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8743 library_names_spec=
8744 libname_spec='lib$name'
8745 soname_spec=
8746 shrext_cmds=".so"
8747 postinstall_cmds=
8748 postuninstall_cmds=
8749 finish_cmds=
8750 finish_eval=
8751 shlibpath_var=
8752 shlibpath_overrides_runpath=unknown
8753 version_type=none
8754 dynamic_linker="$host_os ld.so"
8755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8756 need_lib_prefix=unknown
8757 hardcode_into_libs=no
8759 # when you set need_version to no, make sure it does not cause -set_version
8760 # flags to be left without arguments
8761 need_version=unknown
8763 case $host_os in
8764 aix3*)
8765 version_type=linux
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8767 shlibpath_var=LIBPATH
8769 # AIX 3 has no versioning support, so we append a major version to the name.
8770 soname_spec='${libname}${release}${shared_ext}$major'
8773 aix4* | aix5*)
8774 version_type=linux
8775 need_lib_prefix=no
8776 need_version=no
8777 hardcode_into_libs=yes
8778 if test "$host_cpu" = ia64; then
8779 # AIX 5 supports IA64
8780 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 else
8783 # With GCC up to 2.95.x, collect2 would create an import file
8784 # for dependence libraries. The import file would start with
8785 # the line `#! .'. This would cause the generated library to
8786 # depend on `.', always an invalid library. This was fixed in
8787 # development snapshots of GCC prior to 3.0.
8788 case $host_os in
8789 aix4 | aix4.[01] | aix4.[01].*)
8790 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8791 echo ' yes '
8792 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8794 else
8795 can_build_shared=no
8798 esac
8799 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8800 # soname into executable. Probably we can add versioning support to
8801 # collect2, so additional links can be useful in future.
8802 if test "$aix_use_runtimelinking" = yes; then
8803 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8804 # instead of lib<name>.a to let people know that these are not
8805 # typical AIX shared libraries.
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807 else
8808 # We preserve .a as extension for shared libraries through AIX4.2
8809 # and later when we are not doing run time linking.
8810 library_names_spec='${libname}${release}.a $libname.a'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8813 shlibpath_var=LIBPATH
8817 amigaos*)
8818 if test "$host_cpu" = m68k; then
8819 library_names_spec='$libname.ixlibrary $libname.a'
8820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8821 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'
8822 else
8823 dynamic_linker=no
8827 beos*)
8828 library_names_spec='${libname}${shared_ext}'
8829 dynamic_linker="$host_os ld.so"
8830 shlibpath_var=LIBRARY_PATH
8833 bsdi[45]*)
8834 version_type=linux
8835 need_version=no
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8842 # the default ld.so.conf also contains /usr/contrib/lib and
8843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8844 # libtool to hard-code these into programs
8847 cygwin* | mingw* | pw32*)
8848 version_type=windows
8849 shrext_cmds=".dll"
8850 need_version=no
8851 need_lib_prefix=no
8853 case $withGCC,$host_os in
8854 yes,cygwin* | yes,mingw* | yes,pw32*)
8855 library_names_spec='$libname.dll.a'
8856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8857 postinstall_cmds='base_file=`basename \${file}`~
8858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8859 dldir=$destdir/`dirname \$dlpath`~
8860 test -d \$dldir || mkdir -p \$dldir~
8861 $install_prog $dir/$dlname \$dldir/$dlname~
8862 chmod a+x \$dldir/$dlname~
8863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8867 dlpath=$dir/\$dldll~
8868 $RM \$dlpath'
8869 shlibpath_overrides_runpath=yes
8871 case $host_os in
8872 cygwin*)
8873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8877 mingw*)
8878 # MinGW DLLs use traditional 'lib' prefix
8879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8882 # It is most probably a Windows format PATH printed by
8883 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8884 # path with ; separators, and with drive letters. We can handle the
8885 # drive letters (cygwin fileutils understands them), so leave them,
8886 # especially as we might pass files found there to a mingw objdump,
8887 # which wouldn't understand a cygwinified path. Ahh.
8888 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8889 else
8890 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8893 pw32*)
8894 # pw32 DLLs use 'pw' prefix rather than 'lib'
8895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897 esac
8901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8903 esac
8904 dynamic_linker='Win32 ld.exe'
8905 # FIXME: first we should search . and the directory the executable is in
8906 shlibpath_var=PATH
8909 darwin* | rhapsody*)
8910 dynamic_linker="$host_os dyld"
8911 version_type=darwin
8912 need_lib_prefix=no
8913 need_version=no
8914 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8915 soname_spec='${libname}${release}${major}$shared_ext'
8916 shlibpath_overrides_runpath=yes
8917 shlibpath_var=DYLD_LIBRARY_PATH
8918 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8920 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8924 dgux*)
8925 version_type=linux
8926 need_lib_prefix=no
8927 need_version=no
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 shlibpath_var=LD_LIBRARY_PATH
8933 freebsd1*)
8934 dynamic_linker=no
8937 freebsd* | dragonfly*)
8938 # DragonFly does not have aout. When/if they implement a new
8939 # versioning mechanism, adjust this.
8940 if test -x /usr/bin/objformat; then
8941 objformat=`/usr/bin/objformat`
8942 else
8943 case $host_os in
8944 freebsd[123]*) objformat=aout ;;
8945 *) objformat=elf ;;
8946 esac
8948 version_type=freebsd-$objformat
8949 case $version_type in
8950 freebsd-elf*)
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8952 need_version=no
8953 need_lib_prefix=no
8955 freebsd-*)
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8957 need_version=yes
8959 esac
8960 shlibpath_var=LD_LIBRARY_PATH
8961 case $host_os in
8962 freebsd2*)
8963 shlibpath_overrides_runpath=yes
8965 freebsd3.[01]* | freebsdelf3.[01]*)
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8971 shlibpath_overrides_runpath=no
8972 hardcode_into_libs=yes
8974 *) # from 4.6 on, and DragonFly
8975 shlibpath_overrides_runpath=yes
8976 hardcode_into_libs=yes
8978 esac
8981 gnu*)
8982 version_type=linux
8983 need_lib_prefix=no
8984 need_version=no
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 hardcode_into_libs=yes
8991 hpux9* | hpux10* | hpux11*)
8992 # Give a soname corresponding to the major version so that dld.sl refuses to
8993 # link against other versions.
8994 version_type=sunos
8995 need_lib_prefix=no
8996 need_version=no
8997 case $host_cpu in
8998 ia64*)
8999 shrext_cmds='.so'
9000 hardcode_into_libs=yes
9001 dynamic_linker="$host_os dld.so"
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 if test "X$HPUX_IA64_MODE" = X32; then
9007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9008 else
9009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9013 hppa*64*)
9014 shrext_cmds='.sl'
9015 hardcode_into_libs=yes
9016 dynamic_linker="$host_os dld.sl"
9017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9025 shrext_cmds='.sl'
9026 dynamic_linker="$host_os dld.sl"
9027 shlibpath_var=SHLIB_PATH
9028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9032 esac
9033 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9034 postinstall_cmds='chmod 555 $lib'
9037 interix[3-9]*)
9038 version_type=linux
9039 need_lib_prefix=no
9040 need_version=no
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=no
9046 hardcode_into_libs=yes
9049 irix5* | irix6* | nonstopux*)
9050 case $host_os in
9051 nonstopux*) version_type=nonstopux ;;
9053 if test "$lt_cv_prog_gnu_ld" = yes; then
9054 version_type=linux
9055 else
9056 version_type=irix
9057 fi ;;
9058 esac
9059 need_lib_prefix=no
9060 need_version=no
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9063 case $host_os in
9064 irix5* | nonstopux*)
9065 libsuff= shlibsuff=
9068 case $LD in # libtool.m4 will add one of these switches to LD
9069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9070 libsuff= shlibsuff= libmagic=32-bit;;
9071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9072 libsuff=32 shlibsuff=N32 libmagic=N32;;
9073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9075 *) libsuff= shlibsuff= libmagic=never-match;;
9076 esac
9078 esac
9079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9080 shlibpath_overrides_runpath=no
9081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9083 hardcode_into_libs=yes
9086 # No shared lib support for Linux oldld, aout, or coff.
9087 linux*oldld* | linux*aout* | linux*coff*)
9088 dynamic_linker=no
9091 # This must be Linux ELF.
9092 linux* | k*bsd*-gnu)
9093 version_type=linux
9094 need_lib_prefix=no
9095 need_version=no
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=no
9101 # Some binutils ld are patched to set DT_RUNPATH
9102 save_LDFLAGS=$LDFLAGS
9103 save_libdir=$libdir
9104 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9105 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9114 main ()
9118 return 0;
9120 _ACEOF
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123 (eval $ac_link) 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -z "$ac_c_werror_flag"
9131 || test ! -s conftest.err'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; } &&
9137 { ac_try='test -s conftest$ac_exeext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9144 shlibpath_overrides_runpath=yes
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9152 rm -f conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LDFLAGS=$save_LDFLAGS
9155 libdir=$save_libdir
9157 # This implies no fast_install, which is unacceptable.
9158 # Some rework will be needed to allow for fast_install
9159 # before this can be enabled.
9160 hardcode_into_libs=yes
9162 # Append ld.so.conf contents to the search path
9163 if test -f /etc/ld.so.conf; then
9164 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9168 # We used to test for /lib/ld.so.1 and disable shared libraries on
9169 # powerpc, because MkLinux only supported shared libraries with the
9170 # GNU dynamic linker. Since this was broken with cross compilers,
9171 # most powerpc-linux boxes support dynamic linking these days and
9172 # people can always --disable-shared, the test was removed, and we
9173 # assume the GNU/Linux dynamic linker is in use.
9174 dynamic_linker='GNU/Linux ld.so'
9177 netbsd*)
9178 version_type=sunos
9179 need_lib_prefix=no
9180 need_version=no
9181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9184 dynamic_linker='NetBSD (a.out) ld.so'
9185 else
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 dynamic_linker='NetBSD ld.elf_so'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=yes
9192 hardcode_into_libs=yes
9195 newsos6)
9196 version_type=linux
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=yes
9202 *nto* | *qnx*)
9203 version_type=qnx
9204 need_lib_prefix=no
9205 need_version=no
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=no
9210 hardcode_into_libs=yes
9211 dynamic_linker='ldqnx.so'
9214 openbsd*)
9215 version_type=sunos
9216 sys_lib_dlsearch_path_spec="/usr/lib"
9217 need_lib_prefix=no
9218 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9219 case $host_os in
9220 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9221 *) need_version=no ;;
9222 esac
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9227 case $host_os in
9228 openbsd2.[89] | openbsd2.[89].*)
9229 shlibpath_overrides_runpath=no
9232 shlibpath_overrides_runpath=yes
9234 esac
9235 else
9236 shlibpath_overrides_runpath=yes
9240 os2*)
9241 libname_spec='$name'
9242 shrext_cmds=".dll"
9243 need_lib_prefix=no
9244 library_names_spec='$libname${shared_ext} $libname.a'
9245 dynamic_linker='OS/2 ld.exe'
9246 shlibpath_var=LIBPATH
9249 osf3* | osf4* | osf5*)
9250 version_type=osf
9251 need_lib_prefix=no
9252 need_version=no
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9260 rdos*)
9261 dynamic_linker=no
9264 solaris*)
9265 version_type=linux
9266 need_lib_prefix=no
9267 need_version=no
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 shlibpath_overrides_runpath=yes
9272 hardcode_into_libs=yes
9273 # ldd complains unless libraries are executable
9274 postinstall_cmds='chmod +x $lib'
9277 sunos4*)
9278 version_type=sunos
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 shlibpath_overrides_runpath=yes
9283 if test "$with_gnu_ld" = yes; then
9284 need_lib_prefix=no
9286 need_version=yes
9289 sysv4 | sysv4.3*)
9290 version_type=linux
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292 soname_spec='${libname}${release}${shared_ext}$major'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 case $host_vendor in
9295 sni)
9296 shlibpath_overrides_runpath=no
9297 need_lib_prefix=no
9298 runpath_var=LD_RUN_PATH
9300 siemens)
9301 need_lib_prefix=no
9303 motorola)
9304 need_lib_prefix=no
9305 need_version=no
9306 shlibpath_overrides_runpath=no
9307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9309 esac
9312 sysv4*MP*)
9313 if test -d /usr/nec ;then
9314 version_type=linux
9315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9316 soname_spec='$libname${shared_ext}.$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9322 version_type=freebsd-elf
9323 need_lib_prefix=no
9324 need_version=no
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=yes
9329 hardcode_into_libs=yes
9330 if test "$with_gnu_ld" = yes; then
9331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9332 else
9333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9334 case $host_os in
9335 sco3.2v5*)
9336 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9338 esac
9340 sys_lib_dlsearch_path_spec='/usr/lib'
9343 tpf*)
9344 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9345 version_type=linux
9346 need_lib_prefix=no
9347 need_version=no
9348 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 shlibpath_overrides_runpath=no
9351 hardcode_into_libs=yes
9354 uts4*)
9355 version_type=linux
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 shlibpath_var=LD_LIBRARY_PATH
9362 dynamic_linker=no
9364 esac
9365 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9366 echo "${ECHO_T}$dynamic_linker" >&6
9367 test "$dynamic_linker" = no && can_build_shared=no
9369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9370 if test "$GCC" = yes; then
9371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9460 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9461 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9462 hardcode_action=
9463 if test -n "$hardcode_libdir_flag_spec" ||
9464 test -n "$runpath_var" ||
9465 test "X$hardcode_automatic" = "Xyes" ; then
9467 # We can hardcode non-existent directories.
9468 if test "$hardcode_direct" != no &&
9469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9470 # have to relink, otherwise we might link with an installed library
9471 # when we should be linking with a yet-to-be-installed one
9472 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9473 test "$hardcode_minus_L" != no; then
9474 # Linking always hardcodes the temporary library directory.
9475 hardcode_action=relink
9476 else
9477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9478 hardcode_action=immediate
9480 else
9481 # We cannot hardcode anything, or else we can only hardcode existing
9482 # directories.
9483 hardcode_action=unsupported
9485 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9486 echo "${ECHO_T}$hardcode_action" >&6
9488 if test "$hardcode_action" = relink ||
9489 test "$inherit_rpath" = yes; then
9490 # Fast installation is not supported
9491 enable_fast_install=no
9492 elif test "$shlibpath_overrides_runpath" = yes ||
9493 test "$enable_shared" = no; then
9494 # Fast installation is not necessary
9495 enable_fast_install=needless
9503 if test "x$enable_dlopen" != xyes; then
9504 enable_dlopen=unknown
9505 enable_dlopen_self=unknown
9506 enable_dlopen_self_static=unknown
9507 else
9508 lt_cv_dlopen=no
9509 lt_cv_dlopen_libs=
9511 case $host_os in
9512 beos*)
9513 lt_cv_dlopen="load_add_on"
9514 lt_cv_dlopen_libs=
9515 lt_cv_dlopen_self=yes
9518 mingw* | pw32*)
9519 lt_cv_dlopen="LoadLibrary"
9520 lt_cv_dlopen_libs=
9523 cygwin*)
9524 lt_cv_dlopen="dlopen"
9525 lt_cv_dlopen_libs=
9528 darwin*)
9529 # if libdl is installed we need to link against it
9530 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9531 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9532 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 ac_check_lib_save_LIBS=$LIBS
9536 LIBS="-ldl $LIBS"
9537 cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h. */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9544 /* Override any gcc2 internal prototype to avoid an error. */
9545 #ifdef __cplusplus
9546 extern "C"
9547 #endif
9548 /* We use char because int might match the return type of a gcc2
9549 builtin and then its argument prototype would still apply. */
9550 char dlopen ();
9552 main ()
9554 dlopen ();
9556 return 0;
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag"
9569 || test ! -s conftest.err'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try='test -s conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_lib_dl_dlopen=yes
9582 else
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_cv_lib_dl_dlopen=no
9588 rm -f conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9590 LIBS=$ac_check_lib_save_LIBS
9592 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9593 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9594 if test $ac_cv_lib_dl_dlopen = yes; then
9595 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9596 else
9598 lt_cv_dlopen="dyld"
9599 lt_cv_dlopen_libs=
9600 lt_cv_dlopen_self=yes
9607 echo "$as_me:$LINENO: checking for shl_load" >&5
9608 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9609 if test "${ac_cv_func_shl_load+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h. */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9620 #define shl_load innocuous_shl_load
9622 /* System header to define __stub macros and hopefully few prototypes,
9623 which can conflict with char shl_load (); below.
9624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9625 <limits.h> exists even on freestanding compilers. */
9627 #ifdef __STDC__
9628 # include <limits.h>
9629 #else
9630 # include <assert.h>
9631 #endif
9633 #undef shl_load
9635 /* Override any gcc2 internal prototype to avoid an error. */
9636 #ifdef __cplusplus
9637 extern "C"
9639 #endif
9640 /* We use char because int might match the return type of a gcc2
9641 builtin and then its argument prototype would still apply. */
9642 char shl_load ();
9643 /* The GNU C library defines this for functions which it implements
9644 to always fail with ENOSYS. Some functions are actually named
9645 something starting with __ and the normal name is an alias. */
9646 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9647 choke me
9648 #else
9649 char (*f) () = shl_load;
9650 #endif
9651 #ifdef __cplusplus
9653 #endif
9656 main ()
9658 return f != shl_load;
9660 return 0;
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665 (eval $ac_link) 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag"
9673 || test ! -s conftest.err'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
9685 ac_cv_func_shl_load=yes
9686 else
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9690 ac_cv_func_shl_load=no
9692 rm -f conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9695 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9696 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9697 if test $ac_cv_func_shl_load = yes; then
9698 lt_cv_dlopen="shl_load"
9699 else
9700 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9701 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9702 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705 ac_check_lib_save_LIBS=$LIBS
9706 LIBS="-ldld $LIBS"
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h. */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9714 /* Override any gcc2 internal prototype to avoid an error. */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 /* We use char because int might match the return type of a gcc2
9719 builtin and then its argument prototype would still apply. */
9720 char shl_load ();
9722 main ()
9724 shl_load ();
9726 return 0;
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731 (eval $ac_link) 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag"
9739 || test ! -s conftest.err'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; } &&
9745 { ac_try='test -s conftest$ac_exeext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_cv_lib_dld_shl_load=yes
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_cv_lib_dld_shl_load=no
9758 rm -f conftest.err conftest.$ac_objext \
9759 conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9762 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9763 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9764 if test $ac_cv_lib_dld_shl_load = yes; then
9765 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9766 else
9767 echo "$as_me:$LINENO: checking for dlopen" >&5
9768 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9769 if test "${ac_cv_func_dlopen+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h. */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9780 #define dlopen innocuous_dlopen
9782 /* System header to define __stub macros and hopefully few prototypes,
9783 which can conflict with char dlopen (); below.
9784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9785 <limits.h> exists even on freestanding compilers. */
9787 #ifdef __STDC__
9788 # include <limits.h>
9789 #else
9790 # include <assert.h>
9791 #endif
9793 #undef dlopen
9795 /* Override any gcc2 internal prototype to avoid an error. */
9796 #ifdef __cplusplus
9797 extern "C"
9799 #endif
9800 /* We use char because int might match the return type of a gcc2
9801 builtin and then its argument prototype would still apply. */
9802 char dlopen ();
9803 /* The GNU C library defines this for functions which it implements
9804 to always fail with ENOSYS. Some functions are actually named
9805 something starting with __ and the normal name is an alias. */
9806 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9807 choke me
9808 #else
9809 char (*f) () = dlopen;
9810 #endif
9811 #ifdef __cplusplus
9813 #endif
9816 main ()
9818 return f != dlopen;
9820 return 0;
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825 (eval $ac_link) 2>conftest.er1
9826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag"
9833 || test ! -s conftest.err'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 (eval $ac_try) 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_func_dlopen=yes
9846 else
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_cv_func_dlopen=no
9852 rm -f conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9855 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9856 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9857 if test $ac_cv_func_dlopen = yes; then
9858 lt_cv_dlopen="dlopen"
9859 else
9860 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9861 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9862 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865 ac_check_lib_save_LIBS=$LIBS
9866 LIBS="-ldl $LIBS"
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9874 /* Override any gcc2 internal prototype to avoid an error. */
9875 #ifdef __cplusplus
9876 extern "C"
9877 #endif
9878 /* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9880 char dlopen ();
9882 main ()
9884 dlopen ();
9886 return 0;
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_lib_dl_dlopen=yes
9912 else
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9916 ac_cv_lib_dl_dlopen=no
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LIBS=$ac_check_lib_save_LIBS
9922 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9923 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9924 if test $ac_cv_lib_dl_dlopen = yes; then
9925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9926 else
9927 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9928 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9929 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932 ac_check_lib_save_LIBS=$LIBS
9933 LIBS="-lsvld $LIBS"
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h. */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9941 /* Override any gcc2 internal prototype to avoid an error. */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 /* We use char because int might match the return type of a gcc2
9946 builtin and then its argument prototype would still apply. */
9947 char dlopen ();
9949 main ()
9951 dlopen ();
9953 return 0;
9955 _ACEOF
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958 (eval $ac_link) 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_lib_svld_dlopen=yes
9979 else
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_cv_lib_svld_dlopen=no
9985 rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 LIBS=$ac_check_lib_save_LIBS
9989 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9990 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9991 if test $ac_cv_lib_svld_dlopen = yes; then
9992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9993 else
9994 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9995 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9996 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999 ac_check_lib_save_LIBS=$LIBS
10000 LIBS="-ldld $LIBS"
10001 cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h. */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10008 /* Override any gcc2 internal prototype to avoid an error. */
10009 #ifdef __cplusplus
10010 extern "C"
10011 #endif
10012 /* We use char because int might match the return type of a gcc2
10013 builtin and then its argument prototype would still apply. */
10014 char dld_link ();
10016 main ()
10018 dld_link ();
10020 return 0;
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_lib_dld_dld_link=yes
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_cv_lib_dld_dld_link=no
10052 rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10056 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10057 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10058 if test $ac_cv_lib_dld_dld_link = yes; then
10059 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10078 esac
10080 if test "x$lt_cv_dlopen" != xno; then
10081 enable_dlopen=yes
10082 else
10083 enable_dlopen=no
10086 case $lt_cv_dlopen in
10087 dlopen)
10088 save_CPPFLAGS="$CPPFLAGS"
10089 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10091 save_LDFLAGS="$LDFLAGS"
10092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10094 save_LIBS="$LIBS"
10095 LIBS="$lt_cv_dlopen_libs $LIBS"
10097 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10098 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10099 if test "${lt_cv_dlopen_self+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102 if test "$cross_compiling" = yes; then :
10103 lt_cv_dlopen_self=cross
10104 else
10105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10106 lt_status=$lt_dlunknown
10107 cat > conftest.$ac_ext <<_LT_EOF
10108 #line 10108 "configure"
10109 #include "confdefs.h"
10111 #if HAVE_DLFCN_H
10112 #include <dlfcn.h>
10113 #endif
10115 #include <stdio.h>
10117 #ifdef RTLD_GLOBAL
10118 # define LT_DLGLOBAL RTLD_GLOBAL
10119 #else
10120 # ifdef DL_GLOBAL
10121 # define LT_DLGLOBAL DL_GLOBAL
10122 # else
10123 # define LT_DLGLOBAL 0
10124 # endif
10125 #endif
10127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10128 find out it does not work in some platform. */
10129 #ifndef LT_DLLAZY_OR_NOW
10130 # ifdef RTLD_LAZY
10131 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10132 # else
10133 # ifdef DL_LAZY
10134 # define LT_DLLAZY_OR_NOW DL_LAZY
10135 # else
10136 # ifdef RTLD_NOW
10137 # define LT_DLLAZY_OR_NOW RTLD_NOW
10138 # else
10139 # ifdef DL_NOW
10140 # define LT_DLLAZY_OR_NOW DL_NOW
10141 # else
10142 # define LT_DLLAZY_OR_NOW 0
10143 # endif
10144 # endif
10145 # endif
10146 # endif
10147 #endif
10149 #ifdef __cplusplus
10150 extern "C" void exit (int);
10151 #endif
10153 void fnord() { int i=42;}
10154 int main ()
10156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10157 int status = $lt_dlunknown;
10159 if (self)
10161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10162 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10163 /* dlclose (self); */
10165 else
10166 puts (dlerror ());
10168 exit (status);
10170 _LT_EOF
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10176 (./conftest; exit; ) >&5 2>/dev/null
10177 lt_status=$?
10178 case x$lt_status in
10179 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10180 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10181 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10182 esac
10183 else :
10184 # compilation failed
10185 lt_cv_dlopen_self=no
10188 rm -fr conftest*
10192 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10193 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10195 if test "x$lt_cv_dlopen_self" = xyes; then
10196 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10197 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10198 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10199 if test "${lt_cv_dlopen_self_static+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 if test "$cross_compiling" = yes; then :
10203 lt_cv_dlopen_self_static=cross
10204 else
10205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10206 lt_status=$lt_dlunknown
10207 cat > conftest.$ac_ext <<_LT_EOF
10208 #line 10208 "configure"
10209 #include "confdefs.h"
10211 #if HAVE_DLFCN_H
10212 #include <dlfcn.h>
10213 #endif
10215 #include <stdio.h>
10217 #ifdef RTLD_GLOBAL
10218 # define LT_DLGLOBAL RTLD_GLOBAL
10219 #else
10220 # ifdef DL_GLOBAL
10221 # define LT_DLGLOBAL DL_GLOBAL
10222 # else
10223 # define LT_DLGLOBAL 0
10224 # endif
10225 #endif
10227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10228 find out it does not work in some platform. */
10229 #ifndef LT_DLLAZY_OR_NOW
10230 # ifdef RTLD_LAZY
10231 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10232 # else
10233 # ifdef DL_LAZY
10234 # define LT_DLLAZY_OR_NOW DL_LAZY
10235 # else
10236 # ifdef RTLD_NOW
10237 # define LT_DLLAZY_OR_NOW RTLD_NOW
10238 # else
10239 # ifdef DL_NOW
10240 # define LT_DLLAZY_OR_NOW DL_NOW
10241 # else
10242 # define LT_DLLAZY_OR_NOW 0
10243 # endif
10244 # endif
10245 # endif
10246 # endif
10247 #endif
10249 #ifdef __cplusplus
10250 extern "C" void exit (int);
10251 #endif
10253 void fnord() { int i=42;}
10254 int main ()
10256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10257 int status = $lt_dlunknown;
10259 if (self)
10261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10262 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10263 /* dlclose (self); */
10265 else
10266 puts (dlerror ());
10268 exit (status);
10270 _LT_EOF
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10276 (./conftest; exit; ) >&5 2>/dev/null
10277 lt_status=$?
10278 case x$lt_status in
10279 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10280 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10281 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10282 esac
10283 else :
10284 # compilation failed
10285 lt_cv_dlopen_self_static=no
10288 rm -fr conftest*
10292 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10293 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10296 CPPFLAGS="$save_CPPFLAGS"
10297 LDFLAGS="$save_LDFLAGS"
10298 LIBS="$save_LIBS"
10300 esac
10302 case $lt_cv_dlopen_self in
10303 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10304 *) enable_dlopen_self=unknown ;;
10305 esac
10307 case $lt_cv_dlopen_self_static in
10308 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10309 *) enable_dlopen_self_static=unknown ;;
10310 esac
10329 striplib=
10330 old_striplib=
10331 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10332 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10333 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10334 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10335 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10336 echo "$as_me:$LINENO: result: yes" >&5
10337 echo "${ECHO_T}yes" >&6
10338 else
10339 # FIXME - insert some real tests, host_os isn't really good enough
10340 case $host_os in
10341 darwin*)
10342 if test -n "$STRIP" ; then
10343 striplib="$STRIP -x"
10344 old_striplib="$STRIP -S"
10345 echo "$as_me:$LINENO: result: yes" >&5
10346 echo "${ECHO_T}yes" >&6
10347 else
10348 echo "$as_me:$LINENO: result: no" >&5
10349 echo "${ECHO_T}no" >&6
10353 echo "$as_me:$LINENO: result: no" >&5
10354 echo "${ECHO_T}no" >&6
10356 esac
10370 # Report which library types will actually be built
10371 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10372 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10373 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10374 echo "${ECHO_T}$can_build_shared" >&6
10376 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10377 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10378 test "$can_build_shared" = "no" && enable_shared=no
10380 # On AIX, shared libraries and static libraries use the same namespace, and
10381 # are all built from PIC.
10382 case $host_os in
10383 aix3*)
10384 test "$enable_shared" = yes && enable_static=no
10385 if test -n "$RANLIB"; then
10386 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10387 postinstall_cmds='$RANLIB $lib'
10391 aix4* | aix5*)
10392 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10393 test "$enable_shared" = yes && enable_static=no
10396 esac
10397 echo "$as_me:$LINENO: result: $enable_shared" >&5
10398 echo "${ECHO_T}$enable_shared" >&6
10400 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10401 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10402 # Make sure either enable_shared or enable_static is yes.
10403 test "$enable_shared" = yes || enable_static=yes
10404 echo "$as_me:$LINENO: result: $enable_static" >&5
10405 echo "${ECHO_T}$enable_static" >&6
10411 ac_ext=c
10412 ac_cpp='$CPP $CPPFLAGS'
10413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10417 CC="$lt_save_CC"
10431 ac_config_commands="$ac_config_commands libtool"
10436 # Only expand once:
10440 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10441 if test "${enable_64_bit_bfd+set}" = set; then
10442 enableval="$enable_64_bit_bfd"
10443 case "${enableval}" in
10444 yes) want64=true ;;
10445 no) want64=false ;;
10446 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10447 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10448 { (exit 1); exit 1; }; } ;;
10449 esac
10450 else
10451 want64=false
10452 fi; # Check whether --enable-targets or --disable-targets was given.
10453 if test "${enable_targets+set}" = set; then
10454 enableval="$enable_targets"
10455 case "${enableval}" in
10456 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10457 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10458 { (exit 1); exit 1; }; }
10460 no) enable_targets= ;;
10461 *) enable_targets=$enableval ;;
10462 esac
10463 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10464 if test "${enable_commonbfdlib+set}" = set; then
10465 enableval="$enable_commonbfdlib"
10466 case "${enableval}" in
10467 yes) commonbfdlib=true ;;
10468 no) commonbfdlib=false ;;
10469 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10470 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10471 { (exit 1); exit 1; }; } ;;
10472 esac
10474 # Check whether --with-mmap or --without-mmap was given.
10475 if test "${with_mmap+set}" = set; then
10476 withval="$with_mmap"
10477 case "${withval}" in
10478 yes) want_mmap=true ;;
10479 no) want_mmap=false ;;
10480 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10481 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10482 { (exit 1); exit 1; }; } ;;
10483 esac
10484 else
10485 want_mmap=false
10487 # Check whether --enable-secureplt or --disable-secureplt was given.
10488 if test "${enable_secureplt+set}" = set; then
10489 enableval="$enable_secureplt"
10490 case "${enableval}" in
10491 yes) use_secureplt=true ;;
10492 no) use_secureplt=false ;;
10493 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10494 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10495 { (exit 1); exit 1; }; } ;;
10496 esac
10497 else
10498 use_secureplt=false
10499 fi; if test $use_secureplt = true; then
10501 cat >>confdefs.h <<\_ACEOF
10502 #define USE_SECUREPLT 1
10503 _ACEOF
10507 DEBUGDIR=${libdir}/debug
10510 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10511 if test "${with_separate_debug_dir+set}" = set; then
10512 withval="$with_separate_debug_dir"
10513 DEBUGDIR="${withval}"
10519 # Check whether --with-pkgversion or --without-pkgversion was given.
10520 if test "${with_pkgversion+set}" = set; then
10521 withval="$with_pkgversion"
10522 case "$withval" in
10523 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10524 echo "$as_me: error: package version not specified" >&2;}
10525 { (exit 1); exit 1; }; } ;;
10526 no) PKGVERSION= ;;
10527 *) PKGVERSION="($withval) " ;;
10528 esac
10529 else
10530 PKGVERSION="(GNU Binutils) "
10537 # Check whether --with-bugurl or --without-bugurl was given.
10538 if test "${with_bugurl+set}" = set; then
10539 withval="$with_bugurl"
10540 case "$withval" in
10541 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10542 echo "$as_me: error: bug URL not specified" >&2;}
10543 { (exit 1); exit 1; }; } ;;
10544 no) BUGURL=
10546 *) BUGURL="$withval"
10548 esac
10549 else
10550 BUGURL="http://www.sourceware.org/bugzilla/"
10553 case ${BUGURL} in
10555 REPORT_BUGS_TO=
10556 REPORT_BUGS_TEXI=
10559 REPORT_BUGS_TO="<$BUGURL>"
10560 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10562 esac;
10568 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10570 # Check whether --enable-werror or --disable-werror was given.
10571 if test "${enable_werror+set}" = set; then
10572 enableval="$enable_werror"
10573 case "${enableval}" in
10574 yes | y) ERROR_ON_WARNING="yes" ;;
10575 no | n) ERROR_ON_WARNING="no" ;;
10576 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10577 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10578 { (exit 1); exit 1; }; } ;;
10579 esac
10582 # Enable -Werror by default when using gcc
10583 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10584 ERROR_ON_WARNING=yes
10587 NO_WERROR=
10588 if test "${ERROR_ON_WARNING}" = yes ; then
10589 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10590 NO_WERROR="-Wno-error"
10593 if test "${GCC}" = yes ; then
10594 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10597 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10598 if test "${enable_build_warnings+set}" = set; then
10599 enableval="$enable_build_warnings"
10600 case "${enableval}" in
10601 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10602 no) if test "${GCC}" = yes ; then
10603 WARN_CFLAGS="-w"
10604 fi;;
10605 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10606 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10607 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10608 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10609 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10610 esac
10613 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10614 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10621 ac_config_headers="$ac_config_headers config.h:config.in"
10624 if test -z "$target" ; then
10625 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10626 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10627 { (exit 1); exit 1; }; }
10630 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10631 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10632 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10633 if test "${enable_maintainer_mode+set}" = set; then
10634 enableval="$enable_maintainer_mode"
10635 USE_MAINTAINER_MODE=$enableval
10636 else
10637 USE_MAINTAINER_MODE=no
10639 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10640 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10643 if test $USE_MAINTAINER_MODE = yes; then
10644 MAINTAINER_MODE_TRUE=
10645 MAINTAINER_MODE_FALSE='#'
10646 else
10647 MAINTAINER_MODE_TRUE='#'
10648 MAINTAINER_MODE_FALSE=
10651 MAINT=$MAINTAINER_MODE_TRUE
10656 if false; then
10657 GENINSRC_NEVER_TRUE=
10658 GENINSRC_NEVER_FALSE='#'
10659 else
10660 GENINSRC_NEVER_TRUE='#'
10661 GENINSRC_NEVER_FALSE=
10664 case ${build_alias} in
10665 "") build_noncanonical=${build} ;;
10666 *) build_noncanonical=${build_alias} ;;
10667 esac
10669 case ${host_alias} in
10670 "") host_noncanonical=${build_noncanonical} ;;
10671 *) host_noncanonical=${host_alias} ;;
10672 esac
10674 case ${target_alias} in
10675 "") target_noncanonical=${host_noncanonical} ;;
10676 *) target_noncanonical=${target_alias} ;;
10677 esac
10679 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10680 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10681 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10682 if test "${enable_install_libbfd+set}" = set; then
10683 enableval="$enable_install_libbfd"
10684 install_libbfd_p=$enableval
10685 else
10686 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10687 install_libbfd_p=yes
10688 else
10689 install_libbfd_p=no
10692 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10693 echo "${ECHO_T}$install_libbfd_p" >&6
10696 if test $install_libbfd_p = yes; then
10697 INSTALL_LIBBFD_TRUE=
10698 INSTALL_LIBBFD_FALSE='#'
10699 else
10700 INSTALL_LIBBFD_TRUE='#'
10701 INSTALL_LIBBFD_FALSE=
10704 # Need _noncanonical variables for this.
10709 # libbfd.a is a host library containing target dependent code
10710 bfdlibdir='$(libdir)'
10711 bfdincludedir='$(includedir)'
10712 if test "${host}" != "${target}"; then
10713 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10714 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10722 host64=false
10723 target64=false
10724 bfd_default_target_size=32
10726 # host stuff:
10728 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
10729 # If we haven't got the data from the intl directory,
10730 # assume NLS is disabled.
10731 USE_NLS=no
10732 LIBINTL=
10733 LIBINTL_DEP=
10734 INCINTL=
10735 XGETTEXT=
10736 GMSGFMT=
10737 POSUB=
10739 if test -f ../intl/config.intl; then
10740 . ../intl/config.intl
10742 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10743 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10744 if test x"$USE_NLS" != xyes; then
10745 echo "$as_me:$LINENO: result: no" >&5
10746 echo "${ECHO_T}no" >&6
10747 else
10748 echo "$as_me:$LINENO: result: yes" >&5
10749 echo "${ECHO_T}yes" >&6
10751 cat >>confdefs.h <<\_ACEOF
10752 #define ENABLE_NLS 1
10753 _ACEOF
10756 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10757 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10758 # Look for .po and .gmo files in the source directory.
10759 CATALOGS=
10760 XLINGUAS=
10761 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10762 # If there aren't any .gmo files the shell will give us the
10763 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10764 # weeded out.
10765 case "$cat" in *\**)
10766 continue;;
10767 esac
10768 # The quadruple backslash is collapsed to a double backslash
10769 # by the backticks, then collapsed again by the double quotes,
10770 # leaving us with one backslash in the sed expression (right
10771 # before the dot that mustn't act as a wildcard).
10772 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10773 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10774 # The user is allowed to set LINGUAS to a list of languages to
10775 # install catalogs for. If it's empty that means "all of them."
10776 if test "x$LINGUAS" = x; then
10777 CATALOGS="$CATALOGS $cat"
10778 XLINGUAS="$XLINGUAS $lang"
10779 else
10780 case "$LINGUAS" in *$lang*)
10781 CATALOGS="$CATALOGS $cat"
10782 XLINGUAS="$XLINGUAS $lang"
10784 esac
10786 done
10787 LINGUAS="$XLINGUAS"
10788 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10789 echo "${ECHO_T}$LINGUAS" >&6
10792 DATADIRNAME=share
10794 INSTOBJEXT=.mo
10796 GENCAT=gencat
10798 CATOBJEXT=.gmo
10802 MKINSTALLDIRS=
10803 if test -n "$ac_aux_dir"; then
10804 case "$ac_aux_dir" in
10805 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10806 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10807 esac
10809 if test -z "$MKINSTALLDIRS"; then
10810 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10815 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10816 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10817 # Check whether --enable-nls or --disable-nls was given.
10818 if test "${enable_nls+set}" = set; then
10819 enableval="$enable_nls"
10820 USE_NLS=$enableval
10821 else
10822 USE_NLS=yes
10824 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10825 echo "${ECHO_T}$USE_NLS" >&6
10832 # Prepare PATH_SEPARATOR.
10833 # The user is always right.
10834 if test "${PATH_SEPARATOR+set}" != set; then
10835 echo "#! /bin/sh" >conf$$.sh
10836 echo "exit 0" >>conf$$.sh
10837 chmod +x conf$$.sh
10838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10839 PATH_SEPARATOR=';'
10840 else
10841 PATH_SEPARATOR=:
10843 rm -f conf$$.sh
10846 # Find out how to test for executable files. Don't use a zero-byte file,
10847 # as systems may use methods other than mode bits to determine executability.
10848 cat >conf$$.file <<_ASEOF
10849 #! /bin/sh
10850 exit 0
10851 _ASEOF
10852 chmod +x conf$$.file
10853 if test -x conf$$.file >/dev/null 2>&1; then
10854 ac_executable_p="test -x"
10855 else
10856 ac_executable_p="test -f"
10858 rm -f conf$$.file
10860 # Extract the first word of "msgfmt", so it can be a program name with args.
10861 set dummy msgfmt; ac_word=$2
10862 echo "$as_me:$LINENO: checking for $ac_word" >&5
10863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10864 if test "${ac_cv_path_MSGFMT+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
10867 case "$MSGFMT" in
10868 [\\/]* | ?:[\\/]*)
10869 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10872 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10873 for ac_dir in $PATH; do
10874 IFS="$ac_save_IFS"
10875 test -z "$ac_dir" && ac_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10878 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10879 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10880 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10881 break 2
10884 done
10885 done
10886 IFS="$ac_save_IFS"
10887 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10889 esac
10891 MSGFMT="$ac_cv_path_MSGFMT"
10892 if test "$MSGFMT" != ":"; then
10893 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10894 echo "${ECHO_T}$MSGFMT" >&6
10895 else
10896 echo "$as_me:$LINENO: result: no" >&5
10897 echo "${ECHO_T}no" >&6
10900 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10901 set dummy gmsgfmt; ac_word=$2
10902 echo "$as_me:$LINENO: checking for $ac_word" >&5
10903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10904 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907 case $GMSGFMT in
10908 [\\/]* | ?:[\\/]*)
10909 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10919 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10923 done
10924 done
10926 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10928 esac
10930 GMSGFMT=$ac_cv_path_GMSGFMT
10932 if test -n "$GMSGFMT"; then
10933 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10934 echo "${ECHO_T}$GMSGFMT" >&6
10935 else
10936 echo "$as_me:$LINENO: result: no" >&5
10937 echo "${ECHO_T}no" >&6
10942 # Prepare PATH_SEPARATOR.
10943 # The user is always right.
10944 if test "${PATH_SEPARATOR+set}" != set; then
10945 echo "#! /bin/sh" >conf$$.sh
10946 echo "exit 0" >>conf$$.sh
10947 chmod +x conf$$.sh
10948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10949 PATH_SEPARATOR=';'
10950 else
10951 PATH_SEPARATOR=:
10953 rm -f conf$$.sh
10956 # Find out how to test for executable files. Don't use a zero-byte file,
10957 # as systems may use methods other than mode bits to determine executability.
10958 cat >conf$$.file <<_ASEOF
10959 #! /bin/sh
10960 exit 0
10961 _ASEOF
10962 chmod +x conf$$.file
10963 if test -x conf$$.file >/dev/null 2>&1; then
10964 ac_executable_p="test -x"
10965 else
10966 ac_executable_p="test -f"
10968 rm -f conf$$.file
10970 # Extract the first word of "xgettext", so it can be a program name with args.
10971 set dummy xgettext; ac_word=$2
10972 echo "$as_me:$LINENO: checking for $ac_word" >&5
10973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10974 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977 case "$XGETTEXT" in
10978 [\\/]* | ?:[\\/]*)
10979 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10982 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10983 for ac_dir in $PATH; do
10984 IFS="$ac_save_IFS"
10985 test -z "$ac_dir" && ac_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10988 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10989 (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
10990 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10991 break 2
10994 done
10995 done
10996 IFS="$ac_save_IFS"
10997 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10999 esac
11001 XGETTEXT="$ac_cv_path_XGETTEXT"
11002 if test "$XGETTEXT" != ":"; then
11003 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11004 echo "${ECHO_T}$XGETTEXT" >&6
11005 else
11006 echo "$as_me:$LINENO: result: no" >&5
11007 echo "${ECHO_T}no" >&6
11010 rm -f messages.po
11013 # Prepare PATH_SEPARATOR.
11014 # The user is always right.
11015 if test "${PATH_SEPARATOR+set}" != set; then
11016 echo "#! /bin/sh" >conf$$.sh
11017 echo "exit 0" >>conf$$.sh
11018 chmod +x conf$$.sh
11019 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11020 PATH_SEPARATOR=';'
11021 else
11022 PATH_SEPARATOR=:
11024 rm -f conf$$.sh
11027 # Find out how to test for executable files. Don't use a zero-byte file,
11028 # as systems may use methods other than mode bits to determine executability.
11029 cat >conf$$.file <<_ASEOF
11030 #! /bin/sh
11031 exit 0
11032 _ASEOF
11033 chmod +x conf$$.file
11034 if test -x conf$$.file >/dev/null 2>&1; then
11035 ac_executable_p="test -x"
11036 else
11037 ac_executable_p="test -f"
11039 rm -f conf$$.file
11041 # Extract the first word of "msgmerge", so it can be a program name with args.
11042 set dummy msgmerge; ac_word=$2
11043 echo "$as_me:$LINENO: checking for $ac_word" >&5
11044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11045 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 case "$MSGMERGE" in
11049 [\\/]* | ?:[\\/]*)
11050 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11053 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11054 for ac_dir in $PATH; do
11055 IFS="$ac_save_IFS"
11056 test -z "$ac_dir" && ac_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11059 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11060 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11061 break 2
11064 done
11065 done
11066 IFS="$ac_save_IFS"
11067 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11069 esac
11071 MSGMERGE="$ac_cv_path_MSGMERGE"
11072 if test "$MSGMERGE" != ":"; then
11073 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11074 echo "${ECHO_T}$MSGMERGE" >&6
11075 else
11076 echo "$as_me:$LINENO: result: no" >&5
11077 echo "${ECHO_T}no" >&6
11081 if test "$GMSGFMT" != ":"; then
11082 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11083 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11085 else
11086 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11087 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11088 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11089 GMSGFMT=":"
11093 if test "$XGETTEXT" != ":"; then
11094 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11095 (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
11097 else
11098 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11099 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11100 XGETTEXT=":"
11102 rm -f messages.po
11105 ac_config_commands="$ac_config_commands default-1"
11109 # Permit host specific settings.
11110 . ${srcdir}/configure.host
11113 # Find a good install program. We prefer a C program (faster),
11114 # so one script is as good as another. But avoid the broken or
11115 # incompatible versions:
11116 # SysV /etc/install, /usr/sbin/install
11117 # SunOS /usr/etc/install
11118 # IRIX /sbin/install
11119 # AIX /bin/install
11120 # AmigaOS /C/install, which installs bootblocks on floppy discs
11121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11124 # OS/2's system install, which has a completely different semantic
11125 # ./install, which can be erroneously created by make from ./install.sh.
11126 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11127 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11128 if test -z "$INSTALL"; then
11129 if test "${ac_cv_path_install+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133 for as_dir in $PATH
11135 IFS=$as_save_IFS
11136 test -z "$as_dir" && as_dir=.
11137 # Account for people who put trailing slashes in PATH elements.
11138 case $as_dir/ in
11139 ./ | .// | /cC/* | \
11140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11142 /usr/ucb/* ) ;;
11144 # OSF1 and SCO ODT 3.0 have their own names for install.
11145 # Don't use installbsd from OSF since it installs stuff as root
11146 # by default.
11147 for ac_prog in ginstall scoinst install; do
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11150 if test $ac_prog = install &&
11151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11152 # AIX install. It has an incompatible calling convention.
11154 elif test $ac_prog = install &&
11155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11156 # program-specific install script used by HP pwplus--don't use.
11158 else
11159 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11160 break 3
11163 done
11164 done
11166 esac
11167 done
11171 if test "${ac_cv_path_install+set}" = set; then
11172 INSTALL=$ac_cv_path_install
11173 else
11174 # As a last resort, use the slow shell script. We don't cache a
11175 # path for INSTALL within a source directory, because that will
11176 # break other packages using the cache if that directory is
11177 # removed, or if the path is relative.
11178 INSTALL=$ac_install_sh
11181 echo "$as_me:$LINENO: result: $INSTALL" >&5
11182 echo "${ECHO_T}$INSTALL" >&6
11184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11185 # It thinks the first close brace ends the variable substitution.
11186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11193 BFD_HOST_64BIT_LONG=0
11194 BFD_HOST_64BIT_LONG_LONG=0
11195 BFD_HOST_LONG_LONG=0
11196 BFD_HOST_64_BIT_DEFINED=0
11197 BFD_HOST_64_BIT=
11198 BFD_HOST_U_64_BIT=
11199 BFD_HOSTPTR_T="unsigned long"
11201 echo "$as_me:$LINENO: checking for long long" >&5
11202 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11203 if test "${bfd_cv_has_long_long+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h. */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11214 main ()
11216 unsigned long long ll = 18446744073709551615ULL;
11218 return 0;
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>conftest.er1
11224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 bfd_cv_has_long_long=yes
11244 else
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 bfd_cv_has_long_long=no
11250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11253 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
11254 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
11255 if test $bfd_cv_has_long_long = yes; then
11256 BFD_HOST_LONG_LONG=1
11257 echo "$as_me:$LINENO: checking for long long" >&5
11258 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11259 if test "${ac_cv_type_long_long+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 else
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h. */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 $ac_includes_default
11270 main ()
11272 if ((long long *) 0)
11273 return 0;
11274 if (sizeof (long long))
11275 return 0;
11277 return 0;
11279 _ACEOF
11280 rm -f conftest.$ac_objext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11282 (eval $ac_compile) 2>conftest.er1
11283 ac_status=$?
11284 grep -v '^ *+' conftest.er1 >conftest.err
11285 rm -f conftest.er1
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -z "$ac_c_werror_flag"
11290 || test ! -s conftest.err'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; } &&
11296 { ac_try='test -s conftest.$ac_objext'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 ac_cv_type_long_long=yes
11303 else
11304 echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 ac_cv_type_long_long=no
11309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11311 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11312 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11314 echo "$as_me:$LINENO: checking size of long long" >&5
11315 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11316 if test "${ac_cv_sizeof_long_long+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319 if test "$ac_cv_type_long_long" = yes; then
11320 # The cast to unsigned long works around a bug in the HP C Compiler
11321 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11322 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11323 # This bug is HP SR number 8606223364.
11324 if test "$cross_compiling" = yes; then
11325 # Depending upon the size, compute the lo and hi bounds.
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h. */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 $ac_includes_default
11334 main ()
11336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11337 test_array [0] = 0
11340 return 0;
11342 _ACEOF
11343 rm -f conftest.$ac_objext
11344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11345 (eval $ac_compile) 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } &&
11352 { ac_try='test -z "$ac_c_werror_flag"
11353 || test ! -s conftest.err'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 ac_lo=0 ac_mid=0
11366 while :; do
11367 cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h. */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 $ac_includes_default
11375 main ()
11377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11378 test_array [0] = 0
11381 return 0;
11383 _ACEOF
11384 rm -f conftest.$ac_objext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386 (eval $ac_compile) 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } &&
11393 { ac_try='test -z "$ac_c_werror_flag"
11394 || test ! -s conftest.err'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; } &&
11400 { ac_try='test -s conftest.$ac_objext'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 ac_hi=$ac_mid; break
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 ac_lo=`expr $ac_mid + 1`
11412 if test $ac_lo -le $ac_mid; then
11413 ac_lo= ac_hi=
11414 break
11416 ac_mid=`expr 2 '*' $ac_mid + 1`
11418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11419 done
11420 else
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 $ac_includes_default
11432 main ()
11434 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11435 test_array [0] = 0
11438 return 0;
11440 _ACEOF
11441 rm -f conftest.$ac_objext
11442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11443 (eval $ac_compile) 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -z "$ac_c_werror_flag"
11451 || test ! -s conftest.err'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest.$ac_objext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 ac_hi=-1 ac_mid=-1
11464 while :; do
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11473 main ()
11475 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11476 test_array [0] = 0
11479 return 0;
11481 _ACEOF
11482 rm -f conftest.$ac_objext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484 (eval $ac_compile) 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag"
11492 || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest.$ac_objext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_lo=$ac_mid; break
11505 else
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ac_hi=`expr '(' $ac_mid ')' - 1`
11510 if test $ac_mid -le $ac_hi; then
11511 ac_lo= ac_hi=
11512 break
11514 ac_mid=`expr 2 '*' $ac_mid`
11516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11517 done
11518 else
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_lo= ac_hi=
11524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11527 # Binary search between lo and hi bounds.
11528 while test "x$ac_lo" != "x$ac_hi"; do
11529 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11530 cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h. */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 $ac_includes_default
11538 main ()
11540 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11541 test_array [0] = 0
11544 return 0;
11546 _ACEOF
11547 rm -f conftest.$ac_objext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11549 (eval $ac_compile) 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -z "$ac_c_werror_flag"
11557 || test ! -s conftest.err'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; } &&
11563 { ac_try='test -s conftest.$ac_objext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11569 ac_hi=$ac_mid
11570 else
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 ac_lo=`expr '(' $ac_mid ')' + 1`
11576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11577 done
11578 case $ac_lo in
11579 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11580 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11581 See \`config.log' for more details." >&5
11582 echo "$as_me: error: cannot compute sizeof (long long), 77
11583 See \`config.log' for more details." >&2;}
11584 { (exit 1); exit 1; }; } ;;
11585 esac
11586 else
11587 if test "$cross_compiling" = yes; then
11588 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11589 See \`config.log' for more details." >&5
11590 echo "$as_me: error: cannot run test program while cross compiling
11591 See \`config.log' for more details." >&2;}
11592 { (exit 1); exit 1; }; }
11593 else
11594 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h. */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 $ac_includes_default
11601 long longval () { return (long) (sizeof (long long)); }
11602 unsigned long ulongval () { return (long) (sizeof (long long)); }
11603 #include <stdio.h>
11604 #include <stdlib.h>
11606 main ()
11609 FILE *f = fopen ("conftest.val", "w");
11610 if (! f)
11611 exit (1);
11612 if (((long) (sizeof (long long))) < 0)
11614 long i = longval ();
11615 if (i != ((long) (sizeof (long long))))
11616 exit (1);
11617 fprintf (f, "%ld\n", i);
11619 else
11621 unsigned long i = ulongval ();
11622 if (i != ((long) (sizeof (long long))))
11623 exit (1);
11624 fprintf (f, "%lu\n", i);
11626 exit (ferror (f) || fclose (f) != 0);
11629 return 0;
11631 _ACEOF
11632 rm -f conftest$ac_exeext
11633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11634 (eval $ac_link) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_cv_sizeof_long_long=`cat conftest.val`
11644 else
11645 echo "$as_me: program exited with status $ac_status" >&5
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 ( exit $ac_status )
11650 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11651 See \`config.log' for more details." >&5
11652 echo "$as_me: error: cannot compute sizeof (long long), 77
11653 See \`config.log' for more details." >&2;}
11654 { (exit 1); exit 1; }; }
11656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11659 rm -f conftest.val
11660 else
11661 ac_cv_sizeof_long_long=0
11664 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11665 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11666 cat >>confdefs.h <<_ACEOF
11667 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11668 _ACEOF
11673 echo "$as_me:$LINENO: checking for void *" >&5
11674 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11675 if test "${ac_cv_type_void_p+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678 cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h. */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 $ac_includes_default
11686 main ()
11688 if ((void * *) 0)
11689 return 0;
11690 if (sizeof (void *))
11691 return 0;
11693 return 0;
11695 _ACEOF
11696 rm -f conftest.$ac_objext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -z "$ac_c_werror_flag"
11706 || test ! -s conftest.err'
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; } &&
11712 { ac_try='test -s conftest.$ac_objext'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 ac_cv_type_void_p=yes
11719 else
11720 echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11723 ac_cv_type_void_p=no
11725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11727 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11728 echo "${ECHO_T}$ac_cv_type_void_p" >&6
11730 echo "$as_me:$LINENO: checking size of void *" >&5
11731 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11732 if test "${ac_cv_sizeof_void_p+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 if test "$ac_cv_type_void_p" = yes; then
11736 # The cast to unsigned long works around a bug in the HP C Compiler
11737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11739 # This bug is HP SR number 8606223364.
11740 if test "$cross_compiling" = yes; then
11741 # Depending upon the size, compute the lo and hi bounds.
11742 cat >conftest.$ac_ext <<_ACEOF
11743 /* confdefs.h. */
11744 _ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 $ac_includes_default
11750 main ()
11752 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11753 test_array [0] = 0
11756 return 0;
11758 _ACEOF
11759 rm -f conftest.$ac_objext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11761 (eval $ac_compile) 2>conftest.er1
11762 ac_status=$?
11763 grep -v '^ *+' conftest.er1 >conftest.err
11764 rm -f conftest.er1
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -z "$ac_c_werror_flag"
11769 || test ! -s conftest.err'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest.$ac_objext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_lo=0 ac_mid=0
11782 while :; do
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 $ac_includes_default
11791 main ()
11793 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11794 test_array [0] = 0
11797 return 0;
11799 _ACEOF
11800 rm -f conftest.$ac_objext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802 (eval $ac_compile) 2>conftest.er1
11803 ac_status=$?
11804 grep -v '^ *+' conftest.er1 >conftest.err
11805 rm -f conftest.er1
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } &&
11809 { ac_try='test -z "$ac_c_werror_flag"
11810 || test ! -s conftest.err'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; } &&
11816 { ac_try='test -s conftest.$ac_objext'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 ac_hi=$ac_mid; break
11823 else
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 ac_lo=`expr $ac_mid + 1`
11828 if test $ac_lo -le $ac_mid; then
11829 ac_lo= ac_hi=
11830 break
11832 ac_mid=`expr 2 '*' $ac_mid + 1`
11834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11835 done
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h. */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11846 $ac_includes_default
11848 main ()
11850 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11851 test_array [0] = 0
11854 return 0;
11856 _ACEOF
11857 rm -f conftest.$ac_objext
11858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11859 (eval $ac_compile) 2>conftest.er1
11860 ac_status=$?
11861 grep -v '^ *+' conftest.er1 >conftest.err
11862 rm -f conftest.er1
11863 cat conftest.err >&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } &&
11866 { ac_try='test -z "$ac_c_werror_flag"
11867 || test ! -s conftest.err'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; } &&
11873 { ac_try='test -s conftest.$ac_objext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 ac_hi=-1 ac_mid=-1
11880 while :; do
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 $ac_includes_default
11889 main ()
11891 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11892 test_array [0] = 0
11895 return 0;
11897 _ACEOF
11898 rm -f conftest.$ac_objext
11899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11900 (eval $ac_compile) 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_c_werror_flag"
11908 || test ! -s conftest.err'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 ac_lo=$ac_mid; break
11921 else
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 ac_hi=`expr '(' $ac_mid ')' - 1`
11926 if test $ac_mid -le $ac_hi; then
11927 ac_lo= ac_hi=
11928 break
11930 ac_mid=`expr 2 '*' $ac_mid`
11932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11933 done
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_lo= ac_hi=
11940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11943 # Binary search between lo and hi bounds.
11944 while test "x$ac_lo" != "x$ac_hi"; do
11945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 $ac_includes_default
11954 main ()
11956 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11957 test_array [0] = 0
11960 return 0;
11962 _ACEOF
11963 rm -f conftest.$ac_objext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag"
11973 || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_hi=$ac_mid
11986 else
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ac_lo=`expr '(' $ac_mid ')' + 1`
11992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11993 done
11994 case $ac_lo in
11995 ?*) ac_cv_sizeof_void_p=$ac_lo;;
11996 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
11997 See \`config.log' for more details." >&5
11998 echo "$as_me: error: cannot compute sizeof (void *), 77
11999 See \`config.log' for more details." >&2;}
12000 { (exit 1); exit 1; }; } ;;
12001 esac
12002 else
12003 if test "$cross_compiling" = yes; then
12004 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12005 See \`config.log' for more details." >&5
12006 echo "$as_me: error: cannot run test program while cross compiling
12007 See \`config.log' for more details." >&2;}
12008 { (exit 1); exit 1; }; }
12009 else
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h. */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 $ac_includes_default
12017 long longval () { return (long) (sizeof (void *)); }
12018 unsigned long ulongval () { return (long) (sizeof (void *)); }
12019 #include <stdio.h>
12020 #include <stdlib.h>
12022 main ()
12025 FILE *f = fopen ("conftest.val", "w");
12026 if (! f)
12027 exit (1);
12028 if (((long) (sizeof (void *))) < 0)
12030 long i = longval ();
12031 if (i != ((long) (sizeof (void *))))
12032 exit (1);
12033 fprintf (f, "%ld\n", i);
12035 else
12037 unsigned long i = ulongval ();
12038 if (i != ((long) (sizeof (void *))))
12039 exit (1);
12040 fprintf (f, "%lu\n", i);
12042 exit (ferror (f) || fclose (f) != 0);
12045 return 0;
12047 _ACEOF
12048 rm -f conftest$ac_exeext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_sizeof_void_p=`cat conftest.val`
12060 else
12061 echo "$as_me: program exited with status $ac_status" >&5
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 ( exit $ac_status )
12066 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12067 See \`config.log' for more details." >&5
12068 echo "$as_me: error: cannot compute sizeof (void *), 77
12069 See \`config.log' for more details." >&2;}
12070 { (exit 1); exit 1; }; }
12072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12075 rm -f conftest.val
12076 else
12077 ac_cv_sizeof_void_p=0
12080 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12081 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12082 cat >>confdefs.h <<_ACEOF
12083 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12084 _ACEOF
12087 echo "$as_me:$LINENO: checking for long" >&5
12088 echo $ECHO_N "checking for long... $ECHO_C" >&6
12089 if test "${ac_cv_type_long+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h. */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 $ac_includes_default
12100 main ()
12102 if ((long *) 0)
12103 return 0;
12104 if (sizeof (long))
12105 return 0;
12107 return 0;
12109 _ACEOF
12110 rm -f conftest.$ac_objext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12112 (eval $ac_compile) 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag"
12120 || test ! -s conftest.err'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest.$ac_objext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_type_long=yes
12133 else
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 ac_cv_type_long=no
12139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12141 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12142 echo "${ECHO_T}$ac_cv_type_long" >&6
12144 echo "$as_me:$LINENO: checking size of long" >&5
12145 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12146 if test "${ac_cv_sizeof_long+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 if test "$ac_cv_type_long" = yes; then
12150 # The cast to unsigned long works around a bug in the HP C Compiler
12151 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12152 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12153 # This bug is HP SR number 8606223364.
12154 if test "$cross_compiling" = yes; then
12155 # Depending upon the size, compute the lo and hi bounds.
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 $ac_includes_default
12164 main ()
12166 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12167 test_array [0] = 0
12170 return 0;
12172 _ACEOF
12173 rm -f conftest.$ac_objext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12175 (eval $ac_compile) 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -z "$ac_c_werror_flag"
12183 || test ! -s conftest.err'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; } &&
12189 { ac_try='test -s conftest.$ac_objext'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 ac_lo=0 ac_mid=0
12196 while :; do
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h. */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 $ac_includes_default
12205 main ()
12207 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12208 test_array [0] = 0
12211 return 0;
12213 _ACEOF
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag"
12224 || test ! -s conftest.err'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest.$ac_objext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 ac_hi=$ac_mid; break
12237 else
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12241 ac_lo=`expr $ac_mid + 1`
12242 if test $ac_lo -le $ac_mid; then
12243 ac_lo= ac_hi=
12244 break
12246 ac_mid=`expr 2 '*' $ac_mid + 1`
12248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12249 done
12250 else
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 $ac_includes_default
12262 main ()
12264 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12265 test_array [0] = 0
12268 return 0;
12270 _ACEOF
12271 rm -f conftest.$ac_objext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12273 (eval $ac_compile) 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_c_werror_flag"
12281 || test ! -s conftest.err'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; } &&
12287 { ac_try='test -s conftest.$ac_objext'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 ac_hi=-1 ac_mid=-1
12294 while :; do
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h. */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 $ac_includes_default
12303 main ()
12305 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12306 test_array [0] = 0
12309 return 0;
12311 _ACEOF
12312 rm -f conftest.$ac_objext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314 (eval $ac_compile) 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } &&
12321 { ac_try='test -z "$ac_c_werror_flag"
12322 || test ! -s conftest.err'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
12328 { ac_try='test -s conftest.$ac_objext'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; }; then
12334 ac_lo=$ac_mid; break
12335 else
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12339 ac_hi=`expr '(' $ac_mid ')' - 1`
12340 if test $ac_mid -le $ac_hi; then
12341 ac_lo= ac_hi=
12342 break
12344 ac_mid=`expr 2 '*' $ac_mid`
12346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12347 done
12348 else
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12352 ac_lo= ac_hi=
12354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12357 # Binary search between lo and hi bounds.
12358 while test "x$ac_lo" != "x$ac_hi"; do
12359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12360 cat >conftest.$ac_ext <<_ACEOF
12361 /* confdefs.h. */
12362 _ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h. */
12366 $ac_includes_default
12368 main ()
12370 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12371 test_array [0] = 0
12374 return 0;
12376 _ACEOF
12377 rm -f conftest.$ac_objext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12379 (eval $ac_compile) 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest.$ac_objext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_hi=$ac_mid
12400 else
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_lo=`expr '(' $ac_mid ')' + 1`
12406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12407 done
12408 case $ac_lo in
12409 ?*) ac_cv_sizeof_long=$ac_lo;;
12410 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12411 See \`config.log' for more details." >&5
12412 echo "$as_me: error: cannot compute sizeof (long), 77
12413 See \`config.log' for more details." >&2;}
12414 { (exit 1); exit 1; }; } ;;
12415 esac
12416 else
12417 if test "$cross_compiling" = yes; then
12418 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12419 See \`config.log' for more details." >&5
12420 echo "$as_me: error: cannot run test program while cross compiling
12421 See \`config.log' for more details." >&2;}
12422 { (exit 1); exit 1; }; }
12423 else
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h. */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 $ac_includes_default
12431 long longval () { return (long) (sizeof (long)); }
12432 unsigned long ulongval () { return (long) (sizeof (long)); }
12433 #include <stdio.h>
12434 #include <stdlib.h>
12436 main ()
12439 FILE *f = fopen ("conftest.val", "w");
12440 if (! f)
12441 exit (1);
12442 if (((long) (sizeof (long))) < 0)
12444 long i = longval ();
12445 if (i != ((long) (sizeof (long))))
12446 exit (1);
12447 fprintf (f, "%ld\n", i);
12449 else
12451 unsigned long i = ulongval ();
12452 if (i != ((long) (sizeof (long))))
12453 exit (1);
12454 fprintf (f, "%lu\n", i);
12456 exit (ferror (f) || fclose (f) != 0);
12459 return 0;
12461 _ACEOF
12462 rm -f conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_sizeof_long=`cat conftest.val`
12474 else
12475 echo "$as_me: program exited with status $ac_status" >&5
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ( exit $ac_status )
12480 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12481 See \`config.log' for more details." >&5
12482 echo "$as_me: error: cannot compute sizeof (long), 77
12483 See \`config.log' for more details." >&2;}
12484 { (exit 1); exit 1; }; }
12486 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12489 rm -f conftest.val
12490 else
12491 ac_cv_sizeof_long=0
12494 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12495 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12496 cat >>confdefs.h <<_ACEOF
12497 #define SIZEOF_LONG $ac_cv_sizeof_long
12498 _ACEOF
12502 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12503 host64=true
12504 if test "x${ac_cv_sizeof_long}" = "x8"; then
12505 BFD_HOST_64BIT_LONG=1
12506 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12507 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12508 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12509 BFD_HOST_64BIT_LONG_LONG=1
12510 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12511 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12512 BFD_HOSTPTR_T="unsigned long long"
12514 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12515 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12516 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12519 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12520 BFD_HOST_64_BIT_DEFINED=1
12521 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12522 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12533 # Put a plausible default for CC_FOR_BUILD in Makefile.
12534 if test -z "$CC_FOR_BUILD"; then
12535 if test "x$cross_compiling" = "xno"; then
12536 CC_FOR_BUILD='$(CC)'
12537 else
12538 CC_FOR_BUILD=gcc
12542 # Also set EXEEXT_FOR_BUILD.
12543 if test "x$cross_compiling" = "xno"; then
12544 EXEEXT_FOR_BUILD='$(EXEEXT)'
12545 else
12546 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12547 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12548 if test "${bfd_cv_build_exeext+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551 rm -f conftest*
12552 echo 'int main () { return 0; }' > conftest.c
12553 bfd_cv_build_exeext=
12554 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12555 for file in conftest.*; do
12556 case $file in
12557 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12558 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12559 esac
12560 done
12561 rm -f conftest*
12562 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12564 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12565 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12566 EXEEXT_FOR_BUILD=""
12567 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12577 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
12579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12581 echo "$as_me:$LINENO: checking for $ac_header" >&5
12582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12588 else
12589 # Is the header compilable?
12590 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h. */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 $ac_includes_default
12599 #include <$ac_header>
12600 _ACEOF
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 ac_header_compiler=yes
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ac_header_compiler=no
12630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12632 echo "${ECHO_T}$ac_header_compiler" >&6
12634 # Is the header present?
12635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12637 cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h. */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12643 #include <$ac_header>
12644 _ACEOF
12645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } >/dev/null; then
12653 if test -s conftest.err; then
12654 ac_cpp_err=$ac_c_preproc_warn_flag
12655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12656 else
12657 ac_cpp_err=
12659 else
12660 ac_cpp_err=yes
12662 if test -z "$ac_cpp_err"; then
12663 ac_header_preproc=yes
12664 else
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 ac_header_preproc=no
12670 rm -f conftest.err conftest.$ac_ext
12671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12672 echo "${ECHO_T}$ac_header_preproc" >&6
12674 # So? What about this header?
12675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12676 yes:no: )
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12681 ac_header_preproc=yes
12683 no:yes:* )
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12697 cat <<\_ASBOX
12698 ## ------------------------------------------ ##
12699 ## Report this to the AC_PACKAGE_NAME lists. ##
12700 ## ------------------------------------------ ##
12701 _ASBOX
12703 sed "s/^/$as_me: WARNING: /" >&2
12705 esac
12706 echo "$as_me:$LINENO: checking for $ac_header" >&5
12707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711 eval "$as_ac_Header=\$ac_header_preproc"
12713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12718 cat >>confdefs.h <<_ACEOF
12719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12720 _ACEOF
12724 done
12729 for ac_header in fcntl.h sys/file.h sys/time.h
12731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12733 echo "$as_me:$LINENO: checking for $ac_header" >&5
12734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12740 else
12741 # Is the header compilable?
12742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12744 cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h. */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 $ac_includes_default
12751 #include <$ac_header>
12752 _ACEOF
12753 rm -f conftest.$ac_objext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>conftest.er1
12756 ac_status=$?
12757 grep -v '^ *+' conftest.er1 >conftest.err
12758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag"
12763 || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_header_compiler=yes
12776 else
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_header_compiler=no
12782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12784 echo "${ECHO_T}$ac_header_compiler" >&6
12786 # Is the header present?
12787 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h. */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 #include <$ac_header>
12796 _ACEOF
12797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } >/dev/null; then
12805 if test -s conftest.err; then
12806 ac_cpp_err=$ac_c_preproc_warn_flag
12807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12808 else
12809 ac_cpp_err=
12811 else
12812 ac_cpp_err=yes
12814 if test -z "$ac_cpp_err"; then
12815 ac_header_preproc=yes
12816 else
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_header_preproc=no
12822 rm -f conftest.err conftest.$ac_ext
12823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12824 echo "${ECHO_T}$ac_header_preproc" >&6
12826 # So? What about this header?
12827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12828 yes:no: )
12829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12833 ac_header_preproc=yes
12835 no:yes:* )
12836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12843 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12849 cat <<\_ASBOX
12850 ## ------------------------------------------ ##
12851 ## Report this to the AC_PACKAGE_NAME lists. ##
12852 ## ------------------------------------------ ##
12853 _ASBOX
12855 sed "s/^/$as_me: WARNING: /" >&2
12857 esac
12858 echo "$as_me:$LINENO: checking for $ac_header" >&5
12859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863 eval "$as_ac_Header=\$ac_header_preproc"
12865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12870 cat >>confdefs.h <<_ACEOF
12871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12872 _ACEOF
12876 done
12880 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12882 acx_cv_header_stdint=stddef.h
12883 acx_cv_header_stdint_kind="(already complete)"
12884 for i in stdint.h $inttype_headers; do
12885 unset ac_cv_type_uintptr_t
12886 unset ac_cv_type_uintmax_t
12887 unset ac_cv_type_int_least32_t
12888 unset ac_cv_type_int_fast32_t
12889 unset ac_cv_type_uint64_t
12890 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12891 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12892 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12893 if test "${ac_cv_type_uintmax_t+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 else
12896 cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h. */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12902 #include <sys/types.h>
12903 #include <$i>
12906 main ()
12908 if ((uintmax_t *) 0)
12909 return 0;
12910 if (sizeof (uintmax_t))
12911 return 0;
12913 return 0;
12915 _ACEOF
12916 rm -f conftest.$ac_objext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12918 (eval $ac_compile) 2>conftest.er1
12919 ac_status=$?
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try='test -z "$ac_c_werror_flag"
12926 || test ! -s conftest.err'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; } &&
12932 { ac_try='test -s conftest.$ac_objext'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 ac_cv_type_uintmax_t=yes
12939 else
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12943 ac_cv_type_uintmax_t=no
12945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12947 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12948 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12949 if test $ac_cv_type_uintmax_t = yes; then
12950 acx_cv_header_stdint=$i
12951 else
12952 continue
12955 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12956 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12957 if test "${ac_cv_type_uintptr_t+set}" = set; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 else
12960 cat >conftest.$ac_ext <<_ACEOF
12961 /* confdefs.h. */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h. */
12966 #include <sys/types.h>
12967 #include <$i>
12970 main ()
12972 if ((uintptr_t *) 0)
12973 return 0;
12974 if (sizeof (uintptr_t))
12975 return 0;
12977 return 0;
12979 _ACEOF
12980 rm -f conftest.$ac_objext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982 (eval $ac_compile) 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -z "$ac_c_werror_flag"
12990 || test ! -s conftest.err'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try='test -s conftest.$ac_objext'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 ac_cv_type_uintptr_t=yes
13003 else
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13007 ac_cv_type_uintptr_t=no
13009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13011 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13012 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13013 if test $ac_cv_type_uintptr_t = yes; then
13015 else
13016 acx_cv_header_stdint_kind="(mostly complete)"
13019 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13020 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13021 if test "${ac_cv_type_int_least32_t+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 else
13024 cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h. */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13030 #include <sys/types.h>
13031 #include <$i>
13034 main ()
13036 if ((int_least32_t *) 0)
13037 return 0;
13038 if (sizeof (int_least32_t))
13039 return 0;
13041 return 0;
13043 _ACEOF
13044 rm -f conftest.$ac_objext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>conftest.er1
13047 ac_status=$?
13048 grep -v '^ *+' conftest.er1 >conftest.err
13049 rm -f conftest.er1
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -z "$ac_c_werror_flag"
13054 || test ! -s conftest.err'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; } &&
13060 { ac_try='test -s conftest.$ac_objext'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 ac_cv_type_int_least32_t=yes
13067 else
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13071 ac_cv_type_int_least32_t=no
13073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13075 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13076 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13077 if test $ac_cv_type_int_least32_t = yes; then
13079 else
13080 acx_cv_header_stdint_kind="(mostly complete)"
13083 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13084 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13085 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 #include <sys/types.h>
13095 #include <$i>
13098 main ()
13100 if ((int_fast32_t *) 0)
13101 return 0;
13102 if (sizeof (int_fast32_t))
13103 return 0;
13105 return 0;
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13110 (eval $ac_compile) 2>conftest.er1
13111 ac_status=$?
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -z "$ac_c_werror_flag"
13118 || test ! -s conftest.err'
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); }; } &&
13124 { ac_try='test -s conftest.$ac_objext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_cv_type_int_fast32_t=yes
13131 else
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_cv_type_int_fast32_t=no
13137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13139 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13140 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13141 if test $ac_cv_type_int_fast32_t = yes; then
13143 else
13144 acx_cv_header_stdint_kind="(mostly complete)"
13147 echo "$as_me:$LINENO: checking for uint64_t" >&5
13148 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13149 if test "${ac_cv_type_uint64_t+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152 cat >conftest.$ac_ext <<_ACEOF
13153 /* confdefs.h. */
13154 _ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13158 #include <sys/types.h>
13159 #include <$i>
13162 main ()
13164 if ((uint64_t *) 0)
13165 return 0;
13166 if (sizeof (uint64_t))
13167 return 0;
13169 return 0;
13171 _ACEOF
13172 rm -f conftest.$ac_objext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174 (eval $ac_compile) 2>conftest.er1
13175 ac_status=$?
13176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag"
13182 || test ! -s conftest.err'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; } &&
13188 { ac_try='test -s conftest.$ac_objext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 ac_cv_type_uint64_t=yes
13195 else
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ac_cv_type_uint64_t=no
13201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13203 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13204 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13205 if test $ac_cv_type_uint64_t = yes; then
13207 else
13208 acx_cv_header_stdint_kind="(lacks uint64_t)"
13211 break
13212 done
13213 if test "$acx_cv_header_stdint" = stddef.h; then
13214 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13215 for i in stdint.h $inttype_headers; do
13216 unset ac_cv_type_uintptr_t
13217 unset ac_cv_type_uint32_t
13218 unset ac_cv_type_uint64_t
13219 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13220 echo "$as_me:$LINENO: checking for uint32_t" >&5
13221 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13222 if test "${ac_cv_type_uint32_t+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13224 else
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <sys/types.h>
13232 #include <$i>
13235 main ()
13237 if ((uint32_t *) 0)
13238 return 0;
13239 if (sizeof (uint32_t))
13240 return 0;
13242 return 0;
13244 _ACEOF
13245 rm -f conftest.$ac_objext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247 (eval $ac_compile) 2>conftest.er1
13248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -z "$ac_c_werror_flag"
13255 || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_cv_type_uint32_t=yes
13268 else
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_cv_type_uint32_t=no
13274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13276 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13277 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13278 if test $ac_cv_type_uint32_t = yes; then
13279 acx_cv_header_stdint=$i
13280 else
13281 continue
13284 echo "$as_me:$LINENO: checking for uint64_t" >&5
13285 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13286 if test "${ac_cv_type_uint64_t+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
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 #include <sys/types.h>
13296 #include <$i>
13299 main ()
13301 if ((uint64_t *) 0)
13302 return 0;
13303 if (sizeof (uint64_t))
13304 return 0;
13306 return 0;
13308 _ACEOF
13309 rm -f conftest.$ac_objext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13311 (eval $ac_compile) 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag"
13319 || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest.$ac_objext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_cv_type_uint64_t=yes
13332 else
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 ac_cv_type_uint64_t=no
13338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13340 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13341 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13343 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13344 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13345 if test "${ac_cv_type_uintptr_t+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348 cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h. */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #include <sys/types.h>
13355 #include <$i>
13358 main ()
13360 if ((uintptr_t *) 0)
13361 return 0;
13362 if (sizeof (uintptr_t))
13363 return 0;
13365 return 0;
13367 _ACEOF
13368 rm -f conftest.$ac_objext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13370 (eval $ac_compile) 2>conftest.er1
13371 ac_status=$?
13372 grep -v '^ *+' conftest.er1 >conftest.err
13373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -z "$ac_c_werror_flag"
13378 || test ! -s conftest.err'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; } &&
13384 { ac_try='test -s conftest.$ac_objext'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_type_uintptr_t=yes
13391 else
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ac_cv_type_uintptr_t=no
13397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13399 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13400 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13402 break
13403 done
13405 if test "$acx_cv_header_stdint" = stddef.h; then
13406 acx_cv_header_stdint_kind="(u_intXX_t style)"
13407 for i in sys/types.h $inttype_headers; do
13408 unset ac_cv_type_u_int32_t
13409 unset ac_cv_type_u_int64_t
13410 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13411 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13412 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13413 if test "${ac_cv_type_u_int32_t+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416 cat >conftest.$ac_ext <<_ACEOF
13417 /* confdefs.h. */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 #include <sys/types.h>
13423 #include <$i>
13426 main ()
13428 if ((u_int32_t *) 0)
13429 return 0;
13430 if (sizeof (u_int32_t))
13431 return 0;
13433 return 0;
13435 _ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } &&
13445 { ac_try='test -z "$ac_c_werror_flag"
13446 || test ! -s conftest.err'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; } &&
13452 { ac_try='test -s conftest.$ac_objext'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13458 ac_cv_type_u_int32_t=yes
13459 else
13460 echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13463 ac_cv_type_u_int32_t=no
13465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13467 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13468 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13469 if test $ac_cv_type_u_int32_t = yes; then
13470 acx_cv_header_stdint=$i
13471 else
13472 continue
13475 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13476 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13477 if test "${ac_cv_type_u_int64_t+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 else
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 #include <sys/types.h>
13487 #include <$i>
13490 main ()
13492 if ((u_int64_t *) 0)
13493 return 0;
13494 if (sizeof (u_int64_t))
13495 return 0;
13497 return 0;
13499 _ACEOF
13500 rm -f conftest.$ac_objext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13502 (eval $ac_compile) 2>conftest.er1
13503 ac_status=$?
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } &&
13509 { ac_try='test -z "$ac_c_werror_flag"
13510 || test ! -s conftest.err'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } &&
13516 { ac_try='test -s conftest.$ac_objext'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
13522 ac_cv_type_u_int64_t=yes
13523 else
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 ac_cv_type_u_int64_t=no
13529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13531 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13532 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13534 break
13535 done
13537 if test "$acx_cv_header_stdint" = stddef.h; then
13538 acx_cv_header_stdint_kind="(using manual detection)"
13541 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13542 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13543 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13544 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13545 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13547 # ----------------- Summarize what we found so far
13549 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13550 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13552 case `$as_basename bfd_stdint.h ||
13553 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13554 Xbfd_stdint.h : 'X\(//\)$' \| \
13555 Xbfd_stdint.h : 'X\(/\)$' \| \
13556 . : '\(.\)' 2>/dev/null ||
13557 echo X/bfd_stdint.h |
13558 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13559 /^X\/\(\/\/\)$/{ s//\1/; q; }
13560 /^X\/\(\/\).*/{ s//\1/; q; }
13561 s/.*/./; q'` in
13562 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13563 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13564 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13565 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13566 *) ;;
13567 esac
13569 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13570 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13572 # ----------------- done included file, check C basic types --------
13574 # Lacking an uintptr_t? Test size of void *
13575 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13576 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13577 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13578 if test "${ac_cv_type_void_p+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h. */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 $ac_includes_default
13589 main ()
13591 if ((void * *) 0)
13592 return 0;
13593 if (sizeof (void *))
13594 return 0;
13596 return 0;
13598 _ACEOF
13599 rm -f conftest.$ac_objext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601 (eval $ac_compile) 2>conftest.er1
13602 ac_status=$?
13603 grep -v '^ *+' conftest.er1 >conftest.err
13604 rm -f conftest.er1
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -z "$ac_c_werror_flag"
13609 || test ! -s conftest.err'
13610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611 (eval $ac_try) 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; } &&
13615 { ac_try='test -s conftest.$ac_objext'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 ac_cv_type_void_p=yes
13622 else
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 ac_cv_type_void_p=no
13628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13630 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13631 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13633 echo "$as_me:$LINENO: checking size of void *" >&5
13634 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13635 if test "${ac_cv_sizeof_void_p+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638 if test "$ac_cv_type_void_p" = yes; then
13639 # The cast to unsigned long works around a bug in the HP C Compiler
13640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13642 # This bug is HP SR number 8606223364.
13643 if test "$cross_compiling" = yes; then
13644 # Depending upon the size, compute the lo and hi bounds.
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h. */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 $ac_includes_default
13653 main ()
13655 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13656 test_array [0] = 0
13659 return 0;
13661 _ACEOF
13662 rm -f conftest.$ac_objext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13664 (eval $ac_compile) 2>conftest.er1
13665 ac_status=$?
13666 grep -v '^ *+' conftest.er1 >conftest.err
13667 rm -f conftest.er1
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -z "$ac_c_werror_flag"
13672 || test ! -s conftest.err'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest.$ac_objext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 ac_lo=0 ac_mid=0
13685 while :; do
13686 cat >conftest.$ac_ext <<_ACEOF
13687 /* confdefs.h. */
13688 _ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13692 $ac_includes_default
13694 main ()
13696 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13697 test_array [0] = 0
13700 return 0;
13702 _ACEOF
13703 rm -f conftest.$ac_objext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705 (eval $ac_compile) 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -z "$ac_c_werror_flag"
13713 || test ! -s conftest.err'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_hi=$ac_mid; break
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 ac_lo=`expr $ac_mid + 1`
13731 if test $ac_lo -le $ac_mid; then
13732 ac_lo= ac_hi=
13733 break
13735 ac_mid=`expr 2 '*' $ac_mid + 1`
13737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13738 done
13739 else
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h. */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749 $ac_includes_default
13751 main ()
13753 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13754 test_array [0] = 0
13757 return 0;
13759 _ACEOF
13760 rm -f conftest.$ac_objext
13761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762 (eval $ac_compile) 2>conftest.er1
13763 ac_status=$?
13764 grep -v '^ *+' conftest.er1 >conftest.err
13765 rm -f conftest.er1
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } &&
13769 { ac_try='test -z "$ac_c_werror_flag"
13770 || test ! -s conftest.err'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
13776 { ac_try='test -s conftest.$ac_objext'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 ac_hi=-1 ac_mid=-1
13783 while :; do
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h. */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 $ac_includes_default
13792 main ()
13794 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13795 test_array [0] = 0
13798 return 0;
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
13810 { ac_try='test -z "$ac_c_werror_flag"
13811 || test ! -s conftest.err'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_lo=$ac_mid; break
13824 else
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 ac_hi=`expr '(' $ac_mid ')' - 1`
13829 if test $ac_mid -le $ac_hi; then
13830 ac_lo= ac_hi=
13831 break
13833 ac_mid=`expr 2 '*' $ac_mid`
13835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13836 done
13837 else
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_lo= ac_hi=
13843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13846 # Binary search between lo and hi bounds.
13847 while test "x$ac_lo" != "x$ac_hi"; do
13848 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h. */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 $ac_includes_default
13857 main ()
13859 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13860 test_array [0] = 0
13863 return 0;
13865 _ACEOF
13866 rm -f conftest.$ac_objext
13867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13868 (eval $ac_compile) 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag"
13876 || test ! -s conftest.err'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; } &&
13882 { ac_try='test -s conftest.$ac_objext'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13888 ac_hi=$ac_mid
13889 else
13890 echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13893 ac_lo=`expr '(' $ac_mid ')' + 1`
13895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13896 done
13897 case $ac_lo in
13898 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13899 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13900 See \`config.log' for more details." >&5
13901 echo "$as_me: error: cannot compute sizeof (void *), 77
13902 See \`config.log' for more details." >&2;}
13903 { (exit 1); exit 1; }; } ;;
13904 esac
13905 else
13906 if test "$cross_compiling" = yes; then
13907 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13908 See \`config.log' for more details." >&5
13909 echo "$as_me: error: cannot run test program while cross compiling
13910 See \`config.log' for more details." >&2;}
13911 { (exit 1); exit 1; }; }
13912 else
13913 cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h. */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 $ac_includes_default
13920 long longval () { return (long) (sizeof (void *)); }
13921 unsigned long ulongval () { return (long) (sizeof (void *)); }
13922 #include <stdio.h>
13923 #include <stdlib.h>
13925 main ()
13928 FILE *f = fopen ("conftest.val", "w");
13929 if (! f)
13930 exit (1);
13931 if (((long) (sizeof (void *))) < 0)
13933 long i = longval ();
13934 if (i != ((long) (sizeof (void *))))
13935 exit (1);
13936 fprintf (f, "%ld\n", i);
13938 else
13940 unsigned long i = ulongval ();
13941 if (i != ((long) (sizeof (void *))))
13942 exit (1);
13943 fprintf (f, "%lu\n", i);
13945 exit (ferror (f) || fclose (f) != 0);
13948 return 0;
13950 _ACEOF
13951 rm -f conftest$ac_exeext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13953 (eval $ac_link) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 ac_cv_sizeof_void_p=`cat conftest.val`
13963 else
13964 echo "$as_me: program exited with status $ac_status" >&5
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ( exit $ac_status )
13969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13970 See \`config.log' for more details." >&5
13971 echo "$as_me: error: cannot compute sizeof (void *), 77
13972 See \`config.log' for more details." >&2;}
13973 { (exit 1); exit 1; }; }
13975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13978 rm -f conftest.val
13979 else
13980 ac_cv_sizeof_void_p=0
13983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13984 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13985 cat >>confdefs.h <<_ACEOF
13986 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13987 _ACEOF
13990 esac
13992 # Lacking an uint64_t? Test size of long
13993 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13994 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13995 echo $ECHO_N "checking for long... $ECHO_C" >&6
13996 if test "${ac_cv_type_long+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 else
13999 cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h. */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 $ac_includes_default
14007 main ()
14009 if ((long *) 0)
14010 return 0;
14011 if (sizeof (long))
14012 return 0;
14014 return 0;
14016 _ACEOF
14017 rm -f conftest.$ac_objext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -z "$ac_c_werror_flag"
14027 || test ! -s conftest.err'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest.$ac_objext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_cv_type_long=yes
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 ac_cv_type_long=no
14046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14048 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14049 echo "${ECHO_T}$ac_cv_type_long" >&6
14051 echo "$as_me:$LINENO: checking size of long" >&5
14052 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14053 if test "${ac_cv_sizeof_long+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056 if test "$ac_cv_type_long" = yes; then
14057 # The cast to unsigned long works around a bug in the HP C Compiler
14058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14060 # This bug is HP SR number 8606223364.
14061 if test "$cross_compiling" = yes; then
14062 # Depending upon the size, compute the lo and hi bounds.
14063 cat >conftest.$ac_ext <<_ACEOF
14064 /* confdefs.h. */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 $ac_includes_default
14071 main ()
14073 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14074 test_array [0] = 0
14077 return 0;
14079 _ACEOF
14080 rm -f conftest.$ac_objext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14082 (eval $ac_compile) 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -z "$ac_c_werror_flag"
14090 || test ! -s conftest.err'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; } &&
14096 { ac_try='test -s conftest.$ac_objext'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 ac_lo=0 ac_mid=0
14103 while :; do
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h. */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 $ac_includes_default
14112 main ()
14114 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14115 test_array [0] = 0
14118 return 0;
14120 _ACEOF
14121 rm -f conftest.$ac_objext
14122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123 (eval $ac_compile) 2>conftest.er1
14124 ac_status=$?
14125 grep -v '^ *+' conftest.er1 >conftest.err
14126 rm -f conftest.er1
14127 cat conftest.err >&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
14130 { ac_try='test -z "$ac_c_werror_flag"
14131 || test ! -s conftest.err'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; } &&
14137 { ac_try='test -s conftest.$ac_objext'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; }; then
14143 ac_hi=$ac_mid; break
14144 else
14145 echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14148 ac_lo=`expr $ac_mid + 1`
14149 if test $ac_lo -le $ac_mid; then
14150 ac_lo= ac_hi=
14151 break
14153 ac_mid=`expr 2 '*' $ac_mid + 1`
14155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14156 done
14157 else
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h. */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 $ac_includes_default
14169 main ()
14171 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14172 test_array [0] = 0
14175 return 0;
14177 _ACEOF
14178 rm -f conftest.$ac_objext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180 (eval $ac_compile) 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -z "$ac_c_werror_flag"
14188 || test ! -s conftest.err'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest.$ac_objext'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_hi=-1 ac_mid=-1
14201 while :; do
14202 cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h. */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 $ac_includes_default
14210 main ()
14212 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14213 test_array [0] = 0
14216 return 0;
14218 _ACEOF
14219 rm -f conftest.$ac_objext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14221 (eval $ac_compile) 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_c_werror_flag"
14229 || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest.$ac_objext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_lo=$ac_mid; break
14242 else
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_hi=`expr '(' $ac_mid ')' - 1`
14247 if test $ac_mid -le $ac_hi; then
14248 ac_lo= ac_hi=
14249 break
14251 ac_mid=`expr 2 '*' $ac_mid`
14253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14254 done
14255 else
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14259 ac_lo= ac_hi=
14261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14264 # Binary search between lo and hi bounds.
14265 while test "x$ac_lo" != "x$ac_hi"; do
14266 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14267 cat >conftest.$ac_ext <<_ACEOF
14268 /* confdefs.h. */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 $ac_includes_default
14275 main ()
14277 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14278 test_array [0] = 0
14281 return 0;
14283 _ACEOF
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>conftest.er1
14287 ac_status=$?
14288 grep -v '^ *+' conftest.er1 >conftest.err
14289 rm -f conftest.er1
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -z "$ac_c_werror_flag"
14294 || test ! -s conftest.err'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_hi=$ac_mid
14307 else
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14311 ac_lo=`expr '(' $ac_mid ')' + 1`
14313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14314 done
14315 case $ac_lo in
14316 ?*) ac_cv_sizeof_long=$ac_lo;;
14317 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14318 See \`config.log' for more details." >&5
14319 echo "$as_me: error: cannot compute sizeof (long), 77
14320 See \`config.log' for more details." >&2;}
14321 { (exit 1); exit 1; }; } ;;
14322 esac
14323 else
14324 if test "$cross_compiling" = yes; then
14325 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14326 See \`config.log' for more details." >&5
14327 echo "$as_me: error: cannot run test program while cross compiling
14328 See \`config.log' for more details." >&2;}
14329 { (exit 1); exit 1; }; }
14330 else
14331 cat >conftest.$ac_ext <<_ACEOF
14332 /* confdefs.h. */
14333 _ACEOF
14334 cat confdefs.h >>conftest.$ac_ext
14335 cat >>conftest.$ac_ext <<_ACEOF
14336 /* end confdefs.h. */
14337 $ac_includes_default
14338 long longval () { return (long) (sizeof (long)); }
14339 unsigned long ulongval () { return (long) (sizeof (long)); }
14340 #include <stdio.h>
14341 #include <stdlib.h>
14343 main ()
14346 FILE *f = fopen ("conftest.val", "w");
14347 if (! f)
14348 exit (1);
14349 if (((long) (sizeof (long))) < 0)
14351 long i = longval ();
14352 if (i != ((long) (sizeof (long))))
14353 exit (1);
14354 fprintf (f, "%ld\n", i);
14356 else
14358 unsigned long i = ulongval ();
14359 if (i != ((long) (sizeof (long))))
14360 exit (1);
14361 fprintf (f, "%lu\n", i);
14363 exit (ferror (f) || fclose (f) != 0);
14366 return 0;
14368 _ACEOF
14369 rm -f conftest$ac_exeext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14371 (eval $ac_link) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_cv_sizeof_long=`cat conftest.val`
14381 else
14382 echo "$as_me: program exited with status $ac_status" >&5
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ( exit $ac_status )
14387 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14388 See \`config.log' for more details." >&5
14389 echo "$as_me: error: cannot compute sizeof (long), 77
14390 See \`config.log' for more details." >&2;}
14391 { (exit 1); exit 1; }; }
14393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14396 rm -f conftest.val
14397 else
14398 ac_cv_sizeof_long=0
14401 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14402 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14403 cat >>confdefs.h <<_ACEOF
14404 #define SIZEOF_LONG $ac_cv_sizeof_long
14405 _ACEOF
14408 esac
14410 if test $acx_cv_header_stdint = stddef.h; then
14411 # Lacking a good header? Test size of everything and deduce all types.
14412 echo "$as_me:$LINENO: checking for int" >&5
14413 echo $ECHO_N "checking for int... $ECHO_C" >&6
14414 if test "${ac_cv_type_int+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h. */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 $ac_includes_default
14425 main ()
14427 if ((int *) 0)
14428 return 0;
14429 if (sizeof (int))
14430 return 0;
14432 return 0;
14434 _ACEOF
14435 rm -f conftest.$ac_objext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14437 (eval $ac_compile) 2>conftest.er1
14438 ac_status=$?
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -z "$ac_c_werror_flag"
14445 || test ! -s conftest.err'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } &&
14451 { ac_try='test -s conftest.$ac_objext'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14457 ac_cv_type_int=yes
14458 else
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 ac_cv_type_int=no
14464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14466 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14467 echo "${ECHO_T}$ac_cv_type_int" >&6
14469 echo "$as_me:$LINENO: checking size of int" >&5
14470 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14471 if test "${ac_cv_sizeof_int+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 else
14474 if test "$ac_cv_type_int" = yes; then
14475 # The cast to unsigned long works around a bug in the HP C Compiler
14476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14478 # This bug is HP SR number 8606223364.
14479 if test "$cross_compiling" = yes; then
14480 # Depending upon the size, compute the lo and hi bounds.
14481 cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h. */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14487 $ac_includes_default
14489 main ()
14491 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14492 test_array [0] = 0
14495 return 0;
14497 _ACEOF
14498 rm -f conftest.$ac_objext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14500 (eval $ac_compile) 2>conftest.er1
14501 ac_status=$?
14502 grep -v '^ *+' conftest.er1 >conftest.err
14503 rm -f conftest.er1
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } &&
14507 { ac_try='test -z "$ac_c_werror_flag"
14508 || test ! -s conftest.err'
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; } &&
14514 { ac_try='test -s conftest.$ac_objext'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 ac_lo=0 ac_mid=0
14521 while :; do
14522 cat >conftest.$ac_ext <<_ACEOF
14523 /* confdefs.h. */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 $ac_includes_default
14530 main ()
14532 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14533 test_array [0] = 0
14536 return 0;
14538 _ACEOF
14539 rm -f conftest.$ac_objext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14541 (eval $ac_compile) 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -z "$ac_c_werror_flag"
14549 || test ! -s conftest.err'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try='test -s conftest.$ac_objext'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 ac_hi=$ac_mid; break
14562 else
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 ac_lo=`expr $ac_mid + 1`
14567 if test $ac_lo -le $ac_mid; then
14568 ac_lo= ac_hi=
14569 break
14571 ac_mid=`expr 2 '*' $ac_mid + 1`
14573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14574 done
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 $ac_includes_default
14587 main ()
14589 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14590 test_array [0] = 0
14593 return 0;
14595 _ACEOF
14596 rm -f conftest.$ac_objext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14598 (eval $ac_compile) 2>conftest.er1
14599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -z "$ac_c_werror_flag"
14606 || test ! -s conftest.err'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest.$ac_objext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 ac_hi=-1 ac_mid=-1
14619 while :; do
14620 cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h. */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 $ac_includes_default
14628 main ()
14630 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14631 test_array [0] = 0
14634 return 0;
14636 _ACEOF
14637 rm -f conftest.$ac_objext
14638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14639 (eval $ac_compile) 2>conftest.er1
14640 ac_status=$?
14641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } &&
14646 { ac_try='test -z "$ac_c_werror_flag"
14647 || test ! -s conftest.err'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } &&
14653 { ac_try='test -s conftest.$ac_objext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_lo=$ac_mid; break
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14664 ac_hi=`expr '(' $ac_mid ')' - 1`
14665 if test $ac_mid -le $ac_hi; then
14666 ac_lo= ac_hi=
14667 break
14669 ac_mid=`expr 2 '*' $ac_mid`
14671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14672 done
14673 else
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14677 ac_lo= ac_hi=
14679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14682 # Binary search between lo and hi bounds.
14683 while test "x$ac_lo" != "x$ac_hi"; do
14684 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h. */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 $ac_includes_default
14693 main ()
14695 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14696 test_array [0] = 0
14699 return 0;
14701 _ACEOF
14702 rm -f conftest.$ac_objext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14704 (eval $ac_compile) 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag"
14712 || test ! -s conftest.err'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest.$ac_objext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_hi=$ac_mid
14725 else
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 ac_lo=`expr '(' $ac_mid ')' + 1`
14731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14732 done
14733 case $ac_lo in
14734 ?*) ac_cv_sizeof_int=$ac_lo;;
14735 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14736 See \`config.log' for more details." >&5
14737 echo "$as_me: error: cannot compute sizeof (int), 77
14738 See \`config.log' for more details." >&2;}
14739 { (exit 1); exit 1; }; } ;;
14740 esac
14741 else
14742 if test "$cross_compiling" = yes; then
14743 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14744 See \`config.log' for more details." >&5
14745 echo "$as_me: error: cannot run test program while cross compiling
14746 See \`config.log' for more details." >&2;}
14747 { (exit 1); exit 1; }; }
14748 else
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 $ac_includes_default
14756 long longval () { return (long) (sizeof (int)); }
14757 unsigned long ulongval () { return (long) (sizeof (int)); }
14758 #include <stdio.h>
14759 #include <stdlib.h>
14761 main ()
14764 FILE *f = fopen ("conftest.val", "w");
14765 if (! f)
14766 exit (1);
14767 if (((long) (sizeof (int))) < 0)
14769 long i = longval ();
14770 if (i != ((long) (sizeof (int))))
14771 exit (1);
14772 fprintf (f, "%ld\n", i);
14774 else
14776 unsigned long i = ulongval ();
14777 if (i != ((long) (sizeof (int))))
14778 exit (1);
14779 fprintf (f, "%lu\n", i);
14781 exit (ferror (f) || fclose (f) != 0);
14784 return 0;
14786 _ACEOF
14787 rm -f conftest$ac_exeext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14789 (eval $ac_link) 2>&5
14790 ac_status=$?
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_cv_sizeof_int=`cat conftest.val`
14799 else
14800 echo "$as_me: program exited with status $ac_status" >&5
14801 echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14804 ( exit $ac_status )
14805 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14806 See \`config.log' for more details." >&5
14807 echo "$as_me: error: cannot compute sizeof (int), 77
14808 See \`config.log' for more details." >&2;}
14809 { (exit 1); exit 1; }; }
14811 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14814 rm -f conftest.val
14815 else
14816 ac_cv_sizeof_int=0
14819 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14820 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14821 cat >>confdefs.h <<_ACEOF
14822 #define SIZEOF_INT $ac_cv_sizeof_int
14823 _ACEOF
14826 echo "$as_me:$LINENO: checking for short" >&5
14827 echo $ECHO_N "checking for short... $ECHO_C" >&6
14828 if test "${ac_cv_type_short+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 else
14831 cat >conftest.$ac_ext <<_ACEOF
14832 /* confdefs.h. */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 $ac_includes_default
14839 main ()
14841 if ((short *) 0)
14842 return 0;
14843 if (sizeof (short))
14844 return 0;
14846 return 0;
14848 _ACEOF
14849 rm -f conftest.$ac_objext
14850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14851 (eval $ac_compile) 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -z "$ac_c_werror_flag"
14859 || test ! -s conftest.err'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14871 ac_cv_type_short=yes
14872 else
14873 echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14876 ac_cv_type_short=no
14878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14880 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14881 echo "${ECHO_T}$ac_cv_type_short" >&6
14883 echo "$as_me:$LINENO: checking size of short" >&5
14884 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14885 if test "${ac_cv_sizeof_short+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888 if test "$ac_cv_type_short" = yes; then
14889 # The cast to unsigned long works around a bug in the HP C Compiler
14890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14892 # This bug is HP SR number 8606223364.
14893 if test "$cross_compiling" = yes; then
14894 # Depending upon the size, compute the lo and hi bounds.
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h. */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 $ac_includes_default
14903 main ()
14905 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14906 test_array [0] = 0
14909 return 0;
14911 _ACEOF
14912 rm -f conftest.$ac_objext
14913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14914 (eval $ac_compile) 2>conftest.er1
14915 ac_status=$?
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -z "$ac_c_werror_flag"
14922 || test ! -s conftest.err'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try='test -s conftest.$ac_objext'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14934 ac_lo=0 ac_mid=0
14935 while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14947 test_array [0] = 0
14950 return 0;
14952 _ACEOF
14953 rm -f conftest.$ac_objext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14955 (eval $ac_compile) 2>conftest.er1
14956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -z "$ac_c_werror_flag"
14963 || test ! -s conftest.err'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try='test -s conftest.$ac_objext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 ac_hi=$ac_mid; break
14976 else
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14980 ac_lo=`expr $ac_mid + 1`
14981 if test $ac_lo -le $ac_mid; then
14982 ac_lo= ac_hi=
14983 break
14985 ac_mid=`expr 2 '*' $ac_mid + 1`
14987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14988 done
14989 else
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 cat >conftest.$ac_ext <<_ACEOF
14994 /* confdefs.h. */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
14999 $ac_includes_default
15001 main ()
15003 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15004 test_array [0] = 0
15007 return 0;
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15012 (eval $ac_compile) 2>conftest.er1
15013 ac_status=$?
15014 grep -v '^ *+' conftest.er1 >conftest.err
15015 rm -f conftest.er1
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
15019 { ac_try='test -z "$ac_c_werror_flag"
15020 || test ! -s conftest.err'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest.$ac_objext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15032 ac_hi=-1 ac_mid=-1
15033 while :; do
15034 cat >conftest.$ac_ext <<_ACEOF
15035 /* confdefs.h. */
15036 _ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 $ac_includes_default
15042 main ()
15044 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15045 test_array [0] = 0
15048 return 0;
15050 _ACEOF
15051 rm -f conftest.$ac_objext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15053 (eval $ac_compile) 2>conftest.er1
15054 ac_status=$?
15055 grep -v '^ *+' conftest.er1 >conftest.err
15056 rm -f conftest.er1
15057 cat conftest.err >&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } &&
15060 { ac_try='test -z "$ac_c_werror_flag"
15061 || test ! -s conftest.err'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } &&
15067 { ac_try='test -s conftest.$ac_objext'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 ac_lo=$ac_mid; break
15074 else
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 ac_hi=`expr '(' $ac_mid ')' - 1`
15079 if test $ac_mid -le $ac_hi; then
15080 ac_lo= ac_hi=
15081 break
15083 ac_mid=`expr 2 '*' $ac_mid`
15085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15086 done
15087 else
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15091 ac_lo= ac_hi=
15093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15096 # Binary search between lo and hi bounds.
15097 while test "x$ac_lo" != "x$ac_hi"; do
15098 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15099 cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h. */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 $ac_includes_default
15107 main ()
15109 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15110 test_array [0] = 0
15113 return 0;
15115 _ACEOF
15116 rm -f conftest.$ac_objext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_c_werror_flag"
15126 || test ! -s conftest.err'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_hi=$ac_mid
15139 else
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 ac_lo=`expr '(' $ac_mid ')' + 1`
15145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15146 done
15147 case $ac_lo in
15148 ?*) ac_cv_sizeof_short=$ac_lo;;
15149 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15150 See \`config.log' for more details." >&5
15151 echo "$as_me: error: cannot compute sizeof (short), 77
15152 See \`config.log' for more details." >&2;}
15153 { (exit 1); exit 1; }; } ;;
15154 esac
15155 else
15156 if test "$cross_compiling" = yes; then
15157 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15158 See \`config.log' for more details." >&5
15159 echo "$as_me: error: cannot run test program while cross compiling
15160 See \`config.log' for more details." >&2;}
15161 { (exit 1); exit 1; }; }
15162 else
15163 cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h. */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 $ac_includes_default
15170 long longval () { return (long) (sizeof (short)); }
15171 unsigned long ulongval () { return (long) (sizeof (short)); }
15172 #include <stdio.h>
15173 #include <stdlib.h>
15175 main ()
15178 FILE *f = fopen ("conftest.val", "w");
15179 if (! f)
15180 exit (1);
15181 if (((long) (sizeof (short))) < 0)
15183 long i = longval ();
15184 if (i != ((long) (sizeof (short))))
15185 exit (1);
15186 fprintf (f, "%ld\n", i);
15188 else
15190 unsigned long i = ulongval ();
15191 if (i != ((long) (sizeof (short))))
15192 exit (1);
15193 fprintf (f, "%lu\n", i);
15195 exit (ferror (f) || fclose (f) != 0);
15198 return 0;
15200 _ACEOF
15201 rm -f conftest$ac_exeext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15203 (eval $ac_link) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15209 ac_status=$?
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212 ac_cv_sizeof_short=`cat conftest.val`
15213 else
15214 echo "$as_me: program exited with status $ac_status" >&5
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15218 ( exit $ac_status )
15219 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15220 See \`config.log' for more details." >&5
15221 echo "$as_me: error: cannot compute sizeof (short), 77
15222 See \`config.log' for more details." >&2;}
15223 { (exit 1); exit 1; }; }
15225 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15228 rm -f conftest.val
15229 else
15230 ac_cv_sizeof_short=0
15233 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15234 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15235 cat >>confdefs.h <<_ACEOF
15236 #define SIZEOF_SHORT $ac_cv_sizeof_short
15237 _ACEOF
15240 echo "$as_me:$LINENO: checking for char" >&5
15241 echo $ECHO_N "checking for char... $ECHO_C" >&6
15242 if test "${ac_cv_type_char+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 else
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 $ac_includes_default
15253 main ()
15255 if ((char *) 0)
15256 return 0;
15257 if (sizeof (char))
15258 return 0;
15260 return 0;
15262 _ACEOF
15263 rm -f conftest.$ac_objext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265 (eval $ac_compile) 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } &&
15272 { ac_try='test -z "$ac_c_werror_flag"
15273 || test ! -s conftest.err'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; } &&
15279 { ac_try='test -s conftest.$ac_objext'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15282 ac_status=$?
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then
15285 ac_cv_type_char=yes
15286 else
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ac_cv_type_char=no
15292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15294 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15295 echo "${ECHO_T}$ac_cv_type_char" >&6
15297 echo "$as_me:$LINENO: checking size of char" >&5
15298 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15299 if test "${ac_cv_sizeof_char+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302 if test "$ac_cv_type_char" = yes; then
15303 # The cast to unsigned long works around a bug in the HP C Compiler
15304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15306 # This bug is HP SR number 8606223364.
15307 if test "$cross_compiling" = yes; then
15308 # Depending upon the size, compute the lo and hi bounds.
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h. */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 $ac_includes_default
15317 main ()
15319 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15320 test_array [0] = 0
15323 return 0;
15325 _ACEOF
15326 rm -f conftest.$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -z "$ac_c_werror_flag"
15336 || test ! -s conftest.err'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_lo=0 ac_mid=0
15349 while :; do
15350 cat >conftest.$ac_ext <<_ACEOF
15351 /* confdefs.h. */
15352 _ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15356 $ac_includes_default
15358 main ()
15360 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15361 test_array [0] = 0
15364 return 0;
15366 _ACEOF
15367 rm -f conftest.$ac_objext
15368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15369 (eval $ac_compile) 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
15376 { ac_try='test -z "$ac_c_werror_flag"
15377 || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_hi=$ac_mid; break
15390 else
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15394 ac_lo=`expr $ac_mid + 1`
15395 if test $ac_lo -le $ac_mid; then
15396 ac_lo= ac_hi=
15397 break
15399 ac_mid=`expr 2 '*' $ac_mid + 1`
15401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15402 done
15403 else
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 cat >conftest.$ac_ext <<_ACEOF
15408 /* confdefs.h. */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 $ac_includes_default
15415 main ()
15417 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15418 test_array [0] = 0
15421 return 0;
15423 _ACEOF
15424 rm -f conftest.$ac_objext
15425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15426 (eval $ac_compile) 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
15433 { ac_try='test -z "$ac_c_werror_flag"
15434 || test ! -s conftest.err'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446 ac_hi=-1 ac_mid=-1
15447 while :; do
15448 cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h. */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 $ac_includes_default
15456 main ()
15458 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15459 test_array [0] = 0
15462 return 0;
15464 _ACEOF
15465 rm -f conftest.$ac_objext
15466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15467 (eval $ac_compile) 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
15474 { ac_try='test -z "$ac_c_werror_flag"
15475 || test ! -s conftest.err'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; } &&
15481 { ac_try='test -s conftest.$ac_objext'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
15487 ac_lo=$ac_mid; break
15488 else
15489 echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15492 ac_hi=`expr '(' $ac_mid ')' - 1`
15493 if test $ac_mid -le $ac_hi; then
15494 ac_lo= ac_hi=
15495 break
15497 ac_mid=`expr 2 '*' $ac_mid`
15499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15500 done
15501 else
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_lo= ac_hi=
15507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15510 # Binary search between lo and hi bounds.
15511 while test "x$ac_lo" != "x$ac_hi"; do
15512 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h. */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 $ac_includes_default
15521 main ()
15523 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15524 test_array [0] = 0
15527 return 0;
15529 _ACEOF
15530 rm -f conftest.$ac_objext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532 (eval $ac_compile) 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try='test -z "$ac_c_werror_flag"
15540 || test ! -s conftest.err'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest.$ac_objext'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_hi=$ac_mid
15553 else
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15557 ac_lo=`expr '(' $ac_mid ')' + 1`
15559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15560 done
15561 case $ac_lo in
15562 ?*) ac_cv_sizeof_char=$ac_lo;;
15563 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15564 See \`config.log' for more details." >&5
15565 echo "$as_me: error: cannot compute sizeof (char), 77
15566 See \`config.log' for more details." >&2;}
15567 { (exit 1); exit 1; }; } ;;
15568 esac
15569 else
15570 if test "$cross_compiling" = yes; then
15571 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15572 See \`config.log' for more details." >&5
15573 echo "$as_me: error: cannot run test program while cross compiling
15574 See \`config.log' for more details." >&2;}
15575 { (exit 1); exit 1; }; }
15576 else
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h. */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15584 long longval () { return (long) (sizeof (char)); }
15585 unsigned long ulongval () { return (long) (sizeof (char)); }
15586 #include <stdio.h>
15587 #include <stdlib.h>
15589 main ()
15592 FILE *f = fopen ("conftest.val", "w");
15593 if (! f)
15594 exit (1);
15595 if (((long) (sizeof (char))) < 0)
15597 long i = longval ();
15598 if (i != ((long) (sizeof (char))))
15599 exit (1);
15600 fprintf (f, "%ld\n", i);
15602 else
15604 unsigned long i = ulongval ();
15605 if (i != ((long) (sizeof (char))))
15606 exit (1);
15607 fprintf (f, "%lu\n", i);
15609 exit (ferror (f) || fclose (f) != 0);
15612 return 0;
15614 _ACEOF
15615 rm -f conftest$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617 (eval $ac_link) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15626 ac_cv_sizeof_char=`cat conftest.val`
15627 else
15628 echo "$as_me: program exited with status $ac_status" >&5
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 ( exit $ac_status )
15633 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15634 See \`config.log' for more details." >&5
15635 echo "$as_me: error: cannot compute sizeof (char), 77
15636 See \`config.log' for more details." >&2;}
15637 { (exit 1); exit 1; }; }
15639 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15642 rm -f conftest.val
15643 else
15644 ac_cv_sizeof_char=0
15647 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15648 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15649 cat >>confdefs.h <<_ACEOF
15650 #define SIZEOF_CHAR $ac_cv_sizeof_char
15651 _ACEOF
15655 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15656 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15657 case "$ac_cv_sizeof_char" in
15658 1) acx_cv_type_int8_t=char ;;
15659 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15660 echo "$as_me: error: no 8-bit type" >&2;}
15661 { (exit please report a bug); exit please report a bug; }; }
15662 esac
15663 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15664 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15666 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15667 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15668 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15669 2:*) acx_cv_type_int16_t=int ;;
15670 *:2) acx_cv_type_int16_t=short ;;
15671 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15672 echo "$as_me: error: no 16-bit type" >&2;}
15673 { (exit please report a bug); exit please report a bug; }; }
15674 esac
15675 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15676 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15678 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15679 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15680 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15681 4:*) acx_cv_type_int32_t=int ;;
15682 *:4) acx_cv_type_int32_t=long ;;
15683 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15684 echo "$as_me: error: no 32-bit type" >&2;}
15685 { (exit please report a bug); exit please report a bug; }; }
15686 esac
15687 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15688 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15691 # These tests are here to make the output prettier
15693 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15694 case "$ac_cv_sizeof_long" in
15695 8) acx_cv_type_int64_t=long ;;
15696 esac
15697 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15698 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15699 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15700 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15703 # Now we can use the above types
15705 if test "$ac_cv_type_uintptr_t" != yes; then
15706 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15707 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15708 case $ac_cv_sizeof_void_p in
15709 2) acx_cv_type_intptr_t=int16_t ;;
15710 4) acx_cv_type_intptr_t=int32_t ;;
15711 8) acx_cv_type_intptr_t=int64_t ;;
15712 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15713 echo "$as_me: error: no equivalent for intptr_t" >&2;}
15714 { (exit please report a bug); exit please report a bug; }; }
15715 esac
15716 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15717 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15720 # ----------------- done all checks, emit header -------------
15721 ac_config_commands="$ac_config_commands bfd_stdint.h"
15725 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15727 if test "${ac_cv_header_time+set}" = set; then
15728 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 else
15730 cat >conftest.$ac_ext <<_ACEOF
15731 /* confdefs.h. */
15732 _ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15736 #include <sys/types.h>
15737 #include <sys/time.h>
15738 #include <time.h>
15741 main ()
15743 if ((struct tm *) 0)
15744 return 0;
15746 return 0;
15748 _ACEOF
15749 rm -f conftest.$ac_objext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15751 (eval $ac_compile) 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest.$ac_objext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 ac_cv_header_time=yes
15772 else
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 ac_cv_header_time=no
15778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15780 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15781 echo "${ECHO_T}$ac_cv_header_time" >&6
15782 if test $ac_cv_header_time = yes; then
15784 cat >>confdefs.h <<\_ACEOF
15785 #define TIME_WITH_SYS_TIME 1
15786 _ACEOF
15795 ac_header_dirent=no
15796 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15797 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15798 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15799 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h. */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 #include <sys/types.h>
15810 #include <$ac_hdr>
15813 main ()
15815 if ((DIR *) 0)
15816 return 0;
15818 return 0;
15820 _ACEOF
15821 rm -f conftest.$ac_objext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15823 (eval $ac_compile) 2>conftest.er1
15824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_c_werror_flag"
15831 || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 eval "$as_ac_Header=yes"
15844 else
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 eval "$as_ac_Header=no"
15850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15855 cat >>confdefs.h <<_ACEOF
15856 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15857 _ACEOF
15859 ac_header_dirent=$ac_hdr; break
15862 done
15863 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15864 if test $ac_header_dirent = dirent.h; then
15865 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15866 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15867 if test "${ac_cv_search_opendir+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870 ac_func_search_save_LIBS=$LIBS
15871 ac_cv_search_opendir=no
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15879 /* Override any gcc2 internal prototype to avoid an error. */
15880 #ifdef __cplusplus
15881 extern "C"
15882 #endif
15883 /* We use char because int might match the return type of a gcc2
15884 builtin and then its argument prototype would still apply. */
15885 char opendir ();
15887 main ()
15889 opendir ();
15891 return 0;
15893 _ACEOF
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15896 (eval $ac_link) 2>conftest.er1
15897 ac_status=$?
15898 grep -v '^ *+' conftest.er1 >conftest.err
15899 rm -f conftest.er1
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } &&
15903 { ac_try='test -z "$ac_c_werror_flag"
15904 || test ! -s conftest.err'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try='test -s conftest$ac_exeext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_cv_search_opendir="none required"
15917 else
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15922 rm -f conftest.err conftest.$ac_objext \
15923 conftest$ac_exeext conftest.$ac_ext
15924 if test "$ac_cv_search_opendir" = no; then
15925 for ac_lib in dir; do
15926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h. */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15934 /* Override any gcc2 internal prototype to avoid an error. */
15935 #ifdef __cplusplus
15936 extern "C"
15937 #endif
15938 /* We use char because int might match the return type of a gcc2
15939 builtin and then its argument prototype would still apply. */
15940 char opendir ();
15942 main ()
15944 opendir ();
15946 return 0;
15948 _ACEOF
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest$ac_exeext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_cv_search_opendir="-l$ac_lib"
15972 break
15973 else
15974 echo "$as_me: failed program was:" >&5
15975 sed 's/^/| /' conftest.$ac_ext >&5
15978 rm -f conftest.err conftest.$ac_objext \
15979 conftest$ac_exeext conftest.$ac_ext
15980 done
15982 LIBS=$ac_func_search_save_LIBS
15984 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15985 echo "${ECHO_T}$ac_cv_search_opendir" >&6
15986 if test "$ac_cv_search_opendir" != no; then
15987 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15991 else
15992 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15993 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15994 if test "${ac_cv_search_opendir+set}" = set; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 else
15997 ac_func_search_save_LIBS=$LIBS
15998 ac_cv_search_opendir=no
15999 cat >conftest.$ac_ext <<_ACEOF
16000 /* confdefs.h. */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16006 /* Override any gcc2 internal prototype to avoid an error. */
16007 #ifdef __cplusplus
16008 extern "C"
16009 #endif
16010 /* We use char because int might match the return type of a gcc2
16011 builtin and then its argument prototype would still apply. */
16012 char opendir ();
16014 main ()
16016 opendir ();
16018 return 0;
16020 _ACEOF
16021 rm -f conftest.$ac_objext conftest$ac_exeext
16022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16023 (eval $ac_link) 2>conftest.er1
16024 ac_status=$?
16025 grep -v '^ *+' conftest.er1 >conftest.err
16026 rm -f conftest.er1
16027 cat conftest.err >&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } &&
16030 { ac_try='test -z "$ac_c_werror_flag"
16031 || test ! -s conftest.err'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try='test -s conftest$ac_exeext'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 ac_cv_search_opendir="none required"
16044 else
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16049 rm -f conftest.err conftest.$ac_objext \
16050 conftest$ac_exeext conftest.$ac_ext
16051 if test "$ac_cv_search_opendir" = no; then
16052 for ac_lib in x; do
16053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h. */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16061 /* Override any gcc2 internal prototype to avoid an error. */
16062 #ifdef __cplusplus
16063 extern "C"
16064 #endif
16065 /* We use char because int might match the return type of a gcc2
16066 builtin and then its argument prototype would still apply. */
16067 char opendir ();
16069 main ()
16071 opendir ();
16073 return 0;
16075 _ACEOF
16076 rm -f conftest.$ac_objext conftest$ac_exeext
16077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16078 (eval $ac_link) 2>conftest.er1
16079 ac_status=$?
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } &&
16085 { ac_try='test -z "$ac_c_werror_flag"
16086 || test ! -s conftest.err'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; } &&
16092 { ac_try='test -s conftest$ac_exeext'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_cv_search_opendir="-l$ac_lib"
16099 break
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16105 rm -f conftest.err conftest.$ac_objext \
16106 conftest$ac_exeext conftest.$ac_ext
16107 done
16109 LIBS=$ac_func_search_save_LIBS
16111 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16112 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16113 if test "$ac_cv_search_opendir" != no; then
16114 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16120 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16121 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16122 if test "${gcc_cv_header_string+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 else
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 #include <string.h>
16132 #include <strings.h>
16134 main ()
16138 return 0;
16140 _ACEOF
16141 rm -f conftest.$ac_objext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143 (eval $ac_compile) 2>conftest.er1
16144 ac_status=$?
16145 grep -v '^ *+' conftest.er1 >conftest.err
16146 rm -f conftest.er1
16147 cat conftest.err >&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
16150 { ac_try='test -z "$ac_c_werror_flag"
16151 || test ! -s conftest.err'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try='test -s conftest.$ac_objext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16163 gcc_cv_header_string=yes
16164 else
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 gcc_cv_header_string=no
16170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16172 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16173 echo "${ECHO_T}$gcc_cv_header_string" >&6
16174 if test $gcc_cv_header_string = yes; then
16176 cat >>confdefs.h <<\_ACEOF
16177 #define STRING_WITH_STRINGS 1
16178 _ACEOF
16189 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
16191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16192 echo "$as_me:$LINENO: checking for $ac_func" >&5
16193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16194 if eval "test \"\${$as_ac_var+set}\" = set"; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197 cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h. */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16205 #define $ac_func innocuous_$ac_func
16207 /* System header to define __stub macros and hopefully few prototypes,
16208 which can conflict with char $ac_func (); below.
16209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16210 <limits.h> exists even on freestanding compilers. */
16212 #ifdef __STDC__
16213 # include <limits.h>
16214 #else
16215 # include <assert.h>
16216 #endif
16218 #undef $ac_func
16220 /* Override any gcc2 internal prototype to avoid an error. */
16221 #ifdef __cplusplus
16222 extern "C"
16224 #endif
16225 /* We use char because int might match the return type of a gcc2
16226 builtin and then its argument prototype would still apply. */
16227 char $ac_func ();
16228 /* The GNU C library defines this for functions which it implements
16229 to always fail with ENOSYS. Some functions are actually named
16230 something starting with __ and the normal name is an alias. */
16231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16232 choke me
16233 #else
16234 char (*f) () = $ac_func;
16235 #endif
16236 #ifdef __cplusplus
16238 #endif
16241 main ()
16243 return f != $ac_func;
16245 return 0;
16247 _ACEOF
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250 (eval $ac_link) 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } &&
16257 { ac_try='test -z "$ac_c_werror_flag"
16258 || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest$ac_exeext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 eval "$as_ac_var=yes"
16271 else
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 eval "$as_ac_var=no"
16277 rm -f conftest.err conftest.$ac_objext \
16278 conftest$ac_exeext conftest.$ac_ext
16280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16282 if test `eval echo '${'$as_ac_var'}'` = yes; then
16283 cat >>confdefs.h <<_ACEOF
16284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16285 _ACEOF
16288 done
16291 for ac_func in strtoull
16293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16294 echo "$as_me:$LINENO: checking for $ac_func" >&5
16295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16296 if eval "test \"\${$as_ac_var+set}\" = set"; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 else
16299 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16307 #define $ac_func innocuous_$ac_func
16309 /* System header to define __stub macros and hopefully few prototypes,
16310 which can conflict with char $ac_func (); below.
16311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16312 <limits.h> exists even on freestanding compilers. */
16314 #ifdef __STDC__
16315 # include <limits.h>
16316 #else
16317 # include <assert.h>
16318 #endif
16320 #undef $ac_func
16322 /* Override any gcc2 internal prototype to avoid an error. */
16323 #ifdef __cplusplus
16324 extern "C"
16326 #endif
16327 /* We use char because int might match the return type of a gcc2
16328 builtin and then its argument prototype would still apply. */
16329 char $ac_func ();
16330 /* The GNU C library defines this for functions which it implements
16331 to always fail with ENOSYS. Some functions are actually named
16332 something starting with __ and the normal name is an alias. */
16333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16334 choke me
16335 #else
16336 char (*f) () = $ac_func;
16337 #endif
16338 #ifdef __cplusplus
16340 #endif
16343 main ()
16345 return f != $ac_func;
16347 return 0;
16349 _ACEOF
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16352 (eval $ac_link) 2>conftest.er1
16353 ac_status=$?
16354 grep -v '^ *+' conftest.er1 >conftest.err
16355 rm -f conftest.er1
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -z "$ac_c_werror_flag"
16360 || test ! -s conftest.err'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; } &&
16366 { ac_try='test -s conftest$ac_exeext'
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 eval "$as_ac_var=yes"
16373 else
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 eval "$as_ac_var=no"
16379 rm -f conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
16382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16384 if test `eval echo '${'$as_ac_var'}'` = yes; then
16385 cat >>confdefs.h <<_ACEOF
16386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16387 _ACEOF
16390 done
16393 echo "$as_me:$LINENO: checking whether basename is declared" >&5
16394 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16395 if test "${ac_cv_have_decl_basename+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 else
16398 cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h. */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 $ac_includes_default
16406 main ()
16408 #ifndef basename
16409 char *p = (char *) basename;
16410 #endif
16413 return 0;
16415 _ACEOF
16416 rm -f conftest.$ac_objext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418 (eval $ac_compile) 2>conftest.er1
16419 ac_status=$?
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
16425 { ac_try='test -z "$ac_c_werror_flag"
16426 || test ! -s conftest.err'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest.$ac_objext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_have_decl_basename=yes
16439 else
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_cv_have_decl_basename=no
16445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16447 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16448 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16449 if test $ac_cv_have_decl_basename = yes; then
16451 cat >>confdefs.h <<_ACEOF
16452 #define HAVE_DECL_BASENAME 1
16453 _ACEOF
16456 else
16457 cat >>confdefs.h <<_ACEOF
16458 #define HAVE_DECL_BASENAME 0
16459 _ACEOF
16465 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16466 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16467 if test "${ac_cv_have_decl_ftello+set}" = set; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 else
16470 cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h. */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 $ac_includes_default
16478 main ()
16480 #ifndef ftello
16481 char *p = (char *) ftello;
16482 #endif
16485 return 0;
16487 _ACEOF
16488 rm -f conftest.$ac_objext
16489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16490 (eval $ac_compile) 2>conftest.er1
16491 ac_status=$?
16492 grep -v '^ *+' conftest.er1 >conftest.err
16493 rm -f conftest.er1
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
16497 { ac_try='test -z "$ac_c_werror_flag"
16498 || test ! -s conftest.err'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; } &&
16504 { ac_try='test -s conftest.$ac_objext'
16505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506 (eval $ac_try) 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; }; then
16510 ac_cv_have_decl_ftello=yes
16511 else
16512 echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16515 ac_cv_have_decl_ftello=no
16517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16519 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16520 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16521 if test $ac_cv_have_decl_ftello = yes; then
16523 cat >>confdefs.h <<_ACEOF
16524 #define HAVE_DECL_FTELLO 1
16525 _ACEOF
16528 else
16529 cat >>confdefs.h <<_ACEOF
16530 #define HAVE_DECL_FTELLO 0
16531 _ACEOF
16537 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16538 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16539 if test "${ac_cv_have_decl_ftello64+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 else
16542 cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h. */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548 $ac_includes_default
16550 main ()
16552 #ifndef ftello64
16553 char *p = (char *) ftello64;
16554 #endif
16557 return 0;
16559 _ACEOF
16560 rm -f conftest.$ac_objext
16561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16562 (eval $ac_compile) 2>conftest.er1
16563 ac_status=$?
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } &&
16569 { ac_try='test -z "$ac_c_werror_flag"
16570 || test ! -s conftest.err'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; } &&
16576 { ac_try='test -s conftest.$ac_objext'
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 ac_cv_have_decl_ftello64=yes
16583 else
16584 echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16587 ac_cv_have_decl_ftello64=no
16589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16591 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16592 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16593 if test $ac_cv_have_decl_ftello64 = yes; then
16595 cat >>confdefs.h <<_ACEOF
16596 #define HAVE_DECL_FTELLO64 1
16597 _ACEOF
16600 else
16601 cat >>confdefs.h <<_ACEOF
16602 #define HAVE_DECL_FTELLO64 0
16603 _ACEOF
16609 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16610 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16611 if test "${ac_cv_have_decl_fseeko+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614 cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h. */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16620 $ac_includes_default
16622 main ()
16624 #ifndef fseeko
16625 char *p = (char *) fseeko;
16626 #endif
16629 return 0;
16631 _ACEOF
16632 rm -f conftest.$ac_objext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16634 (eval $ac_compile) 2>conftest.er1
16635 ac_status=$?
16636 grep -v '^ *+' conftest.er1 >conftest.err
16637 rm -f conftest.er1
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } &&
16641 { ac_try='test -z "$ac_c_werror_flag"
16642 || test ! -s conftest.err'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; } &&
16648 { ac_try='test -s conftest.$ac_objext'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_have_decl_fseeko=yes
16655 else
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16659 ac_cv_have_decl_fseeko=no
16661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16664 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16665 if test $ac_cv_have_decl_fseeko = yes; then
16667 cat >>confdefs.h <<_ACEOF
16668 #define HAVE_DECL_FSEEKO 1
16669 _ACEOF
16672 else
16673 cat >>confdefs.h <<_ACEOF
16674 #define HAVE_DECL_FSEEKO 0
16675 _ACEOF
16681 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16682 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16683 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686 cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h. */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692 $ac_includes_default
16694 main ()
16696 #ifndef fseeko64
16697 char *p = (char *) fseeko64;
16698 #endif
16701 return 0;
16703 _ACEOF
16704 rm -f conftest.$ac_objext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16706 (eval $ac_compile) 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -z "$ac_c_werror_flag"
16714 || test ! -s conftest.err'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; } &&
16720 { ac_try='test -s conftest.$ac_objext'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_cv_have_decl_fseeko64=yes
16727 else
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 ac_cv_have_decl_fseeko64=no
16733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16736 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16737 if test $ac_cv_have_decl_fseeko64 = yes; then
16739 cat >>confdefs.h <<_ACEOF
16740 #define HAVE_DECL_FSEEKO64 1
16741 _ACEOF
16744 else
16745 cat >>confdefs.h <<_ACEOF
16746 #define HAVE_DECL_FSEEKO64 0
16747 _ACEOF
16755 case "${host}" in
16756 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16758 cat >>confdefs.h <<\_ACEOF
16759 #define USE_BINARY_FOPEN 1
16760 _ACEOF
16762 esac
16764 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16765 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16766 if test "${ac_cv_have_decl_ffs+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769 cat >conftest.$ac_ext <<_ACEOF
16770 /* confdefs.h. */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775 $ac_includes_default
16777 main ()
16779 #ifndef ffs
16780 char *p = (char *) ffs;
16781 #endif
16784 return 0;
16786 _ACEOF
16787 rm -f conftest.$ac_objext
16788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16789 (eval $ac_compile) 2>conftest.er1
16790 ac_status=$?
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
16796 { ac_try='test -z "$ac_c_werror_flag"
16797 || test ! -s conftest.err'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest.$ac_objext'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_cv_have_decl_ffs=yes
16810 else
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16814 ac_cv_have_decl_ffs=no
16816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16818 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16819 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16820 if test $ac_cv_have_decl_ffs = yes; then
16822 cat >>confdefs.h <<_ACEOF
16823 #define HAVE_DECL_FFS 1
16824 _ACEOF
16827 else
16828 cat >>confdefs.h <<_ACEOF
16829 #define HAVE_DECL_FFS 0
16830 _ACEOF
16836 echo "$as_me:$LINENO: checking whether free is declared" >&5
16837 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16838 if test "${ac_cv_have_decl_free+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841 cat >conftest.$ac_ext <<_ACEOF
16842 /* confdefs.h. */
16843 _ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16847 $ac_includes_default
16849 main ()
16851 #ifndef free
16852 char *p = (char *) free;
16853 #endif
16856 return 0;
16858 _ACEOF
16859 rm -f conftest.$ac_objext
16860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16861 (eval $ac_compile) 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag"
16869 || test ! -s conftest.err'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest.$ac_objext'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
16881 ac_cv_have_decl_free=yes
16882 else
16883 echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.$ac_ext >&5
16886 ac_cv_have_decl_free=no
16888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16890 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16891 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16892 if test $ac_cv_have_decl_free = yes; then
16894 cat >>confdefs.h <<_ACEOF
16895 #define HAVE_DECL_FREE 1
16896 _ACEOF
16899 else
16900 cat >>confdefs.h <<_ACEOF
16901 #define HAVE_DECL_FREE 0
16902 _ACEOF
16908 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16909 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16910 if test "${ac_cv_have_decl_getenv+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h. */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 $ac_includes_default
16921 main ()
16923 #ifndef getenv
16924 char *p = (char *) getenv;
16925 #endif
16928 return 0;
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933 (eval $ac_compile) 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest.$ac_objext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_cv_have_decl_getenv=yes
16954 else
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 ac_cv_have_decl_getenv=no
16960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16962 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16963 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16964 if test $ac_cv_have_decl_getenv = yes; then
16966 cat >>confdefs.h <<_ACEOF
16967 #define HAVE_DECL_GETENV 1
16968 _ACEOF
16971 else
16972 cat >>confdefs.h <<_ACEOF
16973 #define HAVE_DECL_GETENV 0
16974 _ACEOF
16980 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16981 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16982 if test "${ac_cv_have_decl_malloc+set}" = set; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 else
16985 cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h. */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 $ac_includes_default
16993 main ()
16995 #ifndef malloc
16996 char *p = (char *) malloc;
16997 #endif
17000 return 0;
17002 _ACEOF
17003 rm -f conftest.$ac_objext
17004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17005 (eval $ac_compile) 2>conftest.er1
17006 ac_status=$?
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
17012 { ac_try='test -z "$ac_c_werror_flag"
17013 || test ! -s conftest.err'
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; } &&
17019 { ac_try='test -s conftest.$ac_objext'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ac_cv_have_decl_malloc=yes
17026 else
17027 echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17030 ac_cv_have_decl_malloc=no
17032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17034 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17035 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17036 if test $ac_cv_have_decl_malloc = yes; then
17038 cat >>confdefs.h <<_ACEOF
17039 #define HAVE_DECL_MALLOC 1
17040 _ACEOF
17043 else
17044 cat >>confdefs.h <<_ACEOF
17045 #define HAVE_DECL_MALLOC 0
17046 _ACEOF
17052 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17053 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17054 if test "${ac_cv_have_decl_realloc+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h. */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 $ac_includes_default
17065 main ()
17067 #ifndef realloc
17068 char *p = (char *) realloc;
17069 #endif
17072 return 0;
17074 _ACEOF
17075 rm -f conftest.$ac_objext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17077 (eval $ac_compile) 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
17084 { ac_try='test -z "$ac_c_werror_flag"
17085 || test ! -s conftest.err'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest.$ac_objext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ac_cv_have_decl_realloc=yes
17098 else
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17102 ac_cv_have_decl_realloc=no
17104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17106 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17107 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17108 if test $ac_cv_have_decl_realloc = yes; then
17110 cat >>confdefs.h <<_ACEOF
17111 #define HAVE_DECL_REALLOC 1
17112 _ACEOF
17115 else
17116 cat >>confdefs.h <<_ACEOF
17117 #define HAVE_DECL_REALLOC 0
17118 _ACEOF
17124 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17125 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17126 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17128 else
17129 cat >conftest.$ac_ext <<_ACEOF
17130 /* confdefs.h. */
17131 _ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17135 $ac_includes_default
17137 main ()
17139 #ifndef stpcpy
17140 char *p = (char *) stpcpy;
17141 #endif
17144 return 0;
17146 _ACEOF
17147 rm -f conftest.$ac_objext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149 (eval $ac_compile) 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag"
17157 || test ! -s conftest.err'
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest.$ac_objext'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_cv_have_decl_stpcpy=yes
17170 else
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ac_cv_have_decl_stpcpy=no
17176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17178 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17179 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17180 if test $ac_cv_have_decl_stpcpy = yes; then
17182 cat >>confdefs.h <<_ACEOF
17183 #define HAVE_DECL_STPCPY 1
17184 _ACEOF
17187 else
17188 cat >>confdefs.h <<_ACEOF
17189 #define HAVE_DECL_STPCPY 0
17190 _ACEOF
17196 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17197 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17198 if test "${ac_cv_have_decl_strstr+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h. */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17207 $ac_includes_default
17209 main ()
17211 #ifndef strstr
17212 char *p = (char *) strstr;
17213 #endif
17216 return 0;
17218 _ACEOF
17219 rm -f conftest.$ac_objext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17221 (eval $ac_compile) 2>conftest.er1
17222 ac_status=$?
17223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag"
17229 || test ! -s conftest.err'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest.$ac_objext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ac_cv_have_decl_strstr=yes
17242 else
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 ac_cv_have_decl_strstr=no
17248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17250 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17251 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17252 if test $ac_cv_have_decl_strstr = yes; then
17254 cat >>confdefs.h <<_ACEOF
17255 #define HAVE_DECL_STRSTR 1
17256 _ACEOF
17259 else
17260 cat >>confdefs.h <<_ACEOF
17261 #define HAVE_DECL_STRSTR 0
17262 _ACEOF
17268 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17269 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17270 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273 cat >conftest.$ac_ext <<_ACEOF
17274 /* confdefs.h. */
17275 _ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h. */
17279 $ac_includes_default
17281 main ()
17283 #ifndef snprintf
17284 char *p = (char *) snprintf;
17285 #endif
17288 return 0;
17290 _ACEOF
17291 rm -f conftest.$ac_objext
17292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17293 (eval $ac_compile) 2>conftest.er1
17294 ac_status=$?
17295 grep -v '^ *+' conftest.er1 >conftest.err
17296 rm -f conftest.er1
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -z "$ac_c_werror_flag"
17301 || test ! -s conftest.err'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; } &&
17307 { ac_try='test -s conftest.$ac_objext'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 ac_cv_have_decl_snprintf=yes
17314 else
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 ac_cv_have_decl_snprintf=no
17320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17322 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17323 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17324 if test $ac_cv_have_decl_snprintf = yes; then
17326 cat >>confdefs.h <<_ACEOF
17327 #define HAVE_DECL_SNPRINTF 1
17328 _ACEOF
17331 else
17332 cat >>confdefs.h <<_ACEOF
17333 #define HAVE_DECL_SNPRINTF 0
17334 _ACEOF
17340 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17341 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17342 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345 cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h. */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 $ac_includes_default
17353 main ()
17355 #ifndef vsnprintf
17356 char *p = (char *) vsnprintf;
17357 #endif
17360 return 0;
17362 _ACEOF
17363 rm -f conftest.$ac_objext
17364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17365 (eval $ac_compile) 2>conftest.er1
17366 ac_status=$?
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
17372 { ac_try='test -z "$ac_c_werror_flag"
17373 || test ! -s conftest.err'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; } &&
17379 { ac_try='test -s conftest.$ac_objext'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_cv_have_decl_vsnprintf=yes
17386 else
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17390 ac_cv_have_decl_vsnprintf=no
17392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17394 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17395 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17396 if test $ac_cv_have_decl_vsnprintf = yes; then
17398 cat >>confdefs.h <<_ACEOF
17399 #define HAVE_DECL_VSNPRINTF 1
17400 _ACEOF
17403 else
17404 cat >>confdefs.h <<_ACEOF
17405 #define HAVE_DECL_VSNPRINTF 0
17406 _ACEOF
17413 # If we are configured native, pick a core file support file.
17414 COREFILE=
17415 COREFLAG=
17416 TRAD_HEADER=
17417 if test "${target}" = "${host}"; then
17418 case "${host}" in
17419 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
17420 COREFILE=''
17422 alpha*-*-linux-*)
17423 COREFILE=trad-core.lo
17424 TRAD_HEADER='"hosts/alphalinux.h"'
17426 alpha*-*-netbsd* | alpha*-*-openbsd*)
17427 COREFILE=netbsd-core.lo
17429 alpha*-*-*) COREFILE=osf-core.lo ;;
17430 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17431 COREFILE='' ;;
17432 arm-*-netbsd* | arm-*-openbsd*)
17433 COREFILE=netbsd-core.lo
17435 arm-*-riscix) COREFILE=trad-core.lo ;;
17436 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
17437 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
17438 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
17439 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
17440 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
17441 hppa*-*-netbsd* | hppa*-*-openbsd*)
17442 COREFILE=netbsd-core.lo
17445 i370-*-*)
17446 COREFILE=trad-core.lo
17447 TRAD_HEADER='"hosts/i370linux.h"'
17450 i[3-7]86-sequent-bsd*)
17451 COREFILE=trad-core.lo
17452 TRAD_HEADER='"hosts/symmetry.h"'
17454 i[3-7]86-sequent-sysv4*) ;;
17455 i[3-7]86-sequent-sysv*)
17456 COREFILE=trad-core.lo
17457 TRAD_HEADER='"hosts/symmetry.h"'
17459 i[3-7]86-*-bsdi)
17460 COREFILE=
17462 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*)
17463 COREFILE=trad-core.lo
17464 TRAD_HEADER='"hosts/i386bsd.h"'
17466 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
17467 COREFILE=''
17468 TRAD_HEADER='"hosts/i386bsd.h"'
17470 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
17471 COREFILE=netbsd-core.lo
17473 i[3-7]86-esix-sysv3*)
17474 COREFILE=trad-core.lo
17475 TRAD_HEADER='"hosts/esix.h"'
17477 i[3-7]86-*-sco3.2v5*)
17478 COREFILE=sco5-core.lo
17480 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
17481 COREFILE=trad-core.lo
17482 TRAD_HEADER='"hosts/i386sco.h"'
17484 i[3-7]86-*-mach3*)
17485 COREFILE=trad-core.lo
17486 TRAD_HEADER='"hosts/i386mach3.h"'
17488 i[3-7]86-*-linux-*)
17489 COREFILE=trad-core.lo
17490 TRAD_HEADER='"hosts/i386linux.h"'
17492 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17493 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
17494 i860-*-mach3* | i860-*-osf1*)
17495 COREFILE=trad-core.lo
17496 TRAD_HEADER='"hosts/i860mach3.h"'
17498 mips-*-netbsd* | mips*-*-openbsd*)
17499 COREFILE=netbsd-core.lo
17501 mips-dec-*)
17502 COREFILE=trad-core.lo
17503 TRAD_HEADER='"hosts/decstation.h"'
17505 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17506 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17507 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
17508 mips-*-sysv4*) ;;
17509 mips-*-sysv* | mips-*-riscos*)
17510 COREFILE=trad-core.lo
17511 TRAD_HEADER='"hosts/riscos.h"'
17513 mips-sony-bsd*)
17514 COREFILE=trad-core.lo
17515 TRAD_HEADER='"hosts/news-mips.h"'
17517 m68*-bull*-sysv*)
17518 COREFILE=trad-core.lo
17519 TRAD_HEADER='"hosts/dpx2.h"'
17521 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17522 m68*-hp-bsd*)
17523 COREFILE=trad-core.lo
17524 TRAD_HEADER='"hosts/hp300bsd.h"'
17526 m68*-*-linux-*)
17527 COREFILE=trad-core.lo
17528 TRAD_HEADER='"hosts/m68klinux.h"'
17530 m68*-motorola-sysv*)
17531 COREFILE=trad-core.lo
17532 TRAD_HEADER='"hosts/delta68.h"'
17534 m68*-sony-*)
17535 COREFILE=trad-core.lo
17536 TRAD_HEADER='"hosts/news.h"'
17538 m68*-*-netbsd* | m68*-*-openbsd*)
17539 COREFILE=netbsd-core.lo
17541 m68*-apple-aux*)
17542 COREFILE=trad-core.lo
17543 TRAD_HEADER='"hosts/m68kaux.h"'
17545 m88*-*-sysv4*)
17547 m88*-motorola-sysv*)
17548 COREFILE=ptrace-core.lo
17550 m88*-*-mach3*)
17551 COREFILE=trad-core.lo
17552 TRAD_HEADER='"hosts/m88kmach3.h"'
17554 m88*-*-openbsd*)
17555 COREFILE=netbsd-core.lo
17557 ns32k-pc532-mach)
17558 COREFILE=trad-core.lo
17559 TRAD_HEADER='"hosts/pc532mach.h"'
17561 ns32k-*-netbsd* | ns32k-*-openbsd*)
17562 COREFILE=netbsd-core.lo
17564 rs6000-*-lynx*)
17565 COREFILE=lynx-core.lo
17567 rs6000-*-aix5.* | powerpc-*-aix5.*)
17568 COREFILE=rs6000-core.lo
17569 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17571 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
17572 COREFILE=rs6000-core.lo
17573 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
17574 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17575 # have c_impl as a member of struct core_dumpx
17576 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17577 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584 #include <core.h>
17586 main ()
17588 struct core_dumpx c; c.c_impl = 0;
17590 return 0;
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595 (eval $ac_compile) 2>conftest.er1
17596 ac_status=$?
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest.$ac_objext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17616 cat >>confdefs.h <<\_ACEOF
17617 #define HAVE_ST_C_IMPL 1
17618 _ACEOF
17620 echo "$as_me:$LINENO: result: yes" >&5
17621 echo "${ECHO_T}yes" >&6
17622 else
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 echo "$as_me:$LINENO: result: no" >&5
17627 echo "${ECHO_T}no" >&6
17629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17631 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17632 rs6000-*-*) COREFILE=rs6000-core.lo ;;
17633 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17634 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17635 powerpc-*-beos*) ;;
17636 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17637 COREFILE='' ;;
17638 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
17639 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
17640 s390*-*-*) COREFILE=trad-core.lo ;;
17641 sh*-*-netbsd* | sh*-*-openbsd*)
17642 COREFILE=netbsd-core.lo
17644 sparc-*-netbsd* | sparc*-*-openbsd*)
17645 COREFILE=netbsd-core.lo
17647 tahoe-*-*)
17648 COREFILE=trad-core.lo
17649 TRAD_HEADER='"hosts/tahoe.h"'
17651 vax-*-netbsd* | vax-*-openbsd*)
17652 COREFILE=netbsd-core.lo
17654 vax-*-ultrix2*)
17655 COREFILE=trad-core.lo
17656 TRAD_HEADER='"hosts/vaxult2.h"'
17658 vax-*-ultrix*)
17659 COREFILE=trad-core.lo
17660 TRAD_HEADER='"hosts/vaxult2.h"'
17662 vax-*-linux-*)
17663 COREFILE=trad-core.lo
17664 TRAD_HEADER='"hosts/vaxlinux.h"'
17666 vax-*-*)
17667 COREFILE=trad-core.lo
17668 TRAD_HEADER='"hosts/vaxbsd.h"'
17670 x86_64-*-netbsd* | x86_64-*-openbsd*)
17671 COREFILE=netbsd-core.lo
17673 esac
17675 case "$COREFILE" in
17676 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17677 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17678 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17679 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17680 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17681 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17682 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17683 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17684 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17685 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17686 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17687 esac
17689 # ELF corefile support has several flavors, but all of
17690 # them use something called <sys/procfs.h>
17692 for ac_header in sys/procfs.h
17694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17696 echo "$as_me:$LINENO: checking for $ac_header" >&5
17697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17703 else
17704 # Is the header compilable?
17705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17707 cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h. */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 $ac_includes_default
17714 #include <$ac_header>
17715 _ACEOF
17716 rm -f conftest.$ac_objext
17717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17718 (eval $ac_compile) 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_c_werror_flag"
17726 || test ! -s conftest.err'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest.$ac_objext'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 ac_header_compiler=yes
17739 else
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17743 ac_header_compiler=no
17745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17747 echo "${ECHO_T}$ac_header_compiler" >&6
17749 # Is the header present?
17750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h. */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17758 #include <$ac_header>
17759 _ACEOF
17760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17762 ac_status=$?
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } >/dev/null; then
17768 if test -s conftest.err; then
17769 ac_cpp_err=$ac_c_preproc_warn_flag
17770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17771 else
17772 ac_cpp_err=
17774 else
17775 ac_cpp_err=yes
17777 if test -z "$ac_cpp_err"; then
17778 ac_header_preproc=yes
17779 else
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17783 ac_header_preproc=no
17785 rm -f conftest.err conftest.$ac_ext
17786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17787 echo "${ECHO_T}$ac_header_preproc" >&6
17789 # So? What about this header?
17790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17791 yes:no: )
17792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17796 ac_header_preproc=yes
17798 no:yes:* )
17799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17812 cat <<\_ASBOX
17813 ## ------------------------------------------ ##
17814 ## Report this to the AC_PACKAGE_NAME lists. ##
17815 ## ------------------------------------------ ##
17816 _ASBOX
17818 sed "s/^/$as_me: WARNING: /" >&2
17820 esac
17821 echo "$as_me:$LINENO: checking for $ac_header" >&5
17822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826 eval "$as_ac_Header=\$ac_header_preproc"
17828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17833 cat >>confdefs.h <<_ACEOF
17834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17835 _ACEOF
17839 done
17841 if test "$ac_cv_header_sys_procfs_h" = yes; then
17842 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17843 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17844 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847 cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h. */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17854 #define _SYSCALL32
17855 #include <sys/procfs.h>
17857 main ()
17859 prstatus_t avar
17861 return 0;
17863 _ACEOF
17864 rm -f conftest.$ac_objext
17865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17866 (eval $ac_compile) 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } &&
17873 { ac_try='test -z "$ac_c_werror_flag"
17874 || test ! -s conftest.err'
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest.$ac_objext'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; }; then
17886 bfd_cv_have_sys_procfs_type_prstatus_t=yes
17887 else
17888 echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17891 bfd_cv_have_sys_procfs_type_prstatus_t=no
17894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17897 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
17899 cat >>confdefs.h <<\_ACEOF
17900 #define HAVE_PRSTATUS_T 1
17901 _ACEOF
17904 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17905 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
17907 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17908 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17909 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912 cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h. */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17919 #define _SYSCALL32
17920 #include <sys/procfs.h>
17922 main ()
17924 prstatus32_t avar
17926 return 0;
17928 _ACEOF
17929 rm -f conftest.$ac_objext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17931 (eval $ac_compile) 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag"
17939 || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest.$ac_objext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17952 else
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 bfd_cv_have_sys_procfs_type_prstatus32_t=no
17959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17962 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_PRSTATUS32_T 1
17966 _ACEOF
17969 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17970 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
17972 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17973 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17974 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977 cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h. */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17984 #define _SYSCALL32
17985 #include <sys/procfs.h>
17987 main ()
17989 prstatus_t avar; void* aref = (void*) &avar.pr_who
17991 return 0;
17993 _ACEOF
17994 rm -f conftest.$ac_objext
17995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17996 (eval $ac_compile) 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -z "$ac_c_werror_flag"
18004 || test ! -s conftest.err'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest.$ac_objext'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18017 else
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18027 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
18029 cat >>confdefs.h <<\_ACEOF
18030 #define HAVE_PRSTATUS_T_PR_WHO 1
18031 _ACEOF
18034 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18035 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
18037 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18038 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18039 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 else
18042 cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18049 #define _SYSCALL32
18050 #include <sys/procfs.h>
18052 main ()
18054 prstatus32_t avar; void* aref = (void*) &avar.pr_who
18056 return 0;
18058 _ACEOF
18059 rm -f conftest.$ac_objext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18061 (eval $ac_compile) 2>conftest.er1
18062 ac_status=$?
18063 grep -v '^ *+' conftest.er1 >conftest.err
18064 rm -f conftest.er1
18065 cat conftest.err >&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } &&
18068 { ac_try='test -z "$ac_c_werror_flag"
18069 || test ! -s conftest.err'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest.$ac_objext'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; }; then
18081 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18082 else
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18086 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18092 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
18094 cat >>confdefs.h <<\_ACEOF
18095 #define HAVE_PRSTATUS32_T_PR_WHO 1
18096 _ACEOF
18099 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18100 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
18102 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18103 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18104 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 else
18107 cat >conftest.$ac_ext <<_ACEOF
18108 /* confdefs.h. */
18109 _ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18114 #define _SYSCALL32
18115 #include <sys/procfs.h>
18117 main ()
18119 pstatus_t avar
18121 return 0;
18123 _ACEOF
18124 rm -f conftest.$ac_objext
18125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18126 (eval $ac_compile) 2>conftest.er1
18127 ac_status=$?
18128 grep -v '^ *+' conftest.er1 >conftest.err
18129 rm -f conftest.er1
18130 cat conftest.err >&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } &&
18133 { ac_try='test -z "$ac_c_werror_flag"
18134 || test ! -s conftest.err'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; } &&
18140 { ac_try='test -s conftest.$ac_objext'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; }; then
18146 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18147 else
18148 echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18151 bfd_cv_have_sys_procfs_type_pstatus_t=no
18154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18157 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18159 cat >>confdefs.h <<\_ACEOF
18160 #define HAVE_PSTATUS_T 1
18161 _ACEOF
18164 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18165 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18167 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18168 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18169 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h. */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18179 #define _SYSCALL32
18180 #include <sys/procfs.h>
18182 main ()
18184 pxstatus_t avar
18186 return 0;
18188 _ACEOF
18189 rm -f conftest.$ac_objext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18191 (eval $ac_compile) 2>conftest.er1
18192 ac_status=$?
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag"
18199 || test ! -s conftest.err'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest.$ac_objext'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18212 else
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 bfd_cv_have_sys_procfs_type_pxstatus_t=no
18219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18222 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
18224 cat >>confdefs.h <<\_ACEOF
18225 #define HAVE_PXSTATUS_T 1
18226 _ACEOF
18229 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18230 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
18232 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18233 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18234 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 else
18237 cat >conftest.$ac_ext <<_ACEOF
18238 /* confdefs.h. */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18244 #define _SYSCALL32
18245 #include <sys/procfs.h>
18247 main ()
18249 pstatus32_t avar
18251 return 0;
18253 _ACEOF
18254 rm -f conftest.$ac_objext
18255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18256 (eval $ac_compile) 2>conftest.er1
18257 ac_status=$?
18258 grep -v '^ *+' conftest.er1 >conftest.err
18259 rm -f conftest.er1
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -z "$ac_c_werror_flag"
18264 || test ! -s conftest.err'
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; } &&
18270 { ac_try='test -s conftest.$ac_objext'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; }; then
18276 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18277 else
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18281 bfd_cv_have_sys_procfs_type_pstatus32_t=no
18284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18287 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
18289 cat >>confdefs.h <<\_ACEOF
18290 #define HAVE_PSTATUS32_T 1
18291 _ACEOF
18294 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18295 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
18297 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18298 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18299 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 else
18302 cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h. */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18309 #define _SYSCALL32
18310 #include <sys/procfs.h>
18312 main ()
18314 prpsinfo_t avar
18316 return 0;
18318 _ACEOF
18319 rm -f conftest.$ac_objext
18320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18321 (eval $ac_compile) 2>conftest.er1
18322 ac_status=$?
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
18328 { ac_try='test -z "$ac_c_werror_flag"
18329 || test ! -s conftest.err'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest.$ac_objext'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18342 else
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18352 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
18354 cat >>confdefs.h <<\_ACEOF
18355 #define HAVE_PRPSINFO_T 1
18356 _ACEOF
18359 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18360 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
18362 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18363 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18364 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 else
18367 cat >conftest.$ac_ext <<_ACEOF
18368 /* confdefs.h. */
18369 _ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18374 #define _SYSCALL32
18375 #include <sys/procfs.h>
18377 main ()
18379 prpsinfo32_t avar
18381 return 0;
18383 _ACEOF
18384 rm -f conftest.$ac_objext
18385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18386 (eval $ac_compile) 2>conftest.er1
18387 ac_status=$?
18388 grep -v '^ *+' conftest.er1 >conftest.err
18389 rm -f conftest.er1
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } &&
18393 { ac_try='test -z "$ac_c_werror_flag"
18394 || test ! -s conftest.err'
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; } &&
18400 { ac_try='test -s conftest.$ac_objext'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18407 else
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18411 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18417 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
18419 cat >>confdefs.h <<\_ACEOF
18420 #define HAVE_PRPSINFO32_T 1
18421 _ACEOF
18424 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18425 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
18427 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18428 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18429 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432 cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h. */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18439 #define _SYSCALL32
18440 #include <sys/procfs.h>
18442 main ()
18444 psinfo_t avar
18446 return 0;
18448 _ACEOF
18449 rm -f conftest.$ac_objext
18450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18451 (eval $ac_compile) 2>conftest.er1
18452 ac_status=$?
18453 grep -v '^ *+' conftest.er1 >conftest.err
18454 rm -f conftest.er1
18455 cat conftest.err >&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } &&
18458 { ac_try='test -z "$ac_c_werror_flag"
18459 || test ! -s conftest.err'
18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; } &&
18465 { ac_try='test -s conftest.$ac_objext'
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
18471 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18472 else
18473 echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18476 bfd_cv_have_sys_procfs_type_psinfo_t=no
18479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18482 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
18484 cat >>confdefs.h <<\_ACEOF
18485 #define HAVE_PSINFO_T 1
18486 _ACEOF
18489 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18490 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
18492 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18493 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18494 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 else
18497 cat >conftest.$ac_ext <<_ACEOF
18498 /* confdefs.h. */
18499 _ACEOF
18500 cat confdefs.h >>conftest.$ac_ext
18501 cat >>conftest.$ac_ext <<_ACEOF
18502 /* end confdefs.h. */
18504 #define _SYSCALL32
18505 #include <sys/procfs.h>
18507 main ()
18509 psinfo32_t avar
18511 return 0;
18513 _ACEOF
18514 rm -f conftest.$ac_objext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18516 (eval $ac_compile) 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_c_werror_flag"
18524 || test ! -s conftest.err'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest.$ac_objext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18537 else
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18541 bfd_cv_have_sys_procfs_type_psinfo32_t=no
18544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18547 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
18549 cat >>confdefs.h <<\_ACEOF
18550 #define HAVE_PSINFO32_T 1
18551 _ACEOF
18554 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18555 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
18557 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18558 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18559 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562 cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h. */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18569 #define _SYSCALL32
18570 #include <sys/procfs.h>
18572 main ()
18574 lwpstatus_t avar
18576 return 0;
18578 _ACEOF
18579 rm -f conftest.$ac_objext
18580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18581 (eval $ac_compile) 2>conftest.er1
18582 ac_status=$?
18583 grep -v '^ *+' conftest.er1 >conftest.err
18584 rm -f conftest.er1
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
18588 { ac_try='test -z "$ac_c_werror_flag"
18589 || test ! -s conftest.err'
18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest.$ac_objext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18602 else
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18606 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18612 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
18614 cat >>confdefs.h <<\_ACEOF
18615 #define HAVE_LWPSTATUS_T 1
18616 _ACEOF
18619 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18620 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
18622 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18623 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18624 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18625 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 else
18627 cat >conftest.$ac_ext <<_ACEOF
18628 /* confdefs.h. */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18634 #define _SYSCALL32
18635 #include <sys/procfs.h>
18637 main ()
18639 lwpxstatus_t avar
18641 return 0;
18643 _ACEOF
18644 rm -f conftest.$ac_objext
18645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646 (eval $ac_compile) 2>conftest.er1
18647 ac_status=$?
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
18653 { ac_try='test -z "$ac_c_werror_flag"
18654 || test ! -s conftest.err'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest.$ac_objext'
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18677 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
18679 cat >>confdefs.h <<\_ACEOF
18680 #define HAVE_LWPXSTATUS_T 1
18681 _ACEOF
18684 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18685 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
18687 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18688 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18689 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 else
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h. */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18699 #define _SYSCALL32
18700 #include <sys/procfs.h>
18702 main ()
18704 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
18706 return 0;
18708 _ACEOF
18709 rm -f conftest.$ac_objext
18710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18711 (eval $ac_compile) 2>conftest.er1
18712 ac_status=$?
18713 grep -v '^ *+' conftest.er1 >conftest.err
18714 rm -f conftest.er1
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -z "$ac_c_werror_flag"
18719 || test ! -s conftest.err'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest.$ac_objext'
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18732 else
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18736 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18742 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
18744 cat >>confdefs.h <<\_ACEOF
18745 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
18746 _ACEOF
18749 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18750 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
18752 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18753 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18754 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 else
18757 cat >conftest.$ac_ext <<_ACEOF
18758 /* confdefs.h. */
18759 _ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h. */
18764 #define _SYSCALL32
18765 #include <sys/procfs.h>
18767 main ()
18769 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
18771 return 0;
18773 _ACEOF
18774 rm -f conftest.$ac_objext
18775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18776 (eval $ac_compile) 2>conftest.er1
18777 ac_status=$?
18778 grep -v '^ *+' conftest.er1 >conftest.err
18779 rm -f conftest.er1
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } &&
18783 { ac_try='test -z "$ac_c_werror_flag"
18784 || test ! -s conftest.err'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } &&
18790 { ac_try='test -s conftest.$ac_objext'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18797 else
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18801 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18807 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
18809 cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_LWPSTATUS_T_PR_REG 1
18811 _ACEOF
18814 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18815 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
18817 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18818 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18819 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822 cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h. */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18829 #define _SYSCALL32
18830 #include <sys/procfs.h>
18832 main ()
18834 win32_pstatus_t avar
18836 return 0;
18838 _ACEOF
18839 rm -f conftest.$ac_objext
18840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18841 (eval $ac_compile) 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try='test -z "$ac_c_werror_flag"
18849 || test ! -s conftest.err'
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; } &&
18855 { ac_try='test -s conftest.$ac_objext'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; }; then
18861 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18862 else
18863 echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18866 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18872 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
18874 cat >>confdefs.h <<\_ACEOF
18875 #define HAVE_WIN32_PSTATUS_T 1
18876 _ACEOF
18879 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18880 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
18886 if test -n "$TRAD_HEADER"; then
18888 cat >>confdefs.h <<_ACEOF
18889 #define TRAD_HEADER $TRAD_HEADER
18890 _ACEOF
18894 # Horrible hacks to build DLLs on Windows.
18895 WIN32LDFLAGS=
18896 WIN32LIBADD=
18897 case "${host}" in
18898 *-*-cygwin*)
18899 if test "$enable_shared" = "yes"; then
18900 WIN32LDFLAGS="-no-undefined"
18901 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18904 *-*-linux*)
18905 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18906 # libiberty.a.
18907 case "${host}" in
18908 mips*-*-linux*)
18909 # Linux/MIPS uses PIC by default.
18910 if test "$enable_shared" = "yes"; then
18911 WIN32LIBADD="-L../libiberty -liberty"
18915 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
18916 if test -n "$x"; then
18917 WIN32LIBADD="-L../libiberty/pic -liberty"
18920 esac
18922 esac
18926 # target stuff:
18928 # Canonicalize the secondary target names.
18929 if test -n "$enable_targets" ; then
18930 for targ in `echo $enable_targets | sed 's/,/ /g'`
18932 result=`$ac_config_sub $targ 2>/dev/null`
18933 if test -n "$result" ; then
18934 canon_targets="$canon_targets $result"
18935 else
18936 # Allow targets that config.sub doesn't recognize, like "all".
18937 canon_targets="$canon_targets $targ"
18939 done
18942 all_targets=false
18943 defvec=
18944 selvecs=
18945 assocvecs=
18946 selarchs=
18947 TDEFINES=
18948 for targ in $target $canon_targets
18950 if test "x$targ" = "xall"; then
18951 all_targets=true
18952 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
18953 else
18954 . $srcdir/config.bfd
18955 if test "x$targ" = "x$target"; then
18956 defvec=$targ_defvec
18958 selvecs="$selvecs $targ_defvec $targ_selvecs"
18959 selarchs="$selarchs $targ_archs"
18960 TDEFINES="$TDEFINES $targ_cflags"
18962 done
18965 # This processing still needs to be done if we're to decide properly whether
18966 # 64-bit support needs to be compiled in. Currently, it will be included if
18967 # the default or any other explicitly requested target requires it; it
18968 # will not be included on a 32-bit host if no 64-bit target is requested, and
18969 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
18970 # used.
18972 # uniq the default and selected vectors in all the configured targets.
18973 f=""
18974 for i in $selvecs ; do
18975 case " $f " in
18976 *" $i "*) ;;
18977 *) f="$f $i" ;;
18978 esac
18979 done
18980 selvecs="$f"
18983 # uniq the associated vectors in all the configured targets.
18984 f=""
18985 for i in $assocvecs ; do
18986 case " $f " in
18987 *" $i "*) ;;
18988 *) f="$f $i" ;;
18989 esac
18990 done
18991 assocvecs="$f"
18994 # uniq the architectures in all the configured targets.
18995 f=""
18996 for i in $selarchs ; do
18997 case " $f " in
18998 *" $i "*) ;;
18999 *) f="$f $i" ;;
19000 esac
19001 done
19002 selarchs="$f"
19004 # Target backend .o files.
19007 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
19009 for vec in $selvecs
19011 target_size=32
19012 case "$vec" in
19013 # This list is alphabetized to make it easy to compare
19014 # with the two vector lists in targets.c. For the same reason,
19015 # use one entry per line, even though this leads to long lines.
19016 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
19017 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19018 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
19019 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19020 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19021 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
19022 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19023 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19024 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19025 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19026 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19027 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19028 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19029 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19030 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19031 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19032 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19033 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19034 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19035 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19036 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19037 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19038 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
19039 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
19040 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19041 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19042 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
19043 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
19044 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19045 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19046 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19047 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19048 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19049 bfd_elf32_bigarm_symbian_vec)
19050 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19051 bfd_elf32_bigarm_vxworks_vec)
19052 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19053 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19054 bfd_elf32_bigmips_vxworks_vec)
19055 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19056 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
19057 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
19058 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19059 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
19060 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19061 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
19062 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
19063 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
19064 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19065 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19066 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
19067 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19068 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19069 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19070 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
19071 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19072 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19073 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19074 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19075 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19076 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
19077 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
19078 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
19079 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
19080 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
19081 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19082 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19083 bfd_elf32_littlearm_symbian_vec)
19084 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19085 bfd_elf32_littlearm_vxworks_vec)
19086 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19087 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19088 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19089 bfd_elf32_littlemips_vxworks_vec)
19090 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19091 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
19092 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19093 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19094 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19095 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19096 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19097 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19098 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19099 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19100 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19101 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19102 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19103 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19104 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19105 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
19106 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
19107 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
19108 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19109 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19110 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19111 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19112 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
19113 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
19114 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19115 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19116 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19117 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19118 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19119 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
19120 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19121 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19122 # FIXME: We include cofflink.lo not because it's needed for
19123 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19124 # which needs it but does not list it. Should be fixed in right place.
19125 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19126 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19127 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19128 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19129 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19130 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19131 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19132 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19133 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19134 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19135 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19136 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19137 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19138 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19139 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19140 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19141 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19142 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
19143 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19144 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19145 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19146 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
19147 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
19148 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
19149 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
19150 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19151 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19152 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19153 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19154 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19155 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 ;;
19156 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19157 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19158 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19159 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19160 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19161 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19162 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 ;;
19163 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
19164 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19165 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19166 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
19167 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19168 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19169 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19170 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19171 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19172 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19173 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19174 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19175 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 ;;
19176 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 ;;
19177 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19178 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19179 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
19180 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19181 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19182 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19183 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19184 cris_aout_vec) tb="$tb aout-cris.lo" ;;
19185 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
19186 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19187 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19188 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19189 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
19190 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
19191 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
19192 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
19193 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
19194 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
19195 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
19196 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
19197 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
19198 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
19199 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
19200 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
19201 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19202 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
19203 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
19204 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19205 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19206 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
19207 i386msdos_vec) tb="$tb i386msdos.lo" ;;
19208 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19209 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
19210 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19211 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
19212 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19213 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19214 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
19215 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19216 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19217 ieee_vec) tb="$tb ieee.lo" ;;
19218 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19219 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
19220 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
19221 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19222 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
19223 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
19224 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19225 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
19226 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
19227 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
19228 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
19229 mach_o_be_vec) tb="$tb mach-o.lo" ;;
19230 mach_o_le_vec) tb="$tb mach-o.lo" ;;
19231 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
19232 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19233 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19234 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19235 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19236 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19237 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
19238 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
19239 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
19240 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
19241 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
19242 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
19243 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
19244 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
19245 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
19246 pef_vec) tb="$tb pef.lo" ;;
19247 pef_xlib_vec) tb="$tb pef.lo" ;;
19248 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
19249 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19250 ppcboot_vec) tb="$tb ppcboot.lo" ;;
19251 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
19252 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19253 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19254 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19255 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19256 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19257 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19258 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19259 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19260 som_vec) tb="$tb som.lo" ;;
19261 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
19262 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
19263 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
19264 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19265 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19266 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
19267 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
19268 sym_vec) tb="$tb xsym.lo" ;;
19269 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19270 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
19271 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
19272 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
19273 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
19274 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
19275 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
19276 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
19277 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
19278 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
19279 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
19280 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
19281 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
19282 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
19283 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
19284 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
19285 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
19286 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
19287 versados_vec) tb="$tb versados.lo" ;;
19288 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
19289 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19290 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
19291 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
19292 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
19293 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
19295 # These appear out of order in targets.c
19296 srec_vec) tb="$tb srec.lo" ;;
19297 symbolsrec_vec) tb="$tb srec.lo" ;;
19298 tekhex_vec) tb="$tb tekhex.lo" ;;
19299 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
19300 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
19302 "") ;;
19303 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19304 echo "$as_me: error: *** unknown target vector $vec" >&2;}
19305 { (exit 1); exit 1; }; } ;;
19306 esac
19308 if test ${target_size} = 64; then
19309 target64=true
19311 if test x"${vec}" = x"${defvec}"; then
19312 bfd_default_target_size=${target_size}
19314 done
19316 # Target architecture .o files.
19317 # A couple of CPUs use shorter file names to avoid problems on DOS
19318 # filesystems.
19319 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
19321 # Weed out duplicate .o files.
19322 f=""
19323 for i in $tb ; do
19324 case " $f " in
19325 *" $i "*) ;;
19326 *) f="$f $i" ;;
19327 esac
19328 done
19329 tb="$f"
19331 f=""
19332 for i in $ta ; do
19333 case " $f " in
19334 *" $i "*) ;;
19335 *) f="$f $i" ;;
19336 esac
19337 done
19338 ta="$f"
19340 bfd_backends="$tb"
19341 bfd_machines="$ta"
19343 if test x${all_targets} = xtrue ; then
19344 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19345 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19346 selvecs=
19347 havevecs=
19348 selarchs=
19349 test -n "$assocvecs" &&
19350 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19351 else # all_targets is true
19352 # Only set these if they will be nonempty, for the clever echo.
19353 havevecs=
19354 assocvecs=
19355 test -n "$selvecs" &&
19356 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19357 test -n "$selvecs" &&
19358 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19359 test -n "$selarchs" &&
19360 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19361 fi # all_targets is true
19363 case ${host64}-${target64}-${want64} in
19364 *true*)
19365 wordsize=64
19366 bfd64_libs='$(BFD64_LIBS)'
19367 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
19368 if test $BFD_HOST_64_BIT_DEFINED = 0; then
19369 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19370 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19371 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19372 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
19374 if test -n "$GCC" ; then
19375 bad_64bit_gcc=no;
19376 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19377 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
19378 # Add more tests for gcc versions with non-working 64-bit support here.
19379 cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h. */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19385 :__GNUC__:__GNUC_MINOR__:__i386__:
19386 _ACEOF
19387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19388 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
19389 bad_64bit_gcc=yes;
19390 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19391 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
19392 else
19393 echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6
19396 rm -f conftest*
19398 if test $bad_64bit_gcc = yes ; then
19399 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19400 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19401 { (exit 1); exit 1; }; }
19405 false-false-false)
19406 wordsize=32
19407 all_backends='$(BFD32_BACKENDS)'
19409 esac
19418 # Determine the host dependant file_ptr a.k.a. off_t type. In order
19419 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
19420 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
19421 # Hopefully a reasonable assumption since fseeko et.al. should be
19422 # upward compatible.
19428 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
19430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19431 echo "$as_me:$LINENO: checking for $ac_func" >&5
19432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19433 if eval "test \"\${$as_ac_var+set}\" = set"; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 else
19436 cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h. */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19444 #define $ac_func innocuous_$ac_func
19446 /* System header to define __stub macros and hopefully few prototypes,
19447 which can conflict with char $ac_func (); below.
19448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19449 <limits.h> exists even on freestanding compilers. */
19451 #ifdef __STDC__
19452 # include <limits.h>
19453 #else
19454 # include <assert.h>
19455 #endif
19457 #undef $ac_func
19459 /* Override any gcc2 internal prototype to avoid an error. */
19460 #ifdef __cplusplus
19461 extern "C"
19463 #endif
19464 /* We use char because int might match the return type of a gcc2
19465 builtin and then its argument prototype would still apply. */
19466 char $ac_func ();
19467 /* The GNU C library defines this for functions which it implements
19468 to always fail with ENOSYS. Some functions are actually named
19469 something starting with __ and the normal name is an alias. */
19470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19471 choke me
19472 #else
19473 char (*f) () = $ac_func;
19474 #endif
19475 #ifdef __cplusplus
19477 #endif
19480 main ()
19482 return f != $ac_func;
19484 return 0;
19486 _ACEOF
19487 rm -f conftest.$ac_objext conftest$ac_exeext
19488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19489 (eval $ac_link) 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_c_werror_flag"
19497 || test ! -s conftest.err'
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; } &&
19503 { ac_try='test -s conftest$ac_exeext'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509 eval "$as_ac_var=yes"
19510 else
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19514 eval "$as_ac_var=no"
19516 rm -f conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
19519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19521 if test `eval echo '${'$as_ac_var'}'` = yes; then
19522 cat >>confdefs.h <<_ACEOF
19523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19524 _ACEOF
19527 done
19529 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19530 echo "$as_me:$LINENO: checking for off_t" >&5
19531 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19532 if test "${ac_cv_type_off_t+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 else
19535 cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h. */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 $ac_includes_default
19543 main ()
19545 if ((off_t *) 0)
19546 return 0;
19547 if (sizeof (off_t))
19548 return 0;
19550 return 0;
19552 _ACEOF
19553 rm -f conftest.$ac_objext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19555 (eval $ac_compile) 2>conftest.er1
19556 ac_status=$?
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
19562 { ac_try='test -z "$ac_c_werror_flag"
19563 || test ! -s conftest.err'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest.$ac_objext'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_cv_type_off_t=yes
19576 else
19577 echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19580 ac_cv_type_off_t=no
19582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19584 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19585 echo "${ECHO_T}$ac_cv_type_off_t" >&6
19587 echo "$as_me:$LINENO: checking size of off_t" >&5
19588 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19589 if test "${ac_cv_sizeof_off_t+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 else
19592 if test "$ac_cv_type_off_t" = yes; then
19593 # The cast to unsigned long works around a bug in the HP C Compiler
19594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19596 # This bug is HP SR number 8606223364.
19597 if test "$cross_compiling" = yes; then
19598 # Depending upon the size, compute the lo and hi bounds.
19599 cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h. */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 $ac_includes_default
19607 main ()
19609 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19610 test_array [0] = 0
19613 return 0;
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19618 (eval $ac_compile) 2>conftest.er1
19619 ac_status=$?
19620 grep -v '^ *+' conftest.er1 >conftest.err
19621 rm -f conftest.er1
19622 cat conftest.err >&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); } &&
19625 { ac_try='test -z "$ac_c_werror_flag"
19626 || test ! -s conftest.err'
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest.$ac_objext'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
19638 ac_lo=0 ac_mid=0
19639 while :; do
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646 $ac_includes_default
19648 main ()
19650 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19651 test_array [0] = 0
19654 return 0;
19656 _ACEOF
19657 rm -f conftest.$ac_objext
19658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19659 (eval $ac_compile) 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } &&
19666 { ac_try='test -z "$ac_c_werror_flag"
19667 || test ! -s conftest.err'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; } &&
19673 { ac_try='test -s conftest.$ac_objext'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
19679 ac_hi=$ac_mid; break
19680 else
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19684 ac_lo=`expr $ac_mid + 1`
19685 if test $ac_lo -le $ac_mid; then
19686 ac_lo= ac_hi=
19687 break
19689 ac_mid=`expr 2 '*' $ac_mid + 1`
19691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19692 done
19693 else
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h. */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 $ac_includes_default
19705 main ()
19707 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19708 test_array [0] = 0
19711 return 0;
19713 _ACEOF
19714 rm -f conftest.$ac_objext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716 (eval $ac_compile) 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_c_werror_flag"
19724 || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_hi=-1 ac_mid=-1
19737 while :; do
19738 cat >conftest.$ac_ext <<_ACEOF
19739 /* confdefs.h. */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h. */
19744 $ac_includes_default
19746 main ()
19748 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19749 test_array [0] = 0
19752 return 0;
19754 _ACEOF
19755 rm -f conftest.$ac_objext
19756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19757 (eval $ac_compile) 2>conftest.er1
19758 ac_status=$?
19759 grep -v '^ *+' conftest.er1 >conftest.err
19760 rm -f conftest.er1
19761 cat conftest.err >&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } &&
19764 { ac_try='test -z "$ac_c_werror_flag"
19765 || test ! -s conftest.err'
19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19768 ac_status=$?
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; } &&
19771 { ac_try='test -s conftest.$ac_objext'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; }; then
19777 ac_lo=$ac_mid; break
19778 else
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19782 ac_hi=`expr '(' $ac_mid ')' - 1`
19783 if test $ac_mid -le $ac_hi; then
19784 ac_lo= ac_hi=
19785 break
19787 ac_mid=`expr 2 '*' $ac_mid`
19789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19790 done
19791 else
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_lo= ac_hi=
19797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19800 # Binary search between lo and hi bounds.
19801 while test "x$ac_lo" != "x$ac_hi"; do
19802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h. */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19809 $ac_includes_default
19811 main ()
19813 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19814 test_array [0] = 0
19817 return 0;
19819 _ACEOF
19820 rm -f conftest.$ac_objext
19821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19822 (eval $ac_compile) 2>conftest.er1
19823 ac_status=$?
19824 grep -v '^ *+' conftest.er1 >conftest.err
19825 rm -f conftest.er1
19826 cat conftest.err >&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } &&
19829 { ac_try='test -z "$ac_c_werror_flag"
19830 || test ! -s conftest.err'
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; } &&
19836 { ac_try='test -s conftest.$ac_objext'
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; }; then
19842 ac_hi=$ac_mid
19843 else
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19847 ac_lo=`expr '(' $ac_mid ')' + 1`
19849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19850 done
19851 case $ac_lo in
19852 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19853 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19854 See \`config.log' for more details." >&5
19855 echo "$as_me: error: cannot compute sizeof (off_t), 77
19856 See \`config.log' for more details." >&2;}
19857 { (exit 1); exit 1; }; } ;;
19858 esac
19859 else
19860 if test "$cross_compiling" = yes; then
19861 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19862 See \`config.log' for more details." >&5
19863 echo "$as_me: error: cannot run test program while cross compiling
19864 See \`config.log' for more details." >&2;}
19865 { (exit 1); exit 1; }; }
19866 else
19867 cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h. */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 $ac_includes_default
19874 long longval () { return (long) (sizeof (off_t)); }
19875 unsigned long ulongval () { return (long) (sizeof (off_t)); }
19876 #include <stdio.h>
19877 #include <stdlib.h>
19879 main ()
19882 FILE *f = fopen ("conftest.val", "w");
19883 if (! f)
19884 exit (1);
19885 if (((long) (sizeof (off_t))) < 0)
19887 long i = longval ();
19888 if (i != ((long) (sizeof (off_t))))
19889 exit (1);
19890 fprintf (f, "%ld\n", i);
19892 else
19894 unsigned long i = ulongval ();
19895 if (i != ((long) (sizeof (off_t))))
19896 exit (1);
19897 fprintf (f, "%lu\n", i);
19899 exit (ferror (f) || fclose (f) != 0);
19902 return 0;
19904 _ACEOF
19905 rm -f conftest$ac_exeext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907 (eval $ac_link) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916 ac_cv_sizeof_off_t=`cat conftest.val`
19917 else
19918 echo "$as_me: program exited with status $ac_status" >&5
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19922 ( exit $ac_status )
19923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19924 See \`config.log' for more details." >&5
19925 echo "$as_me: error: cannot compute sizeof (off_t), 77
19926 See \`config.log' for more details." >&2;}
19927 { (exit 1); exit 1; }; }
19929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19932 rm -f conftest.val
19933 else
19934 ac_cv_sizeof_off_t=0
19937 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19938 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
19939 cat >>confdefs.h <<_ACEOF
19940 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19941 _ACEOF
19945 echo "$as_me:$LINENO: checking file_ptr type" >&5
19946 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
19947 bfd_file_ptr="long"
19948 bfd_ufile_ptr="unsigned long"
19949 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19950 -o x"${ac_cv_sizeof_off_t}" = x8; then
19951 bfd_file_ptr=BFD_HOST_64_BIT
19952 bfd_ufile_ptr=BFD_HOST_U_64_BIT
19954 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19955 echo "${ECHO_T}$bfd_file_ptr" >&6
19960 tdefaults=""
19961 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19962 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
19963 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
19964 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19965 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19970 for ac_header in stdlib.h unistd.h
19972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19974 echo "$as_me:$LINENO: checking for $ac_header" >&5
19975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19981 else
19982 # Is the header compilable?
19983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h. */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 $ac_includes_default
19992 #include <$ac_header>
19993 _ACEOF
19994 rm -f conftest.$ac_objext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19996 (eval $ac_compile) 2>conftest.er1
19997 ac_status=$?
19998 grep -v '^ *+' conftest.er1 >conftest.err
19999 rm -f conftest.er1
20000 cat conftest.err >&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } &&
20003 { ac_try='test -z "$ac_c_werror_flag"
20004 || test ! -s conftest.err'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; } &&
20010 { ac_try='test -s conftest.$ac_objext'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 ac_header_compiler=yes
20017 else
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_header_compiler=no
20023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20025 echo "${ECHO_T}$ac_header_compiler" >&6
20027 # Is the header present?
20028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20030 cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h. */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 #include <$ac_header>
20037 _ACEOF
20038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } >/dev/null; then
20046 if test -s conftest.err; then
20047 ac_cpp_err=$ac_c_preproc_warn_flag
20048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20049 else
20050 ac_cpp_err=
20052 else
20053 ac_cpp_err=yes
20055 if test -z "$ac_cpp_err"; then
20056 ac_header_preproc=yes
20057 else
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 ac_header_preproc=no
20063 rm -f conftest.err conftest.$ac_ext
20064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20065 echo "${ECHO_T}$ac_header_preproc" >&6
20067 # So? What about this header?
20068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20069 yes:no: )
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20074 ac_header_preproc=yes
20076 no:yes:* )
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20090 cat <<\_ASBOX
20091 ## ------------------------------------------ ##
20092 ## Report this to the AC_PACKAGE_NAME lists. ##
20093 ## ------------------------------------------ ##
20094 _ASBOX
20096 sed "s/^/$as_me: WARNING: /" >&2
20098 esac
20099 echo "$as_me:$LINENO: checking for $ac_header" >&5
20100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104 eval "$as_ac_Header=\$ac_header_preproc"
20106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20111 cat >>confdefs.h <<_ACEOF
20112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20113 _ACEOF
20117 done
20120 for ac_func in getpagesize
20122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20123 echo "$as_me:$LINENO: checking for $ac_func" >&5
20124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20125 if eval "test \"\${$as_ac_var+set}\" = set"; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128 cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h. */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20136 #define $ac_func innocuous_$ac_func
20138 /* System header to define __stub macros and hopefully few prototypes,
20139 which can conflict with char $ac_func (); below.
20140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20141 <limits.h> exists even on freestanding compilers. */
20143 #ifdef __STDC__
20144 # include <limits.h>
20145 #else
20146 # include <assert.h>
20147 #endif
20149 #undef $ac_func
20151 /* Override any gcc2 internal prototype to avoid an error. */
20152 #ifdef __cplusplus
20153 extern "C"
20155 #endif
20156 /* We use char because int might match the return type of a gcc2
20157 builtin and then its argument prototype would still apply. */
20158 char $ac_func ();
20159 /* The GNU C library defines this for functions which it implements
20160 to always fail with ENOSYS. Some functions are actually named
20161 something starting with __ and the normal name is an alias. */
20162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20163 choke me
20164 #else
20165 char (*f) () = $ac_func;
20166 #endif
20167 #ifdef __cplusplus
20169 #endif
20172 main ()
20174 return f != $ac_func;
20176 return 0;
20178 _ACEOF
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20181 (eval $ac_link) 2>conftest.er1
20182 ac_status=$?
20183 grep -v '^ *+' conftest.er1 >conftest.err
20184 rm -f conftest.er1
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } &&
20188 { ac_try='test -z "$ac_c_werror_flag"
20189 || test ! -s conftest.err'
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; } &&
20195 { ac_try='test -s conftest$ac_exeext'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
20201 eval "$as_ac_var=yes"
20202 else
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 eval "$as_ac_var=no"
20208 rm -f conftest.err conftest.$ac_objext \
20209 conftest$ac_exeext conftest.$ac_ext
20211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20213 if test `eval echo '${'$as_ac_var'}'` = yes; then
20214 cat >>confdefs.h <<_ACEOF
20215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20216 _ACEOF
20219 done
20221 echo "$as_me:$LINENO: checking for working mmap" >&5
20222 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20223 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226 if test "$cross_compiling" = yes; then
20227 ac_cv_func_mmap_fixed_mapped=no
20228 else
20229 cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h. */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20236 /* malloc might have been renamed as rpl_malloc. */
20237 #undef malloc
20239 /* Thanks to Mike Haertel and Jim Avera for this test.
20240 Here is a matrix of mmap possibilities:
20241 mmap private not fixed
20242 mmap private fixed at somewhere currently unmapped
20243 mmap private fixed at somewhere already mapped
20244 mmap shared not fixed
20245 mmap shared fixed at somewhere currently unmapped
20246 mmap shared fixed at somewhere already mapped
20247 For private mappings, we should verify that changes cannot be read()
20248 back from the file, nor mmap's back from the file at a different
20249 address. (There have been systems where private was not correctly
20250 implemented like the infamous i386 svr4.0, and systems where the
20251 VM page cache was not coherent with the file system buffer cache
20252 like early versions of FreeBSD and possibly contemporary NetBSD.)
20253 For shared mappings, we should conversely verify that changes get
20254 propagated back to all the places they're supposed to be.
20256 Grep wants private fixed already mapped.
20257 The main things grep needs to know about mmap are:
20258 * does it exist and is it safe to write into the mmap'd area
20259 * how to use it (BSD variants) */
20261 #include <fcntl.h>
20262 #include <sys/mman.h>
20264 #if !STDC_HEADERS && !HAVE_STDLIB_H
20265 char *malloc ();
20266 #endif
20268 /* This mess was copied from the GNU getpagesize.h. */
20269 #if !HAVE_GETPAGESIZE
20270 /* Assume that all systems that can run configure have sys/param.h. */
20271 # if !HAVE_SYS_PARAM_H
20272 # define HAVE_SYS_PARAM_H 1
20273 # endif
20275 # ifdef _SC_PAGESIZE
20276 # define getpagesize() sysconf(_SC_PAGESIZE)
20277 # else /* no _SC_PAGESIZE */
20278 # if HAVE_SYS_PARAM_H
20279 # include <sys/param.h>
20280 # ifdef EXEC_PAGESIZE
20281 # define getpagesize() EXEC_PAGESIZE
20282 # else /* no EXEC_PAGESIZE */
20283 # ifdef NBPG
20284 # define getpagesize() NBPG * CLSIZE
20285 # ifndef CLSIZE
20286 # define CLSIZE 1
20287 # endif /* no CLSIZE */
20288 # else /* no NBPG */
20289 # ifdef NBPC
20290 # define getpagesize() NBPC
20291 # else /* no NBPC */
20292 # ifdef PAGESIZE
20293 # define getpagesize() PAGESIZE
20294 # endif /* PAGESIZE */
20295 # endif /* no NBPC */
20296 # endif /* no NBPG */
20297 # endif /* no EXEC_PAGESIZE */
20298 # else /* no HAVE_SYS_PARAM_H */
20299 # define getpagesize() 8192 /* punt totally */
20300 # endif /* no HAVE_SYS_PARAM_H */
20301 # endif /* no _SC_PAGESIZE */
20303 #endif /* no HAVE_GETPAGESIZE */
20306 main ()
20308 char *data, *data2, *data3;
20309 int i, pagesize;
20310 int fd;
20312 pagesize = getpagesize ();
20314 /* First, make a file with some known garbage in it. */
20315 data = (char *) malloc (pagesize);
20316 if (!data)
20317 exit (1);
20318 for (i = 0; i < pagesize; ++i)
20319 *(data + i) = rand ();
20320 umask (0);
20321 fd = creat ("conftest.mmap", 0600);
20322 if (fd < 0)
20323 exit (1);
20324 if (write (fd, data, pagesize) != pagesize)
20325 exit (1);
20326 close (fd);
20328 /* Next, try to mmap the file at a fixed address which already has
20329 something else allocated at it. If we can, also make sure that
20330 we see the same garbage. */
20331 fd = open ("conftest.mmap", O_RDWR);
20332 if (fd < 0)
20333 exit (1);
20334 data2 = (char *) malloc (2 * pagesize);
20335 if (!data2)
20336 exit (1);
20337 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20338 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20339 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20340 exit (1);
20341 for (i = 0; i < pagesize; ++i)
20342 if (*(data + i) != *(data2 + i))
20343 exit (1);
20345 /* Finally, make sure that changes to the mapped area do not
20346 percolate back to the file as seen by read(). (This is a bug on
20347 some variants of i386 svr4.0.) */
20348 for (i = 0; i < pagesize; ++i)
20349 *(data2 + i) = *(data2 + i) + 1;
20350 data3 = (char *) malloc (pagesize);
20351 if (!data3)
20352 exit (1);
20353 if (read (fd, data3, pagesize) != pagesize)
20354 exit (1);
20355 for (i = 0; i < pagesize; ++i)
20356 if (*(data + i) != *(data3 + i))
20357 exit (1);
20358 close (fd);
20359 exit (0);
20361 _ACEOF
20362 rm -f conftest$ac_exeext
20363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20364 (eval $ac_link) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ac_cv_func_mmap_fixed_mapped=yes
20374 else
20375 echo "$as_me: program exited with status $ac_status" >&5
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ( exit $ac_status )
20380 ac_cv_func_mmap_fixed_mapped=no
20382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20385 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20386 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20387 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20389 cat >>confdefs.h <<\_ACEOF
20390 #define HAVE_MMAP 1
20391 _ACEOF
20394 rm -f conftest.mmap
20398 for ac_func in madvise mprotect
20400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20401 echo "$as_me:$LINENO: checking for $ac_func" >&5
20402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20403 if eval "test \"\${$as_ac_var+set}\" = set"; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20414 #define $ac_func innocuous_$ac_func
20416 /* System header to define __stub macros and hopefully few prototypes,
20417 which can conflict with char $ac_func (); below.
20418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20419 <limits.h> exists even on freestanding compilers. */
20421 #ifdef __STDC__
20422 # include <limits.h>
20423 #else
20424 # include <assert.h>
20425 #endif
20427 #undef $ac_func
20429 /* Override any gcc2 internal prototype to avoid an error. */
20430 #ifdef __cplusplus
20431 extern "C"
20433 #endif
20434 /* We use char because int might match the return type of a gcc2
20435 builtin and then its argument prototype would still apply. */
20436 char $ac_func ();
20437 /* The GNU C library defines this for functions which it implements
20438 to always fail with ENOSYS. Some functions are actually named
20439 something starting with __ and the normal name is an alias. */
20440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20441 choke me
20442 #else
20443 char (*f) () = $ac_func;
20444 #endif
20445 #ifdef __cplusplus
20447 #endif
20450 main ()
20452 return f != $ac_func;
20454 return 0;
20456 _ACEOF
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20459 (eval $ac_link) 2>conftest.er1
20460 ac_status=$?
20461 grep -v '^ *+' conftest.er1 >conftest.err
20462 rm -f conftest.er1
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } &&
20466 { ac_try='test -z "$ac_c_werror_flag"
20467 || test ! -s conftest.err'
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20470 ac_status=$?
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; } &&
20473 { ac_try='test -s conftest$ac_exeext'
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 eval "$as_ac_var=yes"
20480 else
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20484 eval "$as_ac_var=no"
20486 rm -f conftest.err conftest.$ac_objext \
20487 conftest$ac_exeext conftest.$ac_ext
20489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20491 if test `eval echo '${'$as_ac_var'}'` = yes; then
20492 cat >>confdefs.h <<_ACEOF
20493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20494 _ACEOF
20497 done
20499 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20500 true+yes )
20501 cat >>confdefs.h <<\_ACEOF
20502 #define USE_MMAP 1
20503 _ACEOF
20505 esac
20507 rm -f doc/config.status
20508 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20511 ac_config_commands="$ac_config_commands default"
20518 cat >confcache <<\_ACEOF
20519 # This file is a shell script that caches the results of configure
20520 # tests run on this system so they can be shared between configure
20521 # scripts and configure runs, see configure's option --config-cache.
20522 # It is not useful on other systems. If it contains results you don't
20523 # want to keep, you may remove or edit it.
20525 # config.status only pays attention to the cache file if you give it
20526 # the --recheck option to rerun configure.
20528 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20529 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20530 # following values.
20532 _ACEOF
20534 # The following way of writing the cache mishandles newlines in values,
20535 # but we know of no workaround that is simple, portable, and efficient.
20536 # So, don't put newlines in cache variables' values.
20537 # Ultrix sh set writes to stderr and can't be redirected directly,
20538 # and sets the high bit in the cache file unless we assign to the vars.
20540 (set) 2>&1 |
20541 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20542 *ac_space=\ *)
20543 # `set' does not quote correctly, so add quotes (double-quote
20544 # substitution turns \\\\ into \\, and sed turns \\ into \).
20545 sed -n \
20546 "s/'/'\\\\''/g;
20547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20550 # `set' quotes correctly as required by POSIX, so do not add quotes.
20551 sed -n \
20552 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20554 esac;
20556 sed '
20557 t clear
20558 : clear
20559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20560 t end
20561 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20562 : end' >>confcache
20563 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20564 if test -w $cache_file; then
20565 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20566 cat confcache >$cache_file
20567 else
20568 echo "not updating unwritable cache $cache_file"
20571 rm -f confcache
20573 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20574 # Let make expand exec_prefix.
20575 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20577 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20578 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20579 # trailing colons and then remove the whole line if VPATH becomes empty
20580 # (actually we leave an empty line to preserve line numbers).
20581 if test "x$srcdir" = x.; then
20582 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20583 s/:*\$(srcdir):*/:/;
20584 s/:*\${srcdir}:*/:/;
20585 s/:*@srcdir@:*/:/;
20586 s/^\([^=]*=[ ]*\):*/\1/;
20587 s/:*$//;
20588 s/^[^=]*=[ ]*$//;
20592 DEFS=-DHAVE_CONFIG_H
20594 ac_libobjs=
20595 ac_ltlibobjs=
20596 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20597 # 1. Remove the extension, and $U if already installed.
20598 ac_i=`echo "$ac_i" |
20599 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20600 # 2. Add them.
20601 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20602 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20603 done
20604 LIBOBJS=$ac_libobjs
20606 LTLIBOBJS=$ac_ltlibobjs
20609 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20610 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20611 Usually this means the macro was only invoked conditionally." >&5
20612 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20613 Usually this means the macro was only invoked conditionally." >&2;}
20614 { (exit 1); exit 1; }; }
20616 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20617 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20618 Usually this means the macro was only invoked conditionally." >&5
20619 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20620 Usually this means the macro was only invoked conditionally." >&2;}
20621 { (exit 1); exit 1; }; }
20623 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20624 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20625 Usually this means the macro was only invoked conditionally." >&5
20626 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20627 Usually this means the macro was only invoked conditionally." >&2;}
20628 { (exit 1); exit 1; }; }
20630 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20631 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20632 Usually this means the macro was only invoked conditionally." >&5
20633 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20634 Usually this means the macro was only invoked conditionally." >&2;}
20635 { (exit 1); exit 1; }; }
20637 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20638 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20639 Usually this means the macro was only invoked conditionally." >&5
20640 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20641 Usually this means the macro was only invoked conditionally." >&2;}
20642 { (exit 1); exit 1; }; }
20645 : ${CONFIG_STATUS=./config.status}
20646 ac_clean_files_save=$ac_clean_files
20647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20648 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20649 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20650 cat >$CONFIG_STATUS <<_ACEOF
20651 #! $SHELL
20652 # Generated by $as_me.
20653 # Run this file to recreate the current configuration.
20654 # Compiler output produced by configure, useful for debugging
20655 # configure, is in config.log if it exists.
20657 debug=false
20658 ac_cs_recheck=false
20659 ac_cs_silent=false
20660 SHELL=\${CONFIG_SHELL-$SHELL}
20661 _ACEOF
20663 cat >>$CONFIG_STATUS <<\_ACEOF
20664 ## --------------------- ##
20665 ## M4sh Initialization. ##
20666 ## --------------------- ##
20668 # Be Bourne compatible
20669 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20670 emulate sh
20671 NULLCMD=:
20672 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20673 # is contrary to our usage. Disable this feature.
20674 alias -g '${1+"$@"}'='"$@"'
20675 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20676 set -o posix
20678 DUALCASE=1; export DUALCASE # for MKS sh
20680 # Support unset when possible.
20681 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20682 as_unset=unset
20683 else
20684 as_unset=false
20688 # Work around bugs in pre-3.0 UWIN ksh.
20689 $as_unset ENV MAIL MAILPATH
20690 PS1='$ '
20691 PS2='> '
20692 PS4='+ '
20694 # NLS nuisances.
20695 for as_var in \
20696 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20697 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20698 LC_TELEPHONE LC_TIME
20700 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20701 eval $as_var=C; export $as_var
20702 else
20703 $as_unset $as_var
20705 done
20707 # Required to use basename.
20708 if expr a : '\(a\)' >/dev/null 2>&1; then
20709 as_expr=expr
20710 else
20711 as_expr=false
20714 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20715 as_basename=basename
20716 else
20717 as_basename=false
20721 # Name of the executable.
20722 as_me=`$as_basename "$0" ||
20723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20724 X"$0" : 'X\(//\)$' \| \
20725 X"$0" : 'X\(/\)$' \| \
20726 . : '\(.\)' 2>/dev/null ||
20727 echo X/"$0" |
20728 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20729 /^X\/\(\/\/\)$/{ s//\1/; q; }
20730 /^X\/\(\/\).*/{ s//\1/; q; }
20731 s/.*/./; q'`
20734 # PATH needs CR, and LINENO needs CR and PATH.
20735 # Avoid depending upon Character Ranges.
20736 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20737 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20738 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20739 as_cr_digits='0123456789'
20740 as_cr_alnum=$as_cr_Letters$as_cr_digits
20742 # The user is always right.
20743 if test "${PATH_SEPARATOR+set}" != set; then
20744 echo "#! /bin/sh" >conf$$.sh
20745 echo "exit 0" >>conf$$.sh
20746 chmod +x conf$$.sh
20747 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20748 PATH_SEPARATOR=';'
20749 else
20750 PATH_SEPARATOR=:
20752 rm -f conf$$.sh
20756 as_lineno_1=$LINENO
20757 as_lineno_2=$LINENO
20758 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20759 test "x$as_lineno_1" != "x$as_lineno_2" &&
20760 test "x$as_lineno_3" = "x$as_lineno_2" || {
20761 # Find who we are. Look in the path if we contain no path at all
20762 # relative or not.
20763 case $0 in
20764 *[\\/]* ) as_myself=$0 ;;
20765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20766 for as_dir in $PATH
20768 IFS=$as_save_IFS
20769 test -z "$as_dir" && as_dir=.
20770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20771 done
20774 esac
20775 # We did not find ourselves, most probably we were run as `sh COMMAND'
20776 # in which case we are not to be found in the path.
20777 if test "x$as_myself" = x; then
20778 as_myself=$0
20780 if test ! -f "$as_myself"; then
20781 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20782 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20783 { (exit 1); exit 1; }; }
20785 case $CONFIG_SHELL in
20787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20788 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20790 IFS=$as_save_IFS
20791 test -z "$as_dir" && as_dir=.
20792 for as_base in sh bash ksh sh5; do
20793 case $as_dir in
20795 if ("$as_dir/$as_base" -c '
20796 as_lineno_1=$LINENO
20797 as_lineno_2=$LINENO
20798 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20799 test "x$as_lineno_1" != "x$as_lineno_2" &&
20800 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20801 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20802 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20803 CONFIG_SHELL=$as_dir/$as_base
20804 export CONFIG_SHELL
20805 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20806 fi;;
20807 esac
20808 done
20809 done
20811 esac
20813 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20814 # uniformly replaced by the line number. The first 'sed' inserts a
20815 # line-number line before each line; the second 'sed' does the real
20816 # work. The second script uses 'N' to pair each line-number line
20817 # with the numbered line, and appends trailing '-' during
20818 # substitution so that $LINENO is not a special case at line end.
20819 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20820 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20821 sed '=' <$as_myself |
20822 sed '
20824 s,$,-,
20825 : loop
20826 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20827 t loop
20828 s,-$,,
20829 s,^['$as_cr_digits']*\n,,
20830 ' >$as_me.lineno &&
20831 chmod +x $as_me.lineno ||
20832 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20833 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20834 { (exit 1); exit 1; }; }
20836 # Don't try to exec as it changes $[0], causing all sort of problems
20837 # (the dirname of $[0] is not the place where we might find the
20838 # original and so on. Autoconf is especially sensible to this).
20839 . ./$as_me.lineno
20840 # Exit status is that of the last command.
20841 exit
20845 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20846 *c*,-n*) ECHO_N= ECHO_C='
20847 ' ECHO_T=' ' ;;
20848 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20849 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20850 esac
20852 if expr a : '\(a\)' >/dev/null 2>&1; then
20853 as_expr=expr
20854 else
20855 as_expr=false
20858 rm -f conf$$ conf$$.exe conf$$.file
20859 echo >conf$$.file
20860 if ln -s conf$$.file conf$$ 2>/dev/null; then
20861 # We could just check for DJGPP; but this test a) works b) is more generic
20862 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20863 if test -f conf$$.exe; then
20864 # Don't use ln at all; we don't have any links
20865 as_ln_s='cp -p'
20866 else
20867 as_ln_s='ln -s'
20869 elif ln conf$$.file conf$$ 2>/dev/null; then
20870 as_ln_s=ln
20871 else
20872 as_ln_s='cp -p'
20874 rm -f conf$$ conf$$.exe conf$$.file
20876 if mkdir -p . 2>/dev/null; then
20877 as_mkdir_p=:
20878 else
20879 test -d ./-p && rmdir ./-p
20880 as_mkdir_p=false
20883 as_executable_p="test -f"
20885 # Sed expression to map a string onto a valid CPP name.
20886 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20888 # Sed expression to map a string onto a valid variable name.
20889 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20892 # IFS
20893 # We need space, tab and new line, in precisely that order.
20894 as_nl='
20896 IFS=" $as_nl"
20898 # CDPATH.
20899 $as_unset CDPATH
20901 exec 6>&1
20903 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20904 # report actual input values of CONFIG_FILES etc. instead of their
20905 # values after options handling. Logging --version etc. is OK.
20906 exec 5>>config.log
20908 echo
20909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20910 ## Running $as_me. ##
20911 _ASBOX
20912 } >&5
20913 cat >&5 <<_CSEOF
20915 This file was extended by $as_me, which was
20916 generated by GNU Autoconf 2.59. Invocation command line was
20918 CONFIG_FILES = $CONFIG_FILES
20919 CONFIG_HEADERS = $CONFIG_HEADERS
20920 CONFIG_LINKS = $CONFIG_LINKS
20921 CONFIG_COMMANDS = $CONFIG_COMMANDS
20922 $ $0 $@
20924 _CSEOF
20925 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20926 echo >&5
20927 _ACEOF
20929 # Files that config.status was made for.
20930 if test -n "$ac_config_files"; then
20931 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20934 if test -n "$ac_config_headers"; then
20935 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20938 if test -n "$ac_config_links"; then
20939 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20942 if test -n "$ac_config_commands"; then
20943 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20946 cat >>$CONFIG_STATUS <<\_ACEOF
20948 ac_cs_usage="\
20949 \`$as_me' instantiates files from templates according to the
20950 current configuration.
20952 Usage: $0 [OPTIONS] [FILE]...
20954 -h, --help print this help, then exit
20955 -V, --version print version number, then exit
20956 -q, --quiet do not print progress messages
20957 -d, --debug don't remove temporary files
20958 --recheck update $as_me by reconfiguring in the same conditions
20959 --file=FILE[:TEMPLATE]
20960 instantiate the configuration file FILE
20961 --header=FILE[:TEMPLATE]
20962 instantiate the configuration header FILE
20964 Configuration files:
20965 $config_files
20967 Configuration headers:
20968 $config_headers
20970 Configuration commands:
20971 $config_commands
20973 Report bugs to <bug-autoconf@gnu.org>."
20974 _ACEOF
20976 cat >>$CONFIG_STATUS <<_ACEOF
20977 ac_cs_version="\\
20978 config.status
20979 configured by $0, generated by GNU Autoconf 2.59,
20980 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20982 Copyright (C) 2003 Free Software Foundation, Inc.
20983 This config.status script is free software; the Free Software Foundation
20984 gives unlimited permission to copy, distribute and modify it."
20985 srcdir=$srcdir
20986 INSTALL="$INSTALL"
20987 _ACEOF
20989 cat >>$CONFIG_STATUS <<\_ACEOF
20990 # If no file are specified by the user, then we need to provide default
20991 # value. By we need to know if files were specified by the user.
20992 ac_need_defaults=:
20993 while test $# != 0
20995 case $1 in
20996 --*=*)
20997 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20998 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20999 ac_shift=:
21002 ac_option=$1
21003 ac_optarg=$2
21004 ac_shift=shift
21006 *) # This is not an option, so the user has probably given explicit
21007 # arguments.
21008 ac_option=$1
21009 ac_need_defaults=false;;
21010 esac
21012 case $ac_option in
21013 # Handling of the options.
21014 _ACEOF
21015 cat >>$CONFIG_STATUS <<\_ACEOF
21016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21017 ac_cs_recheck=: ;;
21018 --version | --vers* | -V )
21019 echo "$ac_cs_version"; exit 0 ;;
21020 --he | --h)
21021 # Conflict between --help and --header
21022 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21023 Try \`$0 --help' for more information." >&5
21024 echo "$as_me: error: ambiguous option: $1
21025 Try \`$0 --help' for more information." >&2;}
21026 { (exit 1); exit 1; }; };;
21027 --help | --hel | -h )
21028 echo "$ac_cs_usage"; exit 0 ;;
21029 --debug | --d* | -d )
21030 debug=: ;;
21031 --file | --fil | --fi | --f )
21032 $ac_shift
21033 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21034 ac_need_defaults=false;;
21035 --header | --heade | --head | --hea )
21036 $ac_shift
21037 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21038 ac_need_defaults=false;;
21039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21040 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21041 ac_cs_silent=: ;;
21043 # This is an error.
21044 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21045 Try \`$0 --help' for more information." >&5
21046 echo "$as_me: error: unrecognized option: $1
21047 Try \`$0 --help' for more information." >&2;}
21048 { (exit 1); exit 1; }; } ;;
21050 *) ac_config_targets="$ac_config_targets $1" ;;
21052 esac
21053 shift
21054 done
21056 ac_configure_extra_args=
21058 if $ac_cs_silent; then
21059 exec 6>/dev/null
21060 ac_configure_extra_args="$ac_configure_extra_args --silent"
21063 _ACEOF
21064 cat >>$CONFIG_STATUS <<_ACEOF
21065 if \$ac_cs_recheck; then
21066 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21067 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21070 _ACEOF
21072 cat >>$CONFIG_STATUS <<_ACEOF
21074 # INIT-COMMANDS section.
21077 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21080 # The HP-UX ksh and POSIX shell print the target directory to stdout
21081 # if CDPATH is set.
21082 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21084 sed_quote_subst='$sed_quote_subst'
21085 double_quote_subst='$double_quote_subst'
21086 delay_variable_subst='$delay_variable_subst'
21087 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21088 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21089 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21090 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21091 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21092 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21093 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21094 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21095 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21096 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21097 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21098 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21099 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21100 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21101 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21102 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21103 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21104 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21105 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21106 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21107 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21108 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21109 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21110 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21111 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21112 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21113 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21114 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21115 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21116 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21117 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21118 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21119 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21120 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21121 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21122 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21123 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21124 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21125 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21126 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21127 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21128 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21129 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21130 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"`'
21131 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21132 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21133 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21134 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21135 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21136 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21137 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21138 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21139 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21140 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21141 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21142 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21143 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21144 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21145 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21146 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21147 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21148 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21149 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21150 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21151 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21152 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21153 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21154 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21155 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21156 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21157 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21158 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21159 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21160 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21161 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21162 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21163 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21164 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21165 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21166 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21167 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21168 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21169 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21170 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21171 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21172 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21173 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21174 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21175 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21176 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21177 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21178 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21179 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21180 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21181 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21182 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21183 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21184 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21185 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21186 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21187 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21188 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21189 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21190 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21191 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21192 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21193 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21194 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21195 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21196 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21197 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21199 LTCC='$LTCC'
21200 LTCFLAGS='$LTCFLAGS'
21201 compiler='$compiler_DEFAULT'
21203 # Quote evaled strings.
21204 for var in SED \
21205 GREP \
21206 EGREP \
21207 FGREP \
21208 LD \
21209 NM \
21210 LN_S \
21211 lt_SP2NL \
21212 lt_NL2SP \
21213 reload_flag \
21214 deplibs_check_method \
21215 file_magic_cmd \
21216 AR \
21217 AR_FLAGS \
21218 STRIP \
21219 RANLIB \
21220 CC \
21221 CFLAGS \
21222 compiler \
21223 lt_cv_sys_global_symbol_pipe \
21224 lt_cv_sys_global_symbol_to_cdecl \
21225 lt_cv_sys_global_symbol_to_c_name_address \
21226 SHELL \
21227 ECHO \
21228 lt_prog_compiler_no_builtin_flag \
21229 lt_prog_compiler_wl \
21230 lt_prog_compiler_pic \
21231 lt_prog_compiler_static \
21232 lt_cv_prog_compiler_c_o \
21233 need_locks \
21234 shrext_cmds \
21235 export_dynamic_flag_spec \
21236 whole_archive_flag_spec \
21237 compiler_needs_object \
21238 with_gnu_ld \
21239 allow_undefined_flag \
21240 no_undefined_flag \
21241 hardcode_libdir_flag_spec \
21242 hardcode_libdir_flag_spec_ld \
21243 hardcode_libdir_separator \
21244 fix_srcfile_path \
21245 exclude_expsyms \
21246 include_expsyms \
21247 file_list_spec \
21248 variables_saved_for_relink \
21249 libname_spec \
21250 library_names_spec \
21251 soname_spec \
21252 finish_eval \
21253 old_striplib \
21254 striplib; do
21255 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21256 *[\\\\\\\`\\"\\\$]*)
21257 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21260 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21262 esac
21263 done
21265 # Double-quote double-evaled strings.
21266 for var in reload_cmds \
21267 old_postinstall_cmds \
21268 old_postuninstall_cmds \
21269 old_archive_cmds \
21270 extract_expsyms_cmds \
21271 old_archive_from_new_cmds \
21272 old_archive_from_expsyms_cmds \
21273 archive_cmds \
21274 archive_expsym_cmds \
21275 module_cmds \
21276 module_expsym_cmds \
21277 export_symbols_cmds \
21278 prelink_cmds \
21279 postinstall_cmds \
21280 postuninstall_cmds \
21281 finish_cmds \
21282 sys_lib_search_path_spec \
21283 sys_lib_dlsearch_path_spec; do
21284 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21285 *[\\\\\\\`\\"\\\$]*)
21286 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21289 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21291 esac
21292 done
21294 # Fix-up fallback echo if it was mangled by the above quoting rules.
21295 case \$lt_ECHO in
21296 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21298 esac
21300 ac_aux_dir='$ac_aux_dir'
21301 xsi_shell='$xsi_shell'
21302 lt_shell_append='$lt_shell_append'
21304 # See if we are running on zsh, and set the options which allow our
21305 # commands through without removal of \ escapes INIT.
21306 if test -n "\${ZSH_VERSION+set}" ; then
21307 setopt NO_GLOB_SUBST
21311 PACKAGE='$PACKAGE'
21312 VERSION='$VERSION'
21313 TIMESTAMP='$TIMESTAMP'
21314 RM='$RM'
21315 ofile='$ofile'
21319 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21320 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21321 # from automake.
21322 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21323 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21324 LINGUAS="${LINGUAS-%UNSET%}"
21327 GCC="$GCC"
21328 CC="$CC"
21329 acx_cv_header_stdint="$acx_cv_header_stdint"
21330 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21331 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21332 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21333 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21334 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21335 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21336 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21337 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21338 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21339 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21340 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21341 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21342 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21346 _ACEOF
21350 cat >>$CONFIG_STATUS <<\_ACEOF
21351 for ac_config_target in $ac_config_targets
21353 case "$ac_config_target" in
21354 # Handling of arguments.
21355 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21356 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21357 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21358 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
21359 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21360 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21361 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21362 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
21363 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21364 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21365 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21366 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21367 { (exit 1); exit 1; }; };;
21368 esac
21369 done
21371 # If the user did not use the arguments to specify the items to instantiate,
21372 # then the envvar interface is used. Set only those that are not.
21373 # We use the long form for the default assignment because of an extremely
21374 # bizarre bug on SunOS 4.1.3.
21375 if $ac_need_defaults; then
21376 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21377 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21378 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21381 # Have a temporary directory for convenience. Make it in the build tree
21382 # simply because there is no reason to put it here, and in addition,
21383 # creating and moving files from /tmp can sometimes cause problems.
21384 # Create a temporary directory, and hook for its removal unless debugging.
21385 $debug ||
21387 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21388 trap '{ (exit 1); exit 1; }' 1 2 13 15
21391 # Create a (secure) tmp directory for tmp files.
21394 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21395 test -n "$tmp" && test -d "$tmp"
21396 } ||
21398 tmp=./confstat$$-$RANDOM
21399 (umask 077 && mkdir $tmp)
21400 } ||
21402 echo "$me: cannot create a temporary directory in ." >&2
21403 { (exit 1); exit 1; }
21406 _ACEOF
21408 cat >>$CONFIG_STATUS <<_ACEOF
21411 # CONFIG_FILES section.
21414 # No need to generate the scripts if there are no CONFIG_FILES.
21415 # This happens for instance when ./config.status config.h
21416 if test -n "\$CONFIG_FILES"; then
21417 # Protect against being on the right side of a sed subst in config.status.
21418 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21419 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21420 s,@SHELL@,$SHELL,;t t
21421 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21422 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21423 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21424 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21425 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21426 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21427 s,@exec_prefix@,$exec_prefix,;t t
21428 s,@prefix@,$prefix,;t t
21429 s,@program_transform_name@,$program_transform_name,;t t
21430 s,@bindir@,$bindir,;t t
21431 s,@sbindir@,$sbindir,;t t
21432 s,@libexecdir@,$libexecdir,;t t
21433 s,@datadir@,$datadir,;t t
21434 s,@sysconfdir@,$sysconfdir,;t t
21435 s,@sharedstatedir@,$sharedstatedir,;t t
21436 s,@localstatedir@,$localstatedir,;t t
21437 s,@libdir@,$libdir,;t t
21438 s,@includedir@,$includedir,;t t
21439 s,@oldincludedir@,$oldincludedir,;t t
21440 s,@infodir@,$infodir,;t t
21441 s,@mandir@,$mandir,;t t
21442 s,@build_alias@,$build_alias,;t t
21443 s,@host_alias@,$host_alias,;t t
21444 s,@target_alias@,$target_alias,;t t
21445 s,@DEFS@,$DEFS,;t t
21446 s,@ECHO_C@,$ECHO_C,;t t
21447 s,@ECHO_N@,$ECHO_N,;t t
21448 s,@ECHO_T@,$ECHO_T,;t t
21449 s,@LIBS@,$LIBS,;t t
21450 s,@build@,$build,;t t
21451 s,@build_cpu@,$build_cpu,;t t
21452 s,@build_vendor@,$build_vendor,;t t
21453 s,@build_os@,$build_os,;t t
21454 s,@host@,$host,;t t
21455 s,@host_cpu@,$host_cpu,;t t
21456 s,@host_vendor@,$host_vendor,;t t
21457 s,@host_os@,$host_os,;t t
21458 s,@target@,$target,;t t
21459 s,@target_cpu@,$target_cpu,;t t
21460 s,@target_vendor@,$target_vendor,;t t
21461 s,@target_os@,$target_os,;t t
21462 s,@CC@,$CC,;t t
21463 s,@CFLAGS@,$CFLAGS,;t t
21464 s,@LDFLAGS@,$LDFLAGS,;t t
21465 s,@CPPFLAGS@,$CPPFLAGS,;t t
21466 s,@ac_ct_CC@,$ac_ct_CC,;t t
21467 s,@EXEEXT@,$EXEEXT,;t t
21468 s,@OBJEXT@,$OBJEXT,;t t
21469 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21470 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21471 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21472 s,@CYGPATH_W@,$CYGPATH_W,;t t
21473 s,@PACKAGE@,$PACKAGE,;t t
21474 s,@VERSION@,$VERSION,;t t
21475 s,@ACLOCAL@,$ACLOCAL,;t t
21476 s,@AUTOCONF@,$AUTOCONF,;t t
21477 s,@AUTOMAKE@,$AUTOMAKE,;t t
21478 s,@AUTOHEADER@,$AUTOHEADER,;t t
21479 s,@MAKEINFO@,$MAKEINFO,;t t
21480 s,@install_sh@,$install_sh,;t t
21481 s,@STRIP@,$STRIP,;t t
21482 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21483 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21484 s,@mkdir_p@,$mkdir_p,;t t
21485 s,@AWK@,$AWK,;t t
21486 s,@SET_MAKE@,$SET_MAKE,;t t
21487 s,@am__leading_dot@,$am__leading_dot,;t t
21488 s,@AMTAR@,$AMTAR,;t t
21489 s,@am__tar@,$am__tar,;t t
21490 s,@am__untar@,$am__untar,;t t
21491 s,@DEPDIR@,$DEPDIR,;t t
21492 s,@am__include@,$am__include,;t t
21493 s,@am__quote@,$am__quote,;t t
21494 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21495 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21496 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21497 s,@CCDEPMODE@,$CCDEPMODE,;t t
21498 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21499 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21500 s,@AR@,$AR,;t t
21501 s,@ac_ct_AR@,$ac_ct_AR,;t t
21502 s,@RANLIB@,$RANLIB,;t t
21503 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21504 s,@LIBTOOL@,$LIBTOOL,;t t
21505 s,@SED@,$SED,;t t
21506 s,@EGREP@,$EGREP,;t t
21507 s,@FGREP@,$FGREP,;t t
21508 s,@GREP@,$GREP,;t t
21509 s,@LD@,$LD,;t t
21510 s,@DUMPBIN@,$DUMPBIN,;t t
21511 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21512 s,@NM@,$NM,;t t
21513 s,@LN_S@,$LN_S,;t t
21514 s,@lt_ECHO@,$lt_ECHO,;t t
21515 s,@CPP@,$CPP,;t t
21516 s,@DEBUGDIR@,$DEBUGDIR,;t t
21517 s,@PKGVERSION@,$PKGVERSION,;t t
21518 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21519 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21520 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21521 s,@NO_WERROR@,$NO_WERROR,;t t
21522 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21523 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21524 s,@MAINT@,$MAINT,;t t
21525 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21526 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
21527 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21528 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
21529 s,@host_noncanonical@,$host_noncanonical,;t t
21530 s,@target_noncanonical@,$target_noncanonical,;t t
21531 s,@bfdlibdir@,$bfdlibdir,;t t
21532 s,@bfdincludedir@,$bfdincludedir,;t t
21533 s,@USE_NLS@,$USE_NLS,;t t
21534 s,@LIBINTL@,$LIBINTL,;t t
21535 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21536 s,@INCINTL@,$INCINTL,;t t
21537 s,@XGETTEXT@,$XGETTEXT,;t t
21538 s,@GMSGFMT@,$GMSGFMT,;t t
21539 s,@POSUB@,$POSUB,;t t
21540 s,@CATALOGS@,$CATALOGS,;t t
21541 s,@DATADIRNAME@,$DATADIRNAME,;t t
21542 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21543 s,@GENCAT@,$GENCAT,;t t
21544 s,@CATOBJEXT@,$CATOBJEXT,;t t
21545 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21546 s,@MSGFMT@,$MSGFMT,;t t
21547 s,@MSGMERGE@,$MSGMERGE,;t t
21548 s,@HDEFINES@,$HDEFINES,;t t
21549 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21550 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
21551 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
21552 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21553 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21554 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21555 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
21556 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21557 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21558 s,@COREFILE@,$COREFILE,;t t
21559 s,@COREFLAG@,$COREFLAG,;t t
21560 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21561 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21562 s,@TDEFINES@,$TDEFINES,;t t
21563 s,@wordsize@,$wordsize,;t t
21564 s,@bfd64_libs@,$bfd64_libs,;t t
21565 s,@all_backends@,$all_backends,;t t
21566 s,@bfd_backends@,$bfd_backends,;t t
21567 s,@bfd_machines@,$bfd_machines,;t t
21568 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21569 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21570 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21571 s,@tdefaults@,$tdefaults,;t t
21572 s,@datarootdir@,$datarootdir,;t t
21573 s,@docdir@,$docdir,;t t
21574 s,@htmldir@,$htmldir,;t t
21575 s,@LIBOBJS@,$LIBOBJS,;t t
21576 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21577 CEOF
21579 _ACEOF
21581 cat >>$CONFIG_STATUS <<\_ACEOF
21582 # Split the substitutions into bite-sized pieces for seds with
21583 # small command number limits, like on Digital OSF/1 and HP-UX.
21584 ac_max_sed_lines=48
21585 ac_sed_frag=1 # Number of current file.
21586 ac_beg=1 # First line for current file.
21587 ac_end=$ac_max_sed_lines # Line after last line for current file.
21588 ac_more_lines=:
21589 ac_sed_cmds=
21590 while $ac_more_lines; do
21591 if test $ac_beg -gt 1; then
21592 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21593 else
21594 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21596 if test ! -s $tmp/subs.frag; then
21597 ac_more_lines=false
21598 else
21599 # The purpose of the label and of the branching condition is to
21600 # speed up the sed processing (if there are no `@' at all, there
21601 # is no need to browse any of the substitutions).
21602 # These are the two extra sed commands mentioned above.
21603 (echo ':t
21604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21605 if test -z "$ac_sed_cmds"; then
21606 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21607 else
21608 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21610 ac_sed_frag=`expr $ac_sed_frag + 1`
21611 ac_beg=$ac_end
21612 ac_end=`expr $ac_end + $ac_max_sed_lines`
21614 done
21615 if test -z "$ac_sed_cmds"; then
21616 ac_sed_cmds=cat
21618 fi # test -n "$CONFIG_FILES"
21620 _ACEOF
21621 cat >>$CONFIG_STATUS <<\_ACEOF
21622 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21623 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21624 case $ac_file in
21625 - | *:- | *:-:* ) # input from stdin
21626 cat >$tmp/stdin
21627 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21628 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21629 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21630 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21631 * ) ac_file_in=$ac_file.in ;;
21632 esac
21634 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21635 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21637 X"$ac_file" : 'X\(//\)[^/]' \| \
21638 X"$ac_file" : 'X\(//\)$' \| \
21639 X"$ac_file" : 'X\(/\)' \| \
21640 . : '\(.\)' 2>/dev/null ||
21641 echo X"$ac_file" |
21642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21644 /^X\(\/\/\)$/{ s//\1/; q; }
21645 /^X\(\/\).*/{ s//\1/; q; }
21646 s/.*/./; q'`
21647 { if $as_mkdir_p; then
21648 mkdir -p "$ac_dir"
21649 else
21650 as_dir="$ac_dir"
21651 as_dirs=
21652 while test ! -d "$as_dir"; do
21653 as_dirs="$as_dir $as_dirs"
21654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21656 X"$as_dir" : 'X\(//\)[^/]' \| \
21657 X"$as_dir" : 'X\(//\)$' \| \
21658 X"$as_dir" : 'X\(/\)' \| \
21659 . : '\(.\)' 2>/dev/null ||
21660 echo X"$as_dir" |
21661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21663 /^X\(\/\/\)$/{ s//\1/; q; }
21664 /^X\(\/\).*/{ s//\1/; q; }
21665 s/.*/./; q'`
21666 done
21667 test ! -n "$as_dirs" || mkdir $as_dirs
21668 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21669 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21670 { (exit 1); exit 1; }; }; }
21672 ac_builddir=.
21674 if test "$ac_dir" != .; then
21675 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21676 # A "../" for each directory in $ac_dir_suffix.
21677 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21678 else
21679 ac_dir_suffix= ac_top_builddir=
21682 case $srcdir in
21683 .) # No --srcdir option. We are building in place.
21684 ac_srcdir=.
21685 if test -z "$ac_top_builddir"; then
21686 ac_top_srcdir=.
21687 else
21688 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21689 fi ;;
21690 [\\/]* | ?:[\\/]* ) # Absolute path.
21691 ac_srcdir=$srcdir$ac_dir_suffix;
21692 ac_top_srcdir=$srcdir ;;
21693 *) # Relative path.
21694 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21695 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21696 esac
21698 # Do not use `cd foo && pwd` to compute absolute paths, because
21699 # the directories may not exist.
21700 case `pwd` in
21701 .) ac_abs_builddir="$ac_dir";;
21703 case "$ac_dir" in
21704 .) ac_abs_builddir=`pwd`;;
21705 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21706 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21707 esac;;
21708 esac
21709 case $ac_abs_builddir in
21710 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21712 case ${ac_top_builddir}. in
21713 .) ac_abs_top_builddir=$ac_abs_builddir;;
21714 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21715 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21716 esac;;
21717 esac
21718 case $ac_abs_builddir in
21719 .) ac_abs_srcdir=$ac_srcdir;;
21721 case $ac_srcdir in
21722 .) ac_abs_srcdir=$ac_abs_builddir;;
21723 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21724 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21725 esac;;
21726 esac
21727 case $ac_abs_builddir in
21728 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21730 case $ac_top_srcdir in
21731 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21732 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21733 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21734 esac;;
21735 esac
21738 case $INSTALL in
21739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21740 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21741 esac
21743 if test x"$ac_file" != x-; then
21744 { echo "$as_me:$LINENO: creating $ac_file" >&5
21745 echo "$as_me: creating $ac_file" >&6;}
21746 rm -f "$ac_file"
21748 # Let's still pretend it is `configure' which instantiates (i.e., don't
21749 # use $as_me), people would be surprised to read:
21750 # /* config.h. Generated by config.status. */
21751 if test x"$ac_file" = x-; then
21752 configure_input=
21753 else
21754 configure_input="$ac_file. "
21756 configure_input=$configure_input"Generated from `echo $ac_file_in |
21757 sed 's,.*/,,'` by configure."
21759 # First look for the input files in the build tree, otherwise in the
21760 # src tree.
21761 ac_file_inputs=`IFS=:
21762 for f in $ac_file_in; do
21763 case $f in
21764 -) echo $tmp/stdin ;;
21765 [\\/$]*)
21766 # Absolute (can't be DOS-style, as IFS=:)
21767 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21768 echo "$as_me: error: cannot find input file: $f" >&2;}
21769 { (exit 1); exit 1; }; }
21770 echo "$f";;
21771 *) # Relative
21772 if test -f "$f"; then
21773 # Build tree
21774 echo "$f"
21775 elif test -f "$srcdir/$f"; then
21776 # Source tree
21777 echo "$srcdir/$f"
21778 else
21779 # /dev/null tree
21780 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21781 echo "$as_me: error: cannot find input file: $f" >&2;}
21782 { (exit 1); exit 1; }; }
21783 fi;;
21784 esac
21785 done` || { (exit 1); exit 1; }
21786 _ACEOF
21787 cat >>$CONFIG_STATUS <<_ACEOF
21788 sed "$ac_vpsub
21789 $extrasub
21790 _ACEOF
21791 cat >>$CONFIG_STATUS <<\_ACEOF
21793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21794 s,@configure_input@,$configure_input,;t t
21795 s,@srcdir@,$ac_srcdir,;t t
21796 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21797 s,@top_srcdir@,$ac_top_srcdir,;t t
21798 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21799 s,@builddir@,$ac_builddir,;t t
21800 s,@abs_builddir@,$ac_abs_builddir,;t t
21801 s,@top_builddir@,$ac_top_builddir,;t t
21802 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21803 s,@INSTALL@,$ac_INSTALL,;t t
21804 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21805 rm -f $tmp/stdin
21806 if test x"$ac_file" != x-; then
21807 mv $tmp/out $ac_file
21808 else
21809 cat $tmp/out
21810 rm -f $tmp/out
21813 done
21814 _ACEOF
21815 cat >>$CONFIG_STATUS <<\_ACEOF
21818 # CONFIG_HEADER section.
21821 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21822 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21824 # ac_d sets the value in "#define NAME VALUE" lines.
21825 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21826 ac_dB='[ ].*$,\1#\2'
21827 ac_dC=' '
21828 ac_dD=',;t'
21829 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21830 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21831 ac_uB='$,\1#\2define\3'
21832 ac_uC=' '
21833 ac_uD=',;t'
21835 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21836 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21837 case $ac_file in
21838 - | *:- | *:-:* ) # input from stdin
21839 cat >$tmp/stdin
21840 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21841 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21842 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21843 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21844 * ) ac_file_in=$ac_file.in ;;
21845 esac
21847 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21848 echo "$as_me: creating $ac_file" >&6;}
21850 # First look for the input files in the build tree, otherwise in the
21851 # src tree.
21852 ac_file_inputs=`IFS=:
21853 for f in $ac_file_in; do
21854 case $f in
21855 -) echo $tmp/stdin ;;
21856 [\\/$]*)
21857 # Absolute (can't be DOS-style, as IFS=:)
21858 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21859 echo "$as_me: error: cannot find input file: $f" >&2;}
21860 { (exit 1); exit 1; }; }
21861 # Do quote $f, to prevent DOS paths from being IFS'd.
21862 echo "$f";;
21863 *) # Relative
21864 if test -f "$f"; then
21865 # Build tree
21866 echo "$f"
21867 elif test -f "$srcdir/$f"; then
21868 # Source tree
21869 echo "$srcdir/$f"
21870 else
21871 # /dev/null tree
21872 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21873 echo "$as_me: error: cannot find input file: $f" >&2;}
21874 { (exit 1); exit 1; }; }
21875 fi;;
21876 esac
21877 done` || { (exit 1); exit 1; }
21878 # Remove the trailing spaces.
21879 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21881 _ACEOF
21883 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21884 # `conftest.undefs', that substitutes the proper values into
21885 # config.h.in to produce config.h. The first handles `#define'
21886 # templates, and the second `#undef' templates.
21887 # And first: Protect against being on the right side of a sed subst in
21888 # config.status. Protect against being in an unquoted here document
21889 # in config.status.
21890 rm -f conftest.defines conftest.undefs
21891 # Using a here document instead of a string reduces the quoting nightmare.
21892 # Putting comments in sed scripts is not portable.
21894 # `end' is used to avoid that the second main sed command (meant for
21895 # 0-ary CPP macros) applies to n-ary macro definitions.
21896 # See the Autoconf documentation for `clear'.
21897 cat >confdef2sed.sed <<\_ACEOF
21898 s/[\\&,]/\\&/g
21899 s,[\\$`],\\&,g
21900 t clear
21901 : clear
21902 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21903 t end
21904 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21905 : end
21906 _ACEOF
21907 # If some macros were called several times there might be several times
21908 # the same #defines, which is useless. Nevertheless, we may not want to
21909 # sort them, since we want the *last* AC-DEFINE to be honored.
21910 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21911 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21912 rm -f confdef2sed.sed
21914 # This sed command replaces #undef with comments. This is necessary, for
21915 # example, in the case of _POSIX_SOURCE, which is predefined and required
21916 # on some systems where configure will not decide to define it.
21917 cat >>conftest.undefs <<\_ACEOF
21918 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21919 _ACEOF
21921 # Break up conftest.defines because some shells have a limit on the size
21922 # of here documents, and old seds have small limits too (100 cmds).
21923 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21924 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21925 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21926 echo ' :' >>$CONFIG_STATUS
21927 rm -f conftest.tail
21928 while grep . conftest.defines >/dev/null
21930 # Write a limited-size here document to $tmp/defines.sed.
21931 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21932 # Speed up: don't consider the non `#define' lines.
21933 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21934 # Work around the forget-to-reset-the-flag bug.
21935 echo 't clr' >>$CONFIG_STATUS
21936 echo ': clr' >>$CONFIG_STATUS
21937 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21938 echo 'CEOF
21939 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21940 rm -f $tmp/in
21941 mv $tmp/out $tmp/in
21942 ' >>$CONFIG_STATUS
21943 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21944 rm -f conftest.defines
21945 mv conftest.tail conftest.defines
21946 done
21947 rm -f conftest.defines
21948 echo ' fi # grep' >>$CONFIG_STATUS
21949 echo >>$CONFIG_STATUS
21951 # Break up conftest.undefs because some shells have a limit on the size
21952 # of here documents, and old seds have small limits too (100 cmds).
21953 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21954 rm -f conftest.tail
21955 while grep . conftest.undefs >/dev/null
21957 # Write a limited-size here document to $tmp/undefs.sed.
21958 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21959 # Speed up: don't consider the non `#undef'
21960 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21961 # Work around the forget-to-reset-the-flag bug.
21962 echo 't clr' >>$CONFIG_STATUS
21963 echo ': clr' >>$CONFIG_STATUS
21964 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21965 echo 'CEOF
21966 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21967 rm -f $tmp/in
21968 mv $tmp/out $tmp/in
21969 ' >>$CONFIG_STATUS
21970 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21971 rm -f conftest.undefs
21972 mv conftest.tail conftest.undefs
21973 done
21974 rm -f conftest.undefs
21976 cat >>$CONFIG_STATUS <<\_ACEOF
21977 # Let's still pretend it is `configure' which instantiates (i.e., don't
21978 # use $as_me), people would be surprised to read:
21979 # /* config.h. Generated by config.status. */
21980 if test x"$ac_file" = x-; then
21981 echo "/* Generated by configure. */" >$tmp/config.h
21982 else
21983 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21985 cat $tmp/in >>$tmp/config.h
21986 rm -f $tmp/in
21987 if test x"$ac_file" != x-; then
21988 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21989 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21990 echo "$as_me: $ac_file is unchanged" >&6;}
21991 else
21992 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21994 X"$ac_file" : 'X\(//\)[^/]' \| \
21995 X"$ac_file" : 'X\(//\)$' \| \
21996 X"$ac_file" : 'X\(/\)' \| \
21997 . : '\(.\)' 2>/dev/null ||
21998 echo X"$ac_file" |
21999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22001 /^X\(\/\/\)$/{ s//\1/; q; }
22002 /^X\(\/\).*/{ s//\1/; q; }
22003 s/.*/./; q'`
22004 { if $as_mkdir_p; then
22005 mkdir -p "$ac_dir"
22006 else
22007 as_dir="$ac_dir"
22008 as_dirs=
22009 while test ! -d "$as_dir"; do
22010 as_dirs="$as_dir $as_dirs"
22011 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22013 X"$as_dir" : 'X\(//\)[^/]' \| \
22014 X"$as_dir" : 'X\(//\)$' \| \
22015 X"$as_dir" : 'X\(/\)' \| \
22016 . : '\(.\)' 2>/dev/null ||
22017 echo X"$as_dir" |
22018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22020 /^X\(\/\/\)$/{ s//\1/; q; }
22021 /^X\(\/\).*/{ s//\1/; q; }
22022 s/.*/./; q'`
22023 done
22024 test ! -n "$as_dirs" || mkdir $as_dirs
22025 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22027 { (exit 1); exit 1; }; }; }
22029 rm -f $ac_file
22030 mv $tmp/config.h $ac_file
22032 else
22033 cat $tmp/config.h
22034 rm -f $tmp/config.h
22036 # Compute $ac_file's index in $config_headers.
22037 _am_stamp_count=1
22038 for _am_header in $config_headers :; do
22039 case $_am_header in
22040 $ac_file | $ac_file:* )
22041 break ;;
22043 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22044 esac
22045 done
22046 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22047 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22048 X$ac_file : 'X\(//\)[^/]' \| \
22049 X$ac_file : 'X\(//\)$' \| \
22050 X$ac_file : 'X\(/\)' \| \
22051 . : '\(.\)' 2>/dev/null ||
22052 echo X$ac_file |
22053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22055 /^X\(\/\/\)$/{ s//\1/; q; }
22056 /^X\(\/\).*/{ s//\1/; q; }
22057 s/.*/./; q'`/stamp-h$_am_stamp_count
22058 done
22059 _ACEOF
22060 cat >>$CONFIG_STATUS <<\_ACEOF
22063 # CONFIG_COMMANDS section.
22065 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22066 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22067 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22068 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22069 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22070 X"$ac_dest" : 'X\(//\)[^/]' \| \
22071 X"$ac_dest" : 'X\(//\)$' \| \
22072 X"$ac_dest" : 'X\(/\)' \| \
22073 . : '\(.\)' 2>/dev/null ||
22074 echo X"$ac_dest" |
22075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22077 /^X\(\/\/\)$/{ s//\1/; q; }
22078 /^X\(\/\).*/{ s//\1/; q; }
22079 s/.*/./; q'`
22080 { if $as_mkdir_p; then
22081 mkdir -p "$ac_dir"
22082 else
22083 as_dir="$ac_dir"
22084 as_dirs=
22085 while test ! -d "$as_dir"; do
22086 as_dirs="$as_dir $as_dirs"
22087 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22089 X"$as_dir" : 'X\(//\)[^/]' \| \
22090 X"$as_dir" : 'X\(//\)$' \| \
22091 X"$as_dir" : 'X\(/\)' \| \
22092 . : '\(.\)' 2>/dev/null ||
22093 echo X"$as_dir" |
22094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22096 /^X\(\/\/\)$/{ s//\1/; q; }
22097 /^X\(\/\).*/{ s//\1/; q; }
22098 s/.*/./; q'`
22099 done
22100 test ! -n "$as_dirs" || mkdir $as_dirs
22101 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22102 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22103 { (exit 1); exit 1; }; }; }
22105 ac_builddir=.
22107 if test "$ac_dir" != .; then
22108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22109 # A "../" for each directory in $ac_dir_suffix.
22110 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22111 else
22112 ac_dir_suffix= ac_top_builddir=
22115 case $srcdir in
22116 .) # No --srcdir option. We are building in place.
22117 ac_srcdir=.
22118 if test -z "$ac_top_builddir"; then
22119 ac_top_srcdir=.
22120 else
22121 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22122 fi ;;
22123 [\\/]* | ?:[\\/]* ) # Absolute path.
22124 ac_srcdir=$srcdir$ac_dir_suffix;
22125 ac_top_srcdir=$srcdir ;;
22126 *) # Relative path.
22127 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22128 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22129 esac
22131 # Do not use `cd foo && pwd` to compute absolute paths, because
22132 # the directories may not exist.
22133 case `pwd` in
22134 .) ac_abs_builddir="$ac_dir";;
22136 case "$ac_dir" in
22137 .) ac_abs_builddir=`pwd`;;
22138 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22139 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22140 esac;;
22141 esac
22142 case $ac_abs_builddir in
22143 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22145 case ${ac_top_builddir}. in
22146 .) ac_abs_top_builddir=$ac_abs_builddir;;
22147 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22148 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22149 esac;;
22150 esac
22151 case $ac_abs_builddir in
22152 .) ac_abs_srcdir=$ac_srcdir;;
22154 case $ac_srcdir in
22155 .) ac_abs_srcdir=$ac_abs_builddir;;
22156 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22157 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22158 esac;;
22159 esac
22160 case $ac_abs_builddir in
22161 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22163 case $ac_top_srcdir in
22164 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22165 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22166 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22167 esac;;
22168 esac
22171 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22172 echo "$as_me: executing $ac_dest commands" >&6;}
22173 case $ac_dest in
22174 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22175 # Strip MF so we end up with the name of the file.
22176 mf=`echo "$mf" | sed -e 's/:.*$//'`
22177 # Check whether this is an Automake generated Makefile or not.
22178 # We used to match only the files named `Makefile.in', but
22179 # some people rename them; so instead we look at the file content.
22180 # Grep'ing the first line is not enough: some people post-process
22181 # each Makefile.in and add a new line on top of each file to say so.
22182 # So let's grep whole file.
22183 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22184 dirpart=`(dirname "$mf") 2>/dev/null ||
22185 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22186 X"$mf" : 'X\(//\)[^/]' \| \
22187 X"$mf" : 'X\(//\)$' \| \
22188 X"$mf" : 'X\(/\)' \| \
22189 . : '\(.\)' 2>/dev/null ||
22190 echo X"$mf" |
22191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22193 /^X\(\/\/\)$/{ s//\1/; q; }
22194 /^X\(\/\).*/{ s//\1/; q; }
22195 s/.*/./; q'`
22196 else
22197 continue
22199 # Extract the definition of DEPDIR, am__include, and am__quote
22200 # from the Makefile without running `make'.
22201 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22202 test -z "$DEPDIR" && continue
22203 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22204 test -z "am__include" && continue
22205 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22206 # When using ansi2knr, U may be empty or an underscore; expand it
22207 U=`sed -n 's/^U = //p' < "$mf"`
22208 # Find all dependency output files, they are included files with
22209 # $(DEPDIR) in their names. We invoke sed twice because it is the
22210 # simplest approach to changing $(DEPDIR) to its actual value in the
22211 # expansion.
22212 for file in `sed -n "
22213 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22214 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22215 # Make sure the directory exists.
22216 test -f "$dirpart/$file" && continue
22217 fdir=`(dirname "$file") 2>/dev/null ||
22218 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22219 X"$file" : 'X\(//\)[^/]' \| \
22220 X"$file" : 'X\(//\)$' \| \
22221 X"$file" : 'X\(/\)' \| \
22222 . : '\(.\)' 2>/dev/null ||
22223 echo X"$file" |
22224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22226 /^X\(\/\/\)$/{ s//\1/; q; }
22227 /^X\(\/\).*/{ s//\1/; q; }
22228 s/.*/./; q'`
22229 { if $as_mkdir_p; then
22230 mkdir -p $dirpart/$fdir
22231 else
22232 as_dir=$dirpart/$fdir
22233 as_dirs=
22234 while test ! -d "$as_dir"; do
22235 as_dirs="$as_dir $as_dirs"
22236 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22238 X"$as_dir" : 'X\(//\)[^/]' \| \
22239 X"$as_dir" : 'X\(//\)$' \| \
22240 X"$as_dir" : 'X\(/\)' \| \
22241 . : '\(.\)' 2>/dev/null ||
22242 echo X"$as_dir" |
22243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22245 /^X\(\/\/\)$/{ s//\1/; q; }
22246 /^X\(\/\).*/{ s//\1/; q; }
22247 s/.*/./; q'`
22248 done
22249 test ! -n "$as_dirs" || mkdir $as_dirs
22250 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22251 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22252 { (exit 1); exit 1; }; }; }
22254 # echo "creating $dirpart/$file"
22255 echo '# dummy' > "$dirpart/$file"
22256 done
22257 done
22259 libtool )
22261 # See if we are running on zsh, and set the options which allow our
22262 # commands through without removal of \ escapes.
22263 if test -n "${ZSH_VERSION+set}" ; then
22264 setopt NO_GLOB_SUBST
22267 cfgfile="${ofile}T"
22268 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22269 $RM "$cfgfile"
22271 cat <<_LT_EOF >> "$cfgfile"
22272 #! $SHELL
22274 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22275 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22277 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22279 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22280 # 2006, 2007 Free Software Foundation, Inc.
22282 # This file is part of GNU Libtool:
22283 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22285 # This program is free software; you can redistribute it and/or modify
22286 # it under the terms of the GNU General Public License as published by
22287 # the Free Software Foundation; either version 3 of the License, or
22288 # (at your option) any later version.
22290 # This program is distributed in the hope that it will be useful, but
22291 # WITHOUT ANY WARRANTY; without even the implied warranty of
22292 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22293 # General Public License for more details.
22295 # You should have received a copy of the GNU General Public License
22296 # along with this program; if not, a copy can be downloaded from
22297 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22298 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22299 # MA 02110-1301, USA.
22301 # As a special exception to the GNU General Public License, if you
22302 # distribute this file as part of a program that contains a
22303 # configuration script generated by Autoconf, you may include it under
22304 # the same distribution terms that you use for the rest of that program.
22307 # The names of the tagged configurations supported by this script.
22308 available_tags=""
22310 # ### BEGIN LIBTOOL CONFIG
22312 # Whether or not to build shared libraries.
22313 build_libtool_libs=$enable_shared
22315 # Which release of libtool.m4 was used?
22316 macro_version=$macro_version
22317 macro_revision=$macro_revision
22319 # Whether or not to build static libraries.
22320 build_old_libs=$enable_static
22322 # What type of objects to build.
22323 pic_mode=$pic_mode
22325 # Whether or not to optimize for fast installation.
22326 fast_install=$enable_fast_install
22328 # The host system.
22329 host_alias=$host_alias
22330 host=$host
22331 host_os=$host_os
22333 # The build system.
22334 build_alias=$build_alias
22335 build=$build
22336 build_os=$build_os
22338 # A sed program that does not truncate output.
22339 SED=$lt_SED
22341 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22342 Xsed="\$SED -e 1s/^X//"
22344 # A grep program that handles long lines.
22345 GREP=$lt_GREP
22347 # An ERE matcher.
22348 EGREP=$lt_EGREP
22350 # A literal string matcher.
22351 FGREP=$lt_FGREP
22353 # A BSD- or MS-compatible name lister.
22354 NM=$lt_NM
22356 # Whether we need soft or hard links.
22357 LN_S=$lt_LN_S
22359 # What is the maximum length of a command?
22360 max_cmd_len=$max_cmd_len
22362 # Object file suffix (normally "o").
22363 objext=$ac_objext
22365 # Executable file suffix (normally "").
22366 exeext=$exeext
22368 # whether the shell understands "unset".
22369 lt_unset=$lt_unset
22371 # turn spaces into newlines.
22372 SP2NL=$lt_lt_SP2NL
22374 # turn newlines into spaces.
22375 NL2SP=$lt_lt_NL2SP
22377 # How to create reloadable object files.
22378 reload_flag=$lt_reload_flag
22379 reload_cmds=$lt_reload_cmds
22381 # Method to check whether dependent libraries are shared objects.
22382 deplibs_check_method=$lt_deplibs_check_method
22384 # Command to use when deplibs_check_method == "file_magic".
22385 file_magic_cmd=$lt_file_magic_cmd
22387 # The archiver.
22388 AR=$lt_AR
22389 AR_FLAGS=$lt_AR_FLAGS
22391 # A symbol stripping program.
22392 STRIP=$lt_STRIP
22394 # Commands used to install an old-style archive.
22395 RANLIB=$lt_RANLIB
22396 old_postinstall_cmds=$lt_old_postinstall_cmds
22397 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22399 # A C compiler.
22400 LTCC=$lt_CC
22402 # LTCC compiler flags.
22403 LTCFLAGS=$lt_CFLAGS
22405 # Take the output of nm and produce a listing of raw symbols and C names.
22406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22408 # Transform the output of nm in a proper C declaration.
22409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22411 # Transform the output of nm in a C name address pair.
22412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22414 # The name of the directory that contains temporary libtool files.
22415 objdir=$objdir
22417 # Shell to use when invoking shell scripts.
22418 SHELL=$lt_SHELL
22420 # An echo program that does not interpret backslashes.
22421 ECHO=$lt_ECHO
22423 # Used to examine libraries when file_magic_cmd begins with "file".
22424 MAGIC_CMD=$MAGIC_CMD
22426 # Must we lock files when doing compilation?
22427 need_locks=$lt_need_locks
22429 # Old archive suffix (normally "a").
22430 libext=$libext
22432 # Shared library suffix (normally ".so").
22433 shrext_cmds=$lt_shrext_cmds
22435 # The commands to extract the exported symbol list from a shared archive.
22436 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22438 # Variables whose values should be saved in libtool wrapper scripts and
22439 # restored at link time.
22440 variables_saved_for_relink=$lt_variables_saved_for_relink
22442 # Do we need the "lib" prefix for modules?
22443 need_lib_prefix=$need_lib_prefix
22445 # Do we need a version for libraries?
22446 need_version=$need_version
22448 # Library versioning type.
22449 version_type=$version_type
22451 # Shared library runtime path variable.
22452 runpath_var=$runpath_var
22454 # Shared library path variable.
22455 shlibpath_var=$shlibpath_var
22457 # Is shlibpath searched before the hard-coded library search path?
22458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22460 # Format of library name prefix.
22461 libname_spec=$lt_libname_spec
22463 # List of archive names. First name is the real one, the rest are links.
22464 # The last name is the one that the linker finds with -lNAME
22465 library_names_spec=$lt_library_names_spec
22467 # The coded name of the library, if different from the real name.
22468 soname_spec=$lt_soname_spec
22470 # Command to use after installation of a shared archive.
22471 postinstall_cmds=$lt_postinstall_cmds
22473 # Command to use after uninstallation of a shared archive.
22474 postuninstall_cmds=$lt_postuninstall_cmds
22476 # Commands used to finish a libtool library installation in a directory.
22477 finish_cmds=$lt_finish_cmds
22479 # As "finish_cmds", except a single script fragment to be evaled but
22480 # not shown.
22481 finish_eval=$lt_finish_eval
22483 # Whether we should hardcode library paths into libraries.
22484 hardcode_into_libs=$hardcode_into_libs
22486 # Compile-time system search path for libraries.
22487 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22489 # Run-time system search path for libraries.
22490 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22492 # Whether dlopen is supported.
22493 dlopen_support=$enable_dlopen
22495 # Whether dlopen of programs is supported.
22496 dlopen_self=$enable_dlopen_self
22498 # Whether dlopen of statically linked programs is supported.
22499 dlopen_self_static=$enable_dlopen_self_static
22501 # Commands to strip libraries.
22502 old_striplib=$lt_old_striplib
22503 striplib=$lt_striplib
22506 # The linker used to build libraries.
22507 LD=$lt_LD
22509 # Commands used to build an old-style archive.
22510 old_archive_cmds=$lt_old_archive_cmds
22512 # A language specific compiler.
22513 CC=$lt_compiler
22515 # Is the compiler the GNU compiler?
22516 with_gcc=$GCC
22518 # Compiler flag to turn off builtin functions.
22519 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22521 # How to pass a linker flag through the compiler.
22522 wl=$lt_lt_prog_compiler_wl
22524 # Additional compiler flags for building library objects.
22525 pic_flag=$lt_lt_prog_compiler_pic
22527 # Compiler flag to prevent dynamic linking.
22528 link_static_flag=$lt_lt_prog_compiler_static
22530 # Does compiler simultaneously support -c and -o options?
22531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22533 # Whether or not to add -lc for building shared libraries.
22534 build_libtool_need_lc=$archive_cmds_need_lc
22536 # Whether or not to disallow shared libs when runtime libs are static.
22537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22539 # Compiler flag to allow reflexive dlopens.
22540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22542 # Compiler flag to generate shared objects directly from archives.
22543 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22545 # Whether the compiler copes with passing no objects directly.
22546 compiler_needs_object=$lt_compiler_needs_object
22548 # Create an old-style archive from a shared archive.
22549 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22551 # Create a temporary old-style archive to link instead of a shared archive.
22552 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22554 # Commands used to build a shared archive.
22555 archive_cmds=$lt_archive_cmds
22556 archive_expsym_cmds=$lt_archive_expsym_cmds
22558 # Commands used to build a loadable module if different from building
22559 # a shared archive.
22560 module_cmds=$lt_module_cmds
22561 module_expsym_cmds=$lt_module_expsym_cmds
22563 # Whether we are building with GNU ld or not.
22564 with_gnu_ld=$lt_with_gnu_ld
22566 # Flag that allows shared libraries with undefined symbols to be built.
22567 allow_undefined_flag=$lt_allow_undefined_flag
22569 # Flag that enforces no undefined symbols.
22570 no_undefined_flag=$lt_no_undefined_flag
22572 # Flag to hardcode \$libdir into a binary during linking.
22573 # This must work even if \$libdir does not exist
22574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22576 # If ld is used when linking, flag to hardcode \$libdir into a binary
22577 # during linking. This must work even if \$libdir does not exist.
22578 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22580 # Whether we need a single "-rpath" flag with a separated argument.
22581 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22583 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22584 # DIR into the resulting binary.
22585 hardcode_direct=$hardcode_direct
22587 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22588 # DIR into the resulting binary and the resulting library dependency is
22589 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22590 # library is relocated.
22591 hardcode_direct_absolute=$hardcode_direct_absolute
22593 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22594 # into the resulting binary.
22595 hardcode_minus_L=$hardcode_minus_L
22597 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22598 # into the resulting binary.
22599 hardcode_shlibpath_var=$hardcode_shlibpath_var
22601 # Set to "yes" if building a shared library automatically hardcodes DIR
22602 # into the library and all subsequent libraries and executables linked
22603 # against it.
22604 hardcode_automatic=$hardcode_automatic
22606 # Set to yes if linker adds runtime paths of dependent libraries
22607 # to runtime path list.
22608 inherit_rpath=$inherit_rpath
22610 # Whether libtool must link a program against all its dependency libraries.
22611 link_all_deplibs=$link_all_deplibs
22613 # Fix the shell variable \$srcfile for the compiler.
22614 fix_srcfile_path=$lt_fix_srcfile_path
22616 # Set to "yes" if exported symbols are required.
22617 always_export_symbols=$always_export_symbols
22619 # The commands to list exported symbols.
22620 export_symbols_cmds=$lt_export_symbols_cmds
22622 # Symbols that should not be listed in the preloaded symbols.
22623 exclude_expsyms=$lt_exclude_expsyms
22625 # Symbols that must always be exported.
22626 include_expsyms=$lt_include_expsyms
22628 # Commands necessary for linking programs (against libraries) with templates.
22629 prelink_cmds=$lt_prelink_cmds
22631 # Specify filename containing input files.
22632 file_list_spec=$lt_file_list_spec
22634 # How to hardcode a shared library path into an executable.
22635 hardcode_action=$hardcode_action
22637 # ### END LIBTOOL CONFIG
22639 _LT_EOF
22641 case $host_os in
22642 aix3*)
22643 cat <<\_LT_EOF >> "$cfgfile"
22644 # AIX sometimes has problems with the GCC collect2 program. For some
22645 # reason, if we set the COLLECT_NAMES environment variable, the problems
22646 # vanish in a puff of smoke.
22647 if test "X${COLLECT_NAMES+set}" != Xset; then
22648 COLLECT_NAMES=
22649 export COLLECT_NAMES
22651 _LT_EOF
22653 esac
22656 ltmain="$ac_aux_dir/ltmain.sh"
22659 # We use sed instead of cat because bash on DJGPP gets confused if
22660 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22661 # text mode, it properly converts lines to CR/LF. This bash problem
22662 # is reportedly fixed, but why not run on old versions too?
22663 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22664 || (rm -f "$cfgfile"; exit 1)
22666 case $xsi_shell in
22667 yes)
22668 cat << \_LT_EOF >> "$cfgfile"
22669 # func_dirname file append nondir_replacement
22670 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22671 # otherwise set result to NONDIR_REPLACEMENT.
22672 func_dirname ()
22674 case ${1} in
22675 */*) func_dirname_result="${1%/*}${2}" ;;
22676 * ) func_dirname_result="${3}" ;;
22677 esac
22680 # func_basename file
22681 func_basename ()
22683 func_basename_result="${1##*/}"
22686 # func_stripname prefix suffix name
22687 # strip PREFIX and SUFFIX off of NAME.
22688 # PREFIX and SUFFIX must not contain globbing or regex special
22689 # characters, hashes, percent signs, but SUFFIX may contain a leading
22690 # dot (in which case that matches only a dot).
22691 func_stripname ()
22693 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22694 # positional parameters, so assign one to ordinary parameter first.
22695 func_stripname_result=${3}
22696 func_stripname_result=${func_stripname_result#"${1}"}
22697 func_stripname_result=${func_stripname_result%"${2}"}
22700 # func_opt_split
22701 func_opt_split ()
22703 func_opt_split_opt=${1%%=*}
22704 func_opt_split_arg=${1#*=}
22707 # func_lo2o object
22708 func_lo2o ()
22710 case ${1} in
22711 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22712 *) func_lo2o_result=${1} ;;
22713 esac
22715 _LT_EOF
22717 *) # Bourne compatible functions.
22718 cat << \_LT_EOF >> "$cfgfile"
22719 # func_dirname file append nondir_replacement
22720 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22721 # otherwise set result to NONDIR_REPLACEMENT.
22722 func_dirname ()
22724 # Extract subdirectory from the argument.
22725 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22726 if test "X$func_dirname_result" = "X${1}"; then
22727 func_dirname_result="${3}"
22728 else
22729 func_dirname_result="$func_dirname_result${2}"
22733 # func_basename file
22734 func_basename ()
22736 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22739 # func_stripname prefix suffix name
22740 # strip PREFIX and SUFFIX off of NAME.
22741 # PREFIX and SUFFIX must not contain globbing or regex special
22742 # characters, hashes, percent signs, but SUFFIX may contain a leading
22743 # dot (in which case that matches only a dot).
22744 # func_strip_suffix prefix name
22745 func_stripname ()
22747 case ${2} in
22748 .*) func_stripname_result=`$ECHO "X${3}" \
22749 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22750 *) func_stripname_result=`$ECHO "X${3}" \
22751 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22752 esac
22755 # sed scripts:
22756 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22757 my_sed_long_arg='1s/^-[^=]*=//'
22759 # func_opt_split
22760 func_opt_split ()
22762 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22763 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22766 # func_lo2o object
22767 func_lo2o ()
22769 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22771 _LT_EOF
22772 esac
22774 case $lt_shell_append in
22775 yes)
22776 cat << \_LT_EOF >> "$cfgfile"
22778 # func_append var value
22779 # Append VALUE to the end of shell variable VAR.
22780 func_append ()
22782 eval "$1+=\$2"
22784 _LT_EOF
22787 cat << \_LT_EOF >> "$cfgfile"
22789 # func_append var value
22790 # Append VALUE to the end of shell variable VAR.
22791 func_append ()
22793 eval "$1=\$$1\$2"
22795 _LT_EOF
22797 esac
22800 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22801 || (rm -f "$cfgfile"; exit 1)
22803 mv -f "$cfgfile" "$ofile" ||
22804 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22805 chmod +x "$ofile"
22808 default-1 )
22809 for ac_file in $CONFIG_FILES; do
22810 # Support "outfile[:infile[:infile...]]"
22811 case "$ac_file" in
22812 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22813 esac
22814 # PO directories have a Makefile.in generated from Makefile.in.in.
22815 case "$ac_file" in */Makefile.in)
22816 # Adjust a relative srcdir.
22817 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22818 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22819 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22820 # In autoconf-2.13 it is called $ac_given_srcdir.
22821 # In autoconf-2.50 it is called $srcdir.
22822 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22823 case "$ac_given_srcdir" in
22824 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22825 /*) top_srcdir="$ac_given_srcdir" ;;
22826 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22827 esac
22828 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22829 rm -f "$ac_dir/POTFILES"
22830 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22831 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22832 POMAKEFILEDEPS="POTFILES.in"
22833 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22834 # on $ac_dir but don't depend on user-specified configuration
22835 # parameters.
22836 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22837 # The LINGUAS file contains the set of available languages.
22838 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22839 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22841 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22842 # Hide the ALL_LINGUAS assigment from automake.
22843 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22844 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22845 else
22846 # The set of available languages was given in configure.in.
22847 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22849 case "$ac_given_srcdir" in
22850 .) srcdirpre= ;;
22851 *) srcdirpre='$(srcdir)/' ;;
22852 esac
22853 POFILES=
22854 GMOFILES=
22855 UPDATEPOFILES=
22856 DUMMYPOFILES=
22857 for lang in $ALL_LINGUAS; do
22858 POFILES="$POFILES $srcdirpre$lang.po"
22859 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22860 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22861 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22862 done
22863 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22864 # environment variable.
22865 INST_LINGUAS=
22866 if test -n "$ALL_LINGUAS"; then
22867 for presentlang in $ALL_LINGUAS; do
22868 useit=no
22869 if test "%UNSET%" != "$LINGUAS"; then
22870 desiredlanguages="$LINGUAS"
22871 else
22872 desiredlanguages="$ALL_LINGUAS"
22874 for desiredlang in $desiredlanguages; do
22875 # Use the presentlang catalog if desiredlang is
22876 # a. equal to presentlang, or
22877 # b. a variant of presentlang (because in this case,
22878 # presentlang can be used as a fallback for messages
22879 # which are not translated in the desiredlang catalog).
22880 case "$desiredlang" in
22881 "$presentlang"*) useit=yes;;
22882 esac
22883 done
22884 if test $useit = yes; then
22885 INST_LINGUAS="$INST_LINGUAS $presentlang"
22887 done
22889 CATALOGS=
22890 if test -n "$INST_LINGUAS"; then
22891 for lang in $INST_LINGUAS; do
22892 CATALOGS="$CATALOGS $lang.gmo"
22893 done
22895 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22896 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"
22897 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22898 if test -f "$f"; then
22899 case "$f" in
22900 *.orig | *.bak | *~) ;;
22901 *) cat "$f" >> "$ac_dir/Makefile" ;;
22902 esac
22904 done
22907 esac
22908 done ;;
22909 bfd_stdint.h )
22910 if test "$GCC" = yes; then
22911 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22912 else
22913 echo "/* generated for $CC */" > tmp-stdint.h
22916 sed 's/^ *//' >> tmp-stdint.h <<EOF
22918 #ifndef GCC_GENERATED_STDINT_H
22919 #define GCC_GENERATED_STDINT_H 1
22921 #include <sys/types.h>
22924 if test "$acx_cv_header_stdint" != stdint.h; then
22925 echo "#include <stddef.h>" >> tmp-stdint.h
22927 if test "$acx_cv_header_stdint" != stddef.h; then
22928 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22931 sed 's/^ *//' >> tmp-stdint.h <<EOF
22932 /* glibc uses these symbols as guards to prevent redefinitions. */
22933 #ifdef __int8_t_defined
22934 #define _INT8_T
22935 #define _INT16_T
22936 #define _INT32_T
22937 #endif
22938 #ifdef __uint32_t_defined
22939 #define _UINT32_T
22940 #endif
22944 # ----------------- done header, emit basic int types -------------
22945 if test "$acx_cv_header_stdint" = stddef.h; then
22946 sed 's/^ *//' >> tmp-stdint.h <<EOF
22948 #ifndef _UINT8_T
22949 #define _UINT8_T
22950 #ifndef __uint8_t_defined
22951 #define __uint8_t_defined
22952 typedef unsigned $acx_cv_type_int8_t uint8_t;
22953 #endif
22954 #endif
22956 #ifndef _UINT16_T
22957 #define _UINT16_T
22958 #ifndef __uint16_t_defined
22959 #define __uint16_t_defined
22960 typedef unsigned $acx_cv_type_int16_t uint16_t;
22961 #endif
22962 #endif
22964 #ifndef _UINT32_T
22965 #define _UINT32_T
22966 #ifndef __uint32_t_defined
22967 #define __uint32_t_defined
22968 typedef unsigned $acx_cv_type_int32_t uint32_t;
22969 #endif
22970 #endif
22972 #ifndef _INT8_T
22973 #define _INT8_T
22974 #ifndef __int8_t_defined
22975 #define __int8_t_defined
22976 typedef $acx_cv_type_int8_t int8_t;
22977 #endif
22978 #endif
22980 #ifndef _INT16_T
22981 #define _INT16_T
22982 #ifndef __int16_t_defined
22983 #define __int16_t_defined
22984 typedef $acx_cv_type_int16_t int16_t;
22985 #endif
22986 #endif
22988 #ifndef _INT32_T
22989 #define _INT32_T
22990 #ifndef __int32_t_defined
22991 #define __int32_t_defined
22992 typedef $acx_cv_type_int32_t int32_t;
22993 #endif
22994 #endif
22996 elif test "$ac_cv_type_u_int32_t" = yes; then
22997 sed 's/^ *//' >> tmp-stdint.h <<EOF
22999 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23000 #ifndef _INT8_T
23001 #define _INT8_T
23002 #endif
23003 #ifndef _INT16_T
23004 #define _INT16_T
23005 #endif
23006 #ifndef _INT32_T
23007 #define _INT32_T
23008 #endif
23010 #ifndef _UINT8_T
23011 #define _UINT8_T
23012 #ifndef __uint8_t_defined
23013 #define __uint8_t_defined
23014 typedef u_int8_t uint8_t;
23015 #endif
23016 #endif
23018 #ifndef _UINT16_T
23019 #define _UINT16_T
23020 #ifndef __uint16_t_defined
23021 #define __uint16_t_defined
23022 typedef u_int16_t uint16_t;
23023 #endif
23024 #endif
23026 #ifndef _UINT32_T
23027 #define _UINT32_T
23028 #ifndef __uint32_t_defined
23029 #define __uint32_t_defined
23030 typedef u_int32_t uint32_t;
23031 #endif
23032 #endif
23034 else
23035 sed 's/^ *//' >> tmp-stdint.h <<EOF
23037 /* Some systems have guard macros to prevent redefinitions, define them. */
23038 #ifndef _INT8_T
23039 #define _INT8_T
23040 #endif
23041 #ifndef _INT16_T
23042 #define _INT16_T
23043 #endif
23044 #ifndef _INT32_T
23045 #define _INT32_T
23046 #endif
23047 #ifndef _UINT8_T
23048 #define _UINT8_T
23049 #endif
23050 #ifndef _UINT16_T
23051 #define _UINT16_T
23052 #endif
23053 #ifndef _UINT32_T
23054 #define _UINT32_T
23055 #endif
23059 # ------------- done basic int types, emit int64_t types ------------
23060 if test "$ac_cv_type_uint64_t" = yes; then
23061 sed 's/^ *//' >> tmp-stdint.h <<EOF
23063 /* system headers have good uint64_t and int64_t */
23064 #ifndef _INT64_T
23065 #define _INT64_T
23066 #endif
23067 #ifndef _UINT64_T
23068 #define _UINT64_T
23069 #endif
23071 elif test "$ac_cv_type_u_int64_t" = yes; then
23072 sed 's/^ *//' >> tmp-stdint.h <<EOF
23074 /* system headers have an u_int64_t (and int64_t) */
23075 #ifndef _INT64_T
23076 #define _INT64_T
23077 #endif
23078 #ifndef _UINT64_T
23079 #define _UINT64_T
23080 #ifndef __uint64_t_defined
23081 #define __uint64_t_defined
23082 typedef u_int64_t uint64_t;
23083 #endif
23084 #endif
23086 elif test -n "$acx_cv_type_int64_t"; then
23087 sed 's/^ *//' >> tmp-stdint.h <<EOF
23089 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23090 #ifndef _INT64_T
23091 #define _INT64_T
23092 typedef $acx_cv_type_int64_t int64_t;
23093 #endif
23094 #ifndef _UINT64_T
23095 #define _UINT64_T
23096 #ifndef __uint64_t_defined
23097 #define __uint64_t_defined
23098 typedef unsigned $acx_cv_type_int64_t uint64_t;
23099 #endif
23100 #endif
23102 else
23103 sed 's/^ *//' >> tmp-stdint.h <<EOF
23105 /* some common heuristics for int64_t, using compiler-specific tests */
23106 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23107 #ifndef _INT64_T
23108 #define _INT64_T
23109 #ifndef __int64_t_defined
23110 typedef long long int64_t;
23111 #endif
23112 #endif
23113 #ifndef _UINT64_T
23114 #define _UINT64_T
23115 typedef unsigned long long uint64_t;
23116 #endif
23118 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23119 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23120 does not implement __extension__. But that compiler doesn't define
23121 __GNUC_MINOR__. */
23122 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23123 # define __extension__
23124 # endif
23126 # ifndef _INT64_T
23127 # define _INT64_T
23128 __extension__ typedef long long int64_t;
23129 # endif
23130 # ifndef _UINT64_T
23131 # define _UINT64_T
23132 __extension__ typedef unsigned long long uint64_t;
23133 # endif
23135 #elif !defined __STRICT_ANSI__
23136 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23138 # ifndef _INT64_T
23139 # define _INT64_T
23140 typedef __int64 int64_t;
23141 # endif
23142 # ifndef _UINT64_T
23143 # define _UINT64_T
23144 typedef unsigned __int64 uint64_t;
23145 # endif
23146 # endif /* compiler */
23148 #endif /* ANSI version */
23152 # ------------- done int64_t types, emit intptr types ------------
23153 if test "$ac_cv_type_uintptr_t" != yes; then
23154 sed 's/^ *//' >> tmp-stdint.h <<EOF
23156 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23157 #ifndef __uintptr_t_defined
23158 typedef u$acx_cv_type_intptr_t uintptr_t;
23159 #endif
23160 #ifndef __intptr_t_defined
23161 typedef $acx_cv_type_intptr_t intptr_t;
23162 #endif
23166 # ------------- done intptr types, emit int_least types ------------
23167 if test "$ac_cv_type_int_least32_t" != yes; then
23168 sed 's/^ *//' >> tmp-stdint.h <<EOF
23170 /* Define int_least types */
23171 typedef int8_t int_least8_t;
23172 typedef int16_t int_least16_t;
23173 typedef int32_t int_least32_t;
23174 #ifdef _INT64_T
23175 typedef int64_t int_least64_t;
23176 #endif
23178 typedef uint8_t uint_least8_t;
23179 typedef uint16_t uint_least16_t;
23180 typedef uint32_t uint_least32_t;
23181 #ifdef _UINT64_T
23182 typedef uint64_t uint_least64_t;
23183 #endif
23187 # ------------- done intptr types, emit int_fast types ------------
23188 if test "$ac_cv_type_int_fast32_t" != yes; then
23189 sed 's/^ *//' >> tmp-stdint.h <<EOF
23191 /* Define int_fast types. short is often slow */
23192 typedef int8_t int_fast8_t;
23193 typedef int int_fast16_t;
23194 typedef int32_t int_fast32_t;
23195 #ifdef _INT64_T
23196 typedef int64_t int_fast64_t;
23197 #endif
23199 typedef uint8_t uint_fast8_t;
23200 typedef unsigned int uint_fast16_t;
23201 typedef uint32_t uint_fast32_t;
23202 #ifdef _UINT64_T
23203 typedef uint64_t uint_fast64_t;
23204 #endif
23208 if test "$ac_cv_type_uintmax_t" != yes; then
23209 sed 's/^ *//' >> tmp-stdint.h <<EOF
23211 /* Define intmax based on what we found */
23212 #ifdef _INT64_T
23213 typedef int64_t intmax_t;
23214 #else
23215 typedef long intmax_t;
23216 #endif
23217 #ifdef _UINT64_T
23218 typedef uint64_t uintmax_t;
23219 #else
23220 typedef unsigned long uintmax_t;
23221 #endif
23225 sed 's/^ *//' >> tmp-stdint.h <<EOF
23227 #endif /* GCC_GENERATED_STDINT_H */
23230 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23231 rm -f tmp-stdint.h
23232 else
23233 mv -f tmp-stdint.h bfd_stdint.h
23237 default )
23238 case "$srcdir" in
23239 .) srcdirpre= ;;
23240 *) srcdirpre='$(srcdir)/' ;;
23241 esac
23242 POFILES=
23243 GMOFILES=
23244 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23245 if test $lang != dummy; then
23246 POFILES="$POFILES $srcdirpre$lang.po"
23247 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23249 done
23250 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23251 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23252 -e "s,@POFILES@,$POFILES," \
23253 -e "s,@GMOFILES@,$GMOFILES," \
23254 po/Makefile.in > po/Makefile ;;
23255 esac
23256 done
23257 _ACEOF
23259 cat >>$CONFIG_STATUS <<\_ACEOF
23261 { (exit 0); exit 0; }
23262 _ACEOF
23263 chmod +x $CONFIG_STATUS
23264 ac_clean_files=$ac_clean_files_save
23267 # configure is writing to config.log, and then calls config.status.
23268 # config.status does its own redirection, appending to config.log.
23269 # Unfortunately, on DOS this fails, as config.log is still kept open
23270 # by configure, so config.status won't be able to write to it; its
23271 # output is simply discarded. So we exec the FD to /dev/null,
23272 # effectively closing config.log, so it can be properly (re)opened and
23273 # appended to by config.status. When coming back to configure, we
23274 # need to make the FD available again.
23275 if test "$no_create" != yes; then
23276 ac_cs_success=:
23277 ac_config_status_args=
23278 test "$silent" = yes &&
23279 ac_config_status_args="$ac_config_status_args --quiet"
23280 exec 5>/dev/null
23281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23282 exec 5>>config.log
23283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23284 # would make configure fail if this is the last instruction.
23285 $ac_cs_success || { (exit 1); exit 1; }