* configure.in: Deactivate large-file support on native x86-solaris
[binutils.git] / bfd / configure
blob042f5d1f74c7e478fa38fef52ac2db83c48807f6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="libbfd.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG 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=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951 _ACEOF
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
982 cat <<\_ACEOF
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
996 if test -n "$ac_init_help"; then
998 cat <<\_ACEOF
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --disable-largefile omit support for large files
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1014 --enable-targets alternative target configurations
1015 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1016 --enable-secureplt Default to creating read-only plt entries
1017 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1018 --enable-werror treat compile warnings as errors
1019 --enable-build-warnings enable build-time compiler warnings
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-install-libbfd controls installation of libbfd and related headers
1023 --disable-nls do not use Native Language Support
1025 Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1028 --with-pic try to use only PIC/non-PIC objects [default=use
1029 both]
1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1031 --with-mmap try using mmap for BFD input files if available
1032 --with-separate-debug-dir=DIR
1033 Look for global separate debug info in DIR
1034 [default=LIBDIR/debug]
1035 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1036 Binutils"
1037 --with-bugurl=URL Direct users to URL to report a bug
1039 Some influential environment variables:
1040 CC C compiler command
1041 CFLAGS C compiler flags
1042 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1043 nonstandard directory <lib dir>
1044 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045 headers in a nonstandard directory <include dir>
1046 CPP C preprocessor
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1051 _ACEOF
1054 if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1056 ac_popdir=`pwd`
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1059 ac_builddir=.
1061 if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 else
1066 ac_dir_suffix= ac_top_builddir=
1069 case $srcdir in
1070 .) # No --srcdir option. We are building in place.
1071 ac_srcdir=.
1072 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=.
1074 else
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 fi ;;
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1080 *) # Relative path.
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083 esac
1085 # Do not use `cd foo && pwd` to compute absolute paths, because
1086 # the directories may not exist.
1087 case `pwd` in
1088 .) ac_abs_builddir="$ac_dir";;
1090 case "$ac_dir" in
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 esac;;
1095 esac
1096 case $ac_abs_builddir in
1097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 esac;;
1104 esac
1105 case $ac_abs_builddir in
1106 .) ac_abs_srcdir=$ac_srcdir;;
1108 case $ac_srcdir in
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121 esac;;
1122 esac
1124 cd $ac_dir
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1127 echo
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1130 echo
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1134 echo
1135 $ac_configure --help
1136 else
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 cd $ac_popdir
1140 done
1143 test -n "$ac_init_help" && exit 0
1144 if $ac_init_version; then
1145 cat <<\_ACEOF
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151 exit 0
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1158 It was created by $as_me, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1161 $ $0 $@
1163 _ACEOF
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187 _ASUNAME
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195 done
1197 } >&5
1199 cat >&5 <<_ACEOF
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1206 _ACEOF
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1221 for ac_arg
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1254 esac
1255 done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1268 echo
1270 cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289 esac;
1291 echo
1293 cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1349 # Predefined preprocessor variables.
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1392 done
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1405 else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1462 done
1463 if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502 ac_aux_dir=
1503 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 break
1508 elif test -f $ac_dir/install.sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 break
1512 elif test -f $ac_dir/shtool; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 break
1517 done
1518 if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1523 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527 # Make sure we can run config.sub.
1528 $ac_config_sub sun4 >/dev/null 2>&1 ||
1529 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1533 echo "$as_me:$LINENO: checking build system type" >&5
1534 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535 if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538 ac_cv_build_alias=$build_alias
1539 test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541 test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1551 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552 echo "${ECHO_T}$ac_cv_build" >&6
1553 build=$ac_cv_build
1554 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559 echo "$as_me:$LINENO: checking host system type" >&5
1560 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561 if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 ac_cv_host_alias=$host_alias
1565 test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1573 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574 echo "${ECHO_T}$ac_cv_host" >&6
1575 host=$ac_cv_host
1576 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581 echo "$as_me:$LINENO: checking target system type" >&5
1582 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583 if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 ac_cv_target_alias=$target_alias
1587 test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1595 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596 echo "${ECHO_T}$ac_cv_target" >&6
1597 target=$ac_cv_target
1598 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603 # The aliases save the names the user supplied, while $host etc.
1604 # will get canonicalized.
1605 test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
1609 ac_ext=c
1610 ac_cpp='$CPP $CPPFLAGS'
1611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1636 done
1637 done
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$ac_cv_prog_CC"; then
1652 ac_ct_CC=$CC
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654 set dummy gcc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1674 done
1675 done
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 CC=$ac_ct_CC
1689 else
1690 CC="$ac_cv_prog_CC"
1693 if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}cc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1716 done
1717 done
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$ac_cv_prog_CC"; then
1732 ac_ct_CC=$CC
1733 # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 CC=$ac_ct_CC
1769 else
1770 CC="$ac_cv_prog_CC"
1774 if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1784 else
1785 ac_prog_rejected=no
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1795 continue
1797 ac_cv_prog_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1801 done
1802 done
1804 if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1807 shift
1808 if test $# != 0; then
1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1812 shift
1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1818 CC=$ac_cv_prog_CC
1819 if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1828 if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1830 for ac_prog in cl
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1853 done
1854 done
1858 CC=$ac_cv_prog_CC
1859 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1867 test -n "$CC" && break
1868 done
1870 if test -z "$CC"; then
1871 ac_ct_CC=$CC
1872 for ac_prog in cl
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1895 done
1896 done
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909 test -n "$ac_ct_CC" && break
1910 done
1912 CC=$ac_ct_CC
1918 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: no acceptable C compiler found in \$PATH
1923 See \`config.log' for more details." >&2;}
1924 { (exit 1); exit 1; }; }; }
1926 # Provide some information about the compiler.
1927 echo "$as_me:$LINENO:" \
1928 "checking for C compiler version" >&5
1929 ac_compiler=`set X $ac_compile; echo $2`
1930 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931 (eval $ac_compiler --version </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936 (eval $ac_compiler -v </dev/null >&5) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941 (eval $ac_compiler -V </dev/null >&5) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1946 cat >conftest.$ac_ext <<_ACEOF
1947 /* confdefs.h. */
1948 _ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1954 main ()
1958 return 0;
1960 _ACEOF
1961 ac_clean_files_save=$ac_clean_files
1962 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963 # Try to create an executable without -o first, disregard a.out.
1964 # It will help us diagnose broken compilers, and finding out an intuition
1965 # of exeext.
1966 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970 (eval $ac_link_default) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # Find the output, starting from the most likely. This scheme is
1975 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976 # resort.
1978 # Be careful to initialize this variable, since it used to be cached.
1979 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980 ac_cv_exeext=
1981 # b.out is created by i960 compilers.
1982 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1984 test -f "$ac_file" || continue
1985 case $ac_file in
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1988 conftest.$ac_ext )
1989 # This is the source file.
1991 [ab].out )
1992 # We found the default executable, but exeext='' is most
1993 # certainly right.
1994 break;;
1995 *.* )
1996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997 # FIXME: I believe we export ac_cv_exeext for Libtool,
1998 # but it would be cool to find out if it's true. Does anybody
1999 # maintain Libtool? --akim.
2000 export ac_cv_exeext
2001 break;;
2003 break;;
2004 esac
2005 done
2006 else
2007 echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2012 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: C compiler cannot create executables
2015 See \`config.log' for more details." >&2;}
2016 { (exit 77); exit 77; }; }; }
2019 ac_exeext=$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_file" >&5
2021 echo "${ECHO_T}$ac_file" >&6
2023 # Check the compiler produces executables we can run. If not, either
2024 # the compiler is broken, or we cross compile.
2025 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028 # If not cross compiling, check that we can run a simple program.
2029 if test "$cross_compiling" != yes; then
2030 if { ac_try='./$ac_file'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2036 cross_compiling=no
2037 else
2038 if test "$cross_compiling" = maybe; then
2039 cross_compiling=yes
2040 else
2041 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2044 If you meant to cross compile, use \`--host'.
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'.
2048 See \`config.log' for more details." >&2;}
2049 { (exit 1); exit 1; }; }; }
2053 echo "$as_me:$LINENO: result: yes" >&5
2054 echo "${ECHO_T}yes" >&6
2056 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2057 ac_clean_files=$ac_clean_files_save
2058 # Check the compiler produces executables we can run. If not, either
2059 # the compiler is broken, or we cross compile.
2060 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063 echo "${ECHO_T}$cross_compiling" >&6
2065 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2073 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2074 # work properly (i.e., refer to `conftest.exe'), while it won't with
2075 # `rm'.
2076 for ac_file in conftest.exe conftest conftest.*; do
2077 test -f "$ac_file" || continue
2078 case $ac_file in
2079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081 export ac_cv_exeext
2082 break;;
2083 * ) break;;
2084 esac
2085 done
2086 else
2087 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }; }
2096 rm -f conftest$ac_cv_exeext
2097 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098 echo "${ECHO_T}$ac_cv_exeext" >&6
2100 rm -f conftest.$ac_ext
2101 EXEEXT=$ac_cv_exeext
2102 ac_exeext=$EXEEXT
2103 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105 if test "${ac_cv_objext+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h. */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2116 main ()
2120 return 0;
2122 _ACEOF
2123 rm -f conftest.o conftest.obj
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133 break;;
2134 esac
2135 done
2136 else
2137 echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2140 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2141 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }; }
2149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2151 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152 echo "${ECHO_T}$ac_cv_objext" >&6
2153 OBJEXT=$ac_cv_objext
2154 ac_objext=$OBJEXT
2155 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h. */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2168 main ()
2170 #ifndef __GNUC__
2171 choke me
2172 #endif
2175 return 0;
2177 _ACEOF
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>conftest.er1
2181 ac_status=$?
2182 grep -v '^ *+' conftest.er1 >conftest.err
2183 rm -f conftest.er1
2184 cat conftest.err >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 ac_compiler_gnu=yes
2201 else
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2205 ac_compiler_gnu=no
2207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2211 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213 GCC=`test $ac_compiler_gnu = yes && echo yes`
2214 ac_test_CFLAGS=${CFLAGS+set}
2215 ac_save_CFLAGS=$CFLAGS
2216 CFLAGS="-g"
2217 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_g+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2230 main ()
2234 return 0;
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_cv_prog_cc_g=yes
2260 else
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2264 ac_cv_prog_cc_g=no
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272 elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2274 CFLAGS="-g -O2"
2275 else
2276 CFLAGS="-g"
2278 else
2279 if test "$GCC" = yes; then
2280 CFLAGS="-O2"
2281 else
2282 CFLAGS=
2285 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 ac_cv_prog_cc_stdc=no
2291 ac_save_CC=$CC
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2298 #include <stdarg.h>
2299 #include <stdio.h>
2300 #include <sys/types.h>
2301 #include <sys/stat.h>
2302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2303 struct buf { int x; };
2304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305 static char *e (p, i)
2306 char **p;
2307 int i;
2309 return p[i];
2311 static char *f (char * (*g) (char **, int), char **p, ...)
2313 char *s;
2314 va_list v;
2315 va_start (v,p);
2316 s = g (p, va_arg (v,int));
2317 va_end (v);
2318 return s;
2321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2322 function prototypes and stuff, but not '\xHH' hex character constants.
2323 These don't provoke an error unfortunately, instead are silently treated
2324 as 'x'. The following induces an error, until -std1 is added to get
2325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2326 array size at least. It's necessary to write '\x00'==0 to get something
2327 that's true only with -std1. */
2328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2330 int test (int i, double x);
2331 struct s1 {int (*f) (int a);};
2332 struct s2 {int (*f) (double a);};
2333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334 int argc;
2335 char **argv;
2337 main ()
2339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2341 return 0;
2343 _ACEOF
2344 # Don't try gcc -ansi; that turns off useful extensions and
2345 # breaks some systems' header files.
2346 # AIX -qlanglvl=ansi
2347 # Ultrix and OSF/1 -std1
2348 # HP-UX 10.20 and later -Ae
2349 # HP-UX older versions -Aa -D_HPUX_SOURCE
2350 # SVR4 -Xc -D__EXTENSIONS__
2351 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_stdc=$ac_arg
2377 break
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2383 rm -f conftest.err conftest.$ac_objext
2384 done
2385 rm -f conftest.$ac_ext conftest.$ac_objext
2386 CC=$ac_save_CC
2390 case "x$ac_cv_prog_cc_stdc" in
2391 x|xno)
2392 echo "$as_me:$LINENO: result: none needed" >&5
2393 echo "${ECHO_T}none needed" >&6 ;;
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397 CC="$CC $ac_cv_prog_cc_stdc" ;;
2398 esac
2400 # Some people use a C++ compiler to compile C. Since we use `exit',
2401 # in C++ we need to declare it. In case someone uses the same compiler
2402 # for both compiling C and C++ we need to have the C++ compiler decide
2403 # the declaration of exit, since it's the most demanding environment.
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #ifndef __cplusplus
2406 choke me
2407 #endif
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 for ac_declaration in \
2432 '' \
2433 'extern "C" void std::exit (int) throw (); using std::exit;' \
2434 'extern "C" void std::exit (int); using std::exit;' \
2435 'extern "C" void exit (int) throw ();' \
2436 'extern "C" void exit (int);' \
2437 'void exit (int);'
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 $ac_declaration
2446 #include <stdlib.h>
2448 main ()
2450 exit (42);
2452 return 0;
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2478 else
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2482 continue
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h. */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2491 $ac_declaration
2493 main ()
2495 exit (42);
2497 return 0;
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 break
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 done
2530 rm -f conftest*
2531 if test -n "$ac_declaration"; then
2532 echo '#ifdef __cplusplus' >>confdefs.h
2533 echo $ac_declaration >>confdefs.h
2534 echo '#endif' >>confdefs.h
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_ext=c
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2551 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2552 if test "${ac_cv_search_strerror+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555 ac_func_search_save_LIBS=$LIBS
2556 ac_cv_search_strerror=no
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2564 /* Override any gcc2 internal prototype to avoid an error. */
2565 #ifdef __cplusplus
2566 extern "C"
2567 #endif
2568 /* We use char because int might match the return type of a gcc2
2569 builtin and then its argument prototype would still apply. */
2570 char strerror ();
2572 main ()
2574 strerror ();
2576 return 0;
2578 _ACEOF
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581 (eval $ac_link) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest$ac_exeext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_cv_search_strerror="none required"
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
2609 if test "$ac_cv_search_strerror" = no; then
2610 for ac_lib in cposix; do
2611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2612 cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h. */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2619 /* Override any gcc2 internal prototype to avoid an error. */
2620 #ifdef __cplusplus
2621 extern "C"
2622 #endif
2623 /* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2625 char strerror ();
2627 main ()
2629 strerror ();
2631 return 0;
2633 _ACEOF
2634 rm -f conftest.$ac_objext conftest$ac_exeext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636 (eval $ac_link) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest$ac_exeext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_search_strerror="-l$ac_lib"
2657 break
2658 else
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2665 done
2667 LIBS=$ac_func_search_save_LIBS
2669 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2670 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2671 if test "$ac_cv_search_strerror" != no; then
2672 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2677 am__api_version="1.9"
2678 # Find a good install program. We prefer a C program (faster),
2679 # so one script is as good as another. But avoid the broken or
2680 # incompatible versions:
2681 # SysV /etc/install, /usr/sbin/install
2682 # SunOS /usr/etc/install
2683 # IRIX /sbin/install
2684 # AIX /bin/install
2685 # AmigaOS /C/install, which installs bootblocks on floppy discs
2686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2689 # OS/2's system install, which has a completely different semantic
2690 # ./install, which can be erroneously created by make from ./install.sh.
2691 # Reject install programs that cannot install multiple files.
2692 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2693 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2694 if test -z "$INSTALL"; then
2695 if test "${ac_cv_path_install+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 # Account for people who put trailing slashes in PATH elements.
2704 case $as_dir/ in
2705 ./ | .// | /cC/* | \
2706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2708 /usr/ucb/* ) ;;
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2712 # by default.
2713 for ac_prog in ginstall scoinst install; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2716 if test $ac_prog = install &&
2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # AIX install. It has an incompatible calling convention.
2720 elif test $ac_prog = install &&
2721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # program-specific install script used by HP pwplus--don't use.
2724 else
2725 rm -rf conftest.one conftest.two conftest.dir
2726 echo one > conftest.one
2727 echo two > conftest.two
2728 mkdir conftest.dir
2729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730 test -s conftest.one && test -s conftest.two &&
2731 test -s conftest.dir/conftest.one &&
2732 test -s conftest.dir/conftest.two
2733 then
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735 break 3
2739 done
2740 done
2742 esac
2743 done
2745 rm -rf conftest.one conftest.two conftest.dir
2748 if test "${ac_cv_path_install+set}" = set; then
2749 INSTALL=$ac_cv_path_install
2750 else
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2758 echo "$as_me:$LINENO: result: $INSTALL" >&5
2759 echo "${ECHO_T}$INSTALL" >&6
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2771 # Just in case
2772 sleep 1
2773 echo timestamp > conftest.file
2774 # Do `set' in a subshell so we don't clobber the current shell's
2775 # arguments. Must try -L first in case configure is actually a
2776 # symlink; some systems play weird games with the mod time of symlinks
2777 # (eg FreeBSD returns the mod time of the symlink's containing
2778 # directory).
2779 if (
2780 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2781 if test "$*" = "X"; then
2782 # -L didn't work.
2783 set X `ls -t $srcdir/configure conftest.file`
2785 rm -f conftest.file
2786 if test "$*" != "X $srcdir/configure conftest.file" \
2787 && test "$*" != "X conftest.file $srcdir/configure"; then
2789 # If neither matched, then we have a broken ls. This can happen
2790 # if, for instance, CONFIG_SHELL is bash and it inherits a
2791 # broken ls alias from the environment. This has actually
2792 # happened. Such a system could not be considered "sane".
2793 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2794 alias in your environment" >&5
2795 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2796 alias in your environment" >&2;}
2797 { (exit 1); exit 1; }; }
2800 test "$2" = conftest.file
2802 then
2803 # Ok.
2805 else
2806 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2807 Check your system clock" >&5
2808 echo "$as_me: error: newly created file is older than distributed files!
2809 Check your system clock" >&2;}
2810 { (exit 1); exit 1; }; }
2812 echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6
2814 test "$program_prefix" != NONE &&
2815 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2816 # Use a double $ so make ignores it.
2817 test "$program_suffix" != NONE &&
2818 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2819 # Double any \ or $. echo might interpret backslashes.
2820 # By default was `s,x,x', remove it if useless.
2821 cat <<\_ACEOF >conftest.sed
2822 s/[\\$]/&&/g;s/;s,x,x,$//
2823 _ACEOF
2824 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2825 rm conftest.sed
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2830 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2831 # Use eval to expand $SHELL
2832 if eval "$MISSING --run true"; then
2833 am_missing_run="$MISSING --run "
2834 else
2835 am_missing_run=
2836 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2837 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2840 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2841 # We used to keeping the `.' as first argument, in order to
2842 # allow $(mkdir_p) to be used without argument. As in
2843 # $(mkdir_p) $(somedir)
2844 # where $(somedir) is conditionally defined. However this is wrong
2845 # for two reasons:
2846 # 1. if the package is installed by a user who cannot write `.'
2847 # make install will fail,
2848 # 2. the above comment should most certainly read
2849 # $(mkdir_p) $(DESTDIR)$(somedir)
2850 # so it does not work when $(somedir) is undefined and
2851 # $(DESTDIR) is not.
2852 # To support the latter case, we have to write
2853 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2854 # so the `.' trick is pointless.
2855 mkdir_p='mkdir -p --'
2856 else
2857 # On NextStep and OpenStep, the `mkdir' command does not
2858 # recognize any option. It will interpret all options as
2859 # directories to create, and then abort because `.' already
2860 # exists.
2861 for d in ./-p ./--version;
2863 test -d $d && rmdir $d
2864 done
2865 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2866 if test -f "$ac_aux_dir/mkinstalldirs"; then
2867 mkdir_p='$(mkinstalldirs)'
2868 else
2869 mkdir_p='$(install_sh) -d'
2873 for ac_prog in gawk mawk nawk awk
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_AWK+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882 if test -n "$AWK"; then
2883 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_AWK="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2901 AWK=$ac_cv_prog_AWK
2902 if test -n "$AWK"; then
2903 echo "$as_me:$LINENO: result: $AWK" >&5
2904 echo "${ECHO_T}$AWK" >&6
2905 else
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2910 test -n "$AWK" && break
2911 done
2913 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2915 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2916 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 cat >conftest.make <<\_ACEOF
2920 all:
2921 @echo 'ac_maketemp="$(MAKE)"'
2922 _ACEOF
2923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2924 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2925 if test -n "$ac_maketemp"; then
2926 eval ac_cv_prog_make_${ac_make}_set=yes
2927 else
2928 eval ac_cv_prog_make_${ac_make}_set=no
2930 rm -f conftest.make
2932 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6
2935 SET_MAKE=
2936 else
2937 echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2939 SET_MAKE="MAKE=${MAKE-make}"
2942 rm -rf .tst 2>/dev/null
2943 mkdir .tst 2>/dev/null
2944 if test -d .tst; then
2945 am__leading_dot=.
2946 else
2947 am__leading_dot=_
2949 rmdir .tst 2>/dev/null
2951 DEPDIR="${am__leading_dot}deps"
2953 ac_config_commands="$ac_config_commands depfiles"
2956 am_make=${MAKE-make}
2957 cat > confinc << 'END'
2958 am__doit:
2959 @echo done
2960 .PHONY: am__doit
2962 # If we don't find an include directive, just comment out the code.
2963 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2965 am__include="#"
2966 am__quote=
2967 _am_result=none
2968 # First try GNU make style include.
2969 echo "include confinc" > confmf
2970 # We grep out `Entering directory' and `Leaving directory'
2971 # messages which can occur if `w' ends up in MAKEFLAGS.
2972 # In particular we don't look at `^make:' because GNU make might
2973 # be invoked under some other name (usually "gmake"), in which
2974 # case it prints its new name instead of `make'.
2975 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2976 am__include=include
2977 am__quote=
2978 _am_result=GNU
2980 # Now try BSD make style include.
2981 if test "$am__include" = "#"; then
2982 echo '.include "confinc"' > confmf
2983 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2984 am__include=.include
2985 am__quote="\""
2986 _am_result=BSD
2991 echo "$as_me:$LINENO: result: $_am_result" >&5
2992 echo "${ECHO_T}$_am_result" >&6
2993 rm -f confinc confmf
2995 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996 if test "${enable_dependency_tracking+set}" = set; then
2997 enableval="$enable_dependency_tracking"
3000 if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3002 AMDEPBACKSLASH='\'
3006 if test "x$enable_dependency_tracking" != xno; then
3007 AMDEP_TRUE=
3008 AMDEP_FALSE='#'
3009 else
3010 AMDEP_TRUE='#'
3011 AMDEP_FALSE=
3016 # test to see if srcdir already configured
3017 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3018 test -f $srcdir/config.status; then
3019 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3020 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3021 { (exit 1); exit 1; }; }
3024 # test whether we have cygpath
3025 if test -z "$CYGPATH_W"; then
3026 if (cygpath --version) >/dev/null 2>/dev/null; then
3027 CYGPATH_W='cygpath -w'
3028 else
3029 CYGPATH_W=echo
3034 # Define the identity of the package.
3035 PACKAGE=bfd
3036 VERSION=2.19.50
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE "$PACKAGE"
3041 _ACEOF
3044 cat >>confdefs.h <<_ACEOF
3045 #define VERSION "$VERSION"
3046 _ACEOF
3048 # Some tools Automake needs.
3050 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3053 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3056 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3059 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3062 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3064 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3066 # Installed binaries are usually stripped using `strip' when the user
3067 # run `make install-strip'. However `strip' might not be the right
3068 # tool to use in cross-compilation environments, therefore Automake
3069 # will honor the `STRIP' environment variable to overrule this program.
3070 if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}strip; ac_word=$2
3074 echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_prog_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3093 done
3094 done
3098 STRIP=$ac_cv_prog_STRIP
3099 if test -n "$STRIP"; then
3100 echo "$as_me:$LINENO: result: $STRIP" >&5
3101 echo "${ECHO_T}$STRIP" >&6
3102 else
3103 echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3108 if test -z "$ac_cv_prog_STRIP"; then
3109 ac_ct_STRIP=$STRIP
3110 # Extract the first word of "strip", so it can be a program name with args.
3111 set dummy strip; ac_word=$2
3112 echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 if test -n "$ac_ct_STRIP"; then
3118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_STRIP="strip"
3128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3131 done
3132 done
3134 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3137 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3138 if test -n "$ac_ct_STRIP"; then
3139 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3140 echo "${ECHO_T}$ac_ct_STRIP" >&6
3141 else
3142 echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3146 STRIP=$ac_ct_STRIP
3147 else
3148 STRIP="$ac_cv_prog_STRIP"
3152 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3154 # We need awk for the "check" target. The system "awk" is bad on
3155 # some platforms.
3156 # Always define AMTAR for backward compatibility.
3158 AMTAR=${AMTAR-"${am_missing_run}tar"}
3160 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3165 depcc="$CC" am_compiler_list=
3167 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3168 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3169 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3173 # We make a subdir and do the tests there. Otherwise we can end up
3174 # making bogus files that we don't know about and never remove. For
3175 # instance it was reported that on HP-UX the gcc test will end up
3176 # making a dummy file named `D' -- because `-MD' means `put the output
3177 # in D'.
3178 mkdir conftest.dir
3179 # Copy depcomp to subdir because otherwise we won't find it if we're
3180 # using a relative directory.
3181 cp "$am_depcomp" conftest.dir
3182 cd conftest.dir
3183 # We will build objects and dependencies in a subdirectory because
3184 # it helps to detect inapplicable dependency modes. For instance
3185 # both Tru64's cc and ICC support -MD to output dependencies as a
3186 # side effect of compilation, but ICC will put the dependencies in
3187 # the current directory while Tru64 will put them in the object
3188 # directory.
3189 mkdir sub
3191 am_cv_CC_dependencies_compiler_type=none
3192 if test "$am_compiler_list" = ""; then
3193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3195 for depmode in $am_compiler_list; do
3196 # Setup a source with many dependencies, because some compilers
3197 # like to wrap large dependency lists on column 80 (with \), and
3198 # we should not choose a depcomp mode which is confused by this.
3200 # We need to recreate these files for each test, as the compiler may
3201 # overwrite some of them when testing with obscure command lines.
3202 # This happens at least with the AIX C compiler.
3203 : > sub/conftest.c
3204 for i in 1 2 3 4 5 6; do
3205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3207 # Solaris 8's {/usr,}/bin/sh.
3208 touch sub/conftst$i.h
3209 done
3210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3212 case $depmode in
3213 nosideeffect)
3214 # after this tag, mechanisms are not by side-effect, so they'll
3215 # only be used when explicitly requested
3216 if test "x$enable_dependency_tracking" = xyes; then
3217 continue
3218 else
3219 break
3222 none) break ;;
3223 esac
3224 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3225 # mode. It turns out that the SunPro C++ compiler does not properly
3226 # handle `-M -o', and we need to detect this.
3227 if depmode=$depmode \
3228 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3230 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3231 >/dev/null 2>conftest.err &&
3232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3233 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3235 # icc doesn't choke on unknown options, it will just issue warnings
3236 # or remarks (even with -Werror). So we grep stderr for any message
3237 # that says an option was ignored or not supported.
3238 # When given -MP, icc 7.0 and 7.1 complain thusly:
3239 # icc: Command line warning: ignoring option '-M'; no argument required
3240 # The diagnosis changed in icc 8.0:
3241 # icc: Command line remark: option '-MP' not supported
3242 if (grep 'ignoring option' conftest.err ||
3243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3244 am_cv_CC_dependencies_compiler_type=$depmode
3245 break
3248 done
3250 cd ..
3251 rm -rf conftest.dir
3252 else
3253 am_cv_CC_dependencies_compiler_type=none
3257 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3264 test "x$enable_dependency_tracking" != xno \
3265 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3266 am__fastdepCC_TRUE=
3267 am__fastdepCC_FALSE='#'
3268 else
3269 am__fastdepCC_TRUE='#'
3270 am__fastdepCC_FALSE=
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}ar; ac_word=$2
3279 echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281 if test "${ac_cv_prog_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 if test -n "$AR"; then
3285 ac_cv_prog_AR="$AR" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_AR="${ac_tool_prefix}ar"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3298 done
3299 done
3303 AR=$ac_cv_prog_AR
3304 if test -n "$AR"; then
3305 echo "$as_me:$LINENO: result: $AR" >&5
3306 echo "${ECHO_T}$AR" >&6
3307 else
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3313 if test -z "$ac_cv_prog_AR"; then
3314 ac_ct_AR=$AR
3315 # Extract the first word of "ar", so it can be a program name with args.
3316 set dummy ar; ac_word=$2
3317 echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 if test -n "$ac_ct_AR"; then
3323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_AR="ar"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3336 done
3337 done
3341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3342 if test -n "$ac_ct_AR"; then
3343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3344 echo "${ECHO_T}$ac_ct_AR" >&6
3345 else
3346 echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3350 AR=$ac_ct_AR
3351 else
3352 AR="$ac_cv_prog_AR"
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3377 done
3378 done
3382 RANLIB=$ac_cv_prog_RANLIB
3383 if test -n "$RANLIB"; then
3384 echo "$as_me:$LINENO: result: $RANLIB" >&5
3385 echo "${ECHO_T}$RANLIB" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3392 if test -z "$ac_cv_prog_RANLIB"; then
3393 ac_ct_RANLIB=$RANLIB
3394 # Extract the first word of "ranlib", so it can be a program name with args.
3395 set dummy ranlib; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 if test -n "$ac_ct_RANLIB"; then
3402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_RANLIB="ranlib"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3415 done
3416 done
3418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3422 if test -n "$ac_ct_RANLIB"; then
3423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3424 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3430 RANLIB=$ac_ct_RANLIB
3431 else
3432 RANLIB="$ac_cv_prog_RANLIB"
3436 # Check whether --enable-shared or --disable-shared was given.
3437 if test "${enable_shared+set}" = set; then
3438 enableval="$enable_shared"
3439 p=${PACKAGE-default}
3440 case $enableval in
3441 yes) enable_shared=yes ;;
3442 no) enable_shared=no ;;
3444 enable_shared=no
3445 # Look at the argument we got. We use all the common list separators.
3446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3447 for pkg in $enableval; do
3448 IFS="$lt_save_ifs"
3449 if test "X$pkg" = "X$p"; then
3450 enable_shared=yes
3452 done
3453 IFS="$lt_save_ifs"
3455 esac
3456 else
3457 enable_shared=no
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3476 echo "$as_me:$LINENO: checking for $ac_word" >&5
3477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478 if test "${ac_cv_prog_CC+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3495 done
3496 done
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502 echo "$as_me:$LINENO: result: $CC" >&5
3503 echo "${ECHO_T}$CC" >&6
3504 else
3505 echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3510 if test -z "$ac_cv_prog_CC"; then
3511 ac_ct_CC=$CC
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513 set dummy gcc; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_CC="gcc"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541 echo "${ECHO_T}$ac_ct_CC" >&6
3542 else
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3547 CC=$ac_ct_CC
3548 else
3549 CC="$ac_cv_prog_CC"
3552 if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}cc; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_prog_CC+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}cc"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3580 CC=$ac_cv_prog_CC
3581 if test -n "$CC"; then
3582 echo "$as_me:$LINENO: result: $CC" >&5
3583 echo "${ECHO_T}$CC" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3590 if test -z "$ac_cv_prog_CC"; then
3591 ac_ct_CC=$CC
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 echo "$as_me:$LINENO: checking for $ac_word" >&5
3595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC="cc"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3613 done
3614 done
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3621 echo "${ECHO_T}$ac_ct_CC" >&6
3622 else
3623 echo "$as_me:$LINENO: result: no" >&5
3624 echo "${ECHO_T}no" >&6
3627 CC=$ac_ct_CC
3628 else
3629 CC="$ac_cv_prog_CC"
3633 if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635 set dummy cc; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644 ac_prog_rejected=no
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3654 continue
3656 ac_cv_prog_CC="cc"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3660 done
3661 done
3663 if test $ac_prog_rejected = yes; then
3664 # We found a bogon in the path, so make sure we never use it.
3665 set dummy $ac_cv_prog_CC
3666 shift
3667 if test $# != 0; then
3668 # We chose a different compiler from the bogus one.
3669 # However, it has the same basename, so the bogon will be chosen
3670 # first if we set CC to just the basename; use the full file name.
3671 shift
3672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 echo "$as_me:$LINENO: result: $CC" >&5
3680 echo "${ECHO_T}$CC" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3687 if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog in cl
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693 echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_prog_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3712 done
3713 done
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 echo "$as_me:$LINENO: result: $CC" >&5
3720 echo "${ECHO_T}$CC" >&6
3721 else
3722 echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3726 test -n "$CC" && break
3727 done
3729 if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3754 done
3755 done
3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762 echo "${ECHO_T}$ac_ct_CC" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 test -n "$ac_ct_CC" && break
3769 done
3771 CC=$ac_ct_CC
3777 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3780 See \`config.log' for more details." >&5
3781 echo "$as_me: error: no acceptable C compiler found in \$PATH
3782 See \`config.log' for more details." >&2;}
3783 { (exit 1); exit 1; }; }; }
3785 # Provide some information about the compiler.
3786 echo "$as_me:$LINENO:" \
3787 "checking for C compiler version" >&5
3788 ac_compiler=`set X $ac_compile; echo $2`
3789 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3790 (eval $ac_compiler --version </dev/null >&5) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }
3794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3795 (eval $ac_compiler -v </dev/null >&5) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }
3799 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3800 (eval $ac_compiler -V </dev/null >&5) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }
3805 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3806 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3807 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3818 main ()
3820 #ifndef __GNUC__
3821 choke me
3822 #endif
3825 return 0;
3827 _ACEOF
3828 rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_compiler_gnu=yes
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 ac_compiler_gnu=no
3857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3861 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3862 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3863 GCC=`test $ac_compiler_gnu = yes && echo yes`
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 CFLAGS="-g"
3867 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3868 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3869 if test "${ac_cv_prog_cc_g+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872 cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h. */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3880 main ()
3884 return 0;
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_prog_cc_g=yes
3910 else
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 ac_cv_prog_cc_g=no
3916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3918 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3919 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3920 if test "$ac_test_CFLAGS" = set; then
3921 CFLAGS=$ac_save_CFLAGS
3922 elif test $ac_cv_prog_cc_g = yes; then
3923 if test "$GCC" = yes; then
3924 CFLAGS="-g -O2"
3925 else
3926 CFLAGS="-g"
3928 else
3929 if test "$GCC" = yes; then
3930 CFLAGS="-O2"
3931 else
3932 CFLAGS=
3935 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3936 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3937 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 ac_cv_prog_cc_stdc=no
3941 ac_save_CC=$CC
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 #include <stdarg.h>
3949 #include <stdio.h>
3950 #include <sys/types.h>
3951 #include <sys/stat.h>
3952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3953 struct buf { int x; };
3954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3955 static char *e (p, i)
3956 char **p;
3957 int i;
3959 return p[i];
3961 static char *f (char * (*g) (char **, int), char **p, ...)
3963 char *s;
3964 va_list v;
3965 va_start (v,p);
3966 s = g (p, va_arg (v,int));
3967 va_end (v);
3968 return s;
3971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3972 function prototypes and stuff, but not '\xHH' hex character constants.
3973 These don't provoke an error unfortunately, instead are silently treated
3974 as 'x'. The following induces an error, until -std1 is added to get
3975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3976 array size at least. It's necessary to write '\x00'==0 to get something
3977 that's true only with -std1. */
3978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3980 int test (int i, double x);
3981 struct s1 {int (*f) (int a);};
3982 struct s2 {int (*f) (double a);};
3983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3984 int argc;
3985 char **argv;
3987 main ()
3989 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3991 return 0;
3993 _ACEOF
3994 # Don't try gcc -ansi; that turns off useful extensions and
3995 # breaks some systems' header files.
3996 # AIX -qlanglvl=ansi
3997 # Ultrix and OSF/1 -std1
3998 # HP-UX 10.20 and later -Ae
3999 # HP-UX older versions -Aa -D_HPUX_SOURCE
4000 # SVR4 -Xc -D__EXTENSIONS__
4001 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4003 CC="$ac_save_CC $ac_arg"
4004 rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 ac_cv_prog_cc_stdc=$ac_arg
4027 break
4028 else
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4033 rm -f conftest.err conftest.$ac_objext
4034 done
4035 rm -f conftest.$ac_ext conftest.$ac_objext
4036 CC=$ac_save_CC
4040 case "x$ac_cv_prog_cc_stdc" in
4041 x|xno)
4042 echo "$as_me:$LINENO: result: none needed" >&5
4043 echo "${ECHO_T}none needed" >&6 ;;
4045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4046 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4047 CC="$CC $ac_cv_prog_cc_stdc" ;;
4048 esac
4050 # Some people use a C++ compiler to compile C. Since we use `exit',
4051 # in C++ we need to declare it. In case someone uses the same compiler
4052 # for both compiling C and C++ we need to have the C++ compiler decide
4053 # the declaration of exit, since it's the most demanding environment.
4054 cat >conftest.$ac_ext <<_ACEOF
4055 #ifndef __cplusplus
4056 choke me
4057 #endif
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 for ac_declaration in \
4082 '' \
4083 'extern "C" void std::exit (int) throw (); using std::exit;' \
4084 'extern "C" void std::exit (int); using std::exit;' \
4085 'extern "C" void exit (int) throw ();' \
4086 'extern "C" void exit (int);' \
4087 'void exit (int);'
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 $ac_declaration
4096 #include <stdlib.h>
4098 main ()
4100 exit (42);
4102 return 0;
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4128 else
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4132 continue
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 $ac_declaration
4143 main ()
4145 exit (42);
4147 return 0;
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 break
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179 done
4180 rm -f conftest*
4181 if test -n "$ac_declaration"; then
4182 echo '#ifdef __cplusplus' >>confdefs.h
4183 echo $ac_declaration >>confdefs.h
4184 echo '#endif' >>confdefs.h
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 cat >>confdefs.h <<\_ACEOF
4201 #define _GNU_SOURCE 1
4202 _ACEOF
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4214 CPP=
4216 if test -z "$CPP"; then
4217 if test "${ac_cv_prog_CPP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4223 ac_preproc_ok=false
4224 for ac_c_preproc_warn_flag in '' yes
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 #ifdef __STDC__
4239 # include <limits.h>
4240 #else
4241 # include <assert.h>
4242 #endif
4243 Syntax error
4244 _ACEOF
4245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4247 ac_status=$?
4248 grep -v '^ *+' conftest.er1 >conftest.err
4249 rm -f conftest.er1
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } >/dev/null; then
4253 if test -s conftest.err; then
4254 ac_cpp_err=$ac_c_preproc_warn_flag
4255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4256 else
4257 ac_cpp_err=
4259 else
4260 ac_cpp_err=yes
4262 if test -z "$ac_cpp_err"; then
4264 else
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 # Broken: fails on valid input.
4269 continue
4271 rm -f conftest.err conftest.$ac_ext
4273 # OK, works on sane cases. Now check whether non-existent headers
4274 # can be detected and how.
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <ac_nonexistent.h>
4282 _ACEOF
4283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } >/dev/null; then
4291 if test -s conftest.err; then
4292 ac_cpp_err=$ac_c_preproc_warn_flag
4293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4294 else
4295 ac_cpp_err=
4297 else
4298 ac_cpp_err=yes
4300 if test -z "$ac_cpp_err"; then
4301 # Broken: success on invalid input.
4302 continue
4303 else
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4307 # Passes both tests.
4308 ac_preproc_ok=:
4309 break
4311 rm -f conftest.err conftest.$ac_ext
4313 done
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then
4317 break
4320 done
4321 ac_cv_prog_CPP=$CPP
4324 CPP=$ac_cv_prog_CPP
4325 else
4326 ac_cv_prog_CPP=$CPP
4328 echo "$as_me:$LINENO: result: $CPP" >&5
4329 echo "${ECHO_T}$CPP" >&6
4330 ac_preproc_ok=false
4331 for ac_c_preproc_warn_flag in '' yes
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 #ifdef __STDC__
4346 # include <limits.h>
4347 #else
4348 # include <assert.h>
4349 #endif
4350 Syntax error
4351 _ACEOF
4352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
4362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4363 else
4364 ac_cpp_err=
4366 else
4367 ac_cpp_err=yes
4369 if test -z "$ac_cpp_err"; then
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 # Broken: fails on valid input.
4376 continue
4378 rm -f conftest.err conftest.$ac_ext
4380 # OK, works on sane cases. Now check whether non-existent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 #include <ac_nonexistent.h>
4389 _ACEOF
4390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4401 else
4402 ac_cpp_err=
4404 else
4405 ac_cpp_err=yes
4407 if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4409 continue
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 # Passes both tests.
4415 ac_preproc_ok=:
4416 break
4418 rm -f conftest.err conftest.$ac_ext
4420 done
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then
4425 else
4426 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429 See \`config.log' for more details." >&5
4430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431 See \`config.log' for more details." >&2;}
4432 { (exit 1); exit 1; }; }; }
4435 ac_ext=c
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442 echo "$as_me:$LINENO: checking for egrep" >&5
4443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4444 if test "${ac_cv_prog_egrep+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4448 then ac_cv_prog_egrep='grep -E'
4449 else ac_cv_prog_egrep='egrep'
4452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4454 EGREP=$ac_cv_prog_egrep
4457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459 if test "${ac_cv_header_stdc+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h. */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <stdlib.h>
4469 #include <stdarg.h>
4470 #include <string.h>
4471 #include <float.h>
4474 main ()
4478 return 0;
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_header_stdc=yes
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_header_stdc=no
4510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4512 if test $ac_cv_header_stdc = yes; then
4513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #include <string.h>
4522 _ACEOF
4523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 $EGREP "memchr" >/dev/null 2>&1; then
4526 else
4527 ac_cv_header_stdc=no
4529 rm -f conftest*
4533 if test $ac_cv_header_stdc = yes; then
4534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <stdlib.h>
4543 _ACEOF
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "free" >/dev/null 2>&1; then
4547 else
4548 ac_cv_header_stdc=no
4550 rm -f conftest*
4554 if test $ac_cv_header_stdc = yes; then
4555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556 if test "$cross_compiling" = yes; then
4558 else
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 #include <ctype.h>
4566 #if ((' ' & 0x0FF) == 0x020)
4567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569 #else
4570 # define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575 #endif
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4579 main ()
4581 int i;
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4585 exit(2);
4586 exit (0);
4588 _ACEOF
4589 rm -f conftest$ac_exeext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4601 else
4602 echo "$as_me: program exited with status $ac_status" >&5
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4606 ( exit $ac_status )
4607 ac_cv_header_stdc=no
4609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615 if test $ac_cv_header_stdc = yes; then
4617 cat >>confdefs.h <<\_ACEOF
4618 #define STDC_HEADERS 1
4619 _ACEOF
4623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634 inttypes.h stdint.h unistd.h
4636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642 cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h. */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 $ac_includes_default
4650 #include <$ac_header>
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 eval "$as_ac_Header=yes"
4675 else
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 eval "$as_ac_Header=no"
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686 cat >>confdefs.h <<_ACEOF
4687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688 _ACEOF
4692 done
4696 if test "${ac_cv_header_minix_config_h+set}" = set; then
4697 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4699 if test "${ac_cv_header_minix_config_h+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4703 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4704 else
4705 # Is the header compilable?
4706 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4707 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 $ac_includes_default
4715 #include <minix/config.h>
4716 _ACEOF
4717 rm -f conftest.$ac_objext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_header_compiler=yes
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 ac_header_compiler=no
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4748 echo "${ECHO_T}$ac_header_compiler" >&6
4750 # Is the header present?
4751 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4752 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #include <minix/config.h>
4760 _ACEOF
4761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null; then
4769 if test -s conftest.err; then
4770 ac_cpp_err=$ac_c_preproc_warn_flag
4771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4772 else
4773 ac_cpp_err=
4775 else
4776 ac_cpp_err=yes
4778 if test -z "$ac_cpp_err"; then
4779 ac_header_preproc=yes
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 ac_header_preproc=no
4786 rm -f conftest.err conftest.$ac_ext
4787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788 echo "${ECHO_T}$ac_header_preproc" >&6
4790 # So? What about this header?
4791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4792 yes:no: )
4793 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4794 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4796 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4797 ac_header_preproc=yes
4799 no:yes:* )
4800 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4801 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4802 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4803 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4804 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4805 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4807 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4808 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4809 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4811 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4813 cat <<\_ASBOX
4814 ## ------------------------------------------ ##
4815 ## Report this to the AC_PACKAGE_NAME lists. ##
4816 ## ------------------------------------------ ##
4817 _ASBOX
4819 sed "s/^/$as_me: WARNING: /" >&2
4821 esac
4822 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4823 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4824 if test "${ac_cv_header_minix_config_h+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 ac_cv_header_minix_config_h=$ac_header_preproc
4829 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4830 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4833 if test $ac_cv_header_minix_config_h = yes; then
4834 MINIX=yes
4835 else
4836 MINIX=
4840 if test "$MINIX" = yes; then
4842 cat >>confdefs.h <<\_ACEOF
4843 #define _POSIX_SOURCE 1
4844 _ACEOF
4847 cat >>confdefs.h <<\_ACEOF
4848 #define _POSIX_1_SOURCE 2
4849 _ACEOF
4852 cat >>confdefs.h <<\_ACEOF
4853 #define _MINIX 1
4854 _ACEOF
4860 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4861 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4862 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h. */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4872 # define __EXTENSIONS__ 1
4873 $ac_includes_default
4875 main ()
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_safe_to_define___extensions__=yes
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 ac_cv_safe_to_define___extensions__=no
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4914 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4915 test $ac_cv_safe_to_define___extensions__ = yes &&
4916 cat >>confdefs.h <<\_ACEOF
4917 #define __EXTENSIONS__ 1
4918 _ACEOF
4920 cat >>confdefs.h <<\_ACEOF
4921 #define _ALL_SOURCE 1
4922 _ACEOF
4924 cat >>confdefs.h <<\_ACEOF
4925 #define _GNU_SOURCE 1
4926 _ACEOF
4928 cat >>confdefs.h <<\_ACEOF
4929 #define _POSIX_PTHREAD_SEMANTICS 1
4930 _ACEOF
4932 cat >>confdefs.h <<\_ACEOF
4933 #define _TANDEM_SOURCE 1
4934 _ACEOF
4938 case "${target}" in
4939 sparc-*-solaris*|i[3-7]86-*-solaris*)
4940 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4941 # are mutually exclusive; and without procfs support, the elf module
4942 # cannot provide certain routines such as elfcore_write_prpsinfo
4943 # or elfcore_write_prstatus. So unless the user explicitly requested
4944 # large-file support through the --enable-largefile switch, disable
4945 # large-file support in favor of procfs support.
4946 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
4947 enable_largefile="no"
4950 esac
4952 # Check whether --enable-largefile or --disable-largefile was given.
4953 if test "${enable_largefile+set}" = set; then
4954 enableval="$enable_largefile"
4957 if test "$enable_largefile" != no; then
4959 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4960 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4961 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 ac_cv_sys_largefile_CC=no
4965 if test "$GCC" != yes; then
4966 ac_save_CC=$CC
4967 while :; do
4968 # IRIX 6.2 and later do not support large files by default,
4969 # so use the C compiler's -n32 option if that helps.
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h. */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #include <sys/types.h>
4977 /* Check that off_t can represent 2**63 - 1 correctly.
4978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4979 since some C++ compilers masquerading as C compilers
4980 incorrectly reject 9223372036854775807. */
4981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4983 && LARGE_OFF_T % 2147483647 == 1)
4984 ? 1 : -1];
4986 main ()
4990 return 0;
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -z "$ac_c_werror_flag"
5003 || test ! -s conftest.err'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try='test -s conftest.$ac_objext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 break
5016 else
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5021 rm -f conftest.err conftest.$ac_objext
5022 CC="$CC -n32"
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_sys_largefile_CC=' -n32'; break
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5051 rm -f conftest.err conftest.$ac_objext
5052 break
5053 done
5054 CC=$ac_save_CC
5055 rm -f conftest.$ac_ext
5058 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5059 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5060 if test "$ac_cv_sys_largefile_CC" != no; then
5061 CC=$CC$ac_cv_sys_largefile_CC
5064 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5065 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5066 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 while :; do
5070 ac_cv_sys_file_offset_bits=no
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <sys/types.h>
5078 /* Check that off_t can represent 2**63 - 1 correctly.
5079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5080 since some C++ compilers masquerading as C compilers
5081 incorrectly reject 9223372036854775807. */
5082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5084 && LARGE_OFF_T % 2147483647 == 1)
5085 ? 1 : -1];
5087 main ()
5091 return 0;
5093 _ACEOF
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 break
5117 else
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 #define _FILE_OFFSET_BITS 64
5130 #include <sys/types.h>
5131 /* Check that off_t can represent 2**63 - 1 correctly.
5132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5133 since some C++ compilers masquerading as C compilers
5134 incorrectly reject 9223372036854775807. */
5135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5137 && LARGE_OFF_T % 2147483647 == 1)
5138 ? 1 : -1];
5140 main ()
5144 return 0;
5146 _ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149 (eval $ac_compile) 2>conftest.er1
5150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
5156 { ac_try='test -z "$ac_c_werror_flag"
5157 || test ! -s conftest.err'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_cv_sys_file_offset_bits=64; break
5170 else
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176 break
5177 done
5179 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5180 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5181 if test "$ac_cv_sys_file_offset_bits" != no; then
5183 cat >>confdefs.h <<_ACEOF
5184 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5185 _ACEOF
5188 rm -f conftest*
5189 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5190 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5191 if test "${ac_cv_sys_large_files+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 while :; do
5195 ac_cv_sys_large_files=no
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 #include <sys/types.h>
5203 /* Check that off_t can represent 2**63 - 1 correctly.
5204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5205 since some C++ compilers masquerading as C compilers
5206 incorrectly reject 9223372036854775807. */
5207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5209 && LARGE_OFF_T % 2147483647 == 1)
5210 ? 1 : -1];
5212 main ()
5216 return 0;
5218 _ACEOF
5219 rm -f conftest.$ac_objext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag"
5229 || test ! -s conftest.err'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 break
5242 else
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 #define _LARGE_FILES 1
5255 #include <sys/types.h>
5256 /* Check that off_t can represent 2**63 - 1 correctly.
5257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5258 since some C++ compilers masquerading as C compilers
5259 incorrectly reject 9223372036854775807. */
5260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5262 && LARGE_OFF_T % 2147483647 == 1)
5263 ? 1 : -1];
5265 main ()
5269 return 0;
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274 (eval $ac_compile) 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -z "$ac_c_werror_flag"
5282 || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_sys_large_files=1; break
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5301 break
5302 done
5304 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5305 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5306 if test "$ac_cv_sys_large_files" != no; then
5308 cat >>confdefs.h <<_ACEOF
5309 #define _LARGE_FILES $ac_cv_sys_large_files
5310 _ACEOF
5313 rm -f conftest*
5317 case `pwd` in
5318 *\ * | *\ *)
5319 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5320 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5321 esac
5325 macro_version='2.2.6'
5326 macro_revision='1.3012'
5340 ltmain="$ac_aux_dir/ltmain.sh"
5342 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5343 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5344 if test "${lt_cv_path_SED+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347 # Loop through the user's path and test for sed and gsed.
5348 # Then use that list of sed's as ones to test for truncation.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for lt_ac_prog in sed gsed; do
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5357 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5359 done
5360 done
5361 done
5362 IFS=$as_save_IFS
5363 lt_ac_max=0
5364 lt_ac_count=0
5365 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5366 # along with /bin/sed that truncates output.
5367 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5368 test ! -f $lt_ac_sed && continue
5369 cat /dev/null > conftest.in
5370 lt_ac_count=0
5371 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5372 # Check for GNU sed and select it if it is found.
5373 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5374 lt_cv_path_SED=$lt_ac_sed
5375 break
5377 while true; do
5378 cat conftest.in conftest.in >conftest.tmp
5379 mv conftest.tmp conftest.in
5380 cp conftest.in conftest.nl
5381 echo >>conftest.nl
5382 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5383 cmp -s conftest.out conftest.nl || break
5384 # 10000 chars as input seems more than enough
5385 test $lt_ac_count -gt 10 && break
5386 lt_ac_count=`expr $lt_ac_count + 1`
5387 if test $lt_ac_count -gt $lt_ac_max; then
5388 lt_ac_max=$lt_ac_count
5389 lt_cv_path_SED=$lt_ac_sed
5391 done
5392 done
5396 SED=$lt_cv_path_SED
5398 echo "$as_me:$LINENO: result: $SED" >&5
5399 echo "${ECHO_T}$SED" >&6
5401 test -z "$SED" && SED=sed
5402 Xsed="$SED -e 1s/^X//"
5414 echo "$as_me:$LINENO: checking for fgrep" >&5
5415 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5416 if test "${ac_cv_prog_fgrep+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5420 then ac_cv_prog_fgrep='grep -F'
5421 else ac_cv_prog_fgrep='fgrep'
5424 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5425 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5426 FGREP=$ac_cv_prog_fgrep
5429 test -z "$GREP" && GREP=grep
5449 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5450 if test "${with_gnu_ld+set}" = set; then
5451 withval="$with_gnu_ld"
5452 test "$withval" = no || with_gnu_ld=yes
5453 else
5454 with_gnu_ld=no
5456 ac_prog=ld
5457 if test "$GCC" = yes; then
5458 # Check if gcc -print-prog-name=ld gives a path.
5459 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5460 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5461 case $host in
5462 *-*-mingw*)
5463 # gcc leaves a trailing carriage return which upsets mingw
5464 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5466 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5467 esac
5468 case $ac_prog in
5469 # Accept absolute paths.
5470 [\\/]* | ?:[\\/]*)
5471 re_direlt='/[^/][^/]*/\.\./'
5472 # Canonicalize the pathname of ld
5473 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5474 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5475 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5476 done
5477 test -z "$LD" && LD="$ac_prog"
5480 # If it fails, then pretend we aren't using GCC.
5481 ac_prog=ld
5484 # If it is relative, then search for the first ld in PATH.
5485 with_gnu_ld=unknown
5487 esac
5488 elif test "$with_gnu_ld" = yes; then
5489 echo "$as_me:$LINENO: checking for GNU ld" >&5
5490 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5491 else
5492 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5493 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5495 if test "${lt_cv_path_LD+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498 if test -z "$LD"; then
5499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5500 for ac_dir in $PATH; do
5501 IFS="$lt_save_ifs"
5502 test -z "$ac_dir" && ac_dir=.
5503 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5504 lt_cv_path_LD="$ac_dir/$ac_prog"
5505 # Check to see if the program is GNU ld. I'd rather use --version,
5506 # but apparently some variants of GNU ld only accept -v.
5507 # Break only if it was the GNU/non-GNU ld that we prefer.
5508 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5509 *GNU* | *'with BFD'*)
5510 test "$with_gnu_ld" != no && break
5513 test "$with_gnu_ld" != yes && break
5515 esac
5517 done
5518 IFS="$lt_save_ifs"
5519 else
5520 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5524 LD="$lt_cv_path_LD"
5525 if test -n "$LD"; then
5526 echo "$as_me:$LINENO: result: $LD" >&5
5527 echo "${ECHO_T}$LD" >&6
5528 else
5529 echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6
5532 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5533 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5534 { (exit 1); exit 1; }; }
5535 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5536 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5537 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5541 case `$LD -v 2>&1 </dev/null` in
5542 *GNU* | *'with BFD'*)
5543 lt_cv_prog_gnu_ld=yes
5546 lt_cv_prog_gnu_ld=no
5548 esac
5550 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5551 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5552 with_gnu_ld=$lt_cv_prog_gnu_ld
5562 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5563 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5564 if test "${lt_cv_path_NM+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 if test -n "$NM"; then
5568 # Let the user override the test.
5569 lt_cv_path_NM="$NM"
5570 else
5571 lt_nm_to_check="${ac_tool_prefix}nm"
5572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5573 lt_nm_to_check="$lt_nm_to_check nm"
5575 for lt_tmp_nm in $lt_nm_to_check; do
5576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5578 IFS="$lt_save_ifs"
5579 test -z "$ac_dir" && ac_dir=.
5580 tmp_nm="$ac_dir/$lt_tmp_nm"
5581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5582 # Check to see if the nm accepts a BSD-compat flag.
5583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5584 # nm: unknown option "B" ignored
5585 # Tru64's nm complains that /dev/null is an invalid object file
5586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5587 */dev/null* | *'Invalid file or object type'*)
5588 lt_cv_path_NM="$tmp_nm -B"
5589 break
5592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5593 */dev/null*)
5594 lt_cv_path_NM="$tmp_nm -p"
5595 break
5598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5599 continue # so that we can try to find one that supports BSD flags
5601 esac
5603 esac
5605 done
5606 IFS="$lt_save_ifs"
5607 done
5608 : ${lt_cv_path_NM=no}
5611 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5612 echo "${ECHO_T}$lt_cv_path_NM" >&6
5613 if test "$lt_cv_path_NM" != "no"; then
5614 NM="$lt_cv_path_NM"
5615 else
5616 # Didn't find any BSD compatible name lister, look for dumpbin.
5617 if test -n "$ac_tool_prefix"; then
5618 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5622 echo "$as_me:$LINENO: checking for $ac_word" >&5
5623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5624 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627 if test -n "$DUMPBIN"; then
5628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5641 done
5642 done
5646 DUMPBIN=$ac_cv_prog_DUMPBIN
5647 if test -n "$DUMPBIN"; then
5648 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5649 echo "${ECHO_T}$DUMPBIN" >&6
5650 else
5651 echo "$as_me:$LINENO: result: no" >&5
5652 echo "${ECHO_T}no" >&6
5655 test -n "$DUMPBIN" && break
5656 done
5658 if test -z "$DUMPBIN"; then
5659 ac_ct_DUMPBIN=$DUMPBIN
5660 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5666 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669 if test -n "$ac_ct_DUMPBIN"; then
5670 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5683 done
5684 done
5688 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5689 if test -n "$ac_ct_DUMPBIN"; then
5690 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5691 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5692 else
5693 echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5697 test -n "$ac_ct_DUMPBIN" && break
5698 done
5699 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5701 DUMPBIN=$ac_ct_DUMPBIN
5705 if test "$DUMPBIN" != ":"; then
5706 NM="$DUMPBIN"
5709 test -z "$NM" && NM=nm
5716 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5717 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5718 if test "${lt_cv_nm_interface+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721 lt_cv_nm_interface="BSD nm"
5722 echo "int some_variable = 0;" > conftest.$ac_ext
5723 (eval echo "\"\$as_me:5723: $ac_compile\"" >&5)
5724 (eval "$ac_compile" 2>conftest.err)
5725 cat conftest.err >&5
5726 (eval echo "\"\$as_me:5726: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5727 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5728 cat conftest.err >&5
5729 (eval echo "\"\$as_me:5729: output\"" >&5)
5730 cat conftest.out >&5
5731 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5732 lt_cv_nm_interface="MS dumpbin"
5734 rm -f conftest*
5736 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5737 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5739 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5740 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5741 LN_S=$as_ln_s
5742 if test "$LN_S" = "ln -s"; then
5743 echo "$as_me:$LINENO: result: yes" >&5
5744 echo "${ECHO_T}yes" >&6
5745 else
5746 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5747 echo "${ECHO_T}no, using $LN_S" >&6
5750 # find the maximum length of command line arguments
5751 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5752 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5753 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5757 teststring="ABCD"
5759 case $build_os in
5760 msdosdjgpp*)
5761 # On DJGPP, this test can blow up pretty badly due to problems in libc
5762 # (any single argument exceeding 2000 bytes causes a buffer overrun
5763 # during glob expansion). Even if it were fixed, the result of this
5764 # check would be larger than it should be.
5765 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5768 gnu*)
5769 # Under GNU Hurd, this test is not required because there is
5770 # no limit to the length of command line arguments.
5771 # Libtool will interpret -1 as no limit whatsoever
5772 lt_cv_sys_max_cmd_len=-1;
5775 cygwin* | mingw* | cegcc*)
5776 # On Win9x/ME, this test blows up -- it succeeds, but takes
5777 # about 5 minutes as the teststring grows exponentially.
5778 # Worse, since 9x/ME are not pre-emptively multitasking,
5779 # you end up with a "frozen" computer, even though with patience
5780 # the test eventually succeeds (with a max line length of 256k).
5781 # Instead, let's just punt: use the minimum linelength reported by
5782 # all of the supported platforms: 8192 (on NT/2K/XP).
5783 lt_cv_sys_max_cmd_len=8192;
5786 amigaos*)
5787 # On AmigaOS with pdksh, this test takes hours, literally.
5788 # So we just punt and use a minimum line length of 8192.
5789 lt_cv_sys_max_cmd_len=8192;
5792 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5793 # This has been around since 386BSD, at least. Likely further.
5794 if test -x /sbin/sysctl; then
5795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5796 elif test -x /usr/sbin/sysctl; then
5797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5798 else
5799 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5801 # And add a safety zone
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5806 interix*)
5807 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5808 lt_cv_sys_max_cmd_len=196608
5811 osf*)
5812 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5813 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5814 # nice to cause kernel panics so lets avoid the loop below.
5815 # First set a reasonable default.
5816 lt_cv_sys_max_cmd_len=16384
5818 if test -x /sbin/sysconfig; then
5819 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5820 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5821 esac
5824 sco3.2v5*)
5825 lt_cv_sys_max_cmd_len=102400
5827 sysv5* | sco5v6* | sysv4.2uw2*)
5828 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5829 if test -n "$kargmax"; then
5830 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5831 else
5832 lt_cv_sys_max_cmd_len=32768
5836 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5837 if test -n "$lt_cv_sys_max_cmd_len"; then
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5840 else
5841 # Make teststring a little bigger before we do anything with it.
5842 # a 1K string should be a reasonable start.
5843 for i in 1 2 3 4 5 6 7 8 ; do
5844 teststring=$teststring$teststring
5845 done
5846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5847 # If test is not a shell built-in, we'll probably end up computing a
5848 # maximum length that is only half of the actual maximum length, but
5849 # we can't tell.
5850 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5851 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5852 test $i != 17 # 1/2 MB should be enough
5854 i=`expr $i + 1`
5855 teststring=$teststring$teststring
5856 done
5857 # Only check the string length outside the loop.
5858 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5859 teststring=
5860 # Add a significant safety factor because C++ compilers can tack on
5861 # massive amounts of additional arguments before passing them to the
5862 # linker. It appears as though 1/2 is a usable value.
5863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5866 esac
5870 if test -n $lt_cv_sys_max_cmd_len ; then
5871 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5872 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5873 else
5874 echo "$as_me:$LINENO: result: none" >&5
5875 echo "${ECHO_T}none" >&6
5877 max_cmd_len=$lt_cv_sys_max_cmd_len
5884 : ${CP="cp -f"}
5885 : ${MV="mv -f"}
5886 : ${RM="rm -f"}
5888 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5889 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5890 # Try some XSI features
5891 xsi_shell=no
5892 ( _lt_dummy="a/b/c"
5893 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5894 = c,a/b,, \
5895 && eval 'test $(( 1 + 1 )) -eq 2 \
5896 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5897 && xsi_shell=yes
5898 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5899 echo "${ECHO_T}$xsi_shell" >&6
5902 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5903 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5904 lt_shell_append=no
5905 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5906 >/dev/null 2>&1 \
5907 && lt_shell_append=yes
5908 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5909 echo "${ECHO_T}$lt_shell_append" >&6
5912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5913 lt_unset=unset
5914 else
5915 lt_unset=false
5922 # test EBCDIC or ASCII
5923 case `echo X|tr X '\101'` in
5924 A) # ASCII based system
5925 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5926 lt_SP2NL='tr \040 \012'
5927 lt_NL2SP='tr \015\012 \040\040'
5929 *) # EBCDIC based system
5930 lt_SP2NL='tr \100 \n'
5931 lt_NL2SP='tr \r\n \100\100'
5933 esac
5943 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5944 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5945 if test "${lt_cv_ld_reload_flag+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 lt_cv_ld_reload_flag='-r'
5950 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5951 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5952 reload_flag=$lt_cv_ld_reload_flag
5953 case $reload_flag in
5954 "" | " "*) ;;
5955 *) reload_flag=" $reload_flag" ;;
5956 esac
5957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5958 case $host_os in
5959 darwin*)
5960 if test "$GCC" = yes; then
5961 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5962 else
5963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5966 esac
5976 if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5979 echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 if test -n "$OBJDUMP"; then
5985 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5998 done
5999 done
6003 OBJDUMP=$ac_cv_prog_OBJDUMP
6004 if test -n "$OBJDUMP"; then
6005 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6006 echo "${ECHO_T}$OBJDUMP" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6
6013 if test -z "$ac_cv_prog_OBJDUMP"; then
6014 ac_ct_OBJDUMP=$OBJDUMP
6015 # Extract the first word of "objdump", so it can be a program name with args.
6016 set dummy objdump; ac_word=$2
6017 echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022 if test -n "$ac_ct_OBJDUMP"; then
6023 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6036 done
6037 done
6039 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6042 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6043 if test -n "$ac_ct_OBJDUMP"; then
6044 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6045 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6046 else
6047 echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6
6051 OBJDUMP=$ac_ct_OBJDUMP
6052 else
6053 OBJDUMP="$ac_cv_prog_OBJDUMP"
6056 test -z "$OBJDUMP" && OBJDUMP=objdump
6066 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6067 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6068 if test "${lt_cv_deplibs_check_method+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071 lt_cv_file_magic_cmd='$MAGIC_CMD'
6072 lt_cv_file_magic_test_file=
6073 lt_cv_deplibs_check_method='unknown'
6074 # Need to set the preceding variable on all platforms that support
6075 # interlibrary dependencies.
6076 # 'none' -- dependencies not supported.
6077 # `unknown' -- same as none, but documents that we really don't know.
6078 # 'pass_all' -- all dependencies passed with no checks.
6079 # 'test_compile' -- check by making test program.
6080 # 'file_magic [[regex]]' -- check by looking for files in library path
6081 # which responds to the $file_magic_cmd with a given extended regex.
6082 # If you have `file' or equivalent on your system and you're not sure
6083 # whether `pass_all' will *always* work, you probably want this one.
6085 case $host_os in
6086 aix[4-9]*)
6087 lt_cv_deplibs_check_method=pass_all
6090 beos*)
6091 lt_cv_deplibs_check_method=pass_all
6094 bsdi[45]*)
6095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6096 lt_cv_file_magic_cmd='/usr/bin/file -L'
6097 lt_cv_file_magic_test_file=/shlib/libc.so
6100 cygwin*)
6101 # func_win32_libid is a shell function defined in ltmain.sh
6102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6103 lt_cv_file_magic_cmd='func_win32_libid'
6106 mingw* | pw32*)
6107 # Base MSYS/MinGW do not provide the 'file' command needed by
6108 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6109 # unless we find 'file', for example because we are cross-compiling.
6110 if ( file / ) >/dev/null 2>&1; then
6111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6112 lt_cv_file_magic_cmd='func_win32_libid'
6113 else
6114 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6115 lt_cv_file_magic_cmd='$OBJDUMP -f'
6119 cegcc)
6120 # use the weaker test based on 'objdump'. See mingw*.
6121 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6122 lt_cv_file_magic_cmd='$OBJDUMP -f'
6125 darwin* | rhapsody*)
6126 lt_cv_deplibs_check_method=pass_all
6129 freebsd* | dragonfly*)
6130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6131 case $host_cpu in
6132 i*86 )
6133 # Not sure whether the presence of OpenBSD here was a mistake.
6134 # Let's accept both of them until this is cleared up.
6135 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6136 lt_cv_file_magic_cmd=/usr/bin/file
6137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6139 esac
6140 else
6141 lt_cv_deplibs_check_method=pass_all
6145 gnu*)
6146 lt_cv_deplibs_check_method=pass_all
6149 hpux10.20* | hpux11*)
6150 lt_cv_file_magic_cmd=/usr/bin/file
6151 case $host_cpu in
6152 ia64*)
6153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6154 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6156 hppa*64*)
6157 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]'
6158 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6162 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6164 esac
6167 interix[3-9]*)
6168 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6172 irix5* | irix6* | nonstopux*)
6173 case $LD in
6174 *-32|*"-32 ") libmagic=32-bit;;
6175 *-n32|*"-n32 ") libmagic=N32;;
6176 *-64|*"-64 ") libmagic=64-bit;;
6177 *) libmagic=never-match;;
6178 esac
6179 lt_cv_deplibs_check_method=pass_all
6182 # This must be Linux ELF.
6183 linux* | k*bsd*-gnu)
6184 lt_cv_deplibs_check_method=pass_all
6187 netbsd*)
6188 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6190 else
6191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6195 newos6*)
6196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6197 lt_cv_file_magic_cmd=/usr/bin/file
6198 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6201 *nto* | *qnx*)
6202 lt_cv_deplibs_check_method=pass_all
6205 openbsd*)
6206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6208 else
6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6213 osf3* | osf4* | osf5*)
6214 lt_cv_deplibs_check_method=pass_all
6217 rdos*)
6218 lt_cv_deplibs_check_method=pass_all
6221 solaris*)
6222 lt_cv_deplibs_check_method=pass_all
6225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6226 lt_cv_deplibs_check_method=pass_all
6229 sysv4 | sysv4.3*)
6230 case $host_vendor in
6231 motorola)
6232 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]'
6233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6235 ncr)
6236 lt_cv_deplibs_check_method=pass_all
6238 sequent)
6239 lt_cv_file_magic_cmd='/bin/file'
6240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6242 sni)
6243 lt_cv_file_magic_cmd='/bin/file'
6244 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6245 lt_cv_file_magic_test_file=/lib/libc.so
6247 siemens)
6248 lt_cv_deplibs_check_method=pass_all
6251 lt_cv_deplibs_check_method=pass_all
6253 esac
6256 tpf*)
6257 lt_cv_deplibs_check_method=pass_all
6259 esac
6262 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6263 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6264 file_magic_cmd=$lt_cv_file_magic_cmd
6265 deplibs_check_method=$lt_cv_deplibs_check_method
6266 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}ar; ac_word=$2
6282 echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6284 if test "${ac_cv_prog_AR+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287 if test -n "$AR"; then
6288 ac_cv_prog_AR="$AR" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_AR="${ac_tool_prefix}ar"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6301 done
6302 done
6306 AR=$ac_cv_prog_AR
6307 if test -n "$AR"; then
6308 echo "$as_me:$LINENO: result: $AR" >&5
6309 echo "${ECHO_T}$AR" >&6
6310 else
6311 echo "$as_me:$LINENO: result: no" >&5
6312 echo "${ECHO_T}no" >&6
6316 if test -z "$ac_cv_prog_AR"; then
6317 ac_ct_AR=$AR
6318 # Extract the first word of "ar", so it can be a program name with args.
6319 set dummy ar; ac_word=$2
6320 echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6322 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325 if test -n "$ac_ct_AR"; then
6326 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_ac_ct_AR="ar"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6339 done
6340 done
6342 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6345 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6346 if test -n "$ac_ct_AR"; then
6347 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6348 echo "${ECHO_T}$ac_ct_AR" >&6
6349 else
6350 echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6354 AR=$ac_ct_AR
6355 else
6356 AR="$ac_cv_prog_AR"
6359 test -z "$AR" && AR=ar
6360 test -z "$AR_FLAGS" && AR_FLAGS=cru
6372 if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6374 set dummy ${ac_tool_prefix}strip; ac_word=$2
6375 echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6377 if test "${ac_cv_prog_STRIP+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380 if test -n "$STRIP"; then
6381 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6394 done
6395 done
6399 STRIP=$ac_cv_prog_STRIP
6400 if test -n "$STRIP"; then
6401 echo "$as_me:$LINENO: result: $STRIP" >&5
6402 echo "${ECHO_T}$STRIP" >&6
6403 else
6404 echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6
6409 if test -z "$ac_cv_prog_STRIP"; then
6410 ac_ct_STRIP=$STRIP
6411 # Extract the first word of "strip", so it can be a program name with args.
6412 set dummy strip; ac_word=$2
6413 echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418 if test -n "$ac_ct_STRIP"; then
6419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_STRIP="strip"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6432 done
6433 done
6435 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6439 if test -n "$ac_ct_STRIP"; then
6440 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6441 echo "${ECHO_T}$ac_ct_STRIP" >&6
6442 else
6443 echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6
6447 STRIP=$ac_ct_STRIP
6448 else
6449 STRIP="$ac_cv_prog_STRIP"
6452 test -z "$STRIP" && STRIP=:
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6462 echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6464 if test "${ac_cv_prog_RANLIB+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 if test -n "$RANLIB"; then
6468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6481 done
6482 done
6486 RANLIB=$ac_cv_prog_RANLIB
6487 if test -n "$RANLIB"; then
6488 echo "$as_me:$LINENO: result: $RANLIB" >&5
6489 echo "${ECHO_T}$RANLIB" >&6
6490 else
6491 echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6
6496 if test -z "$ac_cv_prog_RANLIB"; then
6497 ac_ct_RANLIB=$RANLIB
6498 # Extract the first word of "ranlib", so it can be a program name with args.
6499 set dummy ranlib; ac_word=$2
6500 echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6502 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 if test -n "$ac_ct_RANLIB"; then
6506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_ac_ct_RANLIB="ranlib"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6519 done
6520 done
6522 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6525 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6526 if test -n "$ac_ct_RANLIB"; then
6527 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6528 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6529 else
6530 echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6
6534 RANLIB=$ac_ct_RANLIB
6535 else
6536 RANLIB="$ac_cv_prog_RANLIB"
6539 test -z "$RANLIB" && RANLIB=:
6546 # Determine commands to create old-style static archives.
6547 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6548 old_postinstall_cmds='chmod 644 $oldlib'
6549 old_postuninstall_cmds=
6551 if test -n "$RANLIB"; then
6552 case $host_os in
6553 openbsd*)
6554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6559 esac
6560 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6596 # If no C compiler was specified, use CC.
6597 LTCC=${LTCC-"$CC"}
6599 # If no C compiler flags were specified, use CFLAGS.
6600 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6602 # Allow CC to be a program name with arguments.
6603 compiler=$CC
6606 # Check for command to grab the raw symbol name followed by C symbol from nm.
6607 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6608 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6609 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6613 # These are sane defaults that work on at least a few old systems.
6614 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6616 # Character class describing NM global symbol codes.
6617 symcode='[BCDEGRST]'
6619 # Regexp to match symbols that can be accessed directly from C.
6620 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6622 # Define system-specific variables.
6623 case $host_os in
6624 aix*)
6625 symcode='[BCDT]'
6627 cygwin* | mingw* | pw32* | cegcc*)
6628 symcode='[ABCDGISTW]'
6630 hpux*)
6631 if test "$host_cpu" = ia64; then
6632 symcode='[ABCDEGRST]'
6635 irix* | nonstopux*)
6636 symcode='[BCDEGRST]'
6638 osf*)
6639 symcode='[BCDEGQRST]'
6641 solaris*)
6642 symcode='[BDRT]'
6644 sco3.2v5*)
6645 symcode='[DT]'
6647 sysv4.2uw2*)
6648 symcode='[DT]'
6650 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6651 symcode='[ABDT]'
6653 sysv4)
6654 symcode='[DFNSTU]'
6656 esac
6658 # If we're using GNU nm, then use its standard symbol codes.
6659 case `$NM -V 2>&1` in
6660 *GNU* | *'with BFD'*)
6661 symcode='[ABCDGIRSTW]' ;;
6662 esac
6664 # Transform an extracted symbol line into a proper C declaration.
6665 # Some systems (esp. on ia64) link data and code symbols differently,
6666 # so use this general approach.
6667 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6669 # Transform an extracted symbol line into symbol name and symbol address
6670 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6671 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6673 # Handle CRLF in mingw tool chain
6674 opt_cr=
6675 case $build_os in
6676 mingw*)
6677 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6679 esac
6681 # Try without a prefix underscore, then with it.
6682 for ac_symprfx in "" "_"; do
6684 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6685 symxfrm="\\1 $ac_symprfx\\2 \\2"
6687 # Write the raw and C identifiers.
6688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6689 # Fake it for dumpbin and say T for any non-static function
6690 # and D for any global variable.
6691 # Also find C++ and __fastcall symbols from MSVC++,
6692 # which start with @ or ?.
6693 lt_cv_sys_global_symbol_pipe="$AWK '"\
6694 " {last_section=section; section=\$ 3};"\
6695 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6696 " \$ 0!~/External *\|/{next};"\
6697 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6698 " {if(hide[section]) next};"\
6699 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6700 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6701 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6702 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6703 " ' prfx=^$ac_symprfx"
6704 else
6705 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6708 # Check to see that the pipe works correctly.
6709 pipe_works=no
6711 rm -f conftest*
6712 cat > conftest.$ac_ext <<_LT_EOF
6713 #ifdef __cplusplus
6714 extern "C" {
6715 #endif
6716 char nm_test_var;
6717 void nm_test_func(void);
6718 void nm_test_func(void){}
6719 #ifdef __cplusplus
6721 #endif
6722 int main(){nm_test_var='a';nm_test_func();return(0);}
6723 _LT_EOF
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; then
6730 # Now try to grab the symbols.
6731 nlist=conftest.nm
6732 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6733 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && test -s "$nlist"; then
6737 # Try sorting and uniquifying the output.
6738 if sort "$nlist" | uniq > "$nlist"T; then
6739 mv -f "$nlist"T "$nlist"
6740 else
6741 rm -f "$nlist"T
6744 # Make sure that we snagged all the symbols we need.
6745 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6746 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6747 cat <<_LT_EOF > conftest.$ac_ext
6748 #ifdef __cplusplus
6749 extern "C" {
6750 #endif
6752 _LT_EOF
6753 # Now generate the symbol file.
6754 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6756 cat <<_LT_EOF >> conftest.$ac_ext
6758 /* The mapping between symbol names and symbols. */
6759 const struct {
6760 const char *name;
6761 void *address;
6763 lt__PROGRAM__LTX_preloaded_symbols[] =
6765 { "@PROGRAM@", (void *) 0 },
6766 _LT_EOF
6767 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6768 cat <<\_LT_EOF >> conftest.$ac_ext
6769 {0, (void *) 0}
6772 /* This works around a problem in FreeBSD linker */
6773 #ifdef FREEBSD_WORKAROUND
6774 static const void *lt_preloaded_setup() {
6775 return lt__PROGRAM__LTX_preloaded_symbols;
6777 #endif
6779 #ifdef __cplusplus
6781 #endif
6782 _LT_EOF
6783 # Now try linking the two files.
6784 mv conftest.$ac_objext conftstm.$ac_objext
6785 lt_save_LIBS="$LIBS"
6786 lt_save_CFLAGS="$CFLAGS"
6787 LIBS="conftstm.$ac_objext"
6788 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6794 pipe_works=yes
6796 LIBS="$lt_save_LIBS"
6797 CFLAGS="$lt_save_CFLAGS"
6798 else
6799 echo "cannot find nm_test_func in $nlist" >&5
6801 else
6802 echo "cannot find nm_test_var in $nlist" >&5
6804 else
6805 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6807 else
6808 echo "$progname: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6811 rm -rf conftest* conftst*
6813 # Do not use the global_symbol_pipe unless it works.
6814 if test "$pipe_works" = yes; then
6815 break
6816 else
6817 lt_cv_sys_global_symbol_pipe=
6819 done
6823 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6824 lt_cv_sys_global_symbol_to_cdecl=
6826 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6827 echo "$as_me:$LINENO: result: failed" >&5
6828 echo "${ECHO_T}failed" >&6
6829 else
6830 echo "$as_me:$LINENO: result: ok" >&5
6831 echo "${ECHO_T}ok" >&6
6855 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6856 if test "${enable_libtool_lock+set}" = set; then
6857 enableval="$enable_libtool_lock"
6860 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6862 # Some flags need to be propagated to the compiler or linker for good
6863 # libtool support.
6864 case $host in
6865 ia64-*-hpux*)
6866 # Find out which ABI we are using.
6867 echo 'int i;' > conftest.$ac_ext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869 (eval $ac_compile) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; then
6873 case `/usr/bin/file conftest.$ac_objext` in
6874 *ELF-32*)
6875 HPUX_IA64_MODE="32"
6877 *ELF-64*)
6878 HPUX_IA64_MODE="64"
6880 esac
6882 rm -rf conftest*
6884 *-*-irix6*)
6885 # Find out which ABI we are using.
6886 echo '#line 6886 "configure"' > conftest.$ac_ext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; then
6892 if test "$lt_cv_prog_gnu_ld" = yes; then
6893 case `/usr/bin/file conftest.$ac_objext` in
6894 *32-bit*)
6895 LD="${LD-ld} -melf32bsmip"
6897 *N32*)
6898 LD="${LD-ld} -melf32bmipn32"
6900 *64-bit*)
6901 LD="${LD-ld} -melf64bmip"
6903 esac
6904 else
6905 case `/usr/bin/file conftest.$ac_objext` in
6906 *32-bit*)
6907 LD="${LD-ld} -32"
6909 *N32*)
6910 LD="${LD-ld} -n32"
6912 *64-bit*)
6913 LD="${LD-ld} -64"
6915 esac
6918 rm -rf conftest*
6921 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6922 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6923 # Find out which ABI we are using.
6924 echo 'int i;' > conftest.$ac_ext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926 (eval $ac_compile) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; then
6930 case `/usr/bin/file conftest.o` in
6931 *32-bit*)
6932 case $host in
6933 x86_64-*kfreebsd*-gnu)
6934 LD="${LD-ld} -m elf_i386_fbsd"
6936 x86_64-*linux*)
6937 LD="${LD-ld} -m elf_i386"
6939 ppc64-*linux*|powerpc64-*linux*)
6940 LD="${LD-ld} -m elf32ppclinux"
6942 s390x-*linux*)
6943 LD="${LD-ld} -m elf_s390"
6945 sparc64-*linux*)
6946 LD="${LD-ld} -m elf32_sparc"
6948 esac
6950 *64-bit*)
6951 case $host in
6952 x86_64-*kfreebsd*-gnu)
6953 LD="${LD-ld} -m elf_x86_64_fbsd"
6955 x86_64-*linux*)
6956 LD="${LD-ld} -m elf_x86_64"
6958 ppc*-*linux*|powerpc*-*linux*)
6959 LD="${LD-ld} -m elf64ppc"
6961 s390*-*linux*|s390*-*tpf*)
6962 LD="${LD-ld} -m elf64_s390"
6964 sparc*-*linux*)
6965 LD="${LD-ld} -m elf64_sparc"
6967 esac
6969 esac
6971 rm -rf conftest*
6974 *-*-sco3.2v5*)
6975 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6976 SAVE_CFLAGS="$CFLAGS"
6977 CFLAGS="$CFLAGS -belf"
6978 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6979 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6980 if test "${lt_cv_cc_needs_belf+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 ac_ext=c
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6997 main ()
7001 return 0;
7003 _ACEOF
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006 (eval $ac_link) 2>conftest.er1
7007 ac_status=$?
7008 grep -v '^ *+' conftest.er1 >conftest.err
7009 rm -f conftest.er1
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try='test -s conftest$ac_exeext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 lt_cv_cc_needs_belf=yes
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 lt_cv_cc_needs_belf=no
7033 rm -f conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7035 ac_ext=c
7036 ac_cpp='$CPP $CPPFLAGS'
7037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7042 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7043 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7044 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7045 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7046 CFLAGS="$SAVE_CFLAGS"
7049 sparc*-*solaris*)
7050 # Find out which ABI we are using.
7051 echo 'int i;' > conftest.$ac_ext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053 (eval $ac_compile) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; then
7057 case `/usr/bin/file conftest.o` in
7058 *64-bit*)
7059 case $lt_cv_prog_gnu_ld in
7060 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7062 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7063 LD="${LD-ld} -64"
7066 esac
7068 esac
7070 rm -rf conftest*
7072 esac
7074 need_locks="$enable_libtool_lock"
7077 case $host_os in
7078 rhapsody* | darwin*)
7079 if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7081 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7082 echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7084 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 if test -n "$DSYMUTIL"; then
7088 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7101 done
7102 done
7106 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7107 if test -n "$DSYMUTIL"; then
7108 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7109 echo "${ECHO_T}$DSYMUTIL" >&6
7110 else
7111 echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6
7116 if test -z "$ac_cv_prog_DSYMUTIL"; then
7117 ac_ct_DSYMUTIL=$DSYMUTIL
7118 # Extract the first word of "dsymutil", so it can be a program name with args.
7119 set dummy dsymutil; ac_word=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 if test -n "$ac_ct_DSYMUTIL"; then
7126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7139 done
7140 done
7142 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7145 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7146 if test -n "$ac_ct_DSYMUTIL"; then
7147 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7148 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7149 else
7150 echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6
7154 DSYMUTIL=$ac_ct_DSYMUTIL
7155 else
7156 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7161 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7162 echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7164 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 if test -n "$NMEDIT"; then
7168 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7181 done
7182 done
7186 NMEDIT=$ac_cv_prog_NMEDIT
7187 if test -n "$NMEDIT"; then
7188 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7189 echo "${ECHO_T}$NMEDIT" >&6
7190 else
7191 echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7196 if test -z "$ac_cv_prog_NMEDIT"; then
7197 ac_ct_NMEDIT=$NMEDIT
7198 # Extract the first word of "nmedit", so it can be a program name with args.
7199 set dummy nmedit; ac_word=$2
7200 echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205 if test -n "$ac_ct_NMEDIT"; then
7206 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7219 done
7220 done
7222 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7225 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7226 if test -n "$ac_ct_NMEDIT"; then
7227 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7228 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7229 else
7230 echo "$as_me:$LINENO: result: no" >&5
7231 echo "${ECHO_T}no" >&6
7234 NMEDIT=$ac_ct_NMEDIT
7235 else
7236 NMEDIT="$ac_cv_prog_NMEDIT"
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7242 echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7244 if test "${ac_cv_prog_LIPO+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247 if test -n "$LIPO"; then
7248 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7261 done
7262 done
7266 LIPO=$ac_cv_prog_LIPO
7267 if test -n "$LIPO"; then
7268 echo "$as_me:$LINENO: result: $LIPO" >&5
7269 echo "${ECHO_T}$LIPO" >&6
7270 else
7271 echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6
7276 if test -z "$ac_cv_prog_LIPO"; then
7277 ac_ct_LIPO=$LIPO
7278 # Extract the first word of "lipo", so it can be a program name with args.
7279 set dummy lipo; ac_word=$2
7280 echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285 if test -n "$ac_ct_LIPO"; then
7286 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_ac_ct_LIPO="lipo"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7299 done
7300 done
7302 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7305 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7306 if test -n "$ac_ct_LIPO"; then
7307 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7308 echo "${ECHO_T}$ac_ct_LIPO" >&6
7309 else
7310 echo "$as_me:$LINENO: result: no" >&5
7311 echo "${ECHO_T}no" >&6
7314 LIPO=$ac_ct_LIPO
7315 else
7316 LIPO="$ac_cv_prog_LIPO"
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}otool; ac_word=$2
7322 echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7324 if test "${ac_cv_prog_OTOOL+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 if test -n "$OTOOL"; then
7328 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7341 done
7342 done
7346 OTOOL=$ac_cv_prog_OTOOL
7347 if test -n "$OTOOL"; then
7348 echo "$as_me:$LINENO: result: $OTOOL" >&5
7349 echo "${ECHO_T}$OTOOL" >&6
7350 else
7351 echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6
7356 if test -z "$ac_cv_prog_OTOOL"; then
7357 ac_ct_OTOOL=$OTOOL
7358 # Extract the first word of "otool", so it can be a program name with args.
7359 set dummy otool; ac_word=$2
7360 echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 if test -n "$ac_ct_OTOOL"; then
7366 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_ac_ct_OTOOL="otool"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7379 done
7380 done
7382 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7385 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7386 if test -n "$ac_ct_OTOOL"; then
7387 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7388 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7389 else
7390 echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6
7394 OTOOL=$ac_ct_OTOOL
7395 else
7396 OTOOL="$ac_cv_prog_OTOOL"
7399 if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7402 echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7404 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 if test -n "$OTOOL64"; then
7408 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7421 done
7422 done
7426 OTOOL64=$ac_cv_prog_OTOOL64
7427 if test -n "$OTOOL64"; then
7428 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7429 echo "${ECHO_T}$OTOOL64" >&6
7430 else
7431 echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6
7436 if test -z "$ac_cv_prog_OTOOL64"; then
7437 ac_ct_OTOOL64=$OTOOL64
7438 # Extract the first word of "otool64", so it can be a program name with args.
7439 set dummy otool64; ac_word=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445 if test -n "$ac_ct_OTOOL64"; then
7446 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_ac_ct_OTOOL64="otool64"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7459 done
7460 done
7462 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7465 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7466 if test -n "$ac_ct_OTOOL64"; then
7467 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7468 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7469 else
7470 echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7474 OTOOL64=$ac_ct_OTOOL64
7475 else
7476 OTOOL64="$ac_cv_prog_OTOOL64"
7505 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7506 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7507 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 lt_cv_apple_cc_single_mod=no
7511 if test -z "${LT_MULTI_MODULE}"; then
7512 # By default we will add the -single_module flag. You can override
7513 # by either setting the environment variable LT_MULTI_MODULE
7514 # non-empty at configure time, or by adding -multi_module to the
7515 # link flags.
7516 rm -rf libconftest.dylib*
7517 echo "int foo(void){return 1;}" > conftest.c
7518 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7519 -dynamiclib -Wl,-single_module conftest.c" >&5
7520 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7522 _lt_result=$?
7523 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7524 lt_cv_apple_cc_single_mod=yes
7525 else
7526 cat conftest.err >&5
7528 rm -rf libconftest.dylib*
7529 rm -f conftest.*
7532 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7533 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7534 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7535 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7536 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539 lt_cv_ld_exported_symbols_list=no
7540 save_LDFLAGS=$LDFLAGS
7541 echo "_main" > conftest.sym
7542 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7551 main ()
7555 return 0;
7557 _ACEOF
7558 rm -f conftest.$ac_objext conftest$ac_exeext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7560 (eval $ac_link) 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } &&
7567 { ac_try='test -z "$ac_c_werror_flag"
7568 || test ! -s conftest.err'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 (eval $ac_try) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; } &&
7574 { ac_try='test -s conftest$ac_exeext'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 (eval $ac_try) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; }; then
7580 lt_cv_ld_exported_symbols_list=yes
7581 else
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 lt_cv_ld_exported_symbols_list=no
7587 rm -f conftest.err conftest.$ac_objext \
7588 conftest$ac_exeext conftest.$ac_ext
7589 LDFLAGS="$save_LDFLAGS"
7592 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7593 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7594 case $host_os in
7595 rhapsody* | darwin1.[012])
7596 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7597 darwin1.*)
7598 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7599 darwin*) # darwin 5.x on
7600 # if running on 10.5 or later, the deployment target defaults
7601 # to the OS version, if on x86, and 10.4, the deployment
7602 # target defaults to 10.4. Don't you love it?
7603 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7604 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7605 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7606 10.[012]*)
7607 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7608 10.*)
7609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7610 esac
7612 esac
7613 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7614 _lt_dar_single_mod='$single_module'
7616 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7617 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7618 else
7619 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7621 if test "$DSYMUTIL" != ":"; then
7622 _lt_dsymutil='~$DSYMUTIL $lib || :'
7623 else
7624 _lt_dsymutil=
7627 esac
7630 for ac_header in dlfcn.h
7632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7633 echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7646 #include <$ac_header>
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 eval "$as_ac_Header=yes"
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 eval "$as_ac_Header=no"
7677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7682 cat >>confdefs.h <<_ACEOF
7683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7684 _ACEOF
7688 done
7692 # Set options
7696 enable_dlopen=no
7699 enable_win32_dll=no
7703 # Check whether --enable-static or --disable-static was given.
7704 if test "${enable_static+set}" = set; then
7705 enableval="$enable_static"
7706 p=${PACKAGE-default}
7707 case $enableval in
7708 yes) enable_static=yes ;;
7709 no) enable_static=no ;;
7711 enable_static=no
7712 # Look at the argument we got. We use all the common list separators.
7713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7714 for pkg in $enableval; do
7715 IFS="$lt_save_ifs"
7716 if test "X$pkg" = "X$p"; then
7717 enable_static=yes
7719 done
7720 IFS="$lt_save_ifs"
7722 esac
7723 else
7724 enable_static=yes
7735 # Check whether --with-pic or --without-pic was given.
7736 if test "${with_pic+set}" = set; then
7737 withval="$with_pic"
7738 pic_mode="$withval"
7739 else
7740 pic_mode=default
7743 test -z "$pic_mode" && pic_mode=default
7751 # Check whether --enable-fast-install or --disable-fast-install was given.
7752 if test "${enable_fast_install+set}" = set; then
7753 enableval="$enable_fast_install"
7754 p=${PACKAGE-default}
7755 case $enableval in
7756 yes) enable_fast_install=yes ;;
7757 no) enable_fast_install=no ;;
7759 enable_fast_install=no
7760 # Look at the argument we got. We use all the common list separators.
7761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7762 for pkg in $enableval; do
7763 IFS="$lt_save_ifs"
7764 if test "X$pkg" = "X$p"; then
7765 enable_fast_install=yes
7767 done
7768 IFS="$lt_save_ifs"
7770 esac
7771 else
7772 enable_fast_install=yes
7784 # This can be used to rebuild libtool when needed
7785 LIBTOOL_DEPS="$ltmain"
7787 # Always use our own libtool.
7788 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7814 test -z "$LN_S" && LN_S="ln -s"
7829 if test -n "${ZSH_VERSION+set}" ; then
7830 setopt NO_GLOB_SUBST
7833 echo "$as_me:$LINENO: checking for objdir" >&5
7834 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7835 if test "${lt_cv_objdir+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 rm -f .libs 2>/dev/null
7839 mkdir .libs 2>/dev/null
7840 if test -d .libs; then
7841 lt_cv_objdir=.libs
7842 else
7843 # MS-DOS does not allow filenames that begin with a dot.
7844 lt_cv_objdir=_libs
7846 rmdir .libs 2>/dev/null
7848 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7849 echo "${ECHO_T}$lt_cv_objdir" >&6
7850 objdir=$lt_cv_objdir
7856 cat >>confdefs.h <<_ACEOF
7857 #define LT_OBJDIR "$lt_cv_objdir/"
7858 _ACEOF
7876 case $host_os in
7877 aix3*)
7878 # AIX sometimes has problems with the GCC collect2 program. For some
7879 # reason, if we set the COLLECT_NAMES environment variable, the problems
7880 # vanish in a puff of smoke.
7881 if test "X${COLLECT_NAMES+set}" != Xset; then
7882 COLLECT_NAMES=
7883 export COLLECT_NAMES
7886 esac
7888 # Sed substitution that helps us do robust quoting. It backslashifies
7889 # metacharacters that are still active within double-quoted strings.
7890 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7892 # Same as above, but do not quote variable references.
7893 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7895 # Sed substitution to delay expansion of an escaped shell variable in a
7896 # double_quote_subst'ed string.
7897 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7899 # Sed substitution to delay expansion of an escaped single quote.
7900 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7902 # Sed substitution to avoid accidental globbing in evaled expressions
7903 no_glob_subst='s/\*/\\\*/g'
7905 # Global variables:
7906 ofile=libtool
7907 can_build_shared=yes
7909 # All known linkers require a `.a' archive for static linking (except MSVC,
7910 # which needs '.lib').
7911 libext=a
7913 with_gnu_ld="$lt_cv_prog_gnu_ld"
7915 old_CC="$CC"
7916 old_CFLAGS="$CFLAGS"
7918 # Set sane defaults for various variables
7919 test -z "$CC" && CC=cc
7920 test -z "$LTCC" && LTCC=$CC
7921 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7922 test -z "$LD" && LD=ld
7923 test -z "$ac_objext" && ac_objext=o
7925 for cc_temp in $compiler""; do
7926 case $cc_temp in
7927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7929 \-*) ;;
7930 *) break;;
7931 esac
7932 done
7933 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7936 # Only perform the check for file, if the check method requires it
7937 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7938 case $deplibs_check_method in
7939 file_magic*)
7940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7941 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7942 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7943 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 case $MAGIC_CMD in
7947 [\\/*] | ?:[\\/]*)
7948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7951 lt_save_MAGIC_CMD="$MAGIC_CMD"
7952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7953 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7954 for ac_dir in $ac_dummy; do
7955 IFS="$lt_save_ifs"
7956 test -z "$ac_dir" && ac_dir=.
7957 if test -f $ac_dir/${ac_tool_prefix}file; then
7958 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7959 if test -n "$file_magic_test_file"; then
7960 case $deplibs_check_method in
7961 "file_magic "*)
7962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7965 $EGREP "$file_magic_regex" > /dev/null; then
7967 else
7968 cat <<_LT_EOF 1>&2
7970 *** Warning: the command libtool uses to detect shared libraries,
7971 *** $file_magic_cmd, produces output that libtool cannot recognize.
7972 *** The result is that libtool may fail to recognize shared libraries
7973 *** as such. This will affect the creation of libtool libraries that
7974 *** depend on shared libraries, but programs linked with such libtool
7975 *** libraries will work regardless of this problem. Nevertheless, you
7976 *** may want to report the problem to your system manager and/or to
7977 *** bug-libtool@gnu.org
7979 _LT_EOF
7980 fi ;;
7981 esac
7983 break
7985 done
7986 IFS="$lt_save_ifs"
7987 MAGIC_CMD="$lt_save_MAGIC_CMD"
7989 esac
7992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7993 if test -n "$MAGIC_CMD"; then
7994 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7995 echo "${ECHO_T}$MAGIC_CMD" >&6
7996 else
7997 echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6
8005 if test -z "$lt_cv_path_MAGIC_CMD"; then
8006 if test -n "$ac_tool_prefix"; then
8007 echo "$as_me:$LINENO: checking for file" >&5
8008 echo $ECHO_N "checking for file... $ECHO_C" >&6
8009 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012 case $MAGIC_CMD in
8013 [\\/*] | ?:[\\/]*)
8014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8017 lt_save_MAGIC_CMD="$MAGIC_CMD"
8018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8020 for ac_dir in $ac_dummy; do
8021 IFS="$lt_save_ifs"
8022 test -z "$ac_dir" && ac_dir=.
8023 if test -f $ac_dir/file; then
8024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8025 if test -n "$file_magic_test_file"; then
8026 case $deplibs_check_method in
8027 "file_magic "*)
8028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8031 $EGREP "$file_magic_regex" > /dev/null; then
8033 else
8034 cat <<_LT_EOF 1>&2
8036 *** Warning: the command libtool uses to detect shared libraries,
8037 *** $file_magic_cmd, produces output that libtool cannot recognize.
8038 *** The result is that libtool may fail to recognize shared libraries
8039 *** as such. This will affect the creation of libtool libraries that
8040 *** depend on shared libraries, but programs linked with such libtool
8041 *** libraries will work regardless of this problem. Nevertheless, you
8042 *** may want to report the problem to your system manager and/or to
8043 *** bug-libtool@gnu.org
8045 _LT_EOF
8046 fi ;;
8047 esac
8049 break
8051 done
8052 IFS="$lt_save_ifs"
8053 MAGIC_CMD="$lt_save_MAGIC_CMD"
8055 esac
8058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8059 if test -n "$MAGIC_CMD"; then
8060 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8061 echo "${ECHO_T}$MAGIC_CMD" >&6
8062 else
8063 echo "$as_me:$LINENO: result: no" >&5
8064 echo "${ECHO_T}no" >&6
8068 else
8069 MAGIC_CMD=:
8075 esac
8077 # Use C for the default configuration in the libtool script
8079 lt_save_CC="$CC"
8080 ac_ext=c
8081 ac_cpp='$CPP $CPPFLAGS'
8082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8087 # Source file extension for C test sources.
8088 ac_ext=c
8090 # Object file extension for compiled C test sources.
8091 objext=o
8092 objext=$objext
8094 # Code to be used in simple compile tests
8095 lt_simple_compile_test_code="int some_variable = 0;"
8097 # Code to be used in simple link tests
8098 lt_simple_link_test_code='int main(){return(0);}'
8106 # If no C compiler was specified, use CC.
8107 LTCC=${LTCC-"$CC"}
8109 # If no C compiler flags were specified, use CFLAGS.
8110 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8112 # Allow CC to be a program name with arguments.
8113 compiler=$CC
8115 # Save the default compiler, since it gets overwritten when the other
8116 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8117 compiler_DEFAULT=$CC
8119 # save warnings/boilerplate of simple test code
8120 ac_outfile=conftest.$ac_objext
8121 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8122 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8123 _lt_compiler_boilerplate=`cat conftest.err`
8124 $RM conftest*
8126 ac_outfile=conftest.$ac_objext
8127 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8128 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8129 _lt_linker_boilerplate=`cat conftest.err`
8130 $RM -r conftest*
8133 ## CAVEAT EMPTOR:
8134 ## There is no encapsulation within the following macros, do not change
8135 ## the running order or otherwise move them around unless you know exactly
8136 ## what you are doing...
8137 if test -n "$compiler"; then
8139 lt_prog_compiler_no_builtin_flag=
8141 if test "$GCC" = yes; then
8142 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8144 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8145 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8146 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149 lt_cv_prog_compiler_rtti_exceptions=no
8150 ac_outfile=conftest.$ac_objext
8151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8152 lt_compiler_flag="-fno-rtti -fno-exceptions"
8153 # Insert the option either (1) after the last *FLAGS variable, or
8154 # (2) before a word containing "conftest.", or (3) at the end.
8155 # Note that $ac_compile itself does not contain backslashes and begins
8156 # with a dollar sign (not a hyphen), so the echo should work correctly.
8157 # The option is referenced via a variable to avoid confusing sed.
8158 lt_compile=`echo "$ac_compile" | $SED \
8159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8161 -e 's:$: $lt_compiler_flag:'`
8162 (eval echo "\"\$as_me:8162: $lt_compile\"" >&5)
8163 (eval "$lt_compile" 2>conftest.err)
8164 ac_status=$?
8165 cat conftest.err >&5
8166 echo "$as_me:8166: \$? = $ac_status" >&5
8167 if (exit $ac_status) && test -s "$ac_outfile"; then
8168 # The compiler can only warn and ignore the option if not recognized
8169 # So say no if there are warnings other than the usual output.
8170 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8173 lt_cv_prog_compiler_rtti_exceptions=yes
8176 $RM conftest*
8179 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8180 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8182 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8183 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8184 else
8195 lt_prog_compiler_wl=
8196 lt_prog_compiler_pic=
8197 lt_prog_compiler_static=
8199 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8200 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8202 if test "$GCC" = yes; then
8203 lt_prog_compiler_wl='-Wl,'
8204 lt_prog_compiler_static='-static'
8206 case $host_os in
8207 aix*)
8208 # All AIX code is PIC.
8209 if test "$host_cpu" = ia64; then
8210 # AIX 5 now supports IA64 processor
8211 lt_prog_compiler_static='-Bstatic'
8215 amigaos*)
8216 case $host_cpu in
8217 powerpc)
8218 # see comment about AmigaOS4 .so support
8219 lt_prog_compiler_pic='-fPIC'
8221 m68k)
8222 # FIXME: we need at least 68020 code to build shared libraries, but
8223 # adding the `-m68020' flag to GCC prevents building anything better,
8224 # like `-m68040'.
8225 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8227 esac
8230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8231 # PIC is the default for these OSes.
8234 mingw* | cygwin* | pw32* | os2* | cegcc*)
8235 # This hack is so that the source file can tell whether it is being
8236 # built for inclusion in a dll (and should export symbols for example).
8237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8238 # (--disable-auto-import) libraries
8239 lt_prog_compiler_pic='-DDLL_EXPORT'
8242 darwin* | rhapsody*)
8243 # PIC is the default on this platform
8244 # Common symbols not allowed in MH_DYLIB files
8245 lt_prog_compiler_pic='-fno-common'
8248 hpux*)
8249 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8250 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8251 # sets the default TLS model and affects inlining.
8252 case $host_cpu in
8253 hppa*64*)
8254 # +Z the default
8257 lt_prog_compiler_pic='-fPIC'
8259 esac
8262 interix[3-9]*)
8263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8264 # Instead, we relocate shared libraries at runtime.
8267 msdosdjgpp*)
8268 # Just because we use GCC doesn't mean we suddenly get shared libraries
8269 # on systems that don't support them.
8270 lt_prog_compiler_can_build_shared=no
8271 enable_shared=no
8274 *nto* | *qnx*)
8275 # QNX uses GNU C++, but need to define -shared option too, otherwise
8276 # it will coredump.
8277 lt_prog_compiler_pic='-fPIC -shared'
8280 sysv4*MP*)
8281 if test -d /usr/nec; then
8282 lt_prog_compiler_pic=-Kconform_pic
8287 lt_prog_compiler_pic='-fPIC'
8289 esac
8290 else
8291 # PORTME Check for flag to pass linker flags through the system compiler.
8292 case $host_os in
8293 aix*)
8294 lt_prog_compiler_wl='-Wl,'
8295 if test "$host_cpu" = ia64; then
8296 # AIX 5 now supports IA64 processor
8297 lt_prog_compiler_static='-Bstatic'
8298 else
8299 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8303 mingw* | cygwin* | pw32* | os2* | cegcc*)
8304 # This hack is so that the source file can tell whether it is being
8305 # built for inclusion in a dll (and should export symbols for example).
8306 lt_prog_compiler_pic='-DDLL_EXPORT'
8309 hpux9* | hpux10* | hpux11*)
8310 lt_prog_compiler_wl='-Wl,'
8311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8312 # not for PA HP-UX.
8313 case $host_cpu in
8314 hppa*64*|ia64*)
8315 # +Z the default
8318 lt_prog_compiler_pic='+Z'
8320 esac
8321 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8322 lt_prog_compiler_static='${wl}-a ${wl}archive'
8325 irix5* | irix6* | nonstopux*)
8326 lt_prog_compiler_wl='-Wl,'
8327 # PIC (with -KPIC) is the default.
8328 lt_prog_compiler_static='-non_shared'
8331 linux* | k*bsd*-gnu)
8332 case $cc_basename in
8333 # old Intel for x86_64 which still supported -KPIC.
8334 ecc*)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-static'
8339 # icc used to be incompatible with GCC.
8340 # ICC 10 doesn't accept -KPIC any more.
8341 icc* | ifort*)
8342 lt_prog_compiler_wl='-Wl,'
8343 lt_prog_compiler_pic='-fPIC'
8344 lt_prog_compiler_static='-static'
8346 # Lahey Fortran 8.1.
8347 lf95*)
8348 lt_prog_compiler_wl='-Wl,'
8349 lt_prog_compiler_pic='--shared'
8350 lt_prog_compiler_static='--static'
8352 pgcc* | pgf77* | pgf90* | pgf95*)
8353 # Portland Group compilers (*not* the Pentium gcc compiler,
8354 # which looks to be a dead project)
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_pic='-fpic'
8357 lt_prog_compiler_static='-Bstatic'
8359 ccc*)
8360 lt_prog_compiler_wl='-Wl,'
8361 # All Alpha code is PIC.
8362 lt_prog_compiler_static='-non_shared'
8364 xl*)
8365 # IBM XL C 8.0/Fortran 10.1 on PPC
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='-qpic'
8368 lt_prog_compiler_static='-qstaticlink'
8371 case `$CC -V 2>&1 | sed 5q` in
8372 *Sun\ C*)
8373 # Sun C 5.9
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 lt_prog_compiler_wl='-Wl,'
8378 *Sun\ F*)
8379 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8380 lt_prog_compiler_pic='-KPIC'
8381 lt_prog_compiler_static='-Bstatic'
8382 lt_prog_compiler_wl=''
8384 esac
8386 esac
8389 newsos6)
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8394 *nto* | *qnx*)
8395 # QNX uses GNU C++, but need to define -shared option too, otherwise
8396 # it will coredump.
8397 lt_prog_compiler_pic='-fPIC -shared'
8400 osf3* | osf4* | osf5*)
8401 lt_prog_compiler_wl='-Wl,'
8402 # All OSF/1 code is PIC.
8403 lt_prog_compiler_static='-non_shared'
8406 rdos*)
8407 lt_prog_compiler_static='-non_shared'
8410 solaris*)
8411 lt_prog_compiler_pic='-KPIC'
8412 lt_prog_compiler_static='-Bstatic'
8413 case $cc_basename in
8414 f77* | f90* | f95*)
8415 lt_prog_compiler_wl='-Qoption ld ';;
8417 lt_prog_compiler_wl='-Wl,';;
8418 esac
8421 sunos4*)
8422 lt_prog_compiler_wl='-Qoption ld '
8423 lt_prog_compiler_pic='-PIC'
8424 lt_prog_compiler_static='-Bstatic'
8427 sysv4 | sysv4.2uw2* | sysv4.3*)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
8433 sysv4*MP*)
8434 if test -d /usr/nec ;then
8435 lt_prog_compiler_pic='-Kconform_pic'
8436 lt_prog_compiler_static='-Bstatic'
8440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8446 unicos*)
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_can_build_shared=no
8451 uts4*)
8452 lt_prog_compiler_pic='-pic'
8453 lt_prog_compiler_static='-Bstatic'
8457 lt_prog_compiler_can_build_shared=no
8459 esac
8462 case $host_os in
8463 # For platforms which do not support PIC, -DPIC is meaningless:
8464 *djgpp*)
8465 lt_prog_compiler_pic=
8468 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8470 esac
8471 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8472 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8480 # Check to make sure the PIC flag actually works.
8482 if test -n "$lt_prog_compiler_pic"; then
8483 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8484 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8485 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488 lt_cv_prog_compiler_pic_works=no
8489 ac_outfile=conftest.$ac_objext
8490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8492 # Insert the option either (1) after the last *FLAGS variable, or
8493 # (2) before a word containing "conftest.", or (3) at the end.
8494 # Note that $ac_compile itself does not contain backslashes and begins
8495 # with a dollar sign (not a hyphen), so the echo should work correctly.
8496 # The option is referenced via a variable to avoid confusing sed.
8497 lt_compile=`echo "$ac_compile" | $SED \
8498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8500 -e 's:$: $lt_compiler_flag:'`
8501 (eval echo "\"\$as_me:8501: $lt_compile\"" >&5)
8502 (eval "$lt_compile" 2>conftest.err)
8503 ac_status=$?
8504 cat conftest.err >&5
8505 echo "$as_me:8505: \$? = $ac_status" >&5
8506 if (exit $ac_status) && test -s "$ac_outfile"; then
8507 # The compiler can only warn and ignore the option if not recognized
8508 # So say no if there are warnings other than the usual output.
8509 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8512 lt_cv_prog_compiler_pic_works=yes
8515 $RM conftest*
8518 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8519 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8521 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8522 case $lt_prog_compiler_pic in
8523 "" | " "*) ;;
8524 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8525 esac
8526 else
8527 lt_prog_compiler_pic=
8528 lt_prog_compiler_can_build_shared=no
8539 # Check to make sure the static flag actually works.
8541 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8542 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8543 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8544 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547 lt_cv_prog_compiler_static_works=no
8548 save_LDFLAGS="$LDFLAGS"
8549 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8550 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8552 # The linker can only warn and ignore the option if not recognized
8553 # So say no if there are warnings
8554 if test -s conftest.err; then
8555 # Append any errors to the config.log.
8556 cat conftest.err 1>&5
8557 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8559 if diff conftest.exp conftest.er2 >/dev/null; then
8560 lt_cv_prog_compiler_static_works=yes
8562 else
8563 lt_cv_prog_compiler_static_works=yes
8566 $RM -r conftest*
8567 LDFLAGS="$save_LDFLAGS"
8570 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8571 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8573 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8575 else
8576 lt_prog_compiler_static=
8585 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8586 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8587 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 lt_cv_prog_compiler_c_o=no
8591 $RM -r conftest 2>/dev/null
8592 mkdir conftest
8593 cd conftest
8594 mkdir out
8595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8597 lt_compiler_flag="-o out/conftest2.$ac_objext"
8598 # Insert the option either (1) after the last *FLAGS variable, or
8599 # (2) before a word containing "conftest.", or (3) at the end.
8600 # Note that $ac_compile itself does not contain backslashes and begins
8601 # with a dollar sign (not a hyphen), so the echo should work correctly.
8602 lt_compile=`echo "$ac_compile" | $SED \
8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8605 -e 's:$: $lt_compiler_flag:'`
8606 (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
8607 (eval "$lt_compile" 2>out/conftest.err)
8608 ac_status=$?
8609 cat out/conftest.err >&5
8610 echo "$as_me:8610: \$? = $ac_status" >&5
8611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8612 then
8613 # The compiler can only warn and ignore the option if not recognized
8614 # So say no if there are warnings
8615 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8618 lt_cv_prog_compiler_c_o=yes
8621 chmod u+w . 2>&5
8622 $RM conftest*
8623 # SGI C++ compiler will create directory out/ii_files/ for
8624 # template instantiation
8625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8626 $RM out/* && rmdir out
8627 cd ..
8628 $RM -r conftest
8629 $RM conftest*
8632 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8633 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8640 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8641 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8642 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645 lt_cv_prog_compiler_c_o=no
8646 $RM -r conftest 2>/dev/null
8647 mkdir conftest
8648 cd conftest
8649 mkdir out
8650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8652 lt_compiler_flag="-o out/conftest2.$ac_objext"
8653 # Insert the option either (1) after the last *FLAGS variable, or
8654 # (2) before a word containing "conftest.", or (3) at the end.
8655 # Note that $ac_compile itself does not contain backslashes and begins
8656 # with a dollar sign (not a hyphen), so the echo should work correctly.
8657 lt_compile=`echo "$ac_compile" | $SED \
8658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8660 -e 's:$: $lt_compiler_flag:'`
8661 (eval echo "\"\$as_me:8661: $lt_compile\"" >&5)
8662 (eval "$lt_compile" 2>out/conftest.err)
8663 ac_status=$?
8664 cat out/conftest.err >&5
8665 echo "$as_me:8665: \$? = $ac_status" >&5
8666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8667 then
8668 # The compiler can only warn and ignore the option if not recognized
8669 # So say no if there are warnings
8670 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8673 lt_cv_prog_compiler_c_o=yes
8676 chmod u+w . 2>&5
8677 $RM conftest*
8678 # SGI C++ compiler will create directory out/ii_files/ for
8679 # template instantiation
8680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8681 $RM out/* && rmdir out
8682 cd ..
8683 $RM -r conftest
8684 $RM conftest*
8687 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8688 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8693 hard_links="nottested"
8694 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8695 # do not overwrite the value of need_locks provided by the user
8696 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8697 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8698 hard_links=yes
8699 $RM conftest*
8700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8701 touch conftest.a
8702 ln conftest.a conftest.b 2>&5 || hard_links=no
8703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8704 echo "$as_me:$LINENO: result: $hard_links" >&5
8705 echo "${ECHO_T}$hard_links" >&6
8706 if test "$hard_links" = no; then
8707 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8708 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8709 need_locks=warn
8711 else
8712 need_locks=no
8720 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8721 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8723 runpath_var=
8724 allow_undefined_flag=
8725 always_export_symbols=no
8726 archive_cmds=
8727 archive_expsym_cmds=
8728 compiler_needs_object=no
8729 enable_shared_with_static_runtimes=no
8730 export_dynamic_flag_spec=
8731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8732 hardcode_automatic=no
8733 hardcode_direct=no
8734 hardcode_direct_absolute=no
8735 hardcode_libdir_flag_spec=
8736 hardcode_libdir_flag_spec_ld=
8737 hardcode_libdir_separator=
8738 hardcode_minus_L=no
8739 hardcode_shlibpath_var=unsupported
8740 inherit_rpath=no
8741 link_all_deplibs=unknown
8742 module_cmds=
8743 module_expsym_cmds=
8744 old_archive_from_new_cmds=
8745 old_archive_from_expsyms_cmds=
8746 thread_safe_flag_spec=
8747 whole_archive_flag_spec=
8748 # include_expsyms should be a list of space-separated symbols to be *always*
8749 # included in the symbol list
8750 include_expsyms=
8751 # exclude_expsyms can be an extended regexp of symbols to exclude
8752 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8753 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8754 # as well as any symbol that contains `d'.
8755 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8757 # platforms (ab)use it in PIC code, but their linkers get confused if
8758 # the symbol is explicitly referenced. Since portable code cannot
8759 # rely on this symbol name, it's probably fine to never include it in
8760 # preloaded symbol tables.
8761 # Exclude shared library initialization/finalization symbols.
8762 extract_expsyms_cmds=
8764 case $host_os in
8765 cygwin* | mingw* | pw32* | cegcc*)
8766 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8767 # When not using gcc, we currently assume that we are using
8768 # Microsoft Visual C++.
8769 if test "$GCC" != yes; then
8770 with_gnu_ld=no
8773 interix*)
8774 # we just hope/assume this is gcc and not c89 (= MSVC++)
8775 with_gnu_ld=yes
8777 openbsd*)
8778 with_gnu_ld=no
8780 esac
8782 ld_shlibs=yes
8783 if test "$with_gnu_ld" = yes; then
8784 # If archive_cmds runs LD, not CC, wlarc should be empty
8785 wlarc='${wl}'
8787 # Set some defaults for GNU ld with shared library support. These
8788 # are reset later if shared libraries are not supported. Putting them
8789 # here allows them to be overridden if necessary.
8790 runpath_var=LD_RUN_PATH
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792 export_dynamic_flag_spec='${wl}--export-dynamic'
8793 # ancient GNU ld didn't support --whole-archive et. al.
8794 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8795 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8796 else
8797 whole_archive_flag_spec=
8799 supports_anon_versioning=no
8800 case `$LD -v 2>&1` in
8801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8804 *\ 2.11.*) ;; # other 2.11 versions
8805 *) supports_anon_versioning=yes ;;
8806 esac
8808 # See if GNU ld supports shared libraries.
8809 case $host_os in
8810 aix[3-9]*)
8811 # On AIX/PPC, the GNU linker is very broken
8812 if test "$host_cpu" != ia64; then
8813 ld_shlibs=no
8814 cat <<_LT_EOF 1>&2
8816 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8817 *** to be unable to reliably create shared libraries on AIX.
8818 *** Therefore, libtool is disabling shared libraries support. If you
8819 *** really care for shared libraries, you may want to modify your PATH
8820 *** so that a non-GNU linker is found, and then restart.
8822 _LT_EOF
8826 amigaos*)
8827 case $host_cpu in
8828 powerpc)
8829 # see comment about AmigaOS4 .so support
8830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831 archive_expsym_cmds=''
8833 m68k)
8834 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)'
8835 hardcode_libdir_flag_spec='-L$libdir'
8836 hardcode_minus_L=yes
8838 esac
8841 beos*)
8842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8843 allow_undefined_flag=unsupported
8844 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8845 # support --undefined. This deserves some investigation. FIXME
8846 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8847 else
8848 ld_shlibs=no
8852 cygwin* | mingw* | pw32* | cegcc*)
8853 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8854 # as there is no search path for DLLs.
8855 hardcode_libdir_flag_spec='-L$libdir'
8856 allow_undefined_flag=unsupported
8857 always_export_symbols=no
8858 enable_shared_with_static_runtimes=yes
8859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8861 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 # If the export-symbols file already is a .def file (1st line
8864 # is EXPORTS), use it as is; otherwise, prepend...
8865 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8866 cp $export_symbols $output_objdir/$soname.def;
8867 else
8868 echo EXPORTS > $output_objdir/$soname.def;
8869 cat $export_symbols >> $output_objdir/$soname.def;
8871 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 else
8873 ld_shlibs=no
8877 interix[3-9]*)
8878 hardcode_direct=no
8879 hardcode_shlibpath_var=no
8880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8881 export_dynamic_flag_spec='${wl}-E'
8882 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8883 # Instead, shared libraries are loaded at an image base (0x10000000 by
8884 # default) and relocated if they conflict, which is a slow very memory
8885 # consuming and fragmenting process. To avoid this, we pick a random,
8886 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8887 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8889 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'
8892 gnu* | linux* | tpf* | k*bsd*-gnu)
8893 tmp_diet=no
8894 if test "$host_os" = linux-dietlibc; then
8895 case $cc_basename in
8896 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8897 esac
8899 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8900 && test "$tmp_diet" = no
8901 then
8902 tmp_addflag=
8903 tmp_sharedflag='-shared'
8904 case $cc_basename,$host_cpu in
8905 pgcc*) # Portland Group C compiler
8906 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'
8907 tmp_addflag=' $pic_flag'
8909 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8910 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'
8911 tmp_addflag=' $pic_flag -Mnomain' ;;
8912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8913 tmp_addflag=' -i_dynamic' ;;
8914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8915 tmp_addflag=' -i_dynamic -nofor_main' ;;
8916 ifc* | ifort*) # Intel Fortran compiler
8917 tmp_addflag=' -nofor_main' ;;
8918 lf95*) # Lahey Fortran 8.1
8919 whole_archive_flag_spec=
8920 tmp_sharedflag='--shared' ;;
8921 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8922 tmp_sharedflag='-qmkshrobj'
8923 tmp_addflag= ;;
8924 esac
8925 case `$CC -V 2>&1 | sed 5q` in
8926 *Sun\ C*) # Sun C 5.9
8927 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'
8928 compiler_needs_object=yes
8929 tmp_sharedflag='-G' ;;
8930 *Sun\ F*) # Sun Fortran 8.3
8931 tmp_sharedflag='-G' ;;
8932 esac
8933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935 if test "x$supports_anon_versioning" = xyes; then
8936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8942 case $cc_basename in
8943 xlf*)
8944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8946 hardcode_libdir_flag_spec=
8947 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8948 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8956 esac
8957 else
8958 ld_shlibs=no
8962 netbsd*)
8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8965 wlarc=
8966 else
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8972 solaris*)
8973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8974 ld_shlibs=no
8975 cat <<_LT_EOF 1>&2
8977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8978 *** create shared libraries on Solaris systems. Therefore, libtool
8979 *** is disabling shared libraries support. We urge you to upgrade GNU
8980 *** binutils to release 2.9.1 or newer. Another option is to modify
8981 *** your PATH or compiler configuration so that the native linker is
8982 *** used, and then restart.
8984 _LT_EOF
8985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8994 case `$LD -v 2>&1` in
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8996 ld_shlibs=no
8997 cat <<_LT_EOF 1>&2
8999 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9000 *** reliably create shared libraries on SCO systems. Therefore, libtool
9001 *** is disabling shared libraries support. We urge you to upgrade GNU
9002 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9003 *** your PATH or compiler configuration so that the native linker is
9004 *** used, and then restart.
9006 _LT_EOF
9009 # For security reasons, it is highly recommended that you always
9010 # use absolute paths for naming shared libraries, and exclude the
9011 # DT_RUNPATH tag from executables and libraries. But doing so
9012 # requires that you compile everything twice, which is a pain.
9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9021 esac
9024 sunos4*)
9025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 wlarc=
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9039 esac
9041 if test "$ld_shlibs" = no; then
9042 runpath_var=
9043 hardcode_libdir_flag_spec=
9044 export_dynamic_flag_spec=
9045 whole_archive_flag_spec=
9047 else
9048 # PORTME fill in a description of your system's linker (not GNU ld)
9049 case $host_os in
9050 aix3*)
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=yes
9053 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'
9054 # Note: this linker hardcodes the directories in LIBPATH if there
9055 # are no directories specified by -L.
9056 hardcode_minus_L=yes
9057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9058 # Neither direct hardcoding nor static linking is supported with a
9059 # broken collect2.
9060 hardcode_direct=unsupported
9064 aix[4-9]*)
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9070 no_entry_flag=""
9071 else
9072 # If we're using GNU nm, then we don't want the "-C" option.
9073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9074 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9075 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'
9076 else
9077 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'
9079 aix_use_runtimelinking=no
9081 # Test if we are trying to use run time linking or normal
9082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9083 # need to do runtime linking.
9084 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9085 for ld_flag in $LDFLAGS; do
9086 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9087 aix_use_runtimelinking=yes
9088 break
9090 done
9092 esac
9094 exp_sym_flag='-bexport'
9095 no_entry_flag='-bnoentry'
9098 # When large executables or shared objects are built, AIX ld can
9099 # have problems creating the table of contents. If linking a library
9100 # or program results in "error TOC overflow" add -mminimal-toc to
9101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9104 archive_cmds=''
9105 hardcode_direct=yes
9106 hardcode_direct_absolute=yes
9107 hardcode_libdir_separator=':'
9108 link_all_deplibs=yes
9109 file_list_spec='${wl}-f,'
9111 if test "$GCC" = yes; then
9112 case $host_os in aix4.[012]|aix4.[012].*)
9113 # We only want to do this on AIX 4.2 and lower, the check
9114 # below for broken collect2 doesn't work under 4.3+
9115 collect2name=`${CC} -print-prog-name=collect2`
9116 if test -f "$collect2name" &&
9117 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9118 then
9119 # We have reworked collect2
9121 else
9122 # We have old collect2
9123 hardcode_direct=unsupported
9124 # It fails to find uninstalled libraries when the uninstalled
9125 # path is not listed in the libpath. Setting hardcode_minus_L
9126 # to unsupported forces relinking
9127 hardcode_minus_L=yes
9128 hardcode_libdir_flag_spec='-L$libdir'
9129 hardcode_libdir_separator=
9132 esac
9133 shared_flag='-shared'
9134 if test "$aix_use_runtimelinking" = yes; then
9135 shared_flag="$shared_flag "'${wl}-G'
9137 else
9138 # not using gcc
9139 if test "$host_cpu" = ia64; then
9140 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9141 # chokes on -Wl,-G. The following line is correct:
9142 shared_flag='-G'
9143 else
9144 if test "$aix_use_runtimelinking" = yes; then
9145 shared_flag='${wl}-G'
9146 else
9147 shared_flag='${wl}-bM:SRE'
9152 export_dynamic_flag_spec='${wl}-bexpall'
9153 # It seems that -bexpall does not export symbols beginning with
9154 # underscore (_), so it is better to generate a list of symbols to export.
9155 always_export_symbols=yes
9156 if test "$aix_use_runtimelinking" = yes; then
9157 # Warning - without using the other runtime loading flags (-brtl),
9158 # -berok will link without error, but may produce a broken library.
9159 allow_undefined_flag='-berok'
9160 # Determine the default libpath from the value encoded in an
9161 # empty executable.
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h. */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9170 main ()
9174 return 0;
9176 _ACEOF
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9200 lt_aix_libpath_sed='
9201 /Import File Strings/,/^$/ {
9202 /^0/ {
9203 s/^0 *\(.*\)$/\1/
9207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208 # Check for a 64-bit object if we didn't find anything.
9209 if test -z "$aix_libpath"; then
9210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9217 rm -f conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9221 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9222 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"
9223 else
9224 if test "$host_cpu" = ia64; then
9225 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9226 allow_undefined_flag="-z nodefs"
9227 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"
9228 else
9229 # Determine the default libpath from the value encoded in an
9230 # empty executable.
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9239 main ()
9243 return 0;
9245 _ACEOF
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9269 lt_aix_libpath_sed='
9270 /Import File Strings/,/^$/ {
9271 /^0/ {
9272 s/^0 *\(.*\)$/\1/
9276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277 # Check for a 64-bit object if we didn't find anything.
9278 if test -z "$aix_libpath"; then
9279 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9281 else
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9286 rm -f conftest.err conftest.$ac_objext \
9287 conftest$ac_exeext conftest.$ac_ext
9288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9290 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9291 # Warning - without using the other run time loading flags,
9292 # -berok will link without error, but may produce a broken library.
9293 no_undefined_flag=' ${wl}-bernotok'
9294 allow_undefined_flag=' ${wl}-berok'
9295 # Exported symbols can be pulled into shared objects from archives
9296 whole_archive_flag_spec='$convenience'
9297 archive_cmds_need_lc=yes
9298 # This is similar to how AIX traditionally builds its shared libraries.
9299 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'
9304 amigaos*)
9305 case $host_cpu in
9306 powerpc)
9307 # see comment about AmigaOS4 .so support
9308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 archive_expsym_cmds=''
9311 m68k)
9312 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)'
9313 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_minus_L=yes
9316 esac
9319 bsdi[45]*)
9320 export_dynamic_flag_spec=-rdynamic
9323 cygwin* | mingw* | pw32* | cegcc*)
9324 # When not using gcc, we currently assume that we are using
9325 # Microsoft Visual C++.
9326 # hardcode_libdir_flag_spec is actually meaningless, as there is
9327 # no search path for DLLs.
9328 hardcode_libdir_flag_spec=' '
9329 allow_undefined_flag=unsupported
9330 # Tell ltmain to make .lib files, not .a files.
9331 libext=lib
9332 # Tell ltmain to make .dll files, not .so files.
9333 shrext_cmds=".dll"
9334 # FIXME: Setting linknames here is a bad hack.
9335 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9336 # The linker will automatically build a .lib file if we build a DLL.
9337 old_archive_from_new_cmds='true'
9338 # FIXME: Should let the user specify the lib program.
9339 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9340 fix_srcfile_path='`cygpath -w "$srcfile"`'
9341 enable_shared_with_static_runtimes=yes
9344 darwin* | rhapsody*)
9347 archive_cmds_need_lc=no
9348 hardcode_direct=no
9349 hardcode_automatic=yes
9350 hardcode_shlibpath_var=unsupported
9351 whole_archive_flag_spec=''
9352 link_all_deplibs=yes
9353 allow_undefined_flag="$_lt_dar_allow_undefined"
9354 case $cc_basename in
9355 ifort*) _lt_dar_can_shared=yes ;;
9356 *) _lt_dar_can_shared=$GCC ;;
9357 esac
9358 if test "$_lt_dar_can_shared" = "yes"; then
9359 output_verbose_link_cmd=echo
9360 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9361 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9362 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9363 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9365 else
9366 ld_shlibs=no
9371 dgux*)
9372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_libdir_flag_spec='-L$libdir'
9374 hardcode_shlibpath_var=no
9377 freebsd1*)
9378 ld_shlibs=no
9381 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9382 # support. Future versions do this automatically, but an explicit c++rt0.o
9383 # does not break anything, and helps significantly (at the cost of a little
9384 # extra space).
9385 freebsd2.2*)
9386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9387 hardcode_libdir_flag_spec='-R$libdir'
9388 hardcode_direct=yes
9389 hardcode_shlibpath_var=no
9392 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9393 freebsd2*)
9394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9395 hardcode_direct=yes
9396 hardcode_minus_L=yes
9397 hardcode_shlibpath_var=no
9400 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9401 freebsd* | dragonfly*)
9402 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9403 hardcode_libdir_flag_spec='-R$libdir'
9404 hardcode_direct=yes
9405 hardcode_shlibpath_var=no
9408 hpux9*)
9409 if test "$GCC" = yes; then
9410 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'
9411 else
9412 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'
9414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9415 hardcode_libdir_separator=:
9416 hardcode_direct=yes
9418 # hardcode_minus_L: Not really in the search PATH,
9419 # but as the default location of the library.
9420 hardcode_minus_L=yes
9421 export_dynamic_flag_spec='${wl}-E'
9424 hpux10*)
9425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9426 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9427 else
9428 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9430 if test "$with_gnu_ld" = no; then
9431 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9432 hardcode_libdir_flag_spec_ld='+b $libdir'
9433 hardcode_libdir_separator=:
9434 hardcode_direct=yes
9435 hardcode_direct_absolute=yes
9436 export_dynamic_flag_spec='${wl}-E'
9437 # hardcode_minus_L: Not really in the search PATH,
9438 # but as the default location of the library.
9439 hardcode_minus_L=yes
9443 hpux11*)
9444 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9445 case $host_cpu in
9446 hppa*64*)
9447 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9449 ia64*)
9450 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455 esac
9456 else
9457 case $host_cpu in
9458 hppa*64*)
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9461 ia64*)
9462 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9467 esac
9469 if test "$with_gnu_ld" = no; then
9470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9471 hardcode_libdir_separator=:
9473 case $host_cpu in
9474 hppa*64*|ia64*)
9475 hardcode_direct=no
9476 hardcode_shlibpath_var=no
9479 hardcode_direct=yes
9480 hardcode_direct_absolute=yes
9481 export_dynamic_flag_spec='${wl}-E'
9483 # hardcode_minus_L: Not really in the search PATH,
9484 # but as the default location of the library.
9485 hardcode_minus_L=yes
9487 esac
9491 irix5* | irix6* | nonstopux*)
9492 if test "$GCC" = yes; then
9493 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'
9494 # Try to use the -exported_symbol ld option, if it does not
9495 # work, assume that -exports_file does not work either and
9496 # implicitly export all symbols.
9497 save_LDFLAGS="$LDFLAGS"
9498 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9499 cat >conftest.$ac_ext <<_ACEOF
9500 int foo(void) {}
9501 _ACEOF
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_c_werror_flag"
9512 || test ! -s conftest.err'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try='test -s conftest$ac_exeext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 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'
9526 else
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9531 rm -f conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 LDFLAGS="$save_LDFLAGS"
9534 else
9535 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'
9536 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'
9538 archive_cmds_need_lc='no'
9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9540 hardcode_libdir_separator=:
9541 inherit_rpath=yes
9542 link_all_deplibs=yes
9545 netbsd*)
9546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9548 else
9549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9551 hardcode_libdir_flag_spec='-R$libdir'
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9556 newsos6)
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_direct=yes
9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560 hardcode_libdir_separator=:
9561 hardcode_shlibpath_var=no
9564 *nto* | *qnx*)
9567 openbsd*)
9568 if test -f /usr/libexec/ld.so; then
9569 hardcode_direct=yes
9570 hardcode_shlibpath_var=no
9571 hardcode_direct_absolute=yes
9572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9574 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9576 export_dynamic_flag_spec='${wl}-E'
9577 else
9578 case $host_os in
9579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9581 hardcode_libdir_flag_spec='-R$libdir'
9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587 esac
9589 else
9590 ld_shlibs=no
9594 os2*)
9595 hardcode_libdir_flag_spec='-L$libdir'
9596 hardcode_minus_L=yes
9597 allow_undefined_flag=unsupported
9598 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'
9599 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9602 osf3*)
9603 if test "$GCC" = yes; then
9604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9605 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'
9606 else
9607 allow_undefined_flag=' -expect_unresolved \*'
9608 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'
9610 archive_cmds_need_lc='no'
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 hardcode_libdir_separator=:
9615 osf4* | osf5*) # as osf3* with the addition of -msym flag
9616 if test "$GCC" = yes; then
9617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9618 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'
9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620 else
9621 allow_undefined_flag=' -expect_unresolved \*'
9622 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'
9623 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~
9624 $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'
9626 # Both c and cxx compiler support -rpath directly
9627 hardcode_libdir_flag_spec='-rpath $libdir'
9629 archive_cmds_need_lc='no'
9630 hardcode_libdir_separator=:
9633 solaris*)
9634 no_undefined_flag=' -z defs'
9635 if test "$GCC" = yes; then
9636 wlarc='${wl}'
9637 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9639 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9640 else
9641 case `$CC -V 2>&1` in
9642 *"Compilers 5.0"*)
9643 wlarc=''
9644 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9649 wlarc='${wl}'
9650 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9652 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9654 esac
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_shlibpath_var=no
9658 case $host_os in
9659 solaris2.[0-5] | solaris2.[0-5].*) ;;
9661 # The compiler driver will combine and reorder linker options,
9662 # but understands `-z linker_flag'. GCC discards it without `$wl',
9663 # but is careful enough not to reorder.
9664 # Supported since Solaris 2.6 (maybe 2.5.1?)
9665 if test "$GCC" = yes; then
9666 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9667 else
9668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9671 esac
9672 link_all_deplibs=yes
9675 sunos4*)
9676 if test "x$host_vendor" = xsequent; then
9677 # Use $CC to link under sequent, because it throws in some extra .o
9678 # files that make .init and .fini sections work.
9679 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9680 else
9681 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_direct=yes
9685 hardcode_minus_L=yes
9686 hardcode_shlibpath_var=no
9689 sysv4)
9690 case $host_vendor in
9691 sni)
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_direct=yes # is this really true???
9695 siemens)
9696 ## LD is ld it makes a PLAMLIB
9697 ## CC just makes a GrossModule.
9698 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9699 reload_cmds='$CC -r -o $output$reload_objs'
9700 hardcode_direct=no
9702 motorola)
9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9706 esac
9707 runpath_var='LD_RUN_PATH'
9708 hardcode_shlibpath_var=no
9711 sysv4.3*)
9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_shlibpath_var=no
9714 export_dynamic_flag_spec='-Bexport'
9717 sysv4*MP*)
9718 if test -d /usr/nec; then
9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_shlibpath_var=no
9721 runpath_var=LD_RUN_PATH
9722 hardcode_runpath_var=yes
9723 ld_shlibs=yes
9727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9728 no_undefined_flag='${wl}-z,text'
9729 archive_cmds_need_lc=no
9730 hardcode_shlibpath_var=no
9731 runpath_var='LD_RUN_PATH'
9733 if test "$GCC" = yes; then
9734 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 sysv5* | sco3.2v5* | sco5v6*)
9743 # Note: We can NOT use -z defs as we might desire, because we do not
9744 # link with -lc, and that would cause any symbols used from libc to
9745 # always be unresolved, which means just about no library would
9746 # ever link correctly. If we're not using GNU ld we use -z text
9747 # though, which does catch some bad symbols but isn't as heavy-handed
9748 # as -z defs.
9749 no_undefined_flag='${wl}-z,text'
9750 allow_undefined_flag='${wl}-z,nodefs'
9751 archive_cmds_need_lc=no
9752 hardcode_shlibpath_var=no
9753 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9754 hardcode_libdir_separator=':'
9755 link_all_deplibs=yes
9756 export_dynamic_flag_spec='${wl}-Bexport'
9757 runpath_var='LD_RUN_PATH'
9759 if test "$GCC" = yes; then
9760 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 else
9763 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 uts4*)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_libdir_flag_spec='-L$libdir'
9771 hardcode_shlibpath_var=no
9775 ld_shlibs=no
9777 esac
9779 if test x$host_vendor = xsni; then
9780 case $host in
9781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9782 export_dynamic_flag_spec='${wl}-Blargedynsym'
9784 esac
9788 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9789 echo "${ECHO_T}$ld_shlibs" >&6
9790 test "$ld_shlibs" = no && can_build_shared=no
9792 with_gnu_ld=$with_gnu_ld
9809 # Do we need to explicitly link libc?
9811 case "x$archive_cmds_need_lc" in
9812 x|xyes)
9813 # Assume -lc should be added
9814 archive_cmds_need_lc=yes
9816 if test "$enable_shared" = yes && test "$GCC" = yes; then
9817 case $archive_cmds in
9818 *'~'*)
9819 # FIXME: we may have to deal with multi-command sequences.
9821 '$CC '*)
9822 # Test whether the compiler implicitly links with -lc since on some
9823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9824 # to ld, don't add -lc before -lgcc.
9825 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9827 $RM conftest*
9828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9831 (eval $ac_compile) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } 2>conftest.err; then
9835 soname=conftest
9836 lib=conftest
9837 libobjs=conftest.$ac_objext
9838 deplibs=
9839 wl=$lt_prog_compiler_wl
9840 pic_flag=$lt_prog_compiler_pic
9841 compiler_flags=-v
9842 linker_flags=-v
9843 verstring=
9844 output_objdir=.
9845 libname=conftest
9846 lt_save_allow_undefined_flag=$allow_undefined_flag
9847 allow_undefined_flag=
9848 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9849 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }
9853 then
9854 archive_cmds_need_lc=no
9855 else
9856 archive_cmds_need_lc=yes
9858 allow_undefined_flag=$lt_save_allow_undefined_flag
9859 else
9860 cat conftest.err 1>&5
9862 $RM conftest*
9863 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9864 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9866 esac
9869 esac
10027 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10028 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10030 if test "$GCC" = yes; then
10031 case $host_os in
10032 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10033 *) lt_awk_arg="/^libraries:/" ;;
10034 esac
10035 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10036 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10037 # if the path contains ";" then we assume it to be the separator
10038 # otherwise default to the standard path separator (i.e. ":") - it is
10039 # assumed that no part of a normal pathname contains ";" but that should
10040 # okay in the real world where ";" in dirpaths is itself problematic.
10041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10042 else
10043 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10045 # Ok, now we have the path, separated by spaces, we can step through it
10046 # and add multilib dir if necessary.
10047 lt_tmp_lt_search_path_spec=
10048 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10049 for lt_sys_path in $lt_search_path_spec; do
10050 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10051 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10052 else
10053 test -d "$lt_sys_path" && \
10054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10056 done
10057 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10058 BEGIN {RS=" "; FS="/|\n";} {
10059 lt_foo="";
10060 lt_count=0;
10061 for (lt_i = NF; lt_i > 0; lt_i--) {
10062 if ($lt_i != "" && $lt_i != ".") {
10063 if ($lt_i == "..") {
10064 lt_count++;
10065 } else {
10066 if (lt_count == 0) {
10067 lt_foo="/" $lt_i lt_foo;
10068 } else {
10069 lt_count--;
10074 if (lt_foo != "") { lt_freq[lt_foo]++; }
10075 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10077 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10078 else
10079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10081 library_names_spec=
10082 libname_spec='lib$name'
10083 soname_spec=
10084 shrext_cmds=".so"
10085 postinstall_cmds=
10086 postuninstall_cmds=
10087 finish_cmds=
10088 finish_eval=
10089 shlibpath_var=
10090 shlibpath_overrides_runpath=unknown
10091 version_type=none
10092 dynamic_linker="$host_os ld.so"
10093 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10094 need_lib_prefix=unknown
10095 hardcode_into_libs=no
10097 # when you set need_version to no, make sure it does not cause -set_version
10098 # flags to be left without arguments
10099 need_version=unknown
10101 case $host_os in
10102 aix3*)
10103 version_type=linux
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10105 shlibpath_var=LIBPATH
10107 # AIX 3 has no versioning support, so we append a major version to the name.
10108 soname_spec='${libname}${release}${shared_ext}$major'
10111 aix[4-9]*)
10112 version_type=linux
10113 need_lib_prefix=no
10114 need_version=no
10115 hardcode_into_libs=yes
10116 if test "$host_cpu" = ia64; then
10117 # AIX 5 supports IA64
10118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 else
10121 # With GCC up to 2.95.x, collect2 would create an import file
10122 # for dependence libraries. The import file would start with
10123 # the line `#! .'. This would cause the generated library to
10124 # depend on `.', always an invalid library. This was fixed in
10125 # development snapshots of GCC prior to 3.0.
10126 case $host_os in
10127 aix4 | aix4.[01] | aix4.[01].*)
10128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10129 echo ' yes '
10130 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10132 else
10133 can_build_shared=no
10136 esac
10137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10138 # soname into executable. Probably we can add versioning support to
10139 # collect2, so additional links can be useful in future.
10140 if test "$aix_use_runtimelinking" = yes; then
10141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10142 # instead of lib<name>.a to let people know that these are not
10143 # typical AIX shared libraries.
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 else
10146 # We preserve .a as extension for shared libraries through AIX4.2
10147 # and later when we are not doing run time linking.
10148 library_names_spec='${libname}${release}.a $libname.a'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10151 shlibpath_var=LIBPATH
10155 amigaos*)
10156 case $host_cpu in
10157 powerpc)
10158 # Since July 2007 AmigaOS4 officially supports .so libraries.
10159 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 m68k)
10163 library_names_spec='$libname.ixlibrary $libname.a'
10164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10165 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'
10167 esac
10170 beos*)
10171 library_names_spec='${libname}${shared_ext}'
10172 dynamic_linker="$host_os ld.so"
10173 shlibpath_var=LIBRARY_PATH
10176 bsdi[45]*)
10177 version_type=linux
10178 need_version=no
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10185 # the default ld.so.conf also contains /usr/contrib/lib and
10186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10187 # libtool to hard-code these into programs
10190 cygwin* | mingw* | pw32* | cegcc*)
10191 version_type=windows
10192 shrext_cmds=".dll"
10193 need_version=no
10194 need_lib_prefix=no
10196 case $GCC,$host_os in
10197 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10198 library_names_spec='$libname.dll.a'
10199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10200 postinstall_cmds='base_file=`basename \${file}`~
10201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10202 dldir=$destdir/`dirname \$dlpath`~
10203 test -d \$dldir || mkdir -p \$dldir~
10204 $install_prog $dir/$dlname \$dldir/$dlname~
10205 chmod a+x \$dldir/$dlname~
10206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10207 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10210 dlpath=$dir/\$dldll~
10211 $RM \$dlpath'
10212 shlibpath_overrides_runpath=yes
10214 case $host_os in
10215 cygwin*)
10216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10218 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10220 mingw* | cegcc*)
10221 # MinGW DLLs use traditional 'lib' prefix
10222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10223 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10224 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10225 # It is most probably a Windows format PATH printed by
10226 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10227 # path with ; separators, and with drive letters. We can handle the
10228 # drive letters (cygwin fileutils understands them), so leave them,
10229 # especially as we might pass files found there to a mingw objdump,
10230 # which wouldn't understand a cygwinified path. Ahh.
10231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10232 else
10233 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10236 pw32*)
10237 # pw32 DLLs use 'pw' prefix rather than 'lib'
10238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10240 esac
10244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10246 esac
10247 dynamic_linker='Win32 ld.exe'
10248 # FIXME: first we should search . and the directory the executable is in
10249 shlibpath_var=PATH
10252 darwin* | rhapsody*)
10253 dynamic_linker="$host_os dyld"
10254 version_type=darwin
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10258 soname_spec='${libname}${release}${major}$shared_ext'
10259 shlibpath_overrides_runpath=yes
10260 shlibpath_var=DYLD_LIBRARY_PATH
10261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10267 dgux*)
10268 version_type=linux
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 shlibpath_var=LD_LIBRARY_PATH
10276 freebsd1*)
10277 dynamic_linker=no
10280 freebsd* | dragonfly*)
10281 # DragonFly does not have aout. When/if they implement a new
10282 # versioning mechanism, adjust this.
10283 if test -x /usr/bin/objformat; then
10284 objformat=`/usr/bin/objformat`
10285 else
10286 case $host_os in
10287 freebsd[123]*) objformat=aout ;;
10288 *) objformat=elf ;;
10289 esac
10291 version_type=freebsd-$objformat
10292 case $version_type in
10293 freebsd-elf*)
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10295 need_version=no
10296 need_lib_prefix=no
10298 freebsd-*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10300 need_version=yes
10302 esac
10303 shlibpath_var=LD_LIBRARY_PATH
10304 case $host_os in
10305 freebsd2*)
10306 shlibpath_overrides_runpath=yes
10308 freebsd3.[01]* | freebsdelf3.[01]*)
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10314 shlibpath_overrides_runpath=no
10315 hardcode_into_libs=yes
10317 *) # from 4.6 on, and DragonFly
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10321 esac
10324 gnu*)
10325 version_type=linux
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 hardcode_into_libs=yes
10334 hpux9* | hpux10* | hpux11*)
10335 # Give a soname corresponding to the major version so that dld.sl refuses to
10336 # link against other versions.
10337 version_type=sunos
10338 need_lib_prefix=no
10339 need_version=no
10340 case $host_cpu in
10341 ia64*)
10342 shrext_cmds='.so'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.so"
10345 shlibpath_var=LD_LIBRARY_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 if test "X$HPUX_IA64_MODE" = X32; then
10350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10351 else
10352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10356 hppa*64*)
10357 shrext_cmds='.sl'
10358 hardcode_into_libs=yes
10359 dynamic_linker="$host_os dld.sl"
10360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10368 shrext_cmds='.sl'
10369 dynamic_linker="$host_os dld.sl"
10370 shlibpath_var=SHLIB_PATH
10371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10375 esac
10376 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10377 postinstall_cmds='chmod 555 $lib'
10380 interix[3-9]*)
10381 version_type=linux
10382 need_lib_prefix=no
10383 need_version=no
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=no
10389 hardcode_into_libs=yes
10392 irix5* | irix6* | nonstopux*)
10393 case $host_os in
10394 nonstopux*) version_type=nonstopux ;;
10396 if test "$lt_cv_prog_gnu_ld" = yes; then
10397 version_type=linux
10398 else
10399 version_type=irix
10400 fi ;;
10401 esac
10402 need_lib_prefix=no
10403 need_version=no
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10406 case $host_os in
10407 irix5* | nonstopux*)
10408 libsuff= shlibsuff=
10411 case $LD in # libtool.m4 will add one of these switches to LD
10412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10413 libsuff= shlibsuff= libmagic=32-bit;;
10414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10415 libsuff=32 shlibsuff=N32 libmagic=N32;;
10416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10418 *) libsuff= shlibsuff= libmagic=never-match;;
10419 esac
10421 esac
10422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10423 shlibpath_overrides_runpath=no
10424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10426 hardcode_into_libs=yes
10429 # No shared lib support for Linux oldld, aout, or coff.
10430 linux*oldld* | linux*aout* | linux*coff*)
10431 dynamic_linker=no
10434 # This must be Linux ELF.
10435 linux* | k*bsd*-gnu)
10436 version_type=linux
10437 need_lib_prefix=no
10438 need_version=no
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=no
10444 # Some binutils ld are patched to set DT_RUNPATH
10445 save_LDFLAGS=$LDFLAGS
10446 save_libdir=$libdir
10447 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10448 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10449 cat >conftest.$ac_ext <<_ACEOF
10450 /* confdefs.h. */
10451 _ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10457 main ()
10461 return 0;
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10487 shlibpath_overrides_runpath=yes
10490 else
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10495 rm -f conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LDFLAGS=$save_LDFLAGS
10498 libdir=$save_libdir
10500 # This implies no fast_install, which is unacceptable.
10501 # Some rework will be needed to allow for fast_install
10502 # before this can be enabled.
10503 hardcode_into_libs=yes
10505 # Append ld.so.conf contents to the search path
10506 if test -f /etc/ld.so.conf; then
10507 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10508 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10511 # We used to test for /lib/ld.so.1 and disable shared libraries on
10512 # powerpc, because MkLinux only supported shared libraries with the
10513 # GNU dynamic linker. Since this was broken with cross compilers,
10514 # most powerpc-linux boxes support dynamic linking these days and
10515 # people can always --disable-shared, the test was removed, and we
10516 # assume the GNU/Linux dynamic linker is in use.
10517 dynamic_linker='GNU/Linux ld.so'
10520 netbsd*)
10521 version_type=sunos
10522 need_lib_prefix=no
10523 need_version=no
10524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10527 dynamic_linker='NetBSD (a.out) ld.so'
10528 else
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 dynamic_linker='NetBSD ld.elf_so'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=yes
10535 hardcode_into_libs=yes
10538 newsos6)
10539 version_type=linux
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 shlibpath_overrides_runpath=yes
10545 *nto* | *qnx*)
10546 version_type=qnx
10547 need_lib_prefix=no
10548 need_version=no
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 soname_spec='${libname}${release}${shared_ext}$major'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 shlibpath_overrides_runpath=no
10553 hardcode_into_libs=yes
10554 dynamic_linker='ldqnx.so'
10557 openbsd*)
10558 version_type=sunos
10559 sys_lib_dlsearch_path_spec="/usr/lib"
10560 need_lib_prefix=no
10561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10562 case $host_os in
10563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10564 *) need_version=no ;;
10565 esac
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10570 case $host_os in
10571 openbsd2.[89] | openbsd2.[89].*)
10572 shlibpath_overrides_runpath=no
10575 shlibpath_overrides_runpath=yes
10577 esac
10578 else
10579 shlibpath_overrides_runpath=yes
10583 os2*)
10584 libname_spec='$name'
10585 shrext_cmds=".dll"
10586 need_lib_prefix=no
10587 library_names_spec='$libname${shared_ext} $libname.a'
10588 dynamic_linker='OS/2 ld.exe'
10589 shlibpath_var=LIBPATH
10592 osf3* | osf4* | osf5*)
10593 version_type=osf
10594 need_lib_prefix=no
10595 need_version=no
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10603 rdos*)
10604 dynamic_linker=no
10607 solaris*)
10608 version_type=linux
10609 need_lib_prefix=no
10610 need_version=no
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 soname_spec='${libname}${release}${shared_ext}$major'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 shlibpath_overrides_runpath=yes
10615 hardcode_into_libs=yes
10616 # ldd complains unless libraries are executable
10617 postinstall_cmds='chmod +x $lib'
10620 sunos4*)
10621 version_type=sunos
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10623 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes
10626 if test "$with_gnu_ld" = yes; then
10627 need_lib_prefix=no
10629 need_version=yes
10632 sysv4 | sysv4.3*)
10633 version_type=linux
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 case $host_vendor in
10638 sni)
10639 shlibpath_overrides_runpath=no
10640 need_lib_prefix=no
10641 runpath_var=LD_RUN_PATH
10643 siemens)
10644 need_lib_prefix=no
10646 motorola)
10647 need_lib_prefix=no
10648 need_version=no
10649 shlibpath_overrides_runpath=no
10650 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10652 esac
10655 sysv4*MP*)
10656 if test -d /usr/nec ;then
10657 version_type=linux
10658 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10659 soname_spec='$libname${shared_ext}.$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10665 version_type=freebsd-elf
10666 need_lib_prefix=no
10667 need_version=no
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 shlibpath_overrides_runpath=yes
10672 hardcode_into_libs=yes
10673 if test "$with_gnu_ld" = yes; then
10674 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10675 else
10676 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10677 case $host_os in
10678 sco3.2v5*)
10679 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10681 esac
10683 sys_lib_dlsearch_path_spec='/usr/lib'
10686 tpf*)
10687 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10688 version_type=linux
10689 need_lib_prefix=no
10690 need_version=no
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 shlibpath_overrides_runpath=no
10694 hardcode_into_libs=yes
10697 uts4*)
10698 version_type=linux
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10701 shlibpath_var=LD_LIBRARY_PATH
10705 dynamic_linker=no
10707 esac
10708 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10709 echo "${ECHO_T}$dynamic_linker" >&6
10710 test "$dynamic_linker" = no && can_build_shared=no
10712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10713 if test "$GCC" = yes; then
10714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10717 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10718 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10720 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10721 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10810 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10811 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10812 hardcode_action=
10813 if test -n "$hardcode_libdir_flag_spec" ||
10814 test -n "$runpath_var" ||
10815 test "X$hardcode_automatic" = "Xyes" ; then
10817 # We can hardcode non-existent directories.
10818 if test "$hardcode_direct" != no &&
10819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10820 # have to relink, otherwise we might link with an installed library
10821 # when we should be linking with a yet-to-be-installed one
10822 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10823 test "$hardcode_minus_L" != no; then
10824 # Linking always hardcodes the temporary library directory.
10825 hardcode_action=relink
10826 else
10827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10828 hardcode_action=immediate
10830 else
10831 # We cannot hardcode anything, or else we can only hardcode existing
10832 # directories.
10833 hardcode_action=unsupported
10835 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10836 echo "${ECHO_T}$hardcode_action" >&6
10838 if test "$hardcode_action" = relink ||
10839 test "$inherit_rpath" = yes; then
10840 # Fast installation is not supported
10841 enable_fast_install=no
10842 elif test "$shlibpath_overrides_runpath" = yes ||
10843 test "$enable_shared" = no; then
10844 # Fast installation is not necessary
10845 enable_fast_install=needless
10853 if test "x$enable_dlopen" != xyes; then
10854 enable_dlopen=unknown
10855 enable_dlopen_self=unknown
10856 enable_dlopen_self_static=unknown
10857 else
10858 lt_cv_dlopen=no
10859 lt_cv_dlopen_libs=
10861 case $host_os in
10862 beos*)
10863 lt_cv_dlopen="load_add_on"
10864 lt_cv_dlopen_libs=
10865 lt_cv_dlopen_self=yes
10868 mingw* | pw32* | cegcc*)
10869 lt_cv_dlopen="LoadLibrary"
10870 lt_cv_dlopen_libs=
10873 cygwin*)
10874 lt_cv_dlopen="dlopen"
10875 lt_cv_dlopen_libs=
10878 darwin*)
10879 # if libdl is installed we need to link against it
10880 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10881 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885 ac_check_lib_save_LIBS=$LIBS
10886 LIBS="-ldl $LIBS"
10887 cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h. */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10894 /* Override any gcc2 internal prototype to avoid an error. */
10895 #ifdef __cplusplus
10896 extern "C"
10897 #endif
10898 /* We use char because int might match the return type of a gcc2
10899 builtin and then its argument prototype would still apply. */
10900 char dlopen ();
10902 main ()
10904 dlopen ();
10906 return 0;
10908 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest$ac_exeext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 ac_cv_lib_dl_dlopen=yes
10932 else
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10936 ac_cv_lib_dl_dlopen=no
10938 rm -f conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940 LIBS=$ac_check_lib_save_LIBS
10942 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10943 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10944 if test $ac_cv_lib_dl_dlopen = yes; then
10945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10946 else
10948 lt_cv_dlopen="dyld"
10949 lt_cv_dlopen_libs=
10950 lt_cv_dlopen_self=yes
10957 echo "$as_me:$LINENO: checking for shl_load" >&5
10958 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10959 if test "${ac_cv_func_shl_load+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10970 #define shl_load innocuous_shl_load
10972 /* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char shl_load (); below.
10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975 <limits.h> exists even on freestanding compilers. */
10977 #ifdef __STDC__
10978 # include <limits.h>
10979 #else
10980 # include <assert.h>
10981 #endif
10983 #undef shl_load
10985 /* Override any gcc2 internal prototype to avoid an error. */
10986 #ifdef __cplusplus
10987 extern "C"
10989 #endif
10990 /* We use char because int might match the return type of a gcc2
10991 builtin and then its argument prototype would still apply. */
10992 char shl_load ();
10993 /* The GNU C library defines this for functions which it implements
10994 to always fail with ENOSYS. Some functions are actually named
10995 something starting with __ and the normal name is an alias. */
10996 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10997 choke me
10998 #else
10999 char (*f) () = shl_load;
11000 #endif
11001 #ifdef __cplusplus
11003 #endif
11006 main ()
11008 return f != shl_load;
11010 return 0;
11012 _ACEOF
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest$ac_exeext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 ac_cv_func_shl_load=yes
11036 else
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_cv_func_shl_load=no
11042 rm -f conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11045 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11046 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11047 if test $ac_cv_func_shl_load = yes; then
11048 lt_cv_dlopen="shl_load"
11049 else
11050 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11051 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11052 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055 ac_check_lib_save_LIBS=$LIBS
11056 LIBS="-ldld $LIBS"
11057 cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h. */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11064 /* Override any gcc2 internal prototype to avoid an error. */
11065 #ifdef __cplusplus
11066 extern "C"
11067 #endif
11068 /* We use char because int might match the return type of a gcc2
11069 builtin and then its argument prototype would still apply. */
11070 char shl_load ();
11072 main ()
11074 shl_load ();
11076 return 0;
11078 _ACEOF
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag"
11089 || test ! -s conftest.err'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try='test -s conftest$ac_exeext'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 ac_cv_lib_dld_shl_load=yes
11102 else
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106 ac_cv_lib_dld_shl_load=no
11108 rm -f conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110 LIBS=$ac_check_lib_save_LIBS
11112 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11113 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11114 if test $ac_cv_lib_dld_shl_load = yes; then
11115 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11116 else
11117 echo "$as_me:$LINENO: checking for dlopen" >&5
11118 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11119 if test "${ac_cv_func_dlopen+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122 cat >conftest.$ac_ext <<_ACEOF
11123 /* confdefs.h. */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11128 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11130 #define dlopen innocuous_dlopen
11132 /* System header to define __stub macros and hopefully few prototypes,
11133 which can conflict with char dlopen (); below.
11134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11135 <limits.h> exists even on freestanding compilers. */
11137 #ifdef __STDC__
11138 # include <limits.h>
11139 #else
11140 # include <assert.h>
11141 #endif
11143 #undef dlopen
11145 /* Override any gcc2 internal prototype to avoid an error. */
11146 #ifdef __cplusplus
11147 extern "C"
11149 #endif
11150 /* We use char because int might match the return type of a gcc2
11151 builtin and then its argument prototype would still apply. */
11152 char dlopen ();
11153 /* The GNU C library defines this for functions which it implements
11154 to always fail with ENOSYS. Some functions are actually named
11155 something starting with __ and the normal name is an alias. */
11156 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11157 choke me
11158 #else
11159 char (*f) () = dlopen;
11160 #endif
11161 #ifdef __cplusplus
11163 #endif
11166 main ()
11168 return f != dlopen;
11170 return 0;
11172 _ACEOF
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11175 (eval $ac_link) 2>conftest.er1
11176 ac_status=$?
11177 grep -v '^ *+' conftest.er1 >conftest.err
11178 rm -f conftest.er1
11179 cat conftest.err >&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try='test -z "$ac_c_werror_flag"
11183 || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_func_dlopen=yes
11196 else
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 ac_cv_func_dlopen=no
11202 rm -f conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11205 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11206 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11207 if test $ac_cv_func_dlopen = yes; then
11208 lt_cv_dlopen="dlopen"
11209 else
11210 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11211 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11212 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 ac_check_lib_save_LIBS=$LIBS
11216 LIBS="-ldl $LIBS"
11217 cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h. */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11224 /* Override any gcc2 internal prototype to avoid an error. */
11225 #ifdef __cplusplus
11226 extern "C"
11227 #endif
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11230 char dlopen ();
11232 main ()
11234 dlopen ();
11236 return 0;
11238 _ACEOF
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241 (eval $ac_link) 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_cv_lib_dl_dlopen=yes
11262 else
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11266 ac_cv_lib_dl_dlopen=no
11268 rm -f conftest.err conftest.$ac_objext \
11269 conftest$ac_exeext conftest.$ac_ext
11270 LIBS=$ac_check_lib_save_LIBS
11272 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11273 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11274 if test $ac_cv_lib_dl_dlopen = yes; then
11275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11276 else
11277 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11278 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11279 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 ac_check_lib_save_LIBS=$LIBS
11283 LIBS="-lsvld $LIBS"
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11291 /* Override any gcc2 internal prototype to avoid an error. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 /* We use char because int might match the return type of a gcc2
11296 builtin and then its argument prototype would still apply. */
11297 char dlopen ();
11299 main ()
11301 dlopen ();
11303 return 0;
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_cv_lib_svld_dlopen=yes
11329 else
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11333 ac_cv_lib_svld_dlopen=no
11335 rm -f conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 LIBS=$ac_check_lib_save_LIBS
11339 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11340 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11341 if test $ac_cv_lib_svld_dlopen = yes; then
11342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11343 else
11344 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11345 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11346 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 ac_check_lib_save_LIBS=$LIBS
11350 LIBS="-ldld $LIBS"
11351 cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h. */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11358 /* Override any gcc2 internal prototype to avoid an error. */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11364 char dld_link ();
11366 main ()
11368 dld_link ();
11370 return 0;
11372 _ACEOF
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_lib_dld_dld_link=yes
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ac_cv_lib_dld_dld_link=no
11402 rm -f conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404 LIBS=$ac_check_lib_save_LIBS
11406 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11407 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11408 if test $ac_cv_lib_dld_dld_link = yes; then
11409 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11428 esac
11430 if test "x$lt_cv_dlopen" != xno; then
11431 enable_dlopen=yes
11432 else
11433 enable_dlopen=no
11436 case $lt_cv_dlopen in
11437 dlopen)
11438 save_CPPFLAGS="$CPPFLAGS"
11439 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11441 save_LDFLAGS="$LDFLAGS"
11442 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11444 save_LIBS="$LIBS"
11445 LIBS="$lt_cv_dlopen_libs $LIBS"
11447 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11448 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11449 if test "${lt_cv_dlopen_self+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452 if test "$cross_compiling" = yes; then :
11453 lt_cv_dlopen_self=cross
11454 else
11455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11456 lt_status=$lt_dlunknown
11457 cat > conftest.$ac_ext <<_LT_EOF
11458 #line 11458 "configure"
11459 #include "confdefs.h"
11461 #if HAVE_DLFCN_H
11462 #include <dlfcn.h>
11463 #endif
11465 #include <stdio.h>
11467 #ifdef RTLD_GLOBAL
11468 # define LT_DLGLOBAL RTLD_GLOBAL
11469 #else
11470 # ifdef DL_GLOBAL
11471 # define LT_DLGLOBAL DL_GLOBAL
11472 # else
11473 # define LT_DLGLOBAL 0
11474 # endif
11475 #endif
11477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11478 find out it does not work in some platform. */
11479 #ifndef LT_DLLAZY_OR_NOW
11480 # ifdef RTLD_LAZY
11481 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11482 # else
11483 # ifdef DL_LAZY
11484 # define LT_DLLAZY_OR_NOW DL_LAZY
11485 # else
11486 # ifdef RTLD_NOW
11487 # define LT_DLLAZY_OR_NOW RTLD_NOW
11488 # else
11489 # ifdef DL_NOW
11490 # define LT_DLLAZY_OR_NOW DL_NOW
11491 # else
11492 # define LT_DLLAZY_OR_NOW 0
11493 # endif
11494 # endif
11495 # endif
11496 # endif
11497 #endif
11499 void fnord() { int i=42;}
11500 int main ()
11502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11503 int status = $lt_dlunknown;
11505 if (self)
11507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11509 /* dlclose (self); */
11511 else
11512 puts (dlerror ());
11514 return status;
11516 _LT_EOF
11517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11518 (eval $ac_link) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11522 (./conftest; exit; ) >&5 2>/dev/null
11523 lt_status=$?
11524 case x$lt_status in
11525 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11526 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11527 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11528 esac
11529 else :
11530 # compilation failed
11531 lt_cv_dlopen_self=no
11534 rm -fr conftest*
11538 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11539 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11541 if test "x$lt_cv_dlopen_self" = xyes; then
11542 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11543 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11544 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11545 if test "${lt_cv_dlopen_self_static+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548 if test "$cross_compiling" = yes; then :
11549 lt_cv_dlopen_self_static=cross
11550 else
11551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11552 lt_status=$lt_dlunknown
11553 cat > conftest.$ac_ext <<_LT_EOF
11554 #line 11554 "configure"
11555 #include "confdefs.h"
11557 #if HAVE_DLFCN_H
11558 #include <dlfcn.h>
11559 #endif
11561 #include <stdio.h>
11563 #ifdef RTLD_GLOBAL
11564 # define LT_DLGLOBAL RTLD_GLOBAL
11565 #else
11566 # ifdef DL_GLOBAL
11567 # define LT_DLGLOBAL DL_GLOBAL
11568 # else
11569 # define LT_DLGLOBAL 0
11570 # endif
11571 #endif
11573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11574 find out it does not work in some platform. */
11575 #ifndef LT_DLLAZY_OR_NOW
11576 # ifdef RTLD_LAZY
11577 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11578 # else
11579 # ifdef DL_LAZY
11580 # define LT_DLLAZY_OR_NOW DL_LAZY
11581 # else
11582 # ifdef RTLD_NOW
11583 # define LT_DLLAZY_OR_NOW RTLD_NOW
11584 # else
11585 # ifdef DL_NOW
11586 # define LT_DLLAZY_OR_NOW DL_NOW
11587 # else
11588 # define LT_DLLAZY_OR_NOW 0
11589 # endif
11590 # endif
11591 # endif
11592 # endif
11593 #endif
11595 void fnord() { int i=42;}
11596 int main ()
11598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11599 int status = $lt_dlunknown;
11601 if (self)
11603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11605 /* dlclose (self); */
11607 else
11608 puts (dlerror ());
11610 return status;
11612 _LT_EOF
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11618 (./conftest; exit; ) >&5 2>/dev/null
11619 lt_status=$?
11620 case x$lt_status in
11621 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11622 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11623 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11624 esac
11625 else :
11626 # compilation failed
11627 lt_cv_dlopen_self_static=no
11630 rm -fr conftest*
11634 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11635 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11638 CPPFLAGS="$save_CPPFLAGS"
11639 LDFLAGS="$save_LDFLAGS"
11640 LIBS="$save_LIBS"
11642 esac
11644 case $lt_cv_dlopen_self in
11645 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11646 *) enable_dlopen_self=unknown ;;
11647 esac
11649 case $lt_cv_dlopen_self_static in
11650 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11651 *) enable_dlopen_self_static=unknown ;;
11652 esac
11671 striplib=
11672 old_striplib=
11673 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11674 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11675 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11677 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11678 echo "$as_me:$LINENO: result: yes" >&5
11679 echo "${ECHO_T}yes" >&6
11680 else
11681 # FIXME - insert some real tests, host_os isn't really good enough
11682 case $host_os in
11683 darwin*)
11684 if test -n "$STRIP" ; then
11685 striplib="$STRIP -x"
11686 old_striplib="$STRIP -S"
11687 echo "$as_me:$LINENO: result: yes" >&5
11688 echo "${ECHO_T}yes" >&6
11689 else
11690 echo "$as_me:$LINENO: result: no" >&5
11691 echo "${ECHO_T}no" >&6
11695 echo "$as_me:$LINENO: result: no" >&5
11696 echo "${ECHO_T}no" >&6
11698 esac
11712 # Report which library types will actually be built
11713 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11714 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11715 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11716 echo "${ECHO_T}$can_build_shared" >&6
11718 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11719 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11720 test "$can_build_shared" = "no" && enable_shared=no
11722 # On AIX, shared libraries and static libraries use the same namespace, and
11723 # are all built from PIC.
11724 case $host_os in
11725 aix3*)
11726 test "$enable_shared" = yes && enable_static=no
11727 if test -n "$RANLIB"; then
11728 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11729 postinstall_cmds='$RANLIB $lib'
11733 aix[4-9]*)
11734 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11735 test "$enable_shared" = yes && enable_static=no
11738 esac
11739 echo "$as_me:$LINENO: result: $enable_shared" >&5
11740 echo "${ECHO_T}$enable_shared" >&6
11742 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11743 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11744 # Make sure either enable_shared or enable_static is yes.
11745 test "$enable_shared" = yes || enable_static=yes
11746 echo "$as_me:$LINENO: result: $enable_static" >&5
11747 echo "${ECHO_T}$enable_static" >&6
11753 ac_ext=c
11754 ac_cpp='$CPP $CPPFLAGS'
11755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11759 CC="$lt_save_CC"
11773 ac_config_commands="$ac_config_commands libtool"
11778 # Only expand once:
11782 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11783 if test "${enable_64_bit_bfd+set}" = set; then
11784 enableval="$enable_64_bit_bfd"
11785 case "${enableval}" in
11786 yes) want64=true ;;
11787 no) want64=false ;;
11788 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11789 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11790 { (exit 1); exit 1; }; } ;;
11791 esac
11792 else
11793 want64=false
11795 # Check whether --enable-targets or --disable-targets was given.
11796 if test "${enable_targets+set}" = set; then
11797 enableval="$enable_targets"
11798 case "${enableval}" in
11799 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11800 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11801 { (exit 1); exit 1; }; }
11803 no) enable_targets= ;;
11804 *) enable_targets=$enableval ;;
11805 esac
11807 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11808 if test "${enable_commonbfdlib+set}" = set; then
11809 enableval="$enable_commonbfdlib"
11810 case "${enableval}" in
11811 yes) commonbfdlib=true ;;
11812 no) commonbfdlib=false ;;
11813 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11814 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11815 { (exit 1); exit 1; }; } ;;
11816 esac
11819 # Check whether --with-mmap or --without-mmap was given.
11820 if test "${with_mmap+set}" = set; then
11821 withval="$with_mmap"
11822 case "${withval}" in
11823 yes) want_mmap=true ;;
11824 no) want_mmap=false ;;
11825 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11826 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11827 { (exit 1); exit 1; }; } ;;
11828 esac
11829 else
11830 want_mmap=false
11832 # Check whether --enable-secureplt or --disable-secureplt was given.
11833 if test "${enable_secureplt+set}" = set; then
11834 enableval="$enable_secureplt"
11835 case "${enableval}" in
11836 yes) use_secureplt=true ;;
11837 no) use_secureplt=false ;;
11838 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11839 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11840 { (exit 1); exit 1; }; } ;;
11841 esac
11842 else
11843 use_secureplt=false
11844 fi; if test $use_secureplt = true; then
11846 cat >>confdefs.h <<\_ACEOF
11847 #define USE_SECUREPLT 1
11848 _ACEOF
11852 DEBUGDIR=${libdir}/debug
11854 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11855 if test "${with_separate_debug_dir+set}" = set; then
11856 withval="$with_separate_debug_dir"
11857 DEBUGDIR="${withval}"
11861 # Check to see if we should allow the generation of
11862 # symbols with the ELF standard's STT_COMMON type.
11863 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11864 if test "${enable_elf_stt_common+set}" = set; then
11865 enableval="$enable_elf_stt_common"
11866 case "${enableval}" in
11867 yes) want_elf_stt_common=true ;;
11868 no) want_elf_stt_common=false ;;
11869 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11870 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11871 { (exit 1); exit 1; }; } ;;
11872 esac
11873 else
11874 # We have to choose a default behaviour. For native builds we could
11875 # test whether the loader supports the STT_COMMON type, but that would
11876 # mean that built binaries could not be exported to older systems where
11877 # the loader does not support it. So by default we always choose to
11878 # disable this feature.
11879 want_elf_stt_common=false
11880 fi; if test $want_elf_stt_common = true; then
11882 cat >>confdefs.h <<\_ACEOF
11883 #define USE_STT_COMMON 1
11884 _ACEOF
11890 # Check whether --with-pkgversion or --without-pkgversion was given.
11891 if test "${with_pkgversion+set}" = set; then
11892 withval="$with_pkgversion"
11893 case "$withval" in
11894 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11895 echo "$as_me: error: package version not specified" >&2;}
11896 { (exit 1); exit 1; }; } ;;
11897 no) PKGVERSION= ;;
11898 *) PKGVERSION="($withval) " ;;
11899 esac
11900 else
11901 PKGVERSION="(GNU Binutils) "
11908 # Check whether --with-bugurl or --without-bugurl was given.
11909 if test "${with_bugurl+set}" = set; then
11910 withval="$with_bugurl"
11911 case "$withval" in
11912 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11913 echo "$as_me: error: bug URL not specified" >&2;}
11914 { (exit 1); exit 1; }; } ;;
11915 no) BUGURL=
11917 *) BUGURL="$withval"
11919 esac
11920 else
11921 BUGURL="http://www.sourceware.org/bugzilla/"
11924 case ${BUGURL} in
11926 REPORT_BUGS_TO=
11927 REPORT_BUGS_TEXI=
11930 REPORT_BUGS_TO="<$BUGURL>"
11931 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11933 esac;
11939 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11941 # Check whether --enable-werror or --disable-werror was given.
11942 if test "${enable_werror+set}" = set; then
11943 enableval="$enable_werror"
11944 case "${enableval}" in
11945 yes | y) ERROR_ON_WARNING="yes" ;;
11946 no | n) ERROR_ON_WARNING="no" ;;
11947 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11948 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11949 { (exit 1); exit 1; }; } ;;
11950 esac
11953 # Enable -Wno-format by default when using gcc on mingw
11954 case "${host}" in
11955 *-*-mingw32*)
11956 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11957 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11960 *) ;;
11961 esac
11963 # Enable -Werror by default when using gcc
11964 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11965 ERROR_ON_WARNING=yes
11968 NO_WERROR=
11969 if test "${ERROR_ON_WARNING}" = yes ; then
11970 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11971 NO_WERROR="-Wno-error"
11974 if test "${GCC}" = yes ; then
11975 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11978 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11979 if test "${enable_build_warnings+set}" = set; then
11980 enableval="$enable_build_warnings"
11981 case "${enableval}" in
11982 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11983 no) if test "${GCC}" = yes ; then
11984 WARN_CFLAGS="-w"
11985 fi;;
11986 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11987 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11988 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11989 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11990 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11991 esac
11994 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11995 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12002 ac_config_headers="$ac_config_headers config.h:config.in"
12005 if test -z "$target" ; then
12006 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
12007 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
12008 { (exit 1); exit 1; }; }
12011 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12012 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12013 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12014 if test "${enable_maintainer_mode+set}" = set; then
12015 enableval="$enable_maintainer_mode"
12016 USE_MAINTAINER_MODE=$enableval
12017 else
12018 USE_MAINTAINER_MODE=no
12020 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12021 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12024 if test $USE_MAINTAINER_MODE = yes; then
12025 MAINTAINER_MODE_TRUE=
12026 MAINTAINER_MODE_FALSE='#'
12027 else
12028 MAINTAINER_MODE_TRUE='#'
12029 MAINTAINER_MODE_FALSE=
12032 MAINT=$MAINTAINER_MODE_TRUE
12037 if false; then
12038 GENINSRC_NEVER_TRUE=
12039 GENINSRC_NEVER_FALSE='#'
12040 else
12041 GENINSRC_NEVER_TRUE='#'
12042 GENINSRC_NEVER_FALSE=
12045 case ${build_alias} in
12046 "") build_noncanonical=${build} ;;
12047 *) build_noncanonical=${build_alias} ;;
12048 esac
12050 case ${host_alias} in
12051 "") host_noncanonical=${build_noncanonical} ;;
12052 *) host_noncanonical=${host_alias} ;;
12053 esac
12055 case ${target_alias} in
12056 "") target_noncanonical=${host_noncanonical} ;;
12057 *) target_noncanonical=${target_alias} ;;
12058 esac
12060 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12061 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12062 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12063 if test "${enable_install_libbfd+set}" = set; then
12064 enableval="$enable_install_libbfd"
12065 install_libbfd_p=$enableval
12066 else
12067 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12068 install_libbfd_p=yes
12069 else
12070 install_libbfd_p=no
12073 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12074 echo "${ECHO_T}$install_libbfd_p" >&6
12077 if test $install_libbfd_p = yes; then
12078 INSTALL_LIBBFD_TRUE=
12079 INSTALL_LIBBFD_FALSE='#'
12080 else
12081 INSTALL_LIBBFD_TRUE='#'
12082 INSTALL_LIBBFD_FALSE=
12085 # Need _noncanonical variables for this.
12090 # libbfd.a is a host library containing target dependent code
12091 bfdlibdir='$(libdir)'
12092 bfdincludedir='$(includedir)'
12093 if test "${host}" != "${target}"; then
12094 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12095 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12103 host64=false
12104 target64=false
12105 bfd_default_target_size=32
12107 # host stuff:
12109 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
12110 # If we haven't got the data from the intl directory,
12111 # assume NLS is disabled.
12112 USE_NLS=no
12113 LIBINTL=
12114 LIBINTL_DEP=
12115 INCINTL=
12116 XGETTEXT=
12117 GMSGFMT=
12118 POSUB=
12120 if test -f ../intl/config.intl; then
12121 . ../intl/config.intl
12123 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12124 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12125 if test x"$USE_NLS" != xyes; then
12126 echo "$as_me:$LINENO: result: no" >&5
12127 echo "${ECHO_T}no" >&6
12128 else
12129 echo "$as_me:$LINENO: result: yes" >&5
12130 echo "${ECHO_T}yes" >&6
12132 cat >>confdefs.h <<\_ACEOF
12133 #define ENABLE_NLS 1
12134 _ACEOF
12137 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12138 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12139 # Look for .po and .gmo files in the source directory.
12140 CATALOGS=
12141 XLINGUAS=
12142 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12143 # If there aren't any .gmo files the shell will give us the
12144 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12145 # weeded out.
12146 case "$cat" in *\**)
12147 continue;;
12148 esac
12149 # The quadruple backslash is collapsed to a double backslash
12150 # by the backticks, then collapsed again by the double quotes,
12151 # leaving us with one backslash in the sed expression (right
12152 # before the dot that mustn't act as a wildcard).
12153 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12154 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12155 # The user is allowed to set LINGUAS to a list of languages to
12156 # install catalogs for. If it's empty that means "all of them."
12157 if test "x$LINGUAS" = x; then
12158 CATALOGS="$CATALOGS $cat"
12159 XLINGUAS="$XLINGUAS $lang"
12160 else
12161 case "$LINGUAS" in *$lang*)
12162 CATALOGS="$CATALOGS $cat"
12163 XLINGUAS="$XLINGUAS $lang"
12165 esac
12167 done
12168 LINGUAS="$XLINGUAS"
12169 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12170 echo "${ECHO_T}$LINGUAS" >&6
12173 DATADIRNAME=share
12175 INSTOBJEXT=.mo
12177 GENCAT=gencat
12179 CATOBJEXT=.gmo
12183 MKINSTALLDIRS=
12184 if test -n "$ac_aux_dir"; then
12185 case "$ac_aux_dir" in
12186 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12187 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12188 esac
12190 if test -z "$MKINSTALLDIRS"; then
12191 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12196 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12197 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12198 # Check whether --enable-nls or --disable-nls was given.
12199 if test "${enable_nls+set}" = set; then
12200 enableval="$enable_nls"
12201 USE_NLS=$enableval
12202 else
12203 USE_NLS=yes
12205 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12206 echo "${ECHO_T}$USE_NLS" >&6
12213 # Prepare PATH_SEPARATOR.
12214 # The user is always right.
12215 if test "${PATH_SEPARATOR+set}" != set; then
12216 echo "#! /bin/sh" >conf$$.sh
12217 echo "exit 0" >>conf$$.sh
12218 chmod +x conf$$.sh
12219 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12220 PATH_SEPARATOR=';'
12221 else
12222 PATH_SEPARATOR=:
12224 rm -f conf$$.sh
12227 # Find out how to test for executable files. Don't use a zero-byte file,
12228 # as systems may use methods other than mode bits to determine executability.
12229 cat >conf$$.file <<_ASEOF
12230 #! /bin/sh
12231 exit 0
12232 _ASEOF
12233 chmod +x conf$$.file
12234 if test -x conf$$.file >/dev/null 2>&1; then
12235 ac_executable_p="test -x"
12236 else
12237 ac_executable_p="test -f"
12239 rm -f conf$$.file
12241 # Extract the first word of "msgfmt", so it can be a program name with args.
12242 set dummy msgfmt; ac_word=$2
12243 echo "$as_me:$LINENO: checking for $ac_word" >&5
12244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12245 if test "${ac_cv_path_MSGFMT+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248 case "$MSGFMT" in
12249 [\\/]* | ?:[\\/]*)
12250 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12253 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12254 for ac_dir in $PATH; do
12255 IFS="$ac_save_IFS"
12256 test -z "$ac_dir" && ac_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12259 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12260 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12261 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12262 break 2
12265 done
12266 done
12267 IFS="$ac_save_IFS"
12268 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12270 esac
12272 MSGFMT="$ac_cv_path_MSGFMT"
12273 if test "$MSGFMT" != ":"; then
12274 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12275 echo "${ECHO_T}$MSGFMT" >&6
12276 else
12277 echo "$as_me:$LINENO: result: no" >&5
12278 echo "${ECHO_T}no" >&6
12281 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12282 set dummy gmsgfmt; ac_word=$2
12283 echo "$as_me:$LINENO: checking for $ac_word" >&5
12284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12285 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 case $GMSGFMT in
12289 [\\/]* | ?:[\\/]*)
12290 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12296 IFS=$as_save_IFS
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12300 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 break 2
12304 done
12305 done
12307 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12309 esac
12311 GMSGFMT=$ac_cv_path_GMSGFMT
12313 if test -n "$GMSGFMT"; then
12314 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12315 echo "${ECHO_T}$GMSGFMT" >&6
12316 else
12317 echo "$as_me:$LINENO: result: no" >&5
12318 echo "${ECHO_T}no" >&6
12323 # Prepare PATH_SEPARATOR.
12324 # The user is always right.
12325 if test "${PATH_SEPARATOR+set}" != set; then
12326 echo "#! /bin/sh" >conf$$.sh
12327 echo "exit 0" >>conf$$.sh
12328 chmod +x conf$$.sh
12329 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12330 PATH_SEPARATOR=';'
12331 else
12332 PATH_SEPARATOR=:
12334 rm -f conf$$.sh
12337 # Find out how to test for executable files. Don't use a zero-byte file,
12338 # as systems may use methods other than mode bits to determine executability.
12339 cat >conf$$.file <<_ASEOF
12340 #! /bin/sh
12341 exit 0
12342 _ASEOF
12343 chmod +x conf$$.file
12344 if test -x conf$$.file >/dev/null 2>&1; then
12345 ac_executable_p="test -x"
12346 else
12347 ac_executable_p="test -f"
12349 rm -f conf$$.file
12351 # Extract the first word of "xgettext", so it can be a program name with args.
12352 set dummy xgettext; ac_word=$2
12353 echo "$as_me:$LINENO: checking for $ac_word" >&5
12354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12355 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358 case "$XGETTEXT" in
12359 [\\/]* | ?:[\\/]*)
12360 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12363 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12364 for ac_dir in $PATH; do
12365 IFS="$ac_save_IFS"
12366 test -z "$ac_dir" && ac_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12369 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12370 (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
12371 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12372 break 2
12375 done
12376 done
12377 IFS="$ac_save_IFS"
12378 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12380 esac
12382 XGETTEXT="$ac_cv_path_XGETTEXT"
12383 if test "$XGETTEXT" != ":"; then
12384 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12385 echo "${ECHO_T}$XGETTEXT" >&6
12386 else
12387 echo "$as_me:$LINENO: result: no" >&5
12388 echo "${ECHO_T}no" >&6
12391 rm -f messages.po
12394 # Prepare PATH_SEPARATOR.
12395 # The user is always right.
12396 if test "${PATH_SEPARATOR+set}" != set; then
12397 echo "#! /bin/sh" >conf$$.sh
12398 echo "exit 0" >>conf$$.sh
12399 chmod +x conf$$.sh
12400 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12401 PATH_SEPARATOR=';'
12402 else
12403 PATH_SEPARATOR=:
12405 rm -f conf$$.sh
12408 # Find out how to test for executable files. Don't use a zero-byte file,
12409 # as systems may use methods other than mode bits to determine executability.
12410 cat >conf$$.file <<_ASEOF
12411 #! /bin/sh
12412 exit 0
12413 _ASEOF
12414 chmod +x conf$$.file
12415 if test -x conf$$.file >/dev/null 2>&1; then
12416 ac_executable_p="test -x"
12417 else
12418 ac_executable_p="test -f"
12420 rm -f conf$$.file
12422 # Extract the first word of "msgmerge", so it can be a program name with args.
12423 set dummy msgmerge; ac_word=$2
12424 echo "$as_me:$LINENO: checking for $ac_word" >&5
12425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12426 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429 case "$MSGMERGE" in
12430 [\\/]* | ?:[\\/]*)
12431 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12434 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12435 for ac_dir in $PATH; do
12436 IFS="$ac_save_IFS"
12437 test -z "$ac_dir" && ac_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12440 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12441 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12442 break 2
12445 done
12446 done
12447 IFS="$ac_save_IFS"
12448 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12450 esac
12452 MSGMERGE="$ac_cv_path_MSGMERGE"
12453 if test "$MSGMERGE" != ":"; then
12454 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12455 echo "${ECHO_T}$MSGMERGE" >&6
12456 else
12457 echo "$as_me:$LINENO: result: no" >&5
12458 echo "${ECHO_T}no" >&6
12462 if test "$GMSGFMT" != ":"; then
12463 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12464 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12466 else
12467 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12468 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12469 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12470 GMSGFMT=":"
12474 if test "$XGETTEXT" != ":"; then
12475 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12476 (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
12478 else
12479 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12480 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12481 XGETTEXT=":"
12483 rm -f messages.po
12486 ac_config_commands="$ac_config_commands default-1"
12490 # Permit host specific settings.
12491 . ${srcdir}/configure.host
12494 # Find a good install program. We prefer a C program (faster),
12495 # so one script is as good as another. But avoid the broken or
12496 # incompatible versions:
12497 # SysV /etc/install, /usr/sbin/install
12498 # SunOS /usr/etc/install
12499 # IRIX /sbin/install
12500 # AIX /bin/install
12501 # AmigaOS /C/install, which installs bootblocks on floppy discs
12502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12505 # OS/2's system install, which has a completely different semantic
12506 # ./install, which can be erroneously created by make from ./install.sh.
12507 # Reject install programs that cannot install multiple files.
12508 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12509 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12510 if test -z "$INSTALL"; then
12511 if test "${ac_cv_path_install+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 # Account for people who put trailing slashes in PATH elements.
12520 case $as_dir/ in
12521 ./ | .// | /cC/* | \
12522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12524 /usr/ucb/* ) ;;
12526 # OSF1 and SCO ODT 3.0 have their own names for install.
12527 # Don't use installbsd from OSF since it installs stuff as root
12528 # by default.
12529 for ac_prog in ginstall scoinst install; do
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12532 if test $ac_prog = install &&
12533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12534 # AIX install. It has an incompatible calling convention.
12536 elif test $ac_prog = install &&
12537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12538 # program-specific install script used by HP pwplus--don't use.
12540 else
12541 rm -rf conftest.one conftest.two conftest.dir
12542 echo one > conftest.one
12543 echo two > conftest.two
12544 mkdir conftest.dir
12545 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12546 test -s conftest.one && test -s conftest.two &&
12547 test -s conftest.dir/conftest.one &&
12548 test -s conftest.dir/conftest.two
12549 then
12550 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12551 break 3
12555 done
12556 done
12558 esac
12559 done
12561 rm -rf conftest.one conftest.two conftest.dir
12564 if test "${ac_cv_path_install+set}" = set; then
12565 INSTALL=$ac_cv_path_install
12566 else
12567 # As a last resort, use the slow shell script. Don't cache a
12568 # value for INSTALL within a source directory, because that will
12569 # break other packages using the cache if that directory is
12570 # removed, or if the value is a relative name.
12571 INSTALL=$ac_install_sh
12574 echo "$as_me:$LINENO: result: $INSTALL" >&5
12575 echo "${ECHO_T}$INSTALL" >&6
12577 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12578 # It thinks the first close brace ends the variable substitution.
12579 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12581 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12583 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12586 BFD_HOST_64BIT_LONG=0
12587 BFD_HOST_64BIT_LONG_LONG=0
12588 BFD_HOST_64_BIT_DEFINED=0
12589 BFD_HOST_64_BIT=
12590 BFD_HOST_U_64_BIT=
12591 BFD_HOSTPTR_T="unsigned long"
12593 echo "$as_me:$LINENO: checking for long long" >&5
12594 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12595 if test "${ac_cv_type_long_long+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 else
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 $ac_includes_default
12606 main ()
12608 if ((long long *) 0)
12609 return 0;
12610 if (sizeof (long long))
12611 return 0;
12613 return 0;
12615 _ACEOF
12616 rm -f conftest.$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_cv_type_long_long=yes
12639 else
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 ac_cv_type_long_long=no
12645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12647 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12648 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12650 echo "$as_me:$LINENO: checking size of long long" >&5
12651 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12652 if test "${ac_cv_sizeof_long_long+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655 if test "$ac_cv_type_long_long" = yes; then
12656 # The cast to unsigned long works around a bug in the HP C Compiler
12657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12659 # This bug is HP SR number 8606223364.
12660 if test "$cross_compiling" = yes; then
12661 # Depending upon the size, compute the lo and hi bounds.
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h. */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 $ac_includes_default
12670 main ()
12672 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12673 test_array [0] = 0
12676 return 0;
12678 _ACEOF
12679 rm -f conftest.$ac_objext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681 (eval $ac_compile) 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag"
12689 || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest.$ac_objext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_lo=0 ac_mid=0
12702 while :; do
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 $ac_includes_default
12711 main ()
12713 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12714 test_array [0] = 0
12717 return 0;
12719 _ACEOF
12720 rm -f conftest.$ac_objext
12721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12722 (eval $ac_compile) 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag"
12730 || test ! -s conftest.err'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest.$ac_objext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_hi=$ac_mid; break
12743 else
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_lo=`expr $ac_mid + 1`
12748 if test $ac_lo -le $ac_mid; then
12749 ac_lo= ac_hi=
12750 break
12752 ac_mid=`expr 2 '*' $ac_mid + 1`
12754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12755 done
12756 else
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 $ac_includes_default
12768 main ()
12770 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12771 test_array [0] = 0
12774 return 0;
12776 _ACEOF
12777 rm -f conftest.$ac_objext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779 (eval $ac_compile) 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag"
12787 || test ! -s conftest.err'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; } &&
12793 { ac_try='test -s conftest.$ac_objext'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 ac_hi=-1 ac_mid=-1
12800 while :; do
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h. */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 $ac_includes_default
12809 main ()
12811 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12812 test_array [0] = 0
12815 return 0;
12817 _ACEOF
12818 rm -f conftest.$ac_objext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_c_werror_flag"
12828 || test ! -s conftest.err'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest.$ac_objext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_lo=$ac_mid; break
12841 else
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 ac_hi=`expr '(' $ac_mid ')' - 1`
12846 if test $ac_mid -le $ac_hi; then
12847 ac_lo= ac_hi=
12848 break
12850 ac_mid=`expr 2 '*' $ac_mid`
12852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12853 done
12854 else
12855 echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12858 ac_lo= ac_hi=
12860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12863 # Binary search between lo and hi bounds.
12864 while test "x$ac_lo" != "x$ac_hi"; do
12865 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h. */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 $ac_includes_default
12874 main ()
12876 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12877 test_array [0] = 0
12880 return 0;
12882 _ACEOF
12883 rm -f conftest.$ac_objext
12884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12885 (eval $ac_compile) 2>conftest.er1
12886 ac_status=$?
12887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
12892 { ac_try='test -z "$ac_c_werror_flag"
12893 || test ! -s conftest.err'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; } &&
12899 { ac_try='test -s conftest.$ac_objext'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 ac_hi=$ac_mid
12906 else
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 ac_lo=`expr '(' $ac_mid ')' + 1`
12912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12913 done
12914 case $ac_lo in
12915 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12916 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12917 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12918 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12919 See \`config.log' for more details." >&5
12920 echo "$as_me: error: cannot compute sizeof (long long), 77
12921 See \`config.log' for more details." >&2;}
12922 { (exit 1); exit 1; }; }; } ;;
12923 esac
12924 else
12925 if test "$cross_compiling" = yes; then
12926 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12927 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12928 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12929 See \`config.log' for more details." >&5
12930 echo "$as_me: error: cannot run test program while cross compiling
12931 See \`config.log' for more details." >&2;}
12932 { (exit 1); exit 1; }; }; }
12933 else
12934 cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h. */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 $ac_includes_default
12941 long longval () { return (long) (sizeof (long long)); }
12942 unsigned long ulongval () { return (long) (sizeof (long long)); }
12943 #include <stdio.h>
12944 #include <stdlib.h>
12946 main ()
12949 FILE *f = fopen ("conftest.val", "w");
12950 if (! f)
12951 exit (1);
12952 if (((long) (sizeof (long long))) < 0)
12954 long i = longval ();
12955 if (i != ((long) (sizeof (long long))))
12956 exit (1);
12957 fprintf (f, "%ld\n", i);
12959 else
12961 unsigned long i = ulongval ();
12962 if (i != ((long) (sizeof (long long))))
12963 exit (1);
12964 fprintf (f, "%lu\n", i);
12966 exit (ferror (f) || fclose (f) != 0);
12969 return 0;
12971 _ACEOF
12972 rm -f conftest$ac_exeext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974 (eval $ac_link) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_sizeof_long_long=`cat conftest.val`
12984 else
12985 echo "$as_me: program exited with status $ac_status" >&5
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 ( exit $ac_status )
12990 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12991 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12992 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12993 See \`config.log' for more details." >&5
12994 echo "$as_me: error: cannot compute sizeof (long long), 77
12995 See \`config.log' for more details." >&2;}
12996 { (exit 1); exit 1; }; }; }
12998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13001 rm -f conftest.val
13002 else
13003 ac_cv_sizeof_long_long=0
13006 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13007 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13008 cat >>confdefs.h <<_ACEOF
13009 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13010 _ACEOF
13013 echo "$as_me:$LINENO: checking for void *" >&5
13014 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13015 if test "${ac_cv_type_void_p+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 else
13018 cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h. */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 $ac_includes_default
13026 main ()
13028 if ((void * *) 0)
13029 return 0;
13030 if (sizeof (void *))
13031 return 0;
13033 return 0;
13035 _ACEOF
13036 rm -f conftest.$ac_objext
13037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13038 (eval $ac_compile) 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag"
13046 || test ! -s conftest.err'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest.$ac_objext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_type_void_p=yes
13059 else
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13063 ac_cv_type_void_p=no
13065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13067 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13068 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13070 echo "$as_me:$LINENO: checking size of void *" >&5
13071 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13072 if test "${ac_cv_sizeof_void_p+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075 if test "$ac_cv_type_void_p" = yes; then
13076 # The cast to unsigned long works around a bug in the HP C Compiler
13077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13079 # This bug is HP SR number 8606223364.
13080 if test "$cross_compiling" = yes; then
13081 # Depending upon the size, compute the lo and hi bounds.
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h. */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 $ac_includes_default
13090 main ()
13092 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13093 test_array [0] = 0
13096 return 0;
13098 _ACEOF
13099 rm -f conftest.$ac_objext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>conftest.er1
13102 ac_status=$?
13103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest.$ac_objext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_lo=0 ac_mid=0
13122 while :; do
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h. */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129 $ac_includes_default
13131 main ()
13133 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13134 test_array [0] = 0
13137 return 0;
13139 _ACEOF
13140 rm -f conftest.$ac_objext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13142 (eval $ac_compile) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -z "$ac_c_werror_flag"
13150 || test ! -s conftest.err'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest.$ac_objext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_hi=$ac_mid; break
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_lo=`expr $ac_mid + 1`
13168 if test $ac_lo -le $ac_mid; then
13169 ac_lo= ac_hi=
13170 break
13172 ac_mid=`expr 2 '*' $ac_mid + 1`
13174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13175 done
13176 else
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h. */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 $ac_includes_default
13188 main ()
13190 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13191 test_array [0] = 0
13194 return 0;
13196 _ACEOF
13197 rm -f conftest.$ac_objext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199 (eval $ac_compile) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_hi=-1 ac_mid=-1
13220 while :; do
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h. */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 $ac_includes_default
13229 main ()
13231 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13232 test_array [0] = 0
13235 return 0;
13237 _ACEOF
13238 rm -f conftest.$ac_objext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest.$ac_objext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_lo=$ac_mid; break
13261 else
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_hi=`expr '(' $ac_mid ')' - 1`
13266 if test $ac_mid -le $ac_hi; then
13267 ac_lo= ac_hi=
13268 break
13270 ac_mid=`expr 2 '*' $ac_mid`
13272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13273 done
13274 else
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13278 ac_lo= ac_hi=
13280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13283 # Binary search between lo and hi bounds.
13284 while test "x$ac_lo" != "x$ac_hi"; do
13285 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 $ac_includes_default
13294 main ()
13296 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13297 test_array [0] = 0
13300 return 0;
13302 _ACEOF
13303 rm -f conftest.$ac_objext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13305 (eval $ac_compile) 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13325 ac_hi=$ac_mid
13326 else
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 ac_lo=`expr '(' $ac_mid ')' + 1`
13332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13333 done
13334 case $ac_lo in
13335 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13336 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13337 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13339 See \`config.log' for more details." >&5
13340 echo "$as_me: error: cannot compute sizeof (void *), 77
13341 See \`config.log' for more details." >&2;}
13342 { (exit 1); exit 1; }; }; } ;;
13343 esac
13344 else
13345 if test "$cross_compiling" = yes; then
13346 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13347 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13348 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13349 See \`config.log' for more details." >&5
13350 echo "$as_me: error: cannot run test program while cross compiling
13351 See \`config.log' for more details." >&2;}
13352 { (exit 1); exit 1; }; }; }
13353 else
13354 cat >conftest.$ac_ext <<_ACEOF
13355 /* confdefs.h. */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 $ac_includes_default
13361 long longval () { return (long) (sizeof (void *)); }
13362 unsigned long ulongval () { return (long) (sizeof (void *)); }
13363 #include <stdio.h>
13364 #include <stdlib.h>
13366 main ()
13369 FILE *f = fopen ("conftest.val", "w");
13370 if (! f)
13371 exit (1);
13372 if (((long) (sizeof (void *))) < 0)
13374 long i = longval ();
13375 if (i != ((long) (sizeof (void *))))
13376 exit (1);
13377 fprintf (f, "%ld\n", i);
13379 else
13381 unsigned long i = ulongval ();
13382 if (i != ((long) (sizeof (void *))))
13383 exit (1);
13384 fprintf (f, "%lu\n", i);
13386 exit (ferror (f) || fclose (f) != 0);
13389 return 0;
13391 _ACEOF
13392 rm -f conftest$ac_exeext
13393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13394 (eval $ac_link) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_sizeof_void_p=`cat conftest.val`
13404 else
13405 echo "$as_me: program exited with status $ac_status" >&5
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409 ( exit $ac_status )
13410 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13411 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13413 See \`config.log' for more details." >&5
13414 echo "$as_me: error: cannot compute sizeof (void *), 77
13415 See \`config.log' for more details." >&2;}
13416 { (exit 1); exit 1; }; }; }
13418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13421 rm -f conftest.val
13422 else
13423 ac_cv_sizeof_void_p=0
13426 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13427 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13428 cat >>confdefs.h <<_ACEOF
13429 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13430 _ACEOF
13433 echo "$as_me:$LINENO: checking for long" >&5
13434 echo $ECHO_N "checking for long... $ECHO_C" >&6
13435 if test "${ac_cv_type_long+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438 cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h. */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 $ac_includes_default
13446 main ()
13448 if ((long *) 0)
13449 return 0;
13450 if (sizeof (long))
13451 return 0;
13453 return 0;
13455 _ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -z "$ac_c_werror_flag"
13466 || test ! -s conftest.err'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try='test -s conftest.$ac_objext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_cv_type_long=yes
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 ac_cv_type_long=no
13485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13487 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13488 echo "${ECHO_T}$ac_cv_type_long" >&6
13490 echo "$as_me:$LINENO: checking size of long" >&5
13491 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13492 if test "${ac_cv_sizeof_long+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495 if test "$ac_cv_type_long" = yes; then
13496 # The cast to unsigned long works around a bug in the HP C Compiler
13497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13499 # This bug is HP SR number 8606223364.
13500 if test "$cross_compiling" = yes; then
13501 # Depending upon the size, compute the lo and hi bounds.
13502 cat >conftest.$ac_ext <<_ACEOF
13503 /* confdefs.h. */
13504 _ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13508 $ac_includes_default
13510 main ()
13512 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13513 test_array [0] = 0
13516 return 0;
13518 _ACEOF
13519 rm -f conftest.$ac_objext
13520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13521 (eval $ac_compile) 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -z "$ac_c_werror_flag"
13529 || test ! -s conftest.err'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; } &&
13535 { ac_try='test -s conftest.$ac_objext'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
13541 ac_lo=0 ac_mid=0
13542 while :; do
13543 cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h. */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549 $ac_includes_default
13551 main ()
13553 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13554 test_array [0] = 0
13557 return 0;
13559 _ACEOF
13560 rm -f conftest.$ac_objext
13561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13562 (eval $ac_compile) 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag"
13570 || test ! -s conftest.err'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_hi=$ac_mid; break
13583 else
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_lo=`expr $ac_mid + 1`
13588 if test $ac_lo -le $ac_mid; then
13589 ac_lo= ac_hi=
13590 break
13592 ac_mid=`expr 2 '*' $ac_mid + 1`
13594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13595 done
13596 else
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h. */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13606 $ac_includes_default
13608 main ()
13610 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13611 test_array [0] = 0
13614 return 0;
13616 _ACEOF
13617 rm -f conftest.$ac_objext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13619 (eval $ac_compile) 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_c_werror_flag"
13627 || test ! -s conftest.err'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest.$ac_objext'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 ac_hi=-1 ac_mid=-1
13640 while :; do
13641 cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h. */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 $ac_includes_default
13649 main ()
13651 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13652 test_array [0] = 0
13655 return 0;
13657 _ACEOF
13658 rm -f conftest.$ac_objext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660 (eval $ac_compile) 2>conftest.er1
13661 ac_status=$?
13662 grep -v '^ *+' conftest.er1 >conftest.err
13663 rm -f conftest.er1
13664 cat conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -z "$ac_c_werror_flag"
13668 || test ! -s conftest.err'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 ac_lo=$ac_mid; break
13681 else
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13685 ac_hi=`expr '(' $ac_mid ')' - 1`
13686 if test $ac_mid -le $ac_hi; then
13687 ac_lo= ac_hi=
13688 break
13690 ac_mid=`expr 2 '*' $ac_mid`
13692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13693 done
13694 else
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13698 ac_lo= ac_hi=
13700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13703 # Binary search between lo and hi bounds.
13704 while test "x$ac_lo" != "x$ac_hi"; do
13705 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h. */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 $ac_includes_default
13714 main ()
13716 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13717 test_array [0] = 0
13720 return 0;
13722 _ACEOF
13723 rm -f conftest.$ac_objext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725 (eval $ac_compile) 2>conftest.er1
13726 ac_status=$?
13727 grep -v '^ *+' conftest.er1 >conftest.err
13728 rm -f conftest.er1
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try='test -z "$ac_c_werror_flag"
13733 || test ! -s conftest.err'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest.$ac_objext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_hi=$ac_mid
13746 else
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ac_lo=`expr '(' $ac_mid ')' + 1`
13752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13753 done
13754 case $ac_lo in
13755 ?*) ac_cv_sizeof_long=$ac_lo;;
13756 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13757 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13759 See \`config.log' for more details." >&5
13760 echo "$as_me: error: cannot compute sizeof (long), 77
13761 See \`config.log' for more details." >&2;}
13762 { (exit 1); exit 1; }; }; } ;;
13763 esac
13764 else
13765 if test "$cross_compiling" = yes; then
13766 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13767 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13768 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13769 See \`config.log' for more details." >&5
13770 echo "$as_me: error: cannot run test program while cross compiling
13771 See \`config.log' for more details." >&2;}
13772 { (exit 1); exit 1; }; }; }
13773 else
13774 cat >conftest.$ac_ext <<_ACEOF
13775 /* confdefs.h. */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13780 $ac_includes_default
13781 long longval () { return (long) (sizeof (long)); }
13782 unsigned long ulongval () { return (long) (sizeof (long)); }
13783 #include <stdio.h>
13784 #include <stdlib.h>
13786 main ()
13789 FILE *f = fopen ("conftest.val", "w");
13790 if (! f)
13791 exit (1);
13792 if (((long) (sizeof (long))) < 0)
13794 long i = longval ();
13795 if (i != ((long) (sizeof (long))))
13796 exit (1);
13797 fprintf (f, "%ld\n", i);
13799 else
13801 unsigned long i = ulongval ();
13802 if (i != ((long) (sizeof (long))))
13803 exit (1);
13804 fprintf (f, "%lu\n", i);
13806 exit (ferror (f) || fclose (f) != 0);
13809 return 0;
13811 _ACEOF
13812 rm -f conftest$ac_exeext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13814 (eval $ac_link) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long=`cat conftest.val`
13824 else
13825 echo "$as_me: program exited with status $ac_status" >&5
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ( exit $ac_status )
13830 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13831 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13833 See \`config.log' for more details." >&5
13834 echo "$as_me: error: cannot compute sizeof (long), 77
13835 See \`config.log' for more details." >&2;}
13836 { (exit 1); exit 1; }; }; }
13838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13841 rm -f conftest.val
13842 else
13843 ac_cv_sizeof_long=0
13846 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13847 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13848 cat >>confdefs.h <<_ACEOF
13849 #define SIZEOF_LONG $ac_cv_sizeof_long
13850 _ACEOF
13854 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13855 host64=true
13858 if test "x${ac_cv_sizeof_long}" = "x8"; then
13859 BFD_HOST_64BIT_LONG=1
13860 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13861 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13862 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13863 BFD_HOST_64BIT_LONG_LONG=1
13864 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13865 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13866 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13867 BFD_HOSTPTR_T="unsigned long long"
13871 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13872 BFD_HOST_64_BIT_DEFINED=1
13873 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13874 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13884 # Put a plausible default for CC_FOR_BUILD in Makefile.
13885 if test -z "$CC_FOR_BUILD"; then
13886 if test "x$cross_compiling" = "xno"; then
13887 CC_FOR_BUILD='$(CC)'
13888 else
13889 CC_FOR_BUILD=gcc
13893 # Also set EXEEXT_FOR_BUILD.
13894 if test "x$cross_compiling" = "xno"; then
13895 EXEEXT_FOR_BUILD='$(EXEEXT)'
13896 else
13897 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13898 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13899 if test "${bfd_cv_build_exeext+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902 rm -f conftest*
13903 echo 'int main () { return 0; }' > conftest.c
13904 bfd_cv_build_exeext=
13905 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13906 for file in conftest.*; do
13907 case $file in
13908 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13909 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13910 esac
13911 done
13912 rm -f conftest*
13913 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13915 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13916 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13917 EXEEXT_FOR_BUILD=""
13918 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13929 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
13931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo "$as_me:$LINENO: checking for $ac_header" >&5
13934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13940 else
13941 # Is the header compilable?
13942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h. */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 $ac_includes_default
13951 #include <$ac_header>
13952 _ACEOF
13953 rm -f conftest.$ac_objext
13954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13955 (eval $ac_compile) 2>conftest.er1
13956 ac_status=$?
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_c_werror_flag"
13963 || test ! -s conftest.err'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } &&
13969 { ac_try='test -s conftest.$ac_objext'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 ac_header_compiler=yes
13976 else
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 ac_header_compiler=no
13982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984 echo "${ECHO_T}$ac_header_compiler" >&6
13986 # Is the header present?
13987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13989 cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h. */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 #include <$ac_header>
13996 _ACEOF
13997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } >/dev/null; then
14005 if test -s conftest.err; then
14006 ac_cpp_err=$ac_c_preproc_warn_flag
14007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14008 else
14009 ac_cpp_err=
14011 else
14012 ac_cpp_err=yes
14014 if test -z "$ac_cpp_err"; then
14015 ac_header_preproc=yes
14016 else
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 ac_header_preproc=no
14022 rm -f conftest.err conftest.$ac_ext
14023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14024 echo "${ECHO_T}$ac_header_preproc" >&6
14026 # So? What about this header?
14027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14028 yes:no: )
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14033 ac_header_preproc=yes
14035 no:yes:* )
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14049 cat <<\_ASBOX
14050 ## ------------------------------------------ ##
14051 ## Report this to the AC_PACKAGE_NAME lists. ##
14052 ## ------------------------------------------ ##
14053 _ASBOX
14055 sed "s/^/$as_me: WARNING: /" >&2
14057 esac
14058 echo "$as_me:$LINENO: checking for $ac_header" >&5
14059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063 eval "$as_ac_Header=\$ac_header_preproc"
14065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14070 cat >>confdefs.h <<_ACEOF
14071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14072 _ACEOF
14076 done
14081 for ac_header in fcntl.h sys/file.h sys/time.h
14083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14085 echo "$as_me:$LINENO: checking for $ac_header" >&5
14086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14092 else
14093 # Is the header compilable?
14094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14096 cat >conftest.$ac_ext <<_ACEOF
14097 /* confdefs.h. */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14102 $ac_includes_default
14103 #include <$ac_header>
14104 _ACEOF
14105 rm -f conftest.$ac_objext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag"
14115 || test ! -s conftest.err'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try='test -s conftest.$ac_objext'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14127 ac_header_compiler=yes
14128 else
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14132 ac_header_compiler=no
14134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14136 echo "${ECHO_T}$ac_header_compiler" >&6
14138 # Is the header present?
14139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14141 cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h. */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <$ac_header>
14148 _ACEOF
14149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14151 ac_status=$?
14152 grep -v '^ *+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } >/dev/null; then
14157 if test -s conftest.err; then
14158 ac_cpp_err=$ac_c_preproc_warn_flag
14159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14160 else
14161 ac_cpp_err=
14163 else
14164 ac_cpp_err=yes
14166 if test -z "$ac_cpp_err"; then
14167 ac_header_preproc=yes
14168 else
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ac_header_preproc=no
14174 rm -f conftest.err conftest.$ac_ext
14175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14176 echo "${ECHO_T}$ac_header_preproc" >&6
14178 # So? What about this header?
14179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14180 yes:no: )
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14185 ac_header_preproc=yes
14187 no:yes:* )
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14201 cat <<\_ASBOX
14202 ## ------------------------------------------ ##
14203 ## Report this to the AC_PACKAGE_NAME lists. ##
14204 ## ------------------------------------------ ##
14205 _ASBOX
14207 sed "s/^/$as_me: WARNING: /" >&2
14209 esac
14210 echo "$as_me:$LINENO: checking for $ac_header" >&5
14211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215 eval "$as_ac_Header=\$ac_header_preproc"
14217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14222 cat >>confdefs.h <<_ACEOF
14223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14224 _ACEOF
14228 done
14232 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14234 acx_cv_header_stdint=stddef.h
14235 acx_cv_header_stdint_kind="(already complete)"
14236 for i in stdint.h $inttype_headers; do
14237 unset ac_cv_type_uintptr_t
14238 unset ac_cv_type_uintmax_t
14239 unset ac_cv_type_int_least32_t
14240 unset ac_cv_type_int_fast32_t
14241 unset ac_cv_type_uint64_t
14242 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14243 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14244 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14245 if test "${ac_cv_type_uintmax_t+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 cat >conftest.$ac_ext <<_ACEOF
14249 /* confdefs.h. */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 #include <sys/types.h>
14255 #include <$i>
14258 main ()
14260 if ((uintmax_t *) 0)
14261 return 0;
14262 if (sizeof (uintmax_t))
14263 return 0;
14265 return 0;
14267 _ACEOF
14268 rm -f conftest.$ac_objext
14269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270 (eval $ac_compile) 2>conftest.er1
14271 ac_status=$?
14272 grep -v '^ *+' conftest.er1 >conftest.err
14273 rm -f conftest.er1
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
14277 { ac_try='test -z "$ac_c_werror_flag"
14278 || test ! -s conftest.err'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; } &&
14284 { ac_try='test -s conftest.$ac_objext'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_cv_type_uintmax_t=yes
14291 else
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 ac_cv_type_uintmax_t=no
14297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14299 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14300 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14301 if test $ac_cv_type_uintmax_t = yes; then
14302 acx_cv_header_stdint=$i
14303 else
14304 continue
14307 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14308 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14309 if test "${ac_cv_type_uintptr_t+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312 cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h. */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 #include <sys/types.h>
14319 #include <$i>
14322 main ()
14324 if ((uintptr_t *) 0)
14325 return 0;
14326 if (sizeof (uintptr_t))
14327 return 0;
14329 return 0;
14331 _ACEOF
14332 rm -f conftest.$ac_objext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14334 (eval $ac_compile) 2>conftest.er1
14335 ac_status=$?
14336 grep -v '^ *+' conftest.er1 >conftest.err
14337 rm -f conftest.er1
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -z "$ac_c_werror_flag"
14342 || test ! -s conftest.err'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; } &&
14348 { ac_try='test -s conftest.$ac_objext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ac_cv_type_uintptr_t=yes
14355 else
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359 ac_cv_type_uintptr_t=no
14361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14363 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14364 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14365 if test $ac_cv_type_uintptr_t = yes; then
14367 else
14368 acx_cv_header_stdint_kind="(mostly complete)"
14371 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14372 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14373 if test "${ac_cv_type_int_least32_t+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 else
14376 cat >conftest.$ac_ext <<_ACEOF
14377 /* confdefs.h. */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 #include <sys/types.h>
14383 #include <$i>
14386 main ()
14388 if ((int_least32_t *) 0)
14389 return 0;
14390 if (sizeof (int_least32_t))
14391 return 0;
14393 return 0;
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_cv_type_int_least32_t=yes
14419 else
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_cv_type_int_least32_t=no
14425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14427 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14428 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14429 if test $ac_cv_type_int_least32_t = yes; then
14431 else
14432 acx_cv_header_stdint_kind="(mostly complete)"
14435 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14436 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14437 if test "${ac_cv_type_int_fast32_t+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 else
14440 cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h. */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 #include <sys/types.h>
14447 #include <$i>
14450 main ()
14452 if ((int_fast32_t *) 0)
14453 return 0;
14454 if (sizeof (int_fast32_t))
14455 return 0;
14457 return 0;
14459 _ACEOF
14460 rm -f conftest.$ac_objext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462 (eval $ac_compile) 2>conftest.er1
14463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try='test -z "$ac_c_werror_flag"
14470 || test ! -s conftest.err'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_type_int_fast32_t=yes
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_cv_type_int_fast32_t=no
14489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14491 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14492 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14493 if test $ac_cv_type_int_fast32_t = yes; then
14495 else
14496 acx_cv_header_stdint_kind="(mostly complete)"
14499 echo "$as_me:$LINENO: checking for uint64_t" >&5
14500 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14501 if test "${ac_cv_type_uint64_t+set}" = set; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 else
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 #include <sys/types.h>
14511 #include <$i>
14514 main ()
14516 if ((uint64_t *) 0)
14517 return 0;
14518 if (sizeof (uint64_t))
14519 return 0;
14521 return 0;
14523 _ACEOF
14524 rm -f conftest.$ac_objext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14526 (eval $ac_compile) 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag"
14534 || test ! -s conftest.err'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest.$ac_objext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_type_uint64_t=yes
14547 else
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551 ac_cv_type_uint64_t=no
14553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14555 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14556 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14557 if test $ac_cv_type_uint64_t = yes; then
14559 else
14560 acx_cv_header_stdint_kind="(lacks uint64_t)"
14563 break
14564 done
14565 if test "$acx_cv_header_stdint" = stddef.h; then
14566 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14567 for i in stdint.h $inttype_headers; do
14568 unset ac_cv_type_uintptr_t
14569 unset ac_cv_type_uint32_t
14570 unset ac_cv_type_uint64_t
14571 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14572 echo "$as_me:$LINENO: checking for uint32_t" >&5
14573 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14574 if test "${ac_cv_type_uint32_t+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 else
14577 cat >conftest.$ac_ext <<_ACEOF
14578 /* confdefs.h. */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 #include <sys/types.h>
14584 #include <$i>
14587 main ()
14589 if ((uint32_t *) 0)
14590 return 0;
14591 if (sizeof (uint32_t))
14592 return 0;
14594 return 0;
14596 _ACEOF
14597 rm -f conftest.$ac_objext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14599 (eval $ac_compile) 2>conftest.er1
14600 ac_status=$?
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -z "$ac_c_werror_flag"
14607 || test ! -s conftest.err'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_type_uint32_t=yes
14620 else
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 ac_cv_type_uint32_t=no
14626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14628 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14629 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14630 if test $ac_cv_type_uint32_t = yes; then
14631 acx_cv_header_stdint=$i
14632 else
14633 continue
14636 echo "$as_me:$LINENO: checking for uint64_t" >&5
14637 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14638 if test "${ac_cv_type_uint64_t+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641 cat >conftest.$ac_ext <<_ACEOF
14642 /* confdefs.h. */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 #include <sys/types.h>
14648 #include <$i>
14651 main ()
14653 if ((uint64_t *) 0)
14654 return 0;
14655 if (sizeof (uint64_t))
14656 return 0;
14658 return 0;
14660 _ACEOF
14661 rm -f conftest.$ac_objext
14662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14663 (eval $ac_compile) 2>conftest.er1
14664 ac_status=$?
14665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
14670 { ac_try='test -z "$ac_c_werror_flag"
14671 || test ! -s conftest.err'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; } &&
14677 { ac_try='test -s conftest.$ac_objext'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14680 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then
14683 ac_cv_type_uint64_t=yes
14684 else
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ac_cv_type_uint64_t=no
14690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14693 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14695 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14696 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14697 if test "${ac_cv_type_uintptr_t+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h. */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 #include <sys/types.h>
14707 #include <$i>
14710 main ()
14712 if ((uintptr_t *) 0)
14713 return 0;
14714 if (sizeof (uintptr_t))
14715 return 0;
14717 return 0;
14719 _ACEOF
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>conftest.er1
14723 ac_status=$?
14724 grep -v '^ *+' conftest.er1 >conftest.err
14725 rm -f conftest.er1
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -z "$ac_c_werror_flag"
14730 || test ! -s conftest.err'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_cv_type_uintptr_t=yes
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_cv_type_uintptr_t=no
14749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14752 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14754 break
14755 done
14757 if test "$acx_cv_header_stdint" = stddef.h; then
14758 acx_cv_header_stdint_kind="(u_intXX_t style)"
14759 for i in sys/types.h $inttype_headers; do
14760 unset ac_cv_type_u_int32_t
14761 unset ac_cv_type_u_int64_t
14762 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14763 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14764 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14765 if test "${ac_cv_type_u_int32_t+set}" = set; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 else
14768 cat >conftest.$ac_ext <<_ACEOF
14769 /* confdefs.h. */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 #include <sys/types.h>
14775 #include <$i>
14778 main ()
14780 if ((u_int32_t *) 0)
14781 return 0;
14782 if (sizeof (u_int32_t))
14783 return 0;
14785 return 0;
14787 _ACEOF
14788 rm -f conftest.$ac_objext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790 (eval $ac_compile) 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_c_werror_flag"
14798 || test ! -s conftest.err'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_type_u_int32_t=yes
14811 else
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_cv_type_u_int32_t=no
14817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14819 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14820 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14821 if test $ac_cv_type_u_int32_t = yes; then
14822 acx_cv_header_stdint=$i
14823 else
14824 continue
14827 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14828 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14829 if test "${ac_cv_type_u_int64_t+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 else
14832 cat >conftest.$ac_ext <<_ACEOF
14833 /* confdefs.h. */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838 #include <sys/types.h>
14839 #include <$i>
14842 main ()
14844 if ((u_int64_t *) 0)
14845 return 0;
14846 if (sizeof (u_int64_t))
14847 return 0;
14849 return 0;
14851 _ACEOF
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try='test -z "$ac_c_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 ac_cv_type_u_int64_t=yes
14875 else
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 ac_cv_type_u_int64_t=no
14881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14883 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14884 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14886 break
14887 done
14889 if test "$acx_cv_header_stdint" = stddef.h; then
14890 acx_cv_header_stdint_kind="(using manual detection)"
14893 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14894 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14895 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14896 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14897 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14899 # ----------------- Summarize what we found so far
14901 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14902 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14904 case `$as_basename bfd_stdint.h ||
14905 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14906 Xbfd_stdint.h : 'X\(//\)$' \| \
14907 Xbfd_stdint.h : 'X\(/\)$' \| \
14908 . : '\(.\)' 2>/dev/null ||
14909 echo X/bfd_stdint.h |
14910 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14911 /^X\/\(\/\/\)$/{ s//\1/; q; }
14912 /^X\/\(\/\).*/{ s//\1/; q; }
14913 s/.*/./; q'` in
14914 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14915 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14916 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14917 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14918 *) ;;
14919 esac
14921 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14922 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14924 # ----------------- done included file, check C basic types --------
14926 # Lacking an uintptr_t? Test size of void *
14927 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14928 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14929 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14930 if test "${ac_cv_type_void_p+set}" = set; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 else
14933 cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 $ac_includes_default
14941 main ()
14943 if ((void * *) 0)
14944 return 0;
14945 if (sizeof (void *))
14946 return 0;
14948 return 0;
14950 _ACEOF
14951 rm -f conftest.$ac_objext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14953 (eval $ac_compile) 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
14960 { ac_try='test -z "$ac_c_werror_flag"
14961 || test ! -s conftest.err'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_cv_type_void_p=yes
14974 else
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 ac_cv_type_void_p=no
14980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14982 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14983 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14985 echo "$as_me:$LINENO: checking size of void *" >&5
14986 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14987 if test "${ac_cv_sizeof_void_p+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 else
14990 if test "$ac_cv_type_void_p" = yes; then
14991 # The cast to unsigned long works around a bug in the HP C Compiler
14992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14994 # This bug is HP SR number 8606223364.
14995 if test "$cross_compiling" = yes; then
14996 # Depending upon the size, compute the lo and hi bounds.
14997 cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h. */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 $ac_includes_default
15005 main ()
15007 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15008 test_array [0] = 0
15011 return 0;
15013 _ACEOF
15014 rm -f conftest.$ac_objext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15016 (eval $ac_compile) 2>conftest.er1
15017 ac_status=$?
15018 grep -v '^ *+' conftest.er1 >conftest.err
15019 rm -f conftest.er1
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_c_werror_flag"
15024 || test ! -s conftest.err'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; } &&
15030 { ac_try='test -s conftest.$ac_objext'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }; then
15036 ac_lo=0 ac_mid=0
15037 while :; do
15038 cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h. */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 $ac_includes_default
15046 main ()
15048 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15049 test_array [0] = 0
15052 return 0;
15054 _ACEOF
15055 rm -f conftest.$ac_objext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057 (eval $ac_compile) 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -z "$ac_c_werror_flag"
15065 || test ! -s conftest.err'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest.$ac_objext'
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15077 ac_hi=$ac_mid; break
15078 else
15079 echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15082 ac_lo=`expr $ac_mid + 1`
15083 if test $ac_lo -le $ac_mid; then
15084 ac_lo= ac_hi=
15085 break
15087 ac_mid=`expr 2 '*' $ac_mid + 1`
15089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15090 done
15091 else
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15095 cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h. */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101 $ac_includes_default
15103 main ()
15105 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15106 test_array [0] = 0
15109 return 0;
15111 _ACEOF
15112 rm -f conftest.$ac_objext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15114 (eval $ac_compile) 2>conftest.er1
15115 ac_status=$?
15116 grep -v '^ *+' conftest.er1 >conftest.err
15117 rm -f conftest.er1
15118 cat conftest.err >&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -z "$ac_c_werror_flag"
15122 || test ! -s conftest.err'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; } &&
15128 { ac_try='test -s conftest.$ac_objext'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_hi=-1 ac_mid=-1
15135 while :; do
15136 cat >conftest.$ac_ext <<_ACEOF
15137 /* confdefs.h. */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15142 $ac_includes_default
15144 main ()
15146 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15147 test_array [0] = 0
15150 return 0;
15152 _ACEOF
15153 rm -f conftest.$ac_objext
15154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15155 (eval $ac_compile) 2>conftest.er1
15156 ac_status=$?
15157 grep -v '^ *+' conftest.er1 >conftest.err
15158 rm -f conftest.er1
15159 cat conftest.err >&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } &&
15162 { ac_try='test -z "$ac_c_werror_flag"
15163 || test ! -s conftest.err'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; } &&
15169 { ac_try='test -s conftest.$ac_objext'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 ac_lo=$ac_mid; break
15176 else
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 ac_hi=`expr '(' $ac_mid ')' - 1`
15181 if test $ac_mid -le $ac_hi; then
15182 ac_lo= ac_hi=
15183 break
15185 ac_mid=`expr 2 '*' $ac_mid`
15187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15188 done
15189 else
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 ac_lo= ac_hi=
15195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15198 # Binary search between lo and hi bounds.
15199 while test "x$ac_lo" != "x$ac_hi"; do
15200 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h. */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 $ac_includes_default
15209 main ()
15211 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15212 test_array [0] = 0
15215 return 0;
15217 _ACEOF
15218 rm -f conftest.$ac_objext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_hi=$ac_mid
15241 else
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ac_lo=`expr '(' $ac_mid ')' + 1`
15247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15248 done
15249 case $ac_lo in
15250 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15251 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15252 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15254 See \`config.log' for more details." >&5
15255 echo "$as_me: error: cannot compute sizeof (void *), 77
15256 See \`config.log' for more details." >&2;}
15257 { (exit 1); exit 1; }; }; } ;;
15258 esac
15259 else
15260 if test "$cross_compiling" = yes; then
15261 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15262 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15263 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15264 See \`config.log' for more details." >&5
15265 echo "$as_me: error: cannot run test program while cross compiling
15266 See \`config.log' for more details." >&2;}
15267 { (exit 1); exit 1; }; }; }
15268 else
15269 cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h. */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 $ac_includes_default
15276 long longval () { return (long) (sizeof (void *)); }
15277 unsigned long ulongval () { return (long) (sizeof (void *)); }
15278 #include <stdio.h>
15279 #include <stdlib.h>
15281 main ()
15284 FILE *f = fopen ("conftest.val", "w");
15285 if (! f)
15286 exit (1);
15287 if (((long) (sizeof (void *))) < 0)
15289 long i = longval ();
15290 if (i != ((long) (sizeof (void *))))
15291 exit (1);
15292 fprintf (f, "%ld\n", i);
15294 else
15296 unsigned long i = ulongval ();
15297 if (i != ((long) (sizeof (void *))))
15298 exit (1);
15299 fprintf (f, "%lu\n", i);
15301 exit (ferror (f) || fclose (f) != 0);
15304 return 0;
15306 _ACEOF
15307 rm -f conftest$ac_exeext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15309 (eval $ac_link) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 ac_cv_sizeof_void_p=`cat conftest.val`
15319 else
15320 echo "$as_me: program exited with status $ac_status" >&5
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ( exit $ac_status )
15325 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15326 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15328 See \`config.log' for more details." >&5
15329 echo "$as_me: error: cannot compute sizeof (void *), 77
15330 See \`config.log' for more details." >&2;}
15331 { (exit 1); exit 1; }; }; }
15333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15336 rm -f conftest.val
15337 else
15338 ac_cv_sizeof_void_p=0
15341 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15342 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15343 cat >>confdefs.h <<_ACEOF
15344 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15345 _ACEOF
15348 esac
15350 # Lacking an uint64_t? Test size of long
15351 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15352 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15353 echo $ECHO_N "checking for long... $ECHO_C" >&6
15354 if test "${ac_cv_type_long+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357 cat >conftest.$ac_ext <<_ACEOF
15358 /* confdefs.h. */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15363 $ac_includes_default
15365 main ()
15367 if ((long *) 0)
15368 return 0;
15369 if (sizeof (long))
15370 return 0;
15372 return 0;
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_cv_type_long=yes
15398 else
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15402 ac_cv_type_long=no
15404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15406 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15407 echo "${ECHO_T}$ac_cv_type_long" >&6
15409 echo "$as_me:$LINENO: checking size of long" >&5
15410 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15411 if test "${ac_cv_sizeof_long+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15414 if test "$ac_cv_type_long" = yes; then
15415 # The cast to unsigned long works around a bug in the HP C Compiler
15416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15418 # This bug is HP SR number 8606223364.
15419 if test "$cross_compiling" = yes; then
15420 # Depending upon the size, compute the lo and hi bounds.
15421 cat >conftest.$ac_ext <<_ACEOF
15422 /* confdefs.h. */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 $ac_includes_default
15429 main ()
15431 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15432 test_array [0] = 0
15435 return 0;
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -z "$ac_c_werror_flag"
15448 || test ! -s conftest.err'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try='test -s conftest.$ac_objext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 ac_lo=0 ac_mid=0
15461 while :; do
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h. */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 $ac_includes_default
15470 main ()
15472 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15473 test_array [0] = 0
15476 return 0;
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>conftest.er1
15482 ac_status=$?
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try='test -z "$ac_c_werror_flag"
15489 || test ! -s conftest.err'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try='test -s conftest.$ac_objext'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15501 ac_hi=$ac_mid; break
15502 else
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15506 ac_lo=`expr $ac_mid + 1`
15507 if test $ac_lo -le $ac_mid; then
15508 ac_lo= ac_hi=
15509 break
15511 ac_mid=`expr 2 '*' $ac_mid + 1`
15513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15514 done
15515 else
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h. */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15525 $ac_includes_default
15527 main ()
15529 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15530 test_array [0] = 0
15533 return 0;
15535 _ACEOF
15536 rm -f conftest.$ac_objext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538 (eval $ac_compile) 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag"
15546 || test ! -s conftest.err'
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); }; } &&
15552 { ac_try='test -s conftest.$ac_objext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_hi=-1 ac_mid=-1
15559 while :; do
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h. */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 $ac_includes_default
15568 main ()
15570 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15571 test_array [0] = 0
15574 return 0;
15576 _ACEOF
15577 rm -f conftest.$ac_objext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579 (eval $ac_compile) 2>conftest.er1
15580 ac_status=$?
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_lo=$ac_mid; break
15600 else
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ac_hi=`expr '(' $ac_mid ')' - 1`
15605 if test $ac_mid -le $ac_hi; then
15606 ac_lo= ac_hi=
15607 break
15609 ac_mid=`expr 2 '*' $ac_mid`
15611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15612 done
15613 else
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_lo= ac_hi=
15619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15622 # Binary search between lo and hi bounds.
15623 while test "x$ac_lo" != "x$ac_hi"; do
15624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15625 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h. */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 $ac_includes_default
15633 main ()
15635 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15636 test_array [0] = 0
15639 return 0;
15641 _ACEOF
15642 rm -f conftest.$ac_objext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644 (eval $ac_compile) 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag"
15652 || test ! -s conftest.err'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try='test -s conftest.$ac_objext'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_hi=$ac_mid
15665 else
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15669 ac_lo=`expr '(' $ac_mid ')' + 1`
15671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15672 done
15673 case $ac_lo in
15674 ?*) ac_cv_sizeof_long=$ac_lo;;
15675 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15676 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15677 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15678 See \`config.log' for more details." >&5
15679 echo "$as_me: error: cannot compute sizeof (long), 77
15680 See \`config.log' for more details." >&2;}
15681 { (exit 1); exit 1; }; }; } ;;
15682 esac
15683 else
15684 if test "$cross_compiling" = yes; then
15685 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15686 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15687 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15688 See \`config.log' for more details." >&5
15689 echo "$as_me: error: cannot run test program while cross compiling
15690 See \`config.log' for more details." >&2;}
15691 { (exit 1); exit 1; }; }; }
15692 else
15693 cat >conftest.$ac_ext <<_ACEOF
15694 /* confdefs.h. */
15695 _ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15699 $ac_includes_default
15700 long longval () { return (long) (sizeof (long)); }
15701 unsigned long ulongval () { return (long) (sizeof (long)); }
15702 #include <stdio.h>
15703 #include <stdlib.h>
15705 main ()
15708 FILE *f = fopen ("conftest.val", "w");
15709 if (! f)
15710 exit (1);
15711 if (((long) (sizeof (long))) < 0)
15713 long i = longval ();
15714 if (i != ((long) (sizeof (long))))
15715 exit (1);
15716 fprintf (f, "%ld\n", i);
15718 else
15720 unsigned long i = ulongval ();
15721 if (i != ((long) (sizeof (long))))
15722 exit (1);
15723 fprintf (f, "%lu\n", i);
15725 exit (ferror (f) || fclose (f) != 0);
15728 return 0;
15730 _ACEOF
15731 rm -f conftest$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_cv_sizeof_long=`cat conftest.val`
15743 else
15744 echo "$as_me: program exited with status $ac_status" >&5
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ( exit $ac_status )
15749 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15750 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15751 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15752 See \`config.log' for more details." >&5
15753 echo "$as_me: error: cannot compute sizeof (long), 77
15754 See \`config.log' for more details." >&2;}
15755 { (exit 1); exit 1; }; }; }
15757 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15760 rm -f conftest.val
15761 else
15762 ac_cv_sizeof_long=0
15765 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15766 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15767 cat >>confdefs.h <<_ACEOF
15768 #define SIZEOF_LONG $ac_cv_sizeof_long
15769 _ACEOF
15772 esac
15774 if test $acx_cv_header_stdint = stddef.h; then
15775 # Lacking a good header? Test size of everything and deduce all types.
15776 echo "$as_me:$LINENO: checking for int" >&5
15777 echo $ECHO_N "checking for int... $ECHO_C" >&6
15778 if test "${ac_cv_type_int+set}" = set; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 else
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h. */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 $ac_includes_default
15789 main ()
15791 if ((int *) 0)
15792 return 0;
15793 if (sizeof (int))
15794 return 0;
15796 return 0;
15798 _ACEOF
15799 rm -f conftest.$ac_objext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801 (eval $ac_compile) 2>conftest.er1
15802 ac_status=$?
15803 grep -v '^ *+' conftest.er1 >conftest.err
15804 rm -f conftest.er1
15805 cat conftest.err >&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
15808 { ac_try='test -z "$ac_c_werror_flag"
15809 || test ! -s conftest.err'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; } &&
15815 { ac_try='test -s conftest.$ac_objext'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15821 ac_cv_type_int=yes
15822 else
15823 echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15826 ac_cv_type_int=no
15828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15830 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15831 echo "${ECHO_T}$ac_cv_type_int" >&6
15833 echo "$as_me:$LINENO: checking size of int" >&5
15834 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15835 if test "${ac_cv_sizeof_int+set}" = set; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838 if test "$ac_cv_type_int" = yes; then
15839 # The cast to unsigned long works around a bug in the HP C Compiler
15840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15842 # This bug is HP SR number 8606223364.
15843 if test "$cross_compiling" = yes; then
15844 # Depending upon the size, compute the lo and hi bounds.
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h. */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 $ac_includes_default
15853 main ()
15855 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15856 test_array [0] = 0
15859 return 0;
15861 _ACEOF
15862 rm -f conftest.$ac_objext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864 (eval $ac_compile) 2>conftest.er1
15865 ac_status=$?
15866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
15871 { ac_try='test -z "$ac_c_werror_flag"
15872 || test ! -s conftest.err'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest.$ac_objext'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 ac_lo=0 ac_mid=0
15885 while :; do
15886 cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h. */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 $ac_includes_default
15894 main ()
15896 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15897 test_array [0] = 0
15900 return 0;
15902 _ACEOF
15903 rm -f conftest.$ac_objext
15904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15905 (eval $ac_compile) 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
15912 { ac_try='test -z "$ac_c_werror_flag"
15913 || test ! -s conftest.err'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; } &&
15919 { ac_try='test -s conftest.$ac_objext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 ac_hi=$ac_mid; break
15926 else
15927 echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15930 ac_lo=`expr $ac_mid + 1`
15931 if test $ac_lo -le $ac_mid; then
15932 ac_lo= ac_hi=
15933 break
15935 ac_mid=`expr 2 '*' $ac_mid + 1`
15937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15938 done
15939 else
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 cat >conftest.$ac_ext <<_ACEOF
15944 /* confdefs.h. */
15945 _ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h. */
15949 $ac_includes_default
15951 main ()
15953 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15954 test_array [0] = 0
15957 return 0;
15959 _ACEOF
15960 rm -f conftest.$ac_objext
15961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15962 (eval $ac_compile) 2>conftest.er1
15963 ac_status=$?
15964 grep -v '^ *+' conftest.er1 >conftest.err
15965 rm -f conftest.er1
15966 cat conftest.err >&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } &&
15969 { ac_try='test -z "$ac_c_werror_flag"
15970 || test ! -s conftest.err'
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; } &&
15976 { ac_try='test -s conftest.$ac_objext'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_hi=-1 ac_mid=-1
15983 while :; do
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15992 main ()
15994 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15995 test_array [0] = 0
15998 return 0;
16000 _ACEOF
16001 rm -f conftest.$ac_objext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_compile) 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try='test -z "$ac_c_werror_flag"
16011 || test ! -s conftest.err'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try='test -s conftest.$ac_objext'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_lo=$ac_mid; break
16024 else
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 ac_hi=`expr '(' $ac_mid ')' - 1`
16029 if test $ac_mid -le $ac_hi; then
16030 ac_lo= ac_hi=
16031 break
16033 ac_mid=`expr 2 '*' $ac_mid`
16035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16036 done
16037 else
16038 echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16041 ac_lo= ac_hi=
16043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16046 # Binary search between lo and hi bounds.
16047 while test "x$ac_lo" != "x$ac_hi"; do
16048 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16049 cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h. */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16055 $ac_includes_default
16057 main ()
16059 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16060 test_array [0] = 0
16063 return 0;
16065 _ACEOF
16066 rm -f conftest.$ac_objext
16067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16068 (eval $ac_compile) 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -z "$ac_c_werror_flag"
16076 || test ! -s conftest.err'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest.$ac_objext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 ac_hi=$ac_mid
16089 else
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 ac_lo=`expr '(' $ac_mid ')' + 1`
16095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16096 done
16097 case $ac_lo in
16098 ?*) ac_cv_sizeof_int=$ac_lo;;
16099 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16100 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16101 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16102 See \`config.log' for more details." >&5
16103 echo "$as_me: error: cannot compute sizeof (int), 77
16104 See \`config.log' for more details." >&2;}
16105 { (exit 1); exit 1; }; }; } ;;
16106 esac
16107 else
16108 if test "$cross_compiling" = yes; then
16109 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16110 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16112 See \`config.log' for more details." >&5
16113 echo "$as_me: error: cannot run test program while cross compiling
16114 See \`config.log' for more details." >&2;}
16115 { (exit 1); exit 1; }; }; }
16116 else
16117 cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h. */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 $ac_includes_default
16124 long longval () { return (long) (sizeof (int)); }
16125 unsigned long ulongval () { return (long) (sizeof (int)); }
16126 #include <stdio.h>
16127 #include <stdlib.h>
16129 main ()
16132 FILE *f = fopen ("conftest.val", "w");
16133 if (! f)
16134 exit (1);
16135 if (((long) (sizeof (int))) < 0)
16137 long i = longval ();
16138 if (i != ((long) (sizeof (int))))
16139 exit (1);
16140 fprintf (f, "%ld\n", i);
16142 else
16144 unsigned long i = ulongval ();
16145 if (i != ((long) (sizeof (int))))
16146 exit (1);
16147 fprintf (f, "%lu\n", i);
16149 exit (ferror (f) || fclose (f) != 0);
16152 return 0;
16154 _ACEOF
16155 rm -f conftest$ac_exeext
16156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16157 (eval $ac_link) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_cv_sizeof_int=`cat conftest.val`
16167 else
16168 echo "$as_me: program exited with status $ac_status" >&5
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 ( exit $ac_status )
16173 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16174 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16175 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16176 See \`config.log' for more details." >&5
16177 echo "$as_me: error: cannot compute sizeof (int), 77
16178 See \`config.log' for more details." >&2;}
16179 { (exit 1); exit 1; }; }; }
16181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16184 rm -f conftest.val
16185 else
16186 ac_cv_sizeof_int=0
16189 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16190 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16191 cat >>confdefs.h <<_ACEOF
16192 #define SIZEOF_INT $ac_cv_sizeof_int
16193 _ACEOF
16196 echo "$as_me:$LINENO: checking for short" >&5
16197 echo $ECHO_N "checking for short... $ECHO_C" >&6
16198 if test "${ac_cv_type_short+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h. */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 $ac_includes_default
16209 main ()
16211 if ((short *) 0)
16212 return 0;
16213 if (sizeof (short))
16214 return 0;
16216 return 0;
16218 _ACEOF
16219 rm -f conftest.$ac_objext
16220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16221 (eval $ac_compile) 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -z "$ac_c_werror_flag"
16229 || test ! -s conftest.err'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest.$ac_objext'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_type_short=yes
16242 else
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 ac_cv_type_short=no
16248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16250 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16251 echo "${ECHO_T}$ac_cv_type_short" >&6
16253 echo "$as_me:$LINENO: checking size of short" >&5
16254 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16255 if test "${ac_cv_sizeof_short+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258 if test "$ac_cv_type_short" = yes; then
16259 # The cast to unsigned long works around a bug in the HP C Compiler
16260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16262 # This bug is HP SR number 8606223364.
16263 if test "$cross_compiling" = yes; then
16264 # Depending upon the size, compute the lo and hi bounds.
16265 cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h. */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 $ac_includes_default
16273 main ()
16275 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16276 test_array [0] = 0
16279 return 0;
16281 _ACEOF
16282 rm -f conftest.$ac_objext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16284 (eval $ac_compile) 2>conftest.er1
16285 ac_status=$?
16286 grep -v '^ *+' conftest.er1 >conftest.err
16287 rm -f conftest.er1
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try='test -z "$ac_c_werror_flag"
16292 || test ! -s conftest.err'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; } &&
16298 { ac_try='test -s conftest.$ac_objext'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 ac_lo=0 ac_mid=0
16305 while :; do
16306 cat >conftest.$ac_ext <<_ACEOF
16307 /* confdefs.h. */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 $ac_includes_default
16314 main ()
16316 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16317 test_array [0] = 0
16320 return 0;
16322 _ACEOF
16323 rm -f conftest.$ac_objext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16325 (eval $ac_compile) 2>conftest.er1
16326 ac_status=$?
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -z "$ac_c_werror_flag"
16333 || test ! -s conftest.err'
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; } &&
16339 { ac_try='test -s conftest.$ac_objext'
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ac_hi=$ac_mid; break
16346 else
16347 echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16350 ac_lo=`expr $ac_mid + 1`
16351 if test $ac_lo -le $ac_mid; then
16352 ac_lo= ac_hi=
16353 break
16355 ac_mid=`expr 2 '*' $ac_mid + 1`
16357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16358 done
16359 else
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 $ac_includes_default
16371 main ()
16373 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16374 test_array [0] = 0
16377 return 0;
16379 _ACEOF
16380 rm -f conftest.$ac_objext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16382 (eval $ac_compile) 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag"
16390 || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_hi=-1 ac_mid=-1
16403 while :; do
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h. */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 $ac_includes_default
16412 main ()
16414 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16415 test_array [0] = 0
16418 return 0;
16420 _ACEOF
16421 rm -f conftest.$ac_objext
16422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16423 (eval $ac_compile) 2>conftest.er1
16424 ac_status=$?
16425 grep -v '^ *+' conftest.er1 >conftest.err
16426 rm -f conftest.er1
16427 cat conftest.err >&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
16430 { ac_try='test -z "$ac_c_werror_flag"
16431 || test ! -s conftest.err'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; } &&
16437 { ac_try='test -s conftest.$ac_objext'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16443 ac_lo=$ac_mid; break
16444 else
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16448 ac_hi=`expr '(' $ac_mid ')' - 1`
16449 if test $ac_mid -le $ac_hi; then
16450 ac_lo= ac_hi=
16451 break
16453 ac_mid=`expr 2 '*' $ac_mid`
16455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16456 done
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ac_lo= ac_hi=
16463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16466 # Binary search between lo and hi bounds.
16467 while test "x$ac_lo" != "x$ac_hi"; do
16468 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16469 cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h. */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 $ac_includes_default
16477 main ()
16479 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16480 test_array [0] = 0
16483 return 0;
16485 _ACEOF
16486 rm -f conftest.$ac_objext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16489 ac_status=$?
16490 grep -v '^ *+' conftest.er1 >conftest.err
16491 rm -f conftest.er1
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_hi=$ac_mid
16509 else
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 ac_lo=`expr '(' $ac_mid ')' + 1`
16515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16516 done
16517 case $ac_lo in
16518 ?*) ac_cv_sizeof_short=$ac_lo;;
16519 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16520 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16521 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16522 See \`config.log' for more details." >&5
16523 echo "$as_me: error: cannot compute sizeof (short), 77
16524 See \`config.log' for more details." >&2;}
16525 { (exit 1); exit 1; }; }; } ;;
16526 esac
16527 else
16528 if test "$cross_compiling" = yes; then
16529 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16530 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16531 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16532 See \`config.log' for more details." >&5
16533 echo "$as_me: error: cannot run test program while cross compiling
16534 See \`config.log' for more details." >&2;}
16535 { (exit 1); exit 1; }; }; }
16536 else
16537 cat >conftest.$ac_ext <<_ACEOF
16538 /* confdefs.h. */
16539 _ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h. */
16543 $ac_includes_default
16544 long longval () { return (long) (sizeof (short)); }
16545 unsigned long ulongval () { return (long) (sizeof (short)); }
16546 #include <stdio.h>
16547 #include <stdlib.h>
16549 main ()
16552 FILE *f = fopen ("conftest.val", "w");
16553 if (! f)
16554 exit (1);
16555 if (((long) (sizeof (short))) < 0)
16557 long i = longval ();
16558 if (i != ((long) (sizeof (short))))
16559 exit (1);
16560 fprintf (f, "%ld\n", i);
16562 else
16564 unsigned long i = ulongval ();
16565 if (i != ((long) (sizeof (short))))
16566 exit (1);
16567 fprintf (f, "%lu\n", i);
16569 exit (ferror (f) || fclose (f) != 0);
16572 return 0;
16574 _ACEOF
16575 rm -f conftest$ac_exeext
16576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577 (eval $ac_link) 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_sizeof_short=`cat conftest.val`
16587 else
16588 echo "$as_me: program exited with status $ac_status" >&5
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16592 ( exit $ac_status )
16593 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16594 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16595 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16596 See \`config.log' for more details." >&5
16597 echo "$as_me: error: cannot compute sizeof (short), 77
16598 See \`config.log' for more details." >&2;}
16599 { (exit 1); exit 1; }; }; }
16601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16604 rm -f conftest.val
16605 else
16606 ac_cv_sizeof_short=0
16609 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16610 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16611 cat >>confdefs.h <<_ACEOF
16612 #define SIZEOF_SHORT $ac_cv_sizeof_short
16613 _ACEOF
16616 echo "$as_me:$LINENO: checking for char" >&5
16617 echo $ECHO_N "checking for char... $ECHO_C" >&6
16618 if test "${ac_cv_type_char+set}" = set; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 else
16621 cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h. */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 $ac_includes_default
16629 main ()
16631 if ((char *) 0)
16632 return 0;
16633 if (sizeof (char))
16634 return 0;
16636 return 0;
16638 _ACEOF
16639 rm -f conftest.$ac_objext
16640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16641 (eval $ac_compile) 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
16648 { ac_try='test -z "$ac_c_werror_flag"
16649 || test ! -s conftest.err'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 ac_cv_type_char=yes
16662 else
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 ac_cv_type_char=no
16668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16670 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16671 echo "${ECHO_T}$ac_cv_type_char" >&6
16673 echo "$as_me:$LINENO: checking size of char" >&5
16674 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16675 if test "${ac_cv_sizeof_char+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678 if test "$ac_cv_type_char" = yes; then
16679 # The cast to unsigned long works around a bug in the HP C Compiler
16680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16682 # This bug is HP SR number 8606223364.
16683 if test "$cross_compiling" = yes; then
16684 # Depending upon the size, compute the lo and hi bounds.
16685 cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h. */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 $ac_includes_default
16693 main ()
16695 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16696 test_array [0] = 0
16699 return 0;
16701 _ACEOF
16702 rm -f conftest.$ac_objext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704 (eval $ac_compile) 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_lo=0 ac_mid=0
16725 while :; do
16726 cat >conftest.$ac_ext <<_ACEOF
16727 /* confdefs.h. */
16728 _ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h. */
16732 $ac_includes_default
16734 main ()
16736 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16737 test_array [0] = 0
16740 return 0;
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag"
16753 || test ! -s conftest.err'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest.$ac_objext'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 ac_hi=$ac_mid; break
16766 else
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16770 ac_lo=`expr $ac_mid + 1`
16771 if test $ac_lo -le $ac_mid; then
16772 ac_lo= ac_hi=
16773 break
16775 ac_mid=`expr 2 '*' $ac_mid + 1`
16777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16778 done
16779 else
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16783 cat >conftest.$ac_ext <<_ACEOF
16784 /* confdefs.h. */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 $ac_includes_default
16791 main ()
16793 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16794 test_array [0] = 0
16797 return 0;
16799 _ACEOF
16800 rm -f conftest.$ac_objext
16801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16802 (eval $ac_compile) 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag"
16810 || test ! -s conftest.err'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest.$ac_objext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_hi=-1 ac_mid=-1
16823 while :; do
16824 cat >conftest.$ac_ext <<_ACEOF
16825 /* confdefs.h. */
16826 _ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16830 $ac_includes_default
16832 main ()
16834 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16835 test_array [0] = 0
16838 return 0;
16840 _ACEOF
16841 rm -f conftest.$ac_objext
16842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16843 (eval $ac_compile) 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_c_werror_flag"
16851 || test ! -s conftest.err'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; } &&
16857 { ac_try='test -s conftest.$ac_objext'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_lo=$ac_mid; break
16864 else
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16868 ac_hi=`expr '(' $ac_mid ')' - 1`
16869 if test $ac_mid -le $ac_hi; then
16870 ac_lo= ac_hi=
16871 break
16873 ac_mid=`expr 2 '*' $ac_mid`
16875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16876 done
16877 else
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16881 ac_lo= ac_hi=
16883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16886 # Binary search between lo and hi bounds.
16887 while test "x$ac_lo" != "x$ac_hi"; do
16888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16889 cat >conftest.$ac_ext <<_ACEOF
16890 /* confdefs.h. */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16895 $ac_includes_default
16897 main ()
16899 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16900 test_array [0] = 0
16903 return 0;
16905 _ACEOF
16906 rm -f conftest.$ac_objext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16908 (eval $ac_compile) 2>conftest.er1
16909 ac_status=$?
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try='test -z "$ac_c_werror_flag"
16916 || test ! -s conftest.err'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try='test -s conftest.$ac_objext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_hi=$ac_mid
16929 else
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 ac_lo=`expr '(' $ac_mid ')' + 1`
16935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16936 done
16937 case $ac_lo in
16938 ?*) ac_cv_sizeof_char=$ac_lo;;
16939 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16940 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16941 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16942 See \`config.log' for more details." >&5
16943 echo "$as_me: error: cannot compute sizeof (char), 77
16944 See \`config.log' for more details." >&2;}
16945 { (exit 1); exit 1; }; }; } ;;
16946 esac
16947 else
16948 if test "$cross_compiling" = yes; then
16949 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16950 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16951 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16952 See \`config.log' for more details." >&5
16953 echo "$as_me: error: cannot run test program while cross compiling
16954 See \`config.log' for more details." >&2;}
16955 { (exit 1); exit 1; }; }; }
16956 else
16957 cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h. */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 $ac_includes_default
16964 long longval () { return (long) (sizeof (char)); }
16965 unsigned long ulongval () { return (long) (sizeof (char)); }
16966 #include <stdio.h>
16967 #include <stdlib.h>
16969 main ()
16972 FILE *f = fopen ("conftest.val", "w");
16973 if (! f)
16974 exit (1);
16975 if (((long) (sizeof (char))) < 0)
16977 long i = longval ();
16978 if (i != ((long) (sizeof (char))))
16979 exit (1);
16980 fprintf (f, "%ld\n", i);
16982 else
16984 unsigned long i = ulongval ();
16985 if (i != ((long) (sizeof (char))))
16986 exit (1);
16987 fprintf (f, "%lu\n", i);
16989 exit (ferror (f) || fclose (f) != 0);
16992 return 0;
16994 _ACEOF
16995 rm -f conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997 (eval $ac_link) 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 ac_cv_sizeof_char=`cat conftest.val`
17007 else
17008 echo "$as_me: program exited with status $ac_status" >&5
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ( exit $ac_status )
17013 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17014 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17015 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17016 See \`config.log' for more details." >&5
17017 echo "$as_me: error: cannot compute sizeof (char), 77
17018 See \`config.log' for more details." >&2;}
17019 { (exit 1); exit 1; }; }; }
17021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17024 rm -f conftest.val
17025 else
17026 ac_cv_sizeof_char=0
17029 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17030 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17031 cat >>confdefs.h <<_ACEOF
17032 #define SIZEOF_CHAR $ac_cv_sizeof_char
17033 _ACEOF
17037 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17038 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17039 case "$ac_cv_sizeof_char" in
17040 1) acx_cv_type_int8_t=char ;;
17041 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17042 echo "$as_me: error: no 8-bit type" >&2;}
17043 { (exit please report a bug); exit please report a bug; }; }
17044 esac
17045 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17046 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17048 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17049 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17050 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17051 2:*) acx_cv_type_int16_t=int ;;
17052 *:2) acx_cv_type_int16_t=short ;;
17053 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17054 echo "$as_me: error: no 16-bit type" >&2;}
17055 { (exit please report a bug); exit please report a bug; }; }
17056 esac
17057 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17058 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17060 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17061 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17062 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17063 4:*) acx_cv_type_int32_t=int ;;
17064 *:4) acx_cv_type_int32_t=long ;;
17065 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17066 echo "$as_me: error: no 32-bit type" >&2;}
17067 { (exit please report a bug); exit please report a bug; }; }
17068 esac
17069 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17070 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17073 # These tests are here to make the output prettier
17075 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17076 case "$ac_cv_sizeof_long" in
17077 8) acx_cv_type_int64_t=long ;;
17078 esac
17079 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17080 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17081 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17082 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17085 # Now we can use the above types
17087 if test "$ac_cv_type_uintptr_t" != yes; then
17088 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17089 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17090 case $ac_cv_sizeof_void_p in
17091 2) acx_cv_type_intptr_t=int16_t ;;
17092 4) acx_cv_type_intptr_t=int32_t ;;
17093 8) acx_cv_type_intptr_t=int64_t ;;
17094 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17095 echo "$as_me: error: no equivalent for intptr_t" >&2;}
17096 { (exit please report a bug); exit please report a bug; }; }
17097 esac
17098 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17099 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17102 # ----------------- done all checks, emit header -------------
17103 ac_config_commands="$ac_config_commands bfd_stdint.h"
17107 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17108 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17109 if test "${ac_cv_header_time+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112 cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h. */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17118 #include <sys/types.h>
17119 #include <sys/time.h>
17120 #include <time.h>
17123 main ()
17125 if ((struct tm *) 0)
17126 return 0;
17128 return 0;
17130 _ACEOF
17131 rm -f conftest.$ac_objext
17132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17133 (eval $ac_compile) 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_c_werror_flag"
17141 || test ! -s conftest.err'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_cv_header_time=yes
17154 else
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_cv_header_time=no
17160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17162 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17163 echo "${ECHO_T}$ac_cv_header_time" >&6
17164 if test $ac_cv_header_time = yes; then
17166 cat >>confdefs.h <<\_ACEOF
17167 #define TIME_WITH_SYS_TIME 1
17168 _ACEOF
17177 ac_header_dirent=no
17178 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17179 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17180 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17181 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 else
17185 cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h. */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 #include <sys/types.h>
17192 #include <$ac_hdr>
17195 main ()
17197 if ((DIR *) 0)
17198 return 0;
17200 return 0;
17202 _ACEOF
17203 rm -f conftest.$ac_objext
17204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17205 (eval $ac_compile) 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_c_werror_flag"
17213 || test ! -s conftest.err'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest.$ac_objext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 eval "$as_ac_Header=yes"
17226 else
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 eval "$as_ac_Header=no"
17232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17237 cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17239 _ACEOF
17241 ac_header_dirent=$ac_hdr; break
17244 done
17245 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17246 if test $ac_header_dirent = dirent.h; then
17247 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17248 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17249 if test "${ac_cv_search_opendir+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 else
17252 ac_func_search_save_LIBS=$LIBS
17253 ac_cv_search_opendir=no
17254 cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h. */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17261 /* Override any gcc2 internal prototype to avoid an error. */
17262 #ifdef __cplusplus
17263 extern "C"
17264 #endif
17265 /* We use char because int might match the return type of a gcc2
17266 builtin and then its argument prototype would still apply. */
17267 char opendir ();
17269 main ()
17271 opendir ();
17273 return 0;
17275 _ACEOF
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278 (eval $ac_link) 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag"
17286 || test ! -s conftest.err'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest$ac_exeext'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17298 ac_cv_search_opendir="none required"
17299 else
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17304 rm -f conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17306 if test "$ac_cv_search_opendir" = no; then
17307 for ac_lib in dir; do
17308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h. */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17316 /* Override any gcc2 internal prototype to avoid an error. */
17317 #ifdef __cplusplus
17318 extern "C"
17319 #endif
17320 /* We use char because int might match the return type of a gcc2
17321 builtin and then its argument prototype would still apply. */
17322 char opendir ();
17324 main ()
17326 opendir ();
17328 return 0;
17330 _ACEOF
17331 rm -f conftest.$ac_objext conftest$ac_exeext
17332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17333 (eval $ac_link) 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } &&
17340 { ac_try='test -z "$ac_c_werror_flag"
17341 || test ! -s conftest.err'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; } &&
17347 { ac_try='test -s conftest$ac_exeext'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_search_opendir="-l$ac_lib"
17354 break
17355 else
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17360 rm -f conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17362 done
17364 LIBS=$ac_func_search_save_LIBS
17366 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17367 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17368 if test "$ac_cv_search_opendir" != no; then
17369 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17373 else
17374 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17376 if test "${ac_cv_search_opendir+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 else
17379 ac_func_search_save_LIBS=$LIBS
17380 ac_cv_search_opendir=no
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17388 /* Override any gcc2 internal prototype to avoid an error. */
17389 #ifdef __cplusplus
17390 extern "C"
17391 #endif
17392 /* We use char because int might match the return type of a gcc2
17393 builtin and then its argument prototype would still apply. */
17394 char opendir ();
17396 main ()
17398 opendir ();
17400 return 0;
17402 _ACEOF
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17405 (eval $ac_link) 2>conftest.er1
17406 ac_status=$?
17407 grep -v '^ *+' conftest.er1 >conftest.err
17408 rm -f conftest.er1
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } &&
17412 { ac_try='test -z "$ac_c_werror_flag"
17413 || test ! -s conftest.err'
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; } &&
17419 { ac_try='test -s conftest$ac_exeext'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_cv_search_opendir="none required"
17426 else
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17431 rm -f conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17433 if test "$ac_cv_search_opendir" = no; then
17434 for ac_lib in x; do
17435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17436 cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h. */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17443 /* Override any gcc2 internal prototype to avoid an error. */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 /* We use char because int might match the return type of a gcc2
17448 builtin and then its argument prototype would still apply. */
17449 char opendir ();
17451 main ()
17453 opendir ();
17455 return 0;
17457 _ACEOF
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460 (eval $ac_link) 2>conftest.er1
17461 ac_status=$?
17462 grep -v '^ *+' conftest.er1 >conftest.err
17463 rm -f conftest.er1
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag"
17468 || test ! -s conftest.err'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest$ac_exeext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_search_opendir="-l$ac_lib"
17481 break
17482 else
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17487 rm -f conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
17489 done
17491 LIBS=$ac_func_search_save_LIBS
17493 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17494 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17495 if test "$ac_cv_search_opendir" != no; then
17496 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17502 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17503 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17504 if test "${gcc_cv_header_string+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 else
17507 cat >conftest.$ac_ext <<_ACEOF
17508 /* confdefs.h. */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17513 #include <string.h>
17514 #include <strings.h>
17516 main ()
17520 return 0;
17522 _ACEOF
17523 rm -f conftest.$ac_objext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>conftest.er1
17526 ac_status=$?
17527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_c_werror_flag"
17533 || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest.$ac_objext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 gcc_cv_header_string=yes
17546 else
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 gcc_cv_header_string=no
17552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17554 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17555 echo "${ECHO_T}$gcc_cv_header_string" >&6
17556 if test $gcc_cv_header_string = yes; then
17558 cat >>confdefs.h <<\_ACEOF
17559 #define STRING_WITH_STRINGS 1
17560 _ACEOF
17572 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
17574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17575 echo "$as_me:$LINENO: checking for $ac_func" >&5
17576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17577 if eval "test \"\${$as_ac_var+set}\" = set"; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580 cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h. */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17588 #define $ac_func innocuous_$ac_func
17590 /* System header to define __stub macros and hopefully few prototypes,
17591 which can conflict with char $ac_func (); below.
17592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17593 <limits.h> exists even on freestanding compilers. */
17595 #ifdef __STDC__
17596 # include <limits.h>
17597 #else
17598 # include <assert.h>
17599 #endif
17601 #undef $ac_func
17603 /* Override any gcc2 internal prototype to avoid an error. */
17604 #ifdef __cplusplus
17605 extern "C"
17607 #endif
17608 /* We use char because int might match the return type of a gcc2
17609 builtin and then its argument prototype would still apply. */
17610 char $ac_func ();
17611 /* The GNU C library defines this for functions which it implements
17612 to always fail with ENOSYS. Some functions are actually named
17613 something starting with __ and the normal name is an alias. */
17614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17615 choke me
17616 #else
17617 char (*f) () = $ac_func;
17618 #endif
17619 #ifdef __cplusplus
17621 #endif
17624 main ()
17626 return f != $ac_func;
17628 return 0;
17630 _ACEOF
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17633 (eval $ac_link) 2>conftest.er1
17634 ac_status=$?
17635 grep -v '^ *+' conftest.er1 >conftest.err
17636 rm -f conftest.er1
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } &&
17640 { ac_try='test -z "$ac_c_werror_flag"
17641 || test ! -s conftest.err'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest$ac_exeext'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 eval "$as_ac_var=yes"
17654 else
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17658 eval "$as_ac_var=no"
17660 rm -f conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
17663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17665 if test `eval echo '${'$as_ac_var'}'` = yes; then
17666 cat >>confdefs.h <<_ACEOF
17667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17668 _ACEOF
17671 done
17674 for ac_func in strtoull
17676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17677 echo "$as_me:$LINENO: checking for $ac_func" >&5
17678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17679 if eval "test \"\${$as_ac_var+set}\" = set"; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h. */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17690 #define $ac_func innocuous_$ac_func
17692 /* System header to define __stub macros and hopefully few prototypes,
17693 which can conflict with char $ac_func (); below.
17694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17695 <limits.h> exists even on freestanding compilers. */
17697 #ifdef __STDC__
17698 # include <limits.h>
17699 #else
17700 # include <assert.h>
17701 #endif
17703 #undef $ac_func
17705 /* Override any gcc2 internal prototype to avoid an error. */
17706 #ifdef __cplusplus
17707 extern "C"
17709 #endif
17710 /* We use char because int might match the return type of a gcc2
17711 builtin and then its argument prototype would still apply. */
17712 char $ac_func ();
17713 /* The GNU C library defines this for functions which it implements
17714 to always fail with ENOSYS. Some functions are actually named
17715 something starting with __ and the normal name is an alias. */
17716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17717 choke me
17718 #else
17719 char (*f) () = $ac_func;
17720 #endif
17721 #ifdef __cplusplus
17723 #endif
17726 main ()
17728 return f != $ac_func;
17730 return 0;
17732 _ACEOF
17733 rm -f conftest.$ac_objext conftest$ac_exeext
17734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17735 (eval $ac_link) 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_c_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest$ac_exeext'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 eval "$as_ac_var=yes"
17756 else
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 eval "$as_ac_var=no"
17762 rm -f conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
17765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17767 if test `eval echo '${'$as_ac_var'}'` = yes; then
17768 cat >>confdefs.h <<_ACEOF
17769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17770 _ACEOF
17773 done
17776 echo "$as_me:$LINENO: checking whether basename is declared" >&5
17777 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17778 if test "${ac_cv_have_decl_basename+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 else
17781 cat >conftest.$ac_ext <<_ACEOF
17782 /* confdefs.h. */
17783 _ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17787 $ac_includes_default
17789 main ()
17791 #ifndef basename
17792 char *p = (char *) basename;
17793 #endif
17796 return 0;
17798 _ACEOF
17799 rm -f conftest.$ac_objext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17801 (eval $ac_compile) 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_c_werror_flag"
17809 || test ! -s conftest.err'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest.$ac_objext'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ac_cv_have_decl_basename=yes
17822 else
17823 echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17826 ac_cv_have_decl_basename=no
17828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17831 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17832 if test $ac_cv_have_decl_basename = yes; then
17834 cat >>confdefs.h <<_ACEOF
17835 #define HAVE_DECL_BASENAME 1
17836 _ACEOF
17839 else
17840 cat >>confdefs.h <<_ACEOF
17841 #define HAVE_DECL_BASENAME 0
17842 _ACEOF
17848 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17849 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17850 if test "${ac_cv_have_decl_ftello+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853 cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h. */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17859 $ac_includes_default
17861 main ()
17863 #ifndef ftello
17864 char *p = (char *) ftello;
17865 #endif
17868 return 0;
17870 _ACEOF
17871 rm -f conftest.$ac_objext
17872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17873 (eval $ac_compile) 2>conftest.er1
17874 ac_status=$?
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } &&
17880 { ac_try='test -z "$ac_c_werror_flag"
17881 || test ! -s conftest.err'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest.$ac_objext'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 ac_cv_have_decl_ftello=yes
17894 else
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 ac_cv_have_decl_ftello=no
17900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17902 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17903 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17904 if test $ac_cv_have_decl_ftello = yes; then
17906 cat >>confdefs.h <<_ACEOF
17907 #define HAVE_DECL_FTELLO 1
17908 _ACEOF
17911 else
17912 cat >>confdefs.h <<_ACEOF
17913 #define HAVE_DECL_FTELLO 0
17914 _ACEOF
17920 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17921 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17922 if test "${ac_cv_have_decl_ftello64+set}" = set; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 else
17925 cat >conftest.$ac_ext <<_ACEOF
17926 /* confdefs.h. */
17927 _ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h. */
17931 $ac_includes_default
17933 main ()
17935 #ifndef ftello64
17936 char *p = (char *) ftello64;
17937 #endif
17940 return 0;
17942 _ACEOF
17943 rm -f conftest.$ac_objext
17944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17945 (eval $ac_compile) 2>conftest.er1
17946 ac_status=$?
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try='test -z "$ac_c_werror_flag"
17953 || test ! -s conftest.err'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest.$ac_objext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_have_decl_ftello64=yes
17966 else
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 ac_cv_have_decl_ftello64=no
17972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17974 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17975 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17976 if test $ac_cv_have_decl_ftello64 = yes; then
17978 cat >>confdefs.h <<_ACEOF
17979 #define HAVE_DECL_FTELLO64 1
17980 _ACEOF
17983 else
17984 cat >>confdefs.h <<_ACEOF
17985 #define HAVE_DECL_FTELLO64 0
17986 _ACEOF
17992 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17993 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17994 if test "${ac_cv_have_decl_fseeko+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 else
17997 cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h. */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003 $ac_includes_default
18005 main ()
18007 #ifndef fseeko
18008 char *p = (char *) fseeko;
18009 #endif
18012 return 0;
18014 _ACEOF
18015 rm -f conftest.$ac_objext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18017 (eval $ac_compile) 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
18024 { ac_try='test -z "$ac_c_werror_flag"
18025 || test ! -s conftest.err'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest.$ac_objext'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 ac_cv_have_decl_fseeko=yes
18038 else
18039 echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18042 ac_cv_have_decl_fseeko=no
18044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18046 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18047 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18048 if test $ac_cv_have_decl_fseeko = yes; then
18050 cat >>confdefs.h <<_ACEOF
18051 #define HAVE_DECL_FSEEKO 1
18052 _ACEOF
18055 else
18056 cat >>confdefs.h <<_ACEOF
18057 #define HAVE_DECL_FSEEKO 0
18058 _ACEOF
18064 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18065 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18066 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18067 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 else
18069 cat >conftest.$ac_ext <<_ACEOF
18070 /* confdefs.h. */
18071 _ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18075 $ac_includes_default
18077 main ()
18079 #ifndef fseeko64
18080 char *p = (char *) fseeko64;
18081 #endif
18084 return 0;
18086 _ACEOF
18087 rm -f conftest.$ac_objext
18088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18089 (eval $ac_compile) 2>conftest.er1
18090 ac_status=$?
18091 grep -v '^ *+' conftest.er1 >conftest.err
18092 rm -f conftest.er1
18093 cat conftest.err >&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } &&
18096 { ac_try='test -z "$ac_c_werror_flag"
18097 || test ! -s conftest.err'
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; } &&
18103 { ac_try='test -s conftest.$ac_objext'
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105 (eval $ac_try) 2>&5
18106 ac_status=$?
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; }; then
18109 ac_cv_have_decl_fseeko64=yes
18110 else
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18114 ac_cv_have_decl_fseeko64=no
18116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18118 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18119 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18120 if test $ac_cv_have_decl_fseeko64 = yes; then
18122 cat >>confdefs.h <<_ACEOF
18123 #define HAVE_DECL_FSEEKO64 1
18124 _ACEOF
18127 else
18128 cat >>confdefs.h <<_ACEOF
18129 #define HAVE_DECL_FSEEKO64 0
18130 _ACEOF
18138 case "${host}" in
18139 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18141 cat >>confdefs.h <<\_ACEOF
18142 #define USE_BINARY_FOPEN 1
18143 _ACEOF
18145 esac
18147 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18148 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18149 if test "${ac_cv_have_decl_ffs+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 else
18152 cat >conftest.$ac_ext <<_ACEOF
18153 /* confdefs.h. */
18154 _ACEOF
18155 cat confdefs.h >>conftest.$ac_ext
18156 cat >>conftest.$ac_ext <<_ACEOF
18157 /* end confdefs.h. */
18158 $ac_includes_default
18160 main ()
18162 #ifndef ffs
18163 char *p = (char *) ffs;
18164 #endif
18167 return 0;
18169 _ACEOF
18170 rm -f conftest.$ac_objext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172 (eval $ac_compile) 2>conftest.er1
18173 ac_status=$?
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
18179 { ac_try='test -z "$ac_c_werror_flag"
18180 || test ! -s conftest.err'
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest.$ac_objext'
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_cv_have_decl_ffs=yes
18193 else
18194 echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 ac_cv_have_decl_ffs=no
18199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18201 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18202 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18203 if test $ac_cv_have_decl_ffs = yes; then
18205 cat >>confdefs.h <<_ACEOF
18206 #define HAVE_DECL_FFS 1
18207 _ACEOF
18210 else
18211 cat >>confdefs.h <<_ACEOF
18212 #define HAVE_DECL_FFS 0
18213 _ACEOF
18219 echo "$as_me:$LINENO: checking whether free is declared" >&5
18220 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18221 if test "${ac_cv_have_decl_free+set}" = set; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 else
18224 cat >conftest.$ac_ext <<_ACEOF
18225 /* confdefs.h. */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h. */
18230 $ac_includes_default
18232 main ()
18234 #ifndef free
18235 char *p = (char *) free;
18236 #endif
18239 return 0;
18241 _ACEOF
18242 rm -f conftest.$ac_objext
18243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18244 (eval $ac_compile) 2>conftest.er1
18245 ac_status=$?
18246 grep -v '^ *+' conftest.er1 >conftest.err
18247 rm -f conftest.er1
18248 cat conftest.err >&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
18251 { ac_try='test -z "$ac_c_werror_flag"
18252 || test ! -s conftest.err'
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest.$ac_objext'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_cv_have_decl_free=yes
18265 else
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18269 ac_cv_have_decl_free=no
18271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18273 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18274 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18275 if test $ac_cv_have_decl_free = yes; then
18277 cat >>confdefs.h <<_ACEOF
18278 #define HAVE_DECL_FREE 1
18279 _ACEOF
18282 else
18283 cat >>confdefs.h <<_ACEOF
18284 #define HAVE_DECL_FREE 0
18285 _ACEOF
18291 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18292 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18293 if test "${ac_cv_have_decl_getenv+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h. */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302 $ac_includes_default
18304 main ()
18306 #ifndef getenv
18307 char *p = (char *) getenv;
18308 #endif
18311 return 0;
18313 _ACEOF
18314 rm -f conftest.$ac_objext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18316 (eval $ac_compile) 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag"
18324 || test ! -s conftest.err'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; } &&
18330 { ac_try='test -s conftest.$ac_objext'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 ac_cv_have_decl_getenv=yes
18337 else
18338 echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_cv_have_decl_getenv=no
18343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18345 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18346 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18347 if test $ac_cv_have_decl_getenv = yes; then
18349 cat >>confdefs.h <<_ACEOF
18350 #define HAVE_DECL_GETENV 1
18351 _ACEOF
18354 else
18355 cat >>confdefs.h <<_ACEOF
18356 #define HAVE_DECL_GETENV 0
18357 _ACEOF
18363 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18364 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18365 if test "${ac_cv_have_decl_malloc+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18367 else
18368 cat >conftest.$ac_ext <<_ACEOF
18369 /* confdefs.h. */
18370 _ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18374 $ac_includes_default
18376 main ()
18378 #ifndef malloc
18379 char *p = (char *) malloc;
18380 #endif
18383 return 0;
18385 _ACEOF
18386 rm -f conftest.$ac_objext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388 (eval $ac_compile) 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest.$ac_objext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_have_decl_malloc=yes
18409 else
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18413 ac_cv_have_decl_malloc=no
18415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18417 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18418 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18419 if test $ac_cv_have_decl_malloc = yes; then
18421 cat >>confdefs.h <<_ACEOF
18422 #define HAVE_DECL_MALLOC 1
18423 _ACEOF
18426 else
18427 cat >>confdefs.h <<_ACEOF
18428 #define HAVE_DECL_MALLOC 0
18429 _ACEOF
18435 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18436 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18437 if test "${ac_cv_have_decl_realloc+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440 cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h. */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 $ac_includes_default
18448 main ()
18450 #ifndef realloc
18451 char *p = (char *) realloc;
18452 #endif
18455 return 0;
18457 _ACEOF
18458 rm -f conftest.$ac_objext
18459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18460 (eval $ac_compile) 2>conftest.er1
18461 ac_status=$?
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
18467 { ac_try='test -z "$ac_c_werror_flag"
18468 || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest.$ac_objext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_have_decl_realloc=yes
18481 else
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_cv_have_decl_realloc=no
18487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18489 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18490 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18491 if test $ac_cv_have_decl_realloc = yes; then
18493 cat >>confdefs.h <<_ACEOF
18494 #define HAVE_DECL_REALLOC 1
18495 _ACEOF
18498 else
18499 cat >>confdefs.h <<_ACEOF
18500 #define HAVE_DECL_REALLOC 0
18501 _ACEOF
18507 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18508 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18509 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18511 else
18512 cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h. */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18518 $ac_includes_default
18520 main ()
18522 #ifndef stpcpy
18523 char *p = (char *) stpcpy;
18524 #endif
18527 return 0;
18529 _ACEOF
18530 rm -f conftest.$ac_objext
18531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18532 (eval $ac_compile) 2>conftest.er1
18533 ac_status=$?
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_c_werror_flag"
18540 || test ! -s conftest.err'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest.$ac_objext'
18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548 (eval $ac_try) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
18552 ac_cv_have_decl_stpcpy=yes
18553 else
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18557 ac_cv_have_decl_stpcpy=no
18559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18561 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18562 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18563 if test $ac_cv_have_decl_stpcpy = yes; then
18565 cat >>confdefs.h <<_ACEOF
18566 #define HAVE_DECL_STPCPY 1
18567 _ACEOF
18570 else
18571 cat >>confdefs.h <<_ACEOF
18572 #define HAVE_DECL_STPCPY 0
18573 _ACEOF
18579 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18580 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18581 if test "${ac_cv_have_decl_strstr+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584 cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h. */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 $ac_includes_default
18592 main ()
18594 #ifndef strstr
18595 char *p = (char *) strstr;
18596 #endif
18599 return 0;
18601 _ACEOF
18602 rm -f conftest.$ac_objext
18603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18604 (eval $ac_compile) 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag"
18612 || test ! -s conftest.err'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest.$ac_objext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_cv_have_decl_strstr=yes
18625 else
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 ac_cv_have_decl_strstr=no
18631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18633 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18634 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18635 if test $ac_cv_have_decl_strstr = yes; then
18637 cat >>confdefs.h <<_ACEOF
18638 #define HAVE_DECL_STRSTR 1
18639 _ACEOF
18642 else
18643 cat >>confdefs.h <<_ACEOF
18644 #define HAVE_DECL_STRSTR 0
18645 _ACEOF
18651 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18652 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18653 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 else
18656 cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h. */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 $ac_includes_default
18664 main ()
18666 #ifndef snprintf
18667 char *p = (char *) snprintf;
18668 #endif
18671 return 0;
18673 _ACEOF
18674 rm -f conftest.$ac_objext
18675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18676 (eval $ac_compile) 2>conftest.er1
18677 ac_status=$?
18678 grep -v '^ *+' conftest.er1 >conftest.err
18679 rm -f conftest.er1
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
18683 { ac_try='test -z "$ac_c_werror_flag"
18684 || test ! -s conftest.err'
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try='test -s conftest.$ac_objext'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; }; then
18696 ac_cv_have_decl_snprintf=yes
18697 else
18698 echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18701 ac_cv_have_decl_snprintf=no
18703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18705 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18706 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18707 if test $ac_cv_have_decl_snprintf = yes; then
18709 cat >>confdefs.h <<_ACEOF
18710 #define HAVE_DECL_SNPRINTF 1
18711 _ACEOF
18714 else
18715 cat >>confdefs.h <<_ACEOF
18716 #define HAVE_DECL_SNPRINTF 0
18717 _ACEOF
18723 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18724 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18725 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 else
18728 cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h. */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734 $ac_includes_default
18736 main ()
18738 #ifndef vsnprintf
18739 char *p = (char *) vsnprintf;
18740 #endif
18743 return 0;
18745 _ACEOF
18746 rm -f conftest.$ac_objext
18747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18748 (eval $ac_compile) 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag"
18756 || test ! -s conftest.err'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; } &&
18762 { ac_try='test -s conftest.$ac_objext'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; }; then
18768 ac_cv_have_decl_vsnprintf=yes
18769 else
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18773 ac_cv_have_decl_vsnprintf=no
18775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18777 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18778 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18779 if test $ac_cv_have_decl_vsnprintf = yes; then
18781 cat >>confdefs.h <<_ACEOF
18782 #define HAVE_DECL_VSNPRINTF 1
18783 _ACEOF
18786 else
18787 cat >>confdefs.h <<_ACEOF
18788 #define HAVE_DECL_VSNPRINTF 0
18789 _ACEOF
18796 # Link in zlib if we can. This allows us to read compressed debug sections.
18797 # This is used only by compress.c.
18798 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18799 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18800 if test "${ac_cv_search_zlibVersion+set}" = set; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18802 else
18803 ac_func_search_save_LIBS=$LIBS
18804 ac_cv_search_zlibVersion=no
18805 cat >conftest.$ac_ext <<_ACEOF
18806 /* confdefs.h. */
18807 _ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18812 /* Override any gcc2 internal prototype to avoid an error. */
18813 #ifdef __cplusplus
18814 extern "C"
18815 #endif
18816 /* We use char because int might match the return type of a gcc2
18817 builtin and then its argument prototype would still apply. */
18818 char zlibVersion ();
18820 main ()
18822 zlibVersion ();
18824 return 0;
18826 _ACEOF
18827 rm -f conftest.$ac_objext conftest$ac_exeext
18828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18829 (eval $ac_link) 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag"
18837 || test ! -s conftest.err'
18838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18839 (eval $ac_try) 2>&5
18840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; } &&
18843 { ac_try='test -s conftest$ac_exeext'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18846 ac_status=$?
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18849 ac_cv_search_zlibVersion="none required"
18850 else
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18855 rm -f conftest.err conftest.$ac_objext \
18856 conftest$ac_exeext conftest.$ac_ext
18857 if test "$ac_cv_search_zlibVersion" = no; then
18858 for ac_lib in z; do
18859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18860 cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h. */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18867 /* Override any gcc2 internal prototype to avoid an error. */
18868 #ifdef __cplusplus
18869 extern "C"
18870 #endif
18871 /* We use char because int might match the return type of a gcc2
18872 builtin and then its argument prototype would still apply. */
18873 char zlibVersion ();
18875 main ()
18877 zlibVersion ();
18879 return 0;
18881 _ACEOF
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18884 (eval $ac_link) 2>conftest.er1
18885 ac_status=$?
18886 grep -v '^ *+' conftest.er1 >conftest.err
18887 rm -f conftest.er1
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_c_werror_flag"
18892 || test ! -s conftest.err'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; } &&
18898 { ac_try='test -s conftest$ac_exeext'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_cv_search_zlibVersion="-l$ac_lib"
18905 break
18906 else
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18911 rm -f conftest.err conftest.$ac_objext \
18912 conftest$ac_exeext conftest.$ac_ext
18913 done
18915 LIBS=$ac_func_search_save_LIBS
18917 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18918 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18919 if test "$ac_cv_search_zlibVersion" != no; then
18920 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18922 for ac_header in zlib.h
18924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18926 echo "$as_me:$LINENO: checking for $ac_header" >&5
18927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18933 else
18934 # Is the header compilable?
18935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h. */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943 $ac_includes_default
18944 #include <$ac_header>
18945 _ACEOF
18946 rm -f conftest.$ac_objext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18948 (eval $ac_compile) 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag"
18956 || test ! -s conftest.err'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest.$ac_objext'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 ac_header_compiler=yes
18969 else
18970 echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 ac_header_compiler=no
18975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18977 echo "${ECHO_T}$ac_header_compiler" >&6
18979 # Is the header present?
18980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18982 cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h. */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18988 #include <$ac_header>
18989 _ACEOF
18990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } >/dev/null; then
18998 if test -s conftest.err; then
18999 ac_cpp_err=$ac_c_preproc_warn_flag
19000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19001 else
19002 ac_cpp_err=
19004 else
19005 ac_cpp_err=yes
19007 if test -z "$ac_cpp_err"; then
19008 ac_header_preproc=yes
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19013 ac_header_preproc=no
19015 rm -f conftest.err conftest.$ac_ext
19016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19017 echo "${ECHO_T}$ac_header_preproc" >&6
19019 # So? What about this header?
19020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19021 yes:no: )
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19026 ac_header_preproc=yes
19028 no:yes:* )
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19042 cat <<\_ASBOX
19043 ## ------------------------------------------ ##
19044 ## Report this to the AC_PACKAGE_NAME lists. ##
19045 ## ------------------------------------------ ##
19046 _ASBOX
19048 sed "s/^/$as_me: WARNING: /" >&2
19050 esac
19051 echo "$as_me:$LINENO: checking for $ac_header" >&5
19052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 else
19056 eval "$as_ac_Header=\$ac_header_preproc"
19058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19063 cat >>confdefs.h <<_ACEOF
19064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19065 _ACEOF
19069 done
19074 # If we are configured native, pick a core file support file.
19075 COREFILE=
19076 COREFLAG=
19077 TRAD_HEADER=
19078 if test "${target}" = "${host}"; then
19079 case "${host}" in
19080 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
19081 COREFILE=''
19083 alpha*-*-linux-*)
19084 COREFILE=trad-core.lo
19085 TRAD_HEADER='"hosts/alphalinux.h"'
19087 alpha*-*-netbsd* | alpha*-*-openbsd*)
19088 COREFILE=netbsd-core.lo
19090 alpha*-*-*) COREFILE=osf-core.lo ;;
19091 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19092 COREFILE='' ;;
19093 arm-*-netbsd* | arm-*-openbsd*)
19094 COREFILE=netbsd-core.lo
19096 arm-*-riscix) COREFILE=trad-core.lo ;;
19097 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19098 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19099 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19100 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19101 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
19102 hppa*-*-netbsd* | hppa*-*-openbsd*)
19103 COREFILE=netbsd-core.lo
19106 i370-*-*)
19107 COREFILE=trad-core.lo
19108 TRAD_HEADER='"hosts/i370linux.h"'
19111 i[3-7]86-sequent-bsd*)
19112 COREFILE=trad-core.lo
19113 TRAD_HEADER='"hosts/symmetry.h"'
19115 i[3-7]86-sequent-sysv4*) ;;
19116 i[3-7]86-sequent-sysv*)
19117 COREFILE=trad-core.lo
19118 TRAD_HEADER='"hosts/symmetry.h"'
19120 i[3-7]86-*-bsdi)
19121 COREFILE=
19123 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*)
19124 COREFILE=trad-core.lo
19125 TRAD_HEADER='"hosts/i386bsd.h"'
19127 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
19128 COREFILE=''
19129 TRAD_HEADER='"hosts/i386bsd.h"'
19131 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
19132 COREFILE=netbsd-core.lo
19134 i[3-7]86-esix-sysv3*)
19135 COREFILE=trad-core.lo
19136 TRAD_HEADER='"hosts/esix.h"'
19138 i[3-7]86-*-sco3.2v5*)
19139 COREFILE=sco5-core.lo
19141 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
19142 COREFILE=trad-core.lo
19143 TRAD_HEADER='"hosts/i386sco.h"'
19145 i[3-7]86-*-mach3*)
19146 COREFILE=trad-core.lo
19147 TRAD_HEADER='"hosts/i386mach3.h"'
19149 i[3-7]86-*-linux-*)
19150 COREFILE=trad-core.lo
19151 TRAD_HEADER='"hosts/i386linux.h"'
19153 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19154 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
19155 i860-*-mach3* | i860-*-osf1*)
19156 COREFILE=trad-core.lo
19157 TRAD_HEADER='"hosts/i860mach3.h"'
19159 mips-*-netbsd* | mips*-*-openbsd*)
19160 COREFILE=netbsd-core.lo
19162 mips-dec-*)
19163 COREFILE=trad-core.lo
19164 TRAD_HEADER='"hosts/decstation.h"'
19166 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19167 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19168 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
19169 mips-*-sysv4*) ;;
19170 mips-*-sysv* | mips-*-riscos*)
19171 COREFILE=trad-core.lo
19172 TRAD_HEADER='"hosts/riscos.h"'
19174 mips-sony-bsd*)
19175 COREFILE=trad-core.lo
19176 TRAD_HEADER='"hosts/news-mips.h"'
19178 m68*-bull*-sysv*)
19179 COREFILE=trad-core.lo
19180 TRAD_HEADER='"hosts/dpx2.h"'
19182 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19183 m68*-hp-bsd*)
19184 COREFILE=trad-core.lo
19185 TRAD_HEADER='"hosts/hp300bsd.h"'
19187 m68*-*-linux-*)
19188 COREFILE=trad-core.lo
19189 TRAD_HEADER='"hosts/m68klinux.h"'
19191 m68*-motorola-sysv*)
19192 COREFILE=trad-core.lo
19193 TRAD_HEADER='"hosts/delta68.h"'
19195 m68*-sony-*)
19196 COREFILE=trad-core.lo
19197 TRAD_HEADER='"hosts/news.h"'
19199 m68*-*-netbsd* | m68*-*-openbsd*)
19200 COREFILE=netbsd-core.lo
19202 m68*-apple-aux*)
19203 COREFILE=trad-core.lo
19204 TRAD_HEADER='"hosts/m68kaux.h"'
19206 m88*-*-sysv4*)
19208 m88*-motorola-sysv*)
19209 COREFILE=ptrace-core.lo
19211 m88*-*-mach3*)
19212 COREFILE=trad-core.lo
19213 TRAD_HEADER='"hosts/m88kmach3.h"'
19215 m88*-*-openbsd*)
19216 COREFILE=netbsd-core.lo
19218 ns32k-pc532-mach)
19219 COREFILE=trad-core.lo
19220 TRAD_HEADER='"hosts/pc532mach.h"'
19222 ns32k-*-netbsd* | ns32k-*-openbsd*)
19223 COREFILE=netbsd-core.lo
19225 rs6000-*-lynx*)
19226 COREFILE=lynx-core.lo
19228 rs6000-*-aix5.* | powerpc-*-aix5.*)
19229 COREFILE=rs6000-core.lo
19230 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19232 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
19233 COREFILE=rs6000-core.lo
19234 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
19235 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19236 # have c_impl as a member of struct core_dumpx
19237 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19238 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 #include <core.h>
19247 main ()
19249 struct core_dumpx c; c.c_impl = 0;
19251 return 0;
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19256 (eval $ac_compile) 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -z "$ac_c_werror_flag"
19264 || test ! -s conftest.err'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } &&
19270 { ac_try='test -s conftest.$ac_objext'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19277 cat >>confdefs.h <<\_ACEOF
19278 #define HAVE_ST_C_IMPL 1
19279 _ACEOF
19281 echo "$as_me:$LINENO: result: yes" >&5
19282 echo "${ECHO_T}yes" >&6
19283 else
19284 echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19287 echo "$as_me:$LINENO: result: no" >&5
19288 echo "${ECHO_T}no" >&6
19290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19292 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19293 rs6000-*-*) COREFILE=rs6000-core.lo ;;
19294 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19295 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19296 powerpc-*-beos*) ;;
19297 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19298 COREFILE='' ;;
19299 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
19300 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
19301 s390*-*-*) COREFILE=trad-core.lo ;;
19302 sh*-*-netbsd* | sh*-*-openbsd*)
19303 COREFILE=netbsd-core.lo
19305 sparc-*-netbsd* | sparc*-*-openbsd*)
19306 COREFILE=netbsd-core.lo
19308 tahoe-*-*)
19309 COREFILE=trad-core.lo
19310 TRAD_HEADER='"hosts/tahoe.h"'
19312 vax-*-netbsd* | vax-*-openbsd*)
19313 COREFILE=netbsd-core.lo
19315 vax-*-ultrix2*)
19316 COREFILE=trad-core.lo
19317 TRAD_HEADER='"hosts/vaxult2.h"'
19319 vax-*-ultrix*)
19320 COREFILE=trad-core.lo
19321 TRAD_HEADER='"hosts/vaxult2.h"'
19323 vax-*-linux-*)
19324 COREFILE=trad-core.lo
19325 TRAD_HEADER='"hosts/vaxlinux.h"'
19327 vax-*-*)
19328 COREFILE=trad-core.lo
19329 TRAD_HEADER='"hosts/vaxbsd.h"'
19331 x86_64-*-netbsd* | x86_64-*-openbsd*)
19332 COREFILE=netbsd-core.lo
19334 esac
19336 case "$COREFILE" in
19337 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19338 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19339 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19340 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19341 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19342 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19343 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19344 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19345 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19346 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19347 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19348 esac
19350 # ELF corefile support has several flavors, but all of
19351 # them use something called <sys/procfs.h>
19353 for ac_header in sys/procfs.h
19355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19357 echo "$as_me:$LINENO: checking for $ac_header" >&5
19358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19364 else
19365 # Is the header compilable?
19366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19368 cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h. */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 $ac_includes_default
19375 #include <$ac_header>
19376 _ACEOF
19377 rm -f conftest.$ac_objext
19378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19379 (eval $ac_compile) 2>conftest.er1
19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } &&
19386 { ac_try='test -z "$ac_c_werror_flag"
19387 || test ! -s conftest.err'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; } &&
19393 { ac_try='test -s conftest.$ac_objext'
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; }; then
19399 ac_header_compiler=yes
19400 else
19401 echo "$as_me: failed program was:" >&5
19402 sed 's/^/| /' conftest.$ac_ext >&5
19404 ac_header_compiler=no
19406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19408 echo "${ECHO_T}$ac_header_compiler" >&6
19410 # Is the header present?
19411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19413 cat >conftest.$ac_ext <<_ACEOF
19414 /* confdefs.h. */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19419 #include <$ac_header>
19420 _ACEOF
19421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19423 ac_status=$?
19424 grep -v '^ *+' conftest.er1 >conftest.err
19425 rm -f conftest.er1
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } >/dev/null; then
19429 if test -s conftest.err; then
19430 ac_cpp_err=$ac_c_preproc_warn_flag
19431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19432 else
19433 ac_cpp_err=
19435 else
19436 ac_cpp_err=yes
19438 if test -z "$ac_cpp_err"; then
19439 ac_header_preproc=yes
19440 else
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19444 ac_header_preproc=no
19446 rm -f conftest.err conftest.$ac_ext
19447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19448 echo "${ECHO_T}$ac_header_preproc" >&6
19450 # So? What about this header?
19451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19452 yes:no: )
19453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19457 ac_header_preproc=yes
19459 no:yes:* )
19460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19473 cat <<\_ASBOX
19474 ## ------------------------------------------ ##
19475 ## Report this to the AC_PACKAGE_NAME lists. ##
19476 ## ------------------------------------------ ##
19477 _ASBOX
19479 sed "s/^/$as_me: WARNING: /" >&2
19481 esac
19482 echo "$as_me:$LINENO: checking for $ac_header" >&5
19483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19486 else
19487 eval "$as_ac_Header=\$ac_header_preproc"
19489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19494 cat >>confdefs.h <<_ACEOF
19495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19496 _ACEOF
19500 done
19502 if test "$ac_cv_header_sys_procfs_h" = yes; then
19503 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19504 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19505 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h. */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19515 #define _SYSCALL32
19516 #include <sys/procfs.h>
19518 main ()
19520 prstatus_t avar
19522 return 0;
19524 _ACEOF
19525 rm -f conftest.$ac_objext
19526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19527 (eval $ac_compile) 2>conftest.er1
19528 ac_status=$?
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_c_werror_flag"
19535 || test ! -s conftest.err'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest.$ac_objext'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19548 else
19549 echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19552 bfd_cv_have_sys_procfs_type_prstatus_t=no
19555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19558 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
19560 cat >>confdefs.h <<\_ACEOF
19561 #define HAVE_PRSTATUS_T 1
19562 _ACEOF
19565 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19566 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
19568 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19569 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19570 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573 cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h. */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19580 #define _SYSCALL32
19581 #include <sys/procfs.h>
19583 main ()
19585 prstatus32_t avar
19587 return 0;
19589 _ACEOF
19590 rm -f conftest.$ac_objext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19592 (eval $ac_compile) 2>conftest.er1
19593 ac_status=$?
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_c_werror_flag"
19600 || test ! -s conftest.err'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19613 else
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 bfd_cv_have_sys_procfs_type_prstatus32_t=no
19620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19623 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
19625 cat >>confdefs.h <<\_ACEOF
19626 #define HAVE_PRSTATUS32_T 1
19627 _ACEOF
19630 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19631 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
19633 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19634 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19635 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 else
19638 cat >conftest.$ac_ext <<_ACEOF
19639 /* confdefs.h. */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19645 #define _SYSCALL32
19646 #include <sys/procfs.h>
19648 main ()
19650 prstatus_t avar; void* aref = (void*) &avar.pr_who
19652 return 0;
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } &&
19664 { ac_try='test -z "$ac_c_werror_flag"
19665 || test ! -s conftest.err'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; } &&
19671 { ac_try='test -s conftest.$ac_objext'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19678 else
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19682 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19688 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
19690 cat >>confdefs.h <<\_ACEOF
19691 #define HAVE_PRSTATUS_T_PR_WHO 1
19692 _ACEOF
19695 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19696 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
19698 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19699 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19700 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703 cat >conftest.$ac_ext <<_ACEOF
19704 /* confdefs.h. */
19705 _ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19710 #define _SYSCALL32
19711 #include <sys/procfs.h>
19713 main ()
19715 prstatus32_t avar; void* aref = (void*) &avar.pr_who
19717 return 0;
19719 _ACEOF
19720 rm -f conftest.$ac_objext
19721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19722 (eval $ac_compile) 2>conftest.er1
19723 ac_status=$?
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } &&
19729 { ac_try='test -z "$ac_c_werror_flag"
19730 || test ! -s conftest.err'
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); }; } &&
19736 { ac_try='test -s conftest.$ac_objext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19743 else
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19753 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
19755 cat >>confdefs.h <<\_ACEOF
19756 #define HAVE_PRSTATUS32_T_PR_WHO 1
19757 _ACEOF
19760 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19761 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
19763 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19764 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19765 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768 cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h. */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19775 #define _SYSCALL32
19776 #include <sys/procfs.h>
19778 main ()
19780 pstatus_t avar
19782 return 0;
19784 _ACEOF
19785 rm -f conftest.$ac_objext
19786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19787 (eval $ac_compile) 2>conftest.er1
19788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -z "$ac_c_werror_flag"
19795 || test ! -s conftest.err'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19808 else
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 bfd_cv_have_sys_procfs_type_pstatus_t=no
19815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19818 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_PSTATUS_T 1
19822 _ACEOF
19825 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19826 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19828 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19829 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19830 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h. */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19840 #define _SYSCALL32
19841 #include <sys/procfs.h>
19843 main ()
19845 pxstatus_t avar
19847 return 0;
19849 _ACEOF
19850 rm -f conftest.$ac_objext
19851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19852 (eval $ac_compile) 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -z "$ac_c_werror_flag"
19860 || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19873 else
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 bfd_cv_have_sys_procfs_type_pxstatus_t=no
19880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19883 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
19885 cat >>confdefs.h <<\_ACEOF
19886 #define HAVE_PXSTATUS_T 1
19887 _ACEOF
19890 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19891 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
19893 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19894 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19895 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h. */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19905 #define _SYSCALL32
19906 #include <sys/procfs.h>
19908 main ()
19910 pstatus32_t avar
19912 return 0;
19914 _ACEOF
19915 rm -f conftest.$ac_objext
19916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19917 (eval $ac_compile) 2>conftest.er1
19918 ac_status=$?
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } &&
19924 { ac_try='test -z "$ac_c_werror_flag"
19925 || test ! -s conftest.err'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest.$ac_objext'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19938 else
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19942 bfd_cv_have_sys_procfs_type_pstatus32_t=no
19945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19948 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
19950 cat >>confdefs.h <<\_ACEOF
19951 #define HAVE_PSTATUS32_T 1
19952 _ACEOF
19955 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19956 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
19958 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19959 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19960 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963 cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h. */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19970 #define _SYSCALL32
19971 #include <sys/procfs.h>
19973 main ()
19975 prpsinfo_t avar
19977 return 0;
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19982 (eval $ac_compile) 2>conftest.er1
19983 ac_status=$?
19984 grep -v '^ *+' conftest.er1 >conftest.err
19985 rm -f conftest.er1
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } &&
19989 { ac_try='test -z "$ac_c_werror_flag"
19990 || test ! -s conftest.err'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; } &&
19996 { ac_try='test -s conftest.$ac_objext'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
20003 else
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
20010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20013 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
20015 cat >>confdefs.h <<\_ACEOF
20016 #define HAVE_PRPSINFO_T 1
20017 _ACEOF
20020 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20021 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
20023 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20024 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20025 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028 cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h. */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20035 #define _SYSCALL32
20036 #include <sys/procfs.h>
20038 main ()
20040 prpsinfo32_t avar
20042 return 0;
20044 _ACEOF
20045 rm -f conftest.$ac_objext
20046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20047 (eval $ac_compile) 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } &&
20054 { ac_try='test -z "$ac_c_werror_flag"
20055 || test ! -s conftest.err'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; } &&
20061 { ac_try='test -s conftest.$ac_objext'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
20067 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20068 else
20069 echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20072 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
20080 cat >>confdefs.h <<\_ACEOF
20081 #define HAVE_PRPSINFO32_T 1
20082 _ACEOF
20085 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20086 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
20088 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20089 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20090 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h. */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20100 #define _SYSCALL32
20101 #include <sys/procfs.h>
20103 main ()
20105 psinfo_t avar
20107 return 0;
20109 _ACEOF
20110 rm -f conftest.$ac_objext
20111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20112 (eval $ac_compile) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -z "$ac_c_werror_flag"
20120 || test ! -s conftest.err'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest.$ac_objext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20133 else
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20137 bfd_cv_have_sys_procfs_type_psinfo_t=no
20140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20143 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
20145 cat >>confdefs.h <<\_ACEOF
20146 #define HAVE_PSINFO_T 1
20147 _ACEOF
20150 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20151 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
20153 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20154 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20155 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20157 else
20158 cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h. */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20165 #define _SYSCALL32
20166 #include <sys/procfs.h>
20168 main ()
20170 psinfo32_t avar
20172 return 0;
20174 _ACEOF
20175 rm -f conftest.$ac_objext
20176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20177 (eval $ac_compile) 2>conftest.er1
20178 ac_status=$?
20179 grep -v '^ *+' conftest.er1 >conftest.err
20180 rm -f conftest.er1
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } &&
20184 { ac_try='test -z "$ac_c_werror_flag"
20185 || test ! -s conftest.err'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; } &&
20191 { ac_try='test -s conftest.$ac_objext'
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20198 else
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20202 bfd_cv_have_sys_procfs_type_psinfo32_t=no
20205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20208 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
20210 cat >>confdefs.h <<\_ACEOF
20211 #define HAVE_PSINFO32_T 1
20212 _ACEOF
20215 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20216 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
20218 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20219 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20220 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223 cat >conftest.$ac_ext <<_ACEOF
20224 /* confdefs.h. */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20230 #define _SYSCALL32
20231 #include <sys/procfs.h>
20233 main ()
20235 lwpstatus_t avar
20237 return 0;
20239 _ACEOF
20240 rm -f conftest.$ac_objext
20241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20242 (eval $ac_compile) 2>conftest.er1
20243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
20249 { ac_try='test -z "$ac_c_werror_flag"
20250 || test ! -s conftest.err'
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; } &&
20256 { ac_try='test -s conftest.$ac_objext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20263 else
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20273 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
20275 cat >>confdefs.h <<\_ACEOF
20276 #define HAVE_LWPSTATUS_T 1
20277 _ACEOF
20280 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20281 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
20283 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20284 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20285 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20287 else
20288 cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h. */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20295 #define _SYSCALL32
20296 #include <sys/procfs.h>
20298 main ()
20300 lwpxstatus_t avar
20302 return 0;
20304 _ACEOF
20305 rm -f conftest.$ac_objext
20306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20307 (eval $ac_compile) 2>conftest.er1
20308 ac_status=$?
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } &&
20314 { ac_try='test -z "$ac_c_werror_flag"
20315 || test ! -s conftest.err'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; } &&
20321 { ac_try='test -s conftest.$ac_objext'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20328 else
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20338 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
20340 cat >>confdefs.h <<\_ACEOF
20341 #define HAVE_LWPXSTATUS_T 1
20342 _ACEOF
20345 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20346 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
20348 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20349 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20350 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 else
20353 cat >conftest.$ac_ext <<_ACEOF
20354 /* confdefs.h. */
20355 _ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h. */
20360 #define _SYSCALL32
20361 #include <sys/procfs.h>
20363 main ()
20365 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
20367 return 0;
20369 _ACEOF
20370 rm -f conftest.$ac_objext
20371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372 (eval $ac_compile) 2>conftest.er1
20373 ac_status=$?
20374 grep -v '^ *+' conftest.er1 >conftest.err
20375 rm -f conftest.er1
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } &&
20379 { ac_try='test -z "$ac_c_werror_flag"
20380 || test ! -s conftest.err'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; } &&
20386 { ac_try='test -s conftest.$ac_objext'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20393 else
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20397 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20403 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
20407 _ACEOF
20410 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20411 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
20413 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20414 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20415 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 else
20418 cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h. */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20425 #define _SYSCALL32
20426 #include <sys/procfs.h>
20428 main ()
20430 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
20432 return 0;
20434 _ACEOF
20435 rm -f conftest.$ac_objext
20436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20437 (eval $ac_compile) 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -z "$ac_c_werror_flag"
20445 || test ! -s conftest.err'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest.$ac_objext'
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20458 else
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20468 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
20470 cat >>confdefs.h <<\_ACEOF
20471 #define HAVE_LWPSTATUS_T_PR_REG 1
20472 _ACEOF
20475 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20476 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
20478 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20479 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20480 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h. */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20490 #define _SYSCALL32
20491 #include <sys/procfs.h>
20493 main ()
20495 win32_pstatus_t avar
20497 return 0;
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20502 (eval $ac_compile) 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag"
20510 || test ! -s conftest.err'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try='test -s conftest.$ac_objext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20523 else
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
20535 cat >>confdefs.h <<\_ACEOF
20536 #define HAVE_WIN32_PSTATUS_T 1
20537 _ACEOF
20540 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20541 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
20547 if test -n "$TRAD_HEADER"; then
20549 cat >>confdefs.h <<_ACEOF
20550 #define TRAD_HEADER $TRAD_HEADER
20551 _ACEOF
20555 # Horrible hacks to build DLLs on Windows.
20556 WIN32LDFLAGS=
20557 WIN32LIBADD=
20558 case "${host}" in
20559 *-*-cygwin*)
20560 if test "$enable_shared" = "yes"; then
20561 WIN32LDFLAGS="-no-undefined"
20562 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20565 *-*-linux*)
20566 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
20567 # libiberty.a.
20568 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20569 if test -n "$x"; then
20570 WIN32LIBADD="-L../libiberty/pic -liberty"
20573 esac
20577 # target stuff:
20579 # Canonicalize the secondary target names.
20580 if test -n "$enable_targets" ; then
20581 for targ in `echo $enable_targets | sed 's/,/ /g'`
20583 result=`$ac_config_sub $targ 2>/dev/null`
20584 if test -n "$result" ; then
20585 canon_targets="$canon_targets $result"
20586 else
20587 # Allow targets that config.sub doesn't recognize, like "all".
20588 canon_targets="$canon_targets $targ"
20590 done
20593 all_targets=false
20594 defvec=
20595 selvecs=
20596 assocvecs=
20597 selarchs=
20598 TDEFINES=
20599 for targ in $target $canon_targets
20601 if test "x$targ" = "xall"; then
20602 all_targets=true
20603 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
20604 else
20605 . $srcdir/config.bfd
20606 if test "x$targ" = "x$target"; then
20607 defvec=$targ_defvec
20609 selvecs="$selvecs $targ_defvec $targ_selvecs"
20610 selarchs="$selarchs $targ_archs"
20611 TDEFINES="$TDEFINES $targ_cflags"
20613 done
20616 # This processing still needs to be done if we're to decide properly whether
20617 # 64-bit support needs to be compiled in. Currently, it will be included if
20618 # the default or any other explicitly requested target requires it; it
20619 # will not be included on a 32-bit host if no 64-bit target is requested, and
20620 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
20621 # used.
20623 # uniq the default and selected vectors in all the configured targets.
20624 f=""
20625 for i in $selvecs ; do
20626 case " $f " in
20627 *" $i "*) ;;
20628 *) f="$f $i" ;;
20629 esac
20630 done
20631 selvecs="$f"
20634 # uniq the associated vectors in all the configured targets.
20635 f=""
20636 for i in $assocvecs ; do
20637 case " $f " in
20638 *" $i "*) ;;
20639 *) f="$f $i" ;;
20640 esac
20641 done
20642 assocvecs="$f"
20645 # uniq the architectures in all the configured targets.
20646 f=""
20647 for i in $selarchs ; do
20648 case " $f " in
20649 *" $i "*) ;;
20650 *) f="$f $i" ;;
20651 esac
20652 done
20653 selarchs="$f"
20655 # Target backend .o files.
20658 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
20660 for vec in $selvecs
20662 target_size=32
20663 case "$vec" in
20664 # This list is alphabetized to make it easy to compare
20665 # with the two vector lists in targets.c. For the same reason,
20666 # use one entry per line, even though this leads to long lines.
20667 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
20668 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20669 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20670 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20671 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20672 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
20673 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20674 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20675 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20676 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20677 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20678 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20679 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20680 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20681 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20682 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20683 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20684 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20685 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20686 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20687 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20688 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20689 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
20690 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
20691 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20692 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
20693 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20694 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20695 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20696 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20697 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20698 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20699 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
20700 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
20701 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20702 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20703 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20704 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20705 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20706 bfd_elf32_bigarm_symbian_vec)
20707 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20708 bfd_elf32_bigarm_vxworks_vec)
20709 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20710 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20711 bfd_elf32_bigmips_vxworks_vec)
20712 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20713 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
20714 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
20715 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20716 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
20717 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20718 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
20719 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
20720 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
20721 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20722 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20723 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
20724 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20725 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20726 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20727 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
20728 bfd_elf32_i386_dragonfly_vec)
20729 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20730 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20731 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20732 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20733 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20734 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20735 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
20736 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
20737 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
20738 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
20739 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
20740 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20741 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20742 bfd_elf32_littlearm_symbian_vec)
20743 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20744 bfd_elf32_littlearm_vxworks_vec)
20745 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20746 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20747 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20748 bfd_elf32_littlemips_vxworks_vec)
20749 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20750 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
20751 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20752 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20753 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20754 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20755 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20756 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20757 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20758 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20759 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20760 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20761 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20762 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20763 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20764 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
20765 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
20766 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
20767 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20768 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20769 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20770 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20771 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
20772 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
20773 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20774 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20775 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20776 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20777 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20778 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
20779 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20780 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20781 # FIXME: We include cofflink.lo not because it's needed for
20782 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20783 # which needs it but does not list it. Should be fixed in right place.
20784 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20785 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20786 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20787 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20788 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20789 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20790 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20791 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20792 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20793 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20794 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20795 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20796 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20797 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20798 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20799 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20800 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20801 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
20802 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20803 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20804 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20805 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
20806 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
20807 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
20808 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
20809 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20810 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20811 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20812 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20813 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20814 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 ;;
20815 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20816 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20817 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20818 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20819 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20820 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20821 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 ;;
20822 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
20823 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20824 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20825 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
20826 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20827 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20828 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20829 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20830 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20831 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20832 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20833 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20834 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 ;;
20835 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 ;;
20836 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20837 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20838 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
20839 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20840 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20841 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20842 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20843 cris_aout_vec) tb="$tb aout-cris.lo" ;;
20844 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
20845 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20846 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20847 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20848 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
20849 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20850 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20851 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20852 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20853 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20854 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20855 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20856 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20857 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20858 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
20859 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
20860 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20861 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
20862 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20863 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20864 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20865 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
20866 i386msdos_vec) tb="$tb i386msdos.lo" ;;
20867 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20868 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
20869 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20870 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
20871 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20872 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20873 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20874 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20875 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20876 ieee_vec) tb="$tb ieee.lo" ;;
20877 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20878 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
20879 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20880 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20881 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
20882 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
20883 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20884 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
20885 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
20886 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
20887 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
20888 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20889 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20890 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
20891 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20892 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20893 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20894 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20895 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20896 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
20897 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
20898 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
20899 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
20900 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
20901 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
20902 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
20903 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
20904 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
20905 pef_vec) tb="$tb pef.lo" ;;
20906 pef_xlib_vec) tb="$tb pef.lo" ;;
20907 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
20908 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20909 ppcboot_vec) tb="$tb ppcboot.lo" ;;
20910 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
20911 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20912 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20913 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20914 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20915 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20916 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20917 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20918 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20919 som_vec) tb="$tb som.lo" ;;
20920 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
20921 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20922 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20923 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20924 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20925 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
20926 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
20927 sym_vec) tb="$tb xsym.lo" ;;
20928 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20929 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
20930 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20931 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20932 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20933 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20934 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20935 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
20936 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
20937 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
20938 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
20939 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
20940 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
20941 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
20942 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
20943 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
20944 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
20945 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
20946 versados_vec) tb="$tb versados.lo" ;;
20947 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
20948 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20949 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20950 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
20951 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
20952 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
20954 # These appear out of order in targets.c
20955 srec_vec) tb="$tb srec.lo" ;;
20956 symbolsrec_vec) tb="$tb srec.lo" ;;
20957 tekhex_vec) tb="$tb tekhex.lo" ;;
20958 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20959 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20961 "") ;;
20962 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20963 echo "$as_me: error: *** unknown target vector $vec" >&2;}
20964 { (exit 1); exit 1; }; } ;;
20965 esac
20967 if test ${target_size} = 64; then
20968 target64=true
20970 if test x"${vec}" = x"${defvec}"; then
20971 bfd_default_target_size=${target_size}
20973 done
20975 # Target architecture .o files.
20976 # A couple of CPUs use shorter file names to avoid problems on DOS
20977 # filesystems.
20978 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
20980 # Weed out duplicate .o files.
20981 f=""
20982 for i in $tb ; do
20983 case " $f " in
20984 *" $i "*) ;;
20985 *) f="$f $i" ;;
20986 esac
20987 done
20988 tb="$f"
20990 f=""
20991 for i in $ta ; do
20992 case " $f " in
20993 *" $i "*) ;;
20994 *) f="$f $i" ;;
20995 esac
20996 done
20997 ta="$f"
20999 bfd_backends="$tb"
21000 bfd_machines="$ta"
21002 if test x${all_targets} = xtrue ; then
21003 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
21004 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
21005 selvecs=
21006 havevecs=
21007 selarchs=
21008 test -n "$assocvecs" &&
21009 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21010 else # all_targets is true
21011 # Only set these if they will be nonempty, for the clever echo.
21012 havevecs=
21013 assocvecs=
21014 test -n "$selvecs" &&
21015 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21016 test -n "$selvecs" &&
21017 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21018 test -n "$selarchs" &&
21019 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21020 fi # all_targets is true
21022 case ${host64}-${target64}-${want64} in
21023 *true*)
21024 wordsize=64
21025 bfd64_libs='$(BFD64_LIBS)'
21026 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
21027 if test $BFD_HOST_64_BIT_DEFINED = 0; then
21028 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21029 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21030 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21031 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
21033 if test -n "$GCC" ; then
21034 bad_64bit_gcc=no;
21035 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21036 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
21037 # Add more tests for gcc versions with non-working 64-bit support here.
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 :__GNUC__:__GNUC_MINOR__:__i386__:
21045 _ACEOF
21046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21047 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
21048 bad_64bit_gcc=yes;
21049 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21050 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
21051 else
21052 echo "$as_me:$LINENO: result: no" >&5
21053 echo "${ECHO_T}no" >&6
21055 rm -f conftest*
21057 if test $bad_64bit_gcc = yes ; then
21058 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21059 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21060 { (exit 1); exit 1; }; }
21064 false-false-false)
21065 wordsize=32
21066 all_backends='$(BFD32_BACKENDS)'
21068 esac
21077 # Determine the host dependant file_ptr a.k.a. off_t type. In order
21078 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21079 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21080 # Hopefully a reasonable assumption since fseeko et.al. should be
21081 # upward compatible.
21087 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
21089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21090 echo "$as_me:$LINENO: checking for $ac_func" >&5
21091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21092 if eval "test \"\${$as_ac_var+set}\" = set"; then
21093 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 else
21095 cat >conftest.$ac_ext <<_ACEOF
21096 /* confdefs.h. */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21103 #define $ac_func innocuous_$ac_func
21105 /* System header to define __stub macros and hopefully few prototypes,
21106 which can conflict with char $ac_func (); below.
21107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21108 <limits.h> exists even on freestanding compilers. */
21110 #ifdef __STDC__
21111 # include <limits.h>
21112 #else
21113 # include <assert.h>
21114 #endif
21116 #undef $ac_func
21118 /* Override any gcc2 internal prototype to avoid an error. */
21119 #ifdef __cplusplus
21120 extern "C"
21122 #endif
21123 /* We use char because int might match the return type of a gcc2
21124 builtin and then its argument prototype would still apply. */
21125 char $ac_func ();
21126 /* The GNU C library defines this for functions which it implements
21127 to always fail with ENOSYS. Some functions are actually named
21128 something starting with __ and the normal name is an alias. */
21129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21130 choke me
21131 #else
21132 char (*f) () = $ac_func;
21133 #endif
21134 #ifdef __cplusplus
21136 #endif
21139 main ()
21141 return f != $ac_func;
21143 return 0;
21145 _ACEOF
21146 rm -f conftest.$ac_objext conftest$ac_exeext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21148 (eval $ac_link) 2>conftest.er1
21149 ac_status=$?
21150 grep -v '^ *+' conftest.er1 >conftest.err
21151 rm -f conftest.er1
21152 cat conftest.err >&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } &&
21155 { ac_try='test -z "$ac_c_werror_flag"
21156 || test ! -s conftest.err'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; } &&
21162 { ac_try='test -s conftest$ac_exeext'
21163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164 (eval $ac_try) 2>&5
21165 ac_status=$?
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; }; then
21168 eval "$as_ac_var=yes"
21169 else
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 eval "$as_ac_var=no"
21175 rm -f conftest.err conftest.$ac_objext \
21176 conftest$ac_exeext conftest.$ac_ext
21178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21180 if test `eval echo '${'$as_ac_var'}'` = yes; then
21181 cat >>confdefs.h <<_ACEOF
21182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21183 _ACEOF
21186 done
21188 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21189 echo "$as_me:$LINENO: checking for off_t" >&5
21190 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21191 if test "${ac_cv_type_off_t+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194 cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h. */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 $ac_includes_default
21202 main ()
21204 if ((off_t *) 0)
21205 return 0;
21206 if (sizeof (off_t))
21207 return 0;
21209 return 0;
21211 _ACEOF
21212 rm -f conftest.$ac_objext
21213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21214 (eval $ac_compile) 2>conftest.er1
21215 ac_status=$?
21216 grep -v '^ *+' conftest.er1 >conftest.err
21217 rm -f conftest.er1
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
21221 { ac_try='test -z "$ac_c_werror_flag"
21222 || test ! -s conftest.err'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest.$ac_objext'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 ac_cv_type_off_t=yes
21235 else
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_cv_type_off_t=no
21241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21243 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21244 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21246 echo "$as_me:$LINENO: checking size of off_t" >&5
21247 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21248 if test "${ac_cv_sizeof_off_t+set}" = set; then
21249 echo $ECHO_N "(cached) $ECHO_C" >&6
21250 else
21251 if test "$ac_cv_type_off_t" = yes; then
21252 # The cast to unsigned long works around a bug in the HP C Compiler
21253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21255 # This bug is HP SR number 8606223364.
21256 if test "$cross_compiling" = yes; then
21257 # Depending upon the size, compute the lo and hi bounds.
21258 cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h. */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264 $ac_includes_default
21266 main ()
21268 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21269 test_array [0] = 0
21272 return 0;
21274 _ACEOF
21275 rm -f conftest.$ac_objext
21276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21277 (eval $ac_compile) 2>conftest.er1
21278 ac_status=$?
21279 grep -v '^ *+' conftest.er1 >conftest.err
21280 rm -f conftest.er1
21281 cat conftest.err >&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } &&
21284 { ac_try='test -z "$ac_c_werror_flag"
21285 || test ! -s conftest.err'
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21288 ac_status=$?
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; } &&
21291 { ac_try='test -s conftest.$ac_objext'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
21297 ac_lo=0 ac_mid=0
21298 while :; do
21299 cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h. */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 $ac_includes_default
21307 main ()
21309 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21310 test_array [0] = 0
21313 return 0;
21315 _ACEOF
21316 rm -f conftest.$ac_objext
21317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21318 (eval $ac_compile) 2>conftest.er1
21319 ac_status=$?
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } &&
21325 { ac_try='test -z "$ac_c_werror_flag"
21326 || test ! -s conftest.err'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; } &&
21332 { ac_try='test -s conftest.$ac_objext'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; }; then
21338 ac_hi=$ac_mid; break
21339 else
21340 echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21343 ac_lo=`expr $ac_mid + 1`
21344 if test $ac_lo -le $ac_mid; then
21345 ac_lo= ac_hi=
21346 break
21348 ac_mid=`expr 2 '*' $ac_mid + 1`
21350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21351 done
21352 else
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21356 cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h. */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21362 $ac_includes_default
21364 main ()
21366 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21367 test_array [0] = 0
21370 return 0;
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21375 (eval $ac_compile) 2>conftest.er1
21376 ac_status=$?
21377 grep -v '^ *+' conftest.er1 >conftest.err
21378 rm -f conftest.er1
21379 cat conftest.err >&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
21382 { ac_try='test -z "$ac_c_werror_flag"
21383 || test ! -s conftest.err'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21392 ac_status=$?
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21395 ac_hi=-1 ac_mid=-1
21396 while :; do
21397 cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h. */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 $ac_includes_default
21405 main ()
21407 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21408 test_array [0] = 0
21411 return 0;
21413 _ACEOF
21414 rm -f conftest.$ac_objext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21416 (eval $ac_compile) 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -z "$ac_c_werror_flag"
21424 || test ! -s conftest.err'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ac_lo=$ac_mid; break
21437 else
21438 echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21441 ac_hi=`expr '(' $ac_mid ')' - 1`
21442 if test $ac_mid -le $ac_hi; then
21443 ac_lo= ac_hi=
21444 break
21446 ac_mid=`expr 2 '*' $ac_mid`
21448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21449 done
21450 else
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ac_lo= ac_hi=
21456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21459 # Binary search between lo and hi bounds.
21460 while test "x$ac_lo" != "x$ac_hi"; do
21461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h. */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 $ac_includes_default
21470 main ()
21472 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21473 test_array [0] = 0
21476 return 0;
21478 _ACEOF
21479 rm -f conftest.$ac_objext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21481 (eval $ac_compile) 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -z "$ac_c_werror_flag"
21489 || test ! -s conftest.err'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21492 ac_status=$?
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; } &&
21495 { ac_try='test -s conftest.$ac_objext'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21498 ac_status=$?
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 ac_hi=$ac_mid
21502 else
21503 echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21506 ac_lo=`expr '(' $ac_mid ')' + 1`
21508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21509 done
21510 case $ac_lo in
21511 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21512 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21513 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21514 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21515 See \`config.log' for more details." >&5
21516 echo "$as_me: error: cannot compute sizeof (off_t), 77
21517 See \`config.log' for more details." >&2;}
21518 { (exit 1); exit 1; }; }; } ;;
21519 esac
21520 else
21521 if test "$cross_compiling" = yes; then
21522 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21523 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21524 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21525 See \`config.log' for more details." >&5
21526 echo "$as_me: error: cannot run test program while cross compiling
21527 See \`config.log' for more details." >&2;}
21528 { (exit 1); exit 1; }; }; }
21529 else
21530 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h. */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 $ac_includes_default
21537 long longval () { return (long) (sizeof (off_t)); }
21538 unsigned long ulongval () { return (long) (sizeof (off_t)); }
21539 #include <stdio.h>
21540 #include <stdlib.h>
21542 main ()
21545 FILE *f = fopen ("conftest.val", "w");
21546 if (! f)
21547 exit (1);
21548 if (((long) (sizeof (off_t))) < 0)
21550 long i = longval ();
21551 if (i != ((long) (sizeof (off_t))))
21552 exit (1);
21553 fprintf (f, "%ld\n", i);
21555 else
21557 unsigned long i = ulongval ();
21558 if (i != ((long) (sizeof (off_t))))
21559 exit (1);
21560 fprintf (f, "%lu\n", i);
21562 exit (ferror (f) || fclose (f) != 0);
21565 return 0;
21567 _ACEOF
21568 rm -f conftest$ac_exeext
21569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21570 (eval $ac_link) 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_sizeof_off_t=`cat conftest.val`
21580 else
21581 echo "$as_me: program exited with status $ac_status" >&5
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ( exit $ac_status )
21586 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21587 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21588 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21589 See \`config.log' for more details." >&5
21590 echo "$as_me: error: cannot compute sizeof (off_t), 77
21591 See \`config.log' for more details." >&2;}
21592 { (exit 1); exit 1; }; }; }
21594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21597 rm -f conftest.val
21598 else
21599 ac_cv_sizeof_off_t=0
21602 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21603 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
21604 cat >>confdefs.h <<_ACEOF
21605 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21606 _ACEOF
21610 echo "$as_me:$LINENO: checking file_ptr type" >&5
21611 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
21612 bfd_file_ptr="long"
21613 bfd_ufile_ptr="unsigned long"
21614 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21615 -o x"${ac_cv_sizeof_off_t}" = x8; then
21616 bfd_file_ptr=BFD_HOST_64_BIT
21617 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21619 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21620 echo "${ECHO_T}$bfd_file_ptr" >&6
21625 tdefaults=""
21626 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21627 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
21628 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
21629 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21630 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21635 for ac_header in stdlib.h unistd.h
21637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21639 echo "$as_me:$LINENO: checking for $ac_header" >&5
21640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21646 else
21647 # Is the header compilable?
21648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21650 cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h. */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 $ac_includes_default
21657 #include <$ac_header>
21658 _ACEOF
21659 rm -f conftest.$ac_objext
21660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21661 (eval $ac_compile) 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } &&
21668 { ac_try='test -z "$ac_c_werror_flag"
21669 || test ! -s conftest.err'
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; } &&
21675 { ac_try='test -s conftest.$ac_objext'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; }; then
21681 ac_header_compiler=yes
21682 else
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21686 ac_header_compiler=no
21688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21690 echo "${ECHO_T}$ac_header_compiler" >&6
21692 # Is the header present?
21693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21695 cat >conftest.$ac_ext <<_ACEOF
21696 /* confdefs.h. */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21701 #include <$ac_header>
21702 _ACEOF
21703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21705 ac_status=$?
21706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } >/dev/null; then
21711 if test -s conftest.err; then
21712 ac_cpp_err=$ac_c_preproc_warn_flag
21713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21714 else
21715 ac_cpp_err=
21717 else
21718 ac_cpp_err=yes
21720 if test -z "$ac_cpp_err"; then
21721 ac_header_preproc=yes
21722 else
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_header_preproc=no
21728 rm -f conftest.err conftest.$ac_ext
21729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21730 echo "${ECHO_T}$ac_header_preproc" >&6
21732 # So? What about this header?
21733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21734 yes:no: )
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21739 ac_header_preproc=yes
21741 no:yes:* )
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21755 cat <<\_ASBOX
21756 ## ------------------------------------------ ##
21757 ## Report this to the AC_PACKAGE_NAME lists. ##
21758 ## ------------------------------------------ ##
21759 _ASBOX
21761 sed "s/^/$as_me: WARNING: /" >&2
21763 esac
21764 echo "$as_me:$LINENO: checking for $ac_header" >&5
21765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21767 echo $ECHO_N "(cached) $ECHO_C" >&6
21768 else
21769 eval "$as_ac_Header=\$ac_header_preproc"
21771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21776 cat >>confdefs.h <<_ACEOF
21777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21778 _ACEOF
21782 done
21785 for ac_func in getpagesize
21787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21788 echo "$as_me:$LINENO: checking for $ac_func" >&5
21789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21790 if eval "test \"\${$as_ac_var+set}\" = set"; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793 cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h. */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21801 #define $ac_func innocuous_$ac_func
21803 /* System header to define __stub macros and hopefully few prototypes,
21804 which can conflict with char $ac_func (); below.
21805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21806 <limits.h> exists even on freestanding compilers. */
21808 #ifdef __STDC__
21809 # include <limits.h>
21810 #else
21811 # include <assert.h>
21812 #endif
21814 #undef $ac_func
21816 /* Override any gcc2 internal prototype to avoid an error. */
21817 #ifdef __cplusplus
21818 extern "C"
21820 #endif
21821 /* We use char because int might match the return type of a gcc2
21822 builtin and then its argument prototype would still apply. */
21823 char $ac_func ();
21824 /* The GNU C library defines this for functions which it implements
21825 to always fail with ENOSYS. Some functions are actually named
21826 something starting with __ and the normal name is an alias. */
21827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21828 choke me
21829 #else
21830 char (*f) () = $ac_func;
21831 #endif
21832 #ifdef __cplusplus
21834 #endif
21837 main ()
21839 return f != $ac_func;
21841 return 0;
21843 _ACEOF
21844 rm -f conftest.$ac_objext conftest$ac_exeext
21845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21846 (eval $ac_link) 2>conftest.er1
21847 ac_status=$?
21848 grep -v '^ *+' conftest.er1 >conftest.err
21849 rm -f conftest.er1
21850 cat conftest.err >&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } &&
21853 { ac_try='test -z "$ac_c_werror_flag"
21854 || test ! -s conftest.err'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; } &&
21860 { ac_try='test -s conftest$ac_exeext'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; }; then
21866 eval "$as_ac_var=yes"
21867 else
21868 echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21871 eval "$as_ac_var=no"
21873 rm -f conftest.err conftest.$ac_objext \
21874 conftest$ac_exeext conftest.$ac_ext
21876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21878 if test `eval echo '${'$as_ac_var'}'` = yes; then
21879 cat >>confdefs.h <<_ACEOF
21880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21881 _ACEOF
21884 done
21886 echo "$as_me:$LINENO: checking for working mmap" >&5
21887 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21888 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890 else
21891 if test "$cross_compiling" = yes; then
21892 ac_cv_func_mmap_fixed_mapped=no
21893 else
21894 cat >conftest.$ac_ext <<_ACEOF
21895 /* confdefs.h. */
21896 _ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h. */
21900 $ac_includes_default
21901 /* malloc might have been renamed as rpl_malloc. */
21902 #undef malloc
21904 /* Thanks to Mike Haertel and Jim Avera for this test.
21905 Here is a matrix of mmap possibilities:
21906 mmap private not fixed
21907 mmap private fixed at somewhere currently unmapped
21908 mmap private fixed at somewhere already mapped
21909 mmap shared not fixed
21910 mmap shared fixed at somewhere currently unmapped
21911 mmap shared fixed at somewhere already mapped
21912 For private mappings, we should verify that changes cannot be read()
21913 back from the file, nor mmap's back from the file at a different
21914 address. (There have been systems where private was not correctly
21915 implemented like the infamous i386 svr4.0, and systems where the
21916 VM page cache was not coherent with the file system buffer cache
21917 like early versions of FreeBSD and possibly contemporary NetBSD.)
21918 For shared mappings, we should conversely verify that changes get
21919 propagated back to all the places they're supposed to be.
21921 Grep wants private fixed already mapped.
21922 The main things grep needs to know about mmap are:
21923 * does it exist and is it safe to write into the mmap'd area
21924 * how to use it (BSD variants) */
21926 #include <fcntl.h>
21927 #include <sys/mman.h>
21929 #if !STDC_HEADERS && !HAVE_STDLIB_H
21930 char *malloc ();
21931 #endif
21933 /* This mess was copied from the GNU getpagesize.h. */
21934 #if !HAVE_GETPAGESIZE
21935 /* Assume that all systems that can run configure have sys/param.h. */
21936 # if !HAVE_SYS_PARAM_H
21937 # define HAVE_SYS_PARAM_H 1
21938 # endif
21940 # ifdef _SC_PAGESIZE
21941 # define getpagesize() sysconf(_SC_PAGESIZE)
21942 # else /* no _SC_PAGESIZE */
21943 # if HAVE_SYS_PARAM_H
21944 # include <sys/param.h>
21945 # ifdef EXEC_PAGESIZE
21946 # define getpagesize() EXEC_PAGESIZE
21947 # else /* no EXEC_PAGESIZE */
21948 # ifdef NBPG
21949 # define getpagesize() NBPG * CLSIZE
21950 # ifndef CLSIZE
21951 # define CLSIZE 1
21952 # endif /* no CLSIZE */
21953 # else /* no NBPG */
21954 # ifdef NBPC
21955 # define getpagesize() NBPC
21956 # else /* no NBPC */
21957 # ifdef PAGESIZE
21958 # define getpagesize() PAGESIZE
21959 # endif /* PAGESIZE */
21960 # endif /* no NBPC */
21961 # endif /* no NBPG */
21962 # endif /* no EXEC_PAGESIZE */
21963 # else /* no HAVE_SYS_PARAM_H */
21964 # define getpagesize() 8192 /* punt totally */
21965 # endif /* no HAVE_SYS_PARAM_H */
21966 # endif /* no _SC_PAGESIZE */
21968 #endif /* no HAVE_GETPAGESIZE */
21971 main ()
21973 char *data, *data2, *data3;
21974 int i, pagesize;
21975 int fd;
21977 pagesize = getpagesize ();
21979 /* First, make a file with some known garbage in it. */
21980 data = (char *) malloc (pagesize);
21981 if (!data)
21982 exit (1);
21983 for (i = 0; i < pagesize; ++i)
21984 *(data + i) = rand ();
21985 umask (0);
21986 fd = creat ("conftest.mmap", 0600);
21987 if (fd < 0)
21988 exit (1);
21989 if (write (fd, data, pagesize) != pagesize)
21990 exit (1);
21991 close (fd);
21993 /* Next, try to mmap the file at a fixed address which already has
21994 something else allocated at it. If we can, also make sure that
21995 we see the same garbage. */
21996 fd = open ("conftest.mmap", O_RDWR);
21997 if (fd < 0)
21998 exit (1);
21999 data2 = (char *) malloc (2 * pagesize);
22000 if (!data2)
22001 exit (1);
22002 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22003 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22004 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22005 exit (1);
22006 for (i = 0; i < pagesize; ++i)
22007 if (*(data + i) != *(data2 + i))
22008 exit (1);
22010 /* Finally, make sure that changes to the mapped area do not
22011 percolate back to the file as seen by read(). (This is a bug on
22012 some variants of i386 svr4.0.) */
22013 for (i = 0; i < pagesize; ++i)
22014 *(data2 + i) = *(data2 + i) + 1;
22015 data3 = (char *) malloc (pagesize);
22016 if (!data3)
22017 exit (1);
22018 if (read (fd, data3, pagesize) != pagesize)
22019 exit (1);
22020 for (i = 0; i < pagesize; ++i)
22021 if (*(data + i) != *(data3 + i))
22022 exit (1);
22023 close (fd);
22024 exit (0);
22026 _ACEOF
22027 rm -f conftest$ac_exeext
22028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22029 (eval $ac_link) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034 (eval $ac_try) 2>&5
22035 ac_status=$?
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
22038 ac_cv_func_mmap_fixed_mapped=yes
22039 else
22040 echo "$as_me: program exited with status $ac_status" >&5
22041 echo "$as_me: failed program was:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22044 ( exit $ac_status )
22045 ac_cv_func_mmap_fixed_mapped=no
22047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22050 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22051 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22052 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22054 cat >>confdefs.h <<\_ACEOF
22055 #define HAVE_MMAP 1
22056 _ACEOF
22059 rm -f conftest.mmap
22063 for ac_func in madvise mprotect
22065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22066 echo "$as_me:$LINENO: checking for $ac_func" >&5
22067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22068 if eval "test \"\${$as_ac_var+set}\" = set"; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 else
22071 cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h. */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22079 #define $ac_func innocuous_$ac_func
22081 /* System header to define __stub macros and hopefully few prototypes,
22082 which can conflict with char $ac_func (); below.
22083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22084 <limits.h> exists even on freestanding compilers. */
22086 #ifdef __STDC__
22087 # include <limits.h>
22088 #else
22089 # include <assert.h>
22090 #endif
22092 #undef $ac_func
22094 /* Override any gcc2 internal prototype to avoid an error. */
22095 #ifdef __cplusplus
22096 extern "C"
22098 #endif
22099 /* We use char because int might match the return type of a gcc2
22100 builtin and then its argument prototype would still apply. */
22101 char $ac_func ();
22102 /* The GNU C library defines this for functions which it implements
22103 to always fail with ENOSYS. Some functions are actually named
22104 something starting with __ and the normal name is an alias. */
22105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22106 choke me
22107 #else
22108 char (*f) () = $ac_func;
22109 #endif
22110 #ifdef __cplusplus
22112 #endif
22115 main ()
22117 return f != $ac_func;
22119 return 0;
22121 _ACEOF
22122 rm -f conftest.$ac_objext conftest$ac_exeext
22123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22124 (eval $ac_link) 2>conftest.er1
22125 ac_status=$?
22126 grep -v '^ *+' conftest.er1 >conftest.err
22127 rm -f conftest.er1
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } &&
22131 { ac_try='test -z "$ac_c_werror_flag"
22132 || test ! -s conftest.err'
22133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22135 ac_status=$?
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; } &&
22138 { ac_try='test -s conftest$ac_exeext'
22139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140 (eval $ac_try) 2>&5
22141 ac_status=$?
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; }; then
22144 eval "$as_ac_var=yes"
22145 else
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22149 eval "$as_ac_var=no"
22151 rm -f conftest.err conftest.$ac_objext \
22152 conftest$ac_exeext conftest.$ac_ext
22154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22156 if test `eval echo '${'$as_ac_var'}'` = yes; then
22157 cat >>confdefs.h <<_ACEOF
22158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22159 _ACEOF
22162 done
22164 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22165 true+yes )
22166 cat >>confdefs.h <<\_ACEOF
22167 #define USE_MMAP 1
22168 _ACEOF
22170 esac
22172 rm -f doc/config.status
22173 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22176 ac_config_commands="$ac_config_commands default"
22183 cat >confcache <<\_ACEOF
22184 # This file is a shell script that caches the results of configure
22185 # tests run on this system so they can be shared between configure
22186 # scripts and configure runs, see configure's option --config-cache.
22187 # It is not useful on other systems. If it contains results you don't
22188 # want to keep, you may remove or edit it.
22190 # config.status only pays attention to the cache file if you give it
22191 # the --recheck option to rerun configure.
22193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22195 # following values.
22197 _ACEOF
22199 # The following way of writing the cache mishandles newlines in values,
22200 # but we know of no workaround that is simple, portable, and efficient.
22201 # So, don't put newlines in cache variables' values.
22202 # Ultrix sh set writes to stderr and can't be redirected directly,
22203 # and sets the high bit in the cache file unless we assign to the vars.
22205 (set) 2>&1 |
22206 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22207 *ac_space=\ *)
22208 # `set' does not quote correctly, so add quotes (double-quote
22209 # substitution turns \\\\ into \\, and sed turns \\ into \).
22210 sed -n \
22211 "s/'/'\\\\''/g;
22212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22215 # `set' quotes correctly as required by POSIX, so do not add quotes.
22216 sed -n \
22217 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22219 esac;
22221 sed '
22222 t clear
22223 : clear
22224 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22225 t end
22226 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22227 : end' >>confcache
22228 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22229 if test -w $cache_file; then
22230 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22231 cat confcache >$cache_file
22232 else
22233 echo "not updating unwritable cache $cache_file"
22236 rm -f confcache
22238 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22239 # Let make expand exec_prefix.
22240 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22242 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22243 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22244 # trailing colons and then remove the whole line if VPATH becomes empty
22245 # (actually we leave an empty line to preserve line numbers).
22246 if test "x$srcdir" = x.; then
22247 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22248 s/:*\$(srcdir):*/:/;
22249 s/:*\${srcdir}:*/:/;
22250 s/:*@srcdir@:*/:/;
22251 s/^\([^=]*=[ ]*\):*/\1/;
22252 s/:*$//;
22253 s/^[^=]*=[ ]*$//;
22257 DEFS=-DHAVE_CONFIG_H
22259 ac_libobjs=
22260 ac_ltlibobjs=
22261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22262 # 1. Remove the extension, and $U if already installed.
22263 ac_i=`echo "$ac_i" |
22264 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22265 # 2. Add them.
22266 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22267 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22268 done
22269 LIBOBJS=$ac_libobjs
22271 LTLIBOBJS=$ac_ltlibobjs
22274 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22275 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22276 Usually this means the macro was only invoked conditionally." >&5
22277 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22278 Usually this means the macro was only invoked conditionally." >&2;}
22279 { (exit 1); exit 1; }; }
22281 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22282 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22283 Usually this means the macro was only invoked conditionally." >&5
22284 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22285 Usually this means the macro was only invoked conditionally." >&2;}
22286 { (exit 1); exit 1; }; }
22288 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22289 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22290 Usually this means the macro was only invoked conditionally." >&5
22291 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22292 Usually this means the macro was only invoked conditionally." >&2;}
22293 { (exit 1); exit 1; }; }
22295 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22296 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22297 Usually this means the macro was only invoked conditionally." >&5
22298 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22299 Usually this means the macro was only invoked conditionally." >&2;}
22300 { (exit 1); exit 1; }; }
22302 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22303 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22304 Usually this means the macro was only invoked conditionally." >&5
22305 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22306 Usually this means the macro was only invoked conditionally." >&2;}
22307 { (exit 1); exit 1; }; }
22310 : ${CONFIG_STATUS=./config.status}
22311 ac_clean_files_save=$ac_clean_files
22312 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22313 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22314 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22315 cat >$CONFIG_STATUS <<_ACEOF
22316 #! $SHELL
22317 # Generated by $as_me.
22318 # Run this file to recreate the current configuration.
22319 # Compiler output produced by configure, useful for debugging
22320 # configure, is in config.log if it exists.
22322 debug=false
22323 ac_cs_recheck=false
22324 ac_cs_silent=false
22325 SHELL=\${CONFIG_SHELL-$SHELL}
22326 _ACEOF
22328 cat >>$CONFIG_STATUS <<\_ACEOF
22329 ## --------------------- ##
22330 ## M4sh Initialization. ##
22331 ## --------------------- ##
22333 # Be Bourne compatible
22334 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22335 emulate sh
22336 NULLCMD=:
22337 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22338 # is contrary to our usage. Disable this feature.
22339 alias -g '${1+"$@"}'='"$@"'
22340 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22341 set -o posix
22343 DUALCASE=1; export DUALCASE # for MKS sh
22345 # Support unset when possible.
22346 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22347 as_unset=unset
22348 else
22349 as_unset=false
22353 # Work around bugs in pre-3.0 UWIN ksh.
22354 $as_unset ENV MAIL MAILPATH
22355 PS1='$ '
22356 PS2='> '
22357 PS4='+ '
22359 # NLS nuisances.
22360 for as_var in \
22361 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22362 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22363 LC_TELEPHONE LC_TIME
22365 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22366 eval $as_var=C; export $as_var
22367 else
22368 $as_unset $as_var
22370 done
22372 # Required to use basename.
22373 if expr a : '\(a\)' >/dev/null 2>&1; then
22374 as_expr=expr
22375 else
22376 as_expr=false
22379 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22380 as_basename=basename
22381 else
22382 as_basename=false
22386 # Name of the executable.
22387 as_me=`$as_basename "$0" ||
22388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22389 X"$0" : 'X\(//\)$' \| \
22390 X"$0" : 'X\(/\)$' \| \
22391 . : '\(.\)' 2>/dev/null ||
22392 echo X/"$0" |
22393 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22394 /^X\/\(\/\/\)$/{ s//\1/; q; }
22395 /^X\/\(\/\).*/{ s//\1/; q; }
22396 s/.*/./; q'`
22399 # PATH needs CR, and LINENO needs CR and PATH.
22400 # Avoid depending upon Character Ranges.
22401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22404 as_cr_digits='0123456789'
22405 as_cr_alnum=$as_cr_Letters$as_cr_digits
22407 # The user is always right.
22408 if test "${PATH_SEPARATOR+set}" != set; then
22409 echo "#! /bin/sh" >conf$$.sh
22410 echo "exit 0" >>conf$$.sh
22411 chmod +x conf$$.sh
22412 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22413 PATH_SEPARATOR=';'
22414 else
22415 PATH_SEPARATOR=:
22417 rm -f conf$$.sh
22421 as_lineno_1=$LINENO
22422 as_lineno_2=$LINENO
22423 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22424 test "x$as_lineno_1" != "x$as_lineno_2" &&
22425 test "x$as_lineno_3" = "x$as_lineno_2" || {
22426 # Find who we are. Look in the path if we contain no path at all
22427 # relative or not.
22428 case $0 in
22429 *[\\/]* ) as_myself=$0 ;;
22430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431 for as_dir in $PATH
22433 IFS=$as_save_IFS
22434 test -z "$as_dir" && as_dir=.
22435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22436 done
22439 esac
22440 # We did not find ourselves, most probably we were run as `sh COMMAND'
22441 # in which case we are not to be found in the path.
22442 if test "x$as_myself" = x; then
22443 as_myself=$0
22445 if test ! -f "$as_myself"; then
22446 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22447 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22448 { (exit 1); exit 1; }; }
22450 case $CONFIG_SHELL in
22452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22453 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22455 IFS=$as_save_IFS
22456 test -z "$as_dir" && as_dir=.
22457 for as_base in sh bash ksh sh5; do
22458 case $as_dir in
22460 if ("$as_dir/$as_base" -c '
22461 as_lineno_1=$LINENO
22462 as_lineno_2=$LINENO
22463 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22464 test "x$as_lineno_1" != "x$as_lineno_2" &&
22465 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22466 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22467 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22468 CONFIG_SHELL=$as_dir/$as_base
22469 export CONFIG_SHELL
22470 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22471 fi;;
22472 esac
22473 done
22474 done
22476 esac
22478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22479 # uniformly replaced by the line number. The first 'sed' inserts a
22480 # line-number line before each line; the second 'sed' does the real
22481 # work. The second script uses 'N' to pair each line-number line
22482 # with the numbered line, and appends trailing '-' during
22483 # substitution so that $LINENO is not a special case at line end.
22484 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22485 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22486 sed '=' <$as_myself |
22487 sed '
22489 s,$,-,
22490 : loop
22491 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22492 t loop
22493 s,-$,,
22494 s,^['$as_cr_digits']*\n,,
22495 ' >$as_me.lineno &&
22496 chmod +x $as_me.lineno ||
22497 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22498 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22499 { (exit 1); exit 1; }; }
22501 # Don't try to exec as it changes $[0], causing all sort of problems
22502 # (the dirname of $[0] is not the place where we might find the
22503 # original and so on. Autoconf is especially sensible to this).
22504 . ./$as_me.lineno
22505 # Exit status is that of the last command.
22506 exit
22510 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22511 *c*,-n*) ECHO_N= ECHO_C='
22512 ' ECHO_T=' ' ;;
22513 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22514 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22515 esac
22517 if expr a : '\(a\)' >/dev/null 2>&1; then
22518 as_expr=expr
22519 else
22520 as_expr=false
22523 rm -f conf$$ conf$$.exe conf$$.file
22524 echo >conf$$.file
22525 if ln -s conf$$.file conf$$ 2>/dev/null; then
22526 # We could just check for DJGPP; but this test a) works b) is more generic
22527 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22528 if test -f conf$$.exe; then
22529 # Don't use ln at all; we don't have any links
22530 as_ln_s='cp -p'
22531 else
22532 as_ln_s='ln -s'
22534 elif ln conf$$.file conf$$ 2>/dev/null; then
22535 as_ln_s=ln
22536 else
22537 as_ln_s='cp -p'
22539 rm -f conf$$ conf$$.exe conf$$.file
22541 if mkdir -p . 2>/dev/null; then
22542 as_mkdir_p=:
22543 else
22544 test -d ./-p && rmdir ./-p
22545 as_mkdir_p=false
22548 as_executable_p="test -f"
22550 # Sed expression to map a string onto a valid CPP name.
22551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22553 # Sed expression to map a string onto a valid variable name.
22554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22557 # IFS
22558 # We need space, tab and new line, in precisely that order.
22559 as_nl='
22561 IFS=" $as_nl"
22563 # CDPATH.
22564 $as_unset CDPATH
22566 exec 6>&1
22568 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22569 # report actual input values of CONFIG_FILES etc. instead of their
22570 # values after options handling. Logging --version etc. is OK.
22571 exec 5>>config.log
22573 echo
22574 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22575 ## Running $as_me. ##
22576 _ASBOX
22577 } >&5
22578 cat >&5 <<_CSEOF
22580 This file was extended by $as_me, which was
22581 generated by GNU Autoconf 2.59. Invocation command line was
22583 CONFIG_FILES = $CONFIG_FILES
22584 CONFIG_HEADERS = $CONFIG_HEADERS
22585 CONFIG_LINKS = $CONFIG_LINKS
22586 CONFIG_COMMANDS = $CONFIG_COMMANDS
22587 $ $0 $@
22589 _CSEOF
22590 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22591 echo >&5
22592 _ACEOF
22594 # Files that config.status was made for.
22595 if test -n "$ac_config_files"; then
22596 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22599 if test -n "$ac_config_headers"; then
22600 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22603 if test -n "$ac_config_links"; then
22604 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22607 if test -n "$ac_config_commands"; then
22608 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22611 cat >>$CONFIG_STATUS <<\_ACEOF
22613 ac_cs_usage="\
22614 \`$as_me' instantiates files from templates according to the
22615 current configuration.
22617 Usage: $0 [OPTIONS] [FILE]...
22619 -h, --help print this help, then exit
22620 -V, --version print version number, then exit
22621 -q, --quiet do not print progress messages
22622 -d, --debug don't remove temporary files
22623 --recheck update $as_me by reconfiguring in the same conditions
22624 --file=FILE[:TEMPLATE]
22625 instantiate the configuration file FILE
22626 --header=FILE[:TEMPLATE]
22627 instantiate the configuration header FILE
22629 Configuration files:
22630 $config_files
22632 Configuration headers:
22633 $config_headers
22635 Configuration commands:
22636 $config_commands
22638 Report bugs to <bug-autoconf@gnu.org>."
22639 _ACEOF
22641 cat >>$CONFIG_STATUS <<_ACEOF
22642 ac_cs_version="\\
22643 config.status
22644 configured by $0, generated by GNU Autoconf 2.59,
22645 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22647 Copyright (C) 2003 Free Software Foundation, Inc.
22648 This config.status script is free software; the Free Software Foundation
22649 gives unlimited permission to copy, distribute and modify it."
22650 srcdir=$srcdir
22651 INSTALL="$INSTALL"
22652 _ACEOF
22654 cat >>$CONFIG_STATUS <<\_ACEOF
22655 # If no file are specified by the user, then we need to provide default
22656 # value. By we need to know if files were specified by the user.
22657 ac_need_defaults=:
22658 while test $# != 0
22660 case $1 in
22661 --*=*)
22662 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22663 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22664 ac_shift=:
22667 ac_option=$1
22668 ac_optarg=$2
22669 ac_shift=shift
22671 *) # This is not an option, so the user has probably given explicit
22672 # arguments.
22673 ac_option=$1
22674 ac_need_defaults=false;;
22675 esac
22677 case $ac_option in
22678 # Handling of the options.
22679 _ACEOF
22680 cat >>$CONFIG_STATUS <<\_ACEOF
22681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22682 ac_cs_recheck=: ;;
22683 --version | --vers* | -V )
22684 echo "$ac_cs_version"; exit 0 ;;
22685 --he | --h)
22686 # Conflict between --help and --header
22687 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22688 Try \`$0 --help' for more information." >&5
22689 echo "$as_me: error: ambiguous option: $1
22690 Try \`$0 --help' for more information." >&2;}
22691 { (exit 1); exit 1; }; };;
22692 --help | --hel | -h )
22693 echo "$ac_cs_usage"; exit 0 ;;
22694 --debug | --d* | -d )
22695 debug=: ;;
22696 --file | --fil | --fi | --f )
22697 $ac_shift
22698 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22699 ac_need_defaults=false;;
22700 --header | --heade | --head | --hea )
22701 $ac_shift
22702 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22703 ac_need_defaults=false;;
22704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22705 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22706 ac_cs_silent=: ;;
22708 # This is an error.
22709 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22710 Try \`$0 --help' for more information." >&5
22711 echo "$as_me: error: unrecognized option: $1
22712 Try \`$0 --help' for more information." >&2;}
22713 { (exit 1); exit 1; }; } ;;
22715 *) ac_config_targets="$ac_config_targets $1" ;;
22717 esac
22718 shift
22719 done
22721 ac_configure_extra_args=
22723 if $ac_cs_silent; then
22724 exec 6>/dev/null
22725 ac_configure_extra_args="$ac_configure_extra_args --silent"
22728 _ACEOF
22729 cat >>$CONFIG_STATUS <<_ACEOF
22730 if \$ac_cs_recheck; then
22731 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22732 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22735 _ACEOF
22737 cat >>$CONFIG_STATUS <<_ACEOF
22739 # INIT-COMMANDS section.
22742 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22745 # The HP-UX ksh and POSIX shell print the target directory to stdout
22746 # if CDPATH is set.
22747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22749 sed_quote_subst='$sed_quote_subst'
22750 double_quote_subst='$double_quote_subst'
22751 delay_variable_subst='$delay_variable_subst'
22752 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22753 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22754 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22755 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22756 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22757 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22758 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22759 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22760 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22761 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22762 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22763 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22764 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22765 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22766 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22767 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22768 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22769 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22770 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22771 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22772 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22773 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22774 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22775 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22776 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22777 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22778 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22779 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22780 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22781 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22782 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22783 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22784 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22785 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22786 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22787 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22788 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22789 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22790 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22791 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22792 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22793 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22794 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22795 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22796 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"`'
22797 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22798 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22799 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22800 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22801 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22802 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22803 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22804 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22805 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22806 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22807 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22808 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22809 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22810 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22811 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22812 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22813 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22814 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22815 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22816 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22817 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22818 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22819 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22820 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22821 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22822 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22823 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22824 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22825 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22826 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22827 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22828 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22829 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22830 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22831 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22832 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22833 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22834 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22835 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22836 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22837 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22838 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22839 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22840 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22841 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22842 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22843 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22844 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22845 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22846 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22847 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22848 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22849 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22850 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22851 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22852 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22853 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22854 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22855 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22856 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22857 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22858 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22859 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22860 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22861 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22862 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22863 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22864 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22865 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22866 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22867 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22868 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22869 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22871 LTCC='$LTCC'
22872 LTCFLAGS='$LTCFLAGS'
22873 compiler='$compiler_DEFAULT'
22875 # Quote evaled strings.
22876 for var in SED \
22877 GREP \
22878 EGREP \
22879 FGREP \
22880 LD \
22881 NM \
22882 LN_S \
22883 lt_SP2NL \
22884 lt_NL2SP \
22885 reload_flag \
22886 OBJDUMP \
22887 deplibs_check_method \
22888 file_magic_cmd \
22889 AR \
22890 AR_FLAGS \
22891 STRIP \
22892 RANLIB \
22893 CC \
22894 CFLAGS \
22895 compiler \
22896 lt_cv_sys_global_symbol_pipe \
22897 lt_cv_sys_global_symbol_to_cdecl \
22898 lt_cv_sys_global_symbol_to_c_name_address \
22899 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22900 SHELL \
22901 ECHO \
22902 lt_prog_compiler_no_builtin_flag \
22903 lt_prog_compiler_wl \
22904 lt_prog_compiler_pic \
22905 lt_prog_compiler_static \
22906 lt_cv_prog_compiler_c_o \
22907 need_locks \
22908 DSYMUTIL \
22909 NMEDIT \
22910 LIPO \
22911 OTOOL \
22912 OTOOL64 \
22913 shrext_cmds \
22914 export_dynamic_flag_spec \
22915 whole_archive_flag_spec \
22916 compiler_needs_object \
22917 with_gnu_ld \
22918 allow_undefined_flag \
22919 no_undefined_flag \
22920 hardcode_libdir_flag_spec \
22921 hardcode_libdir_flag_spec_ld \
22922 hardcode_libdir_separator \
22923 fix_srcfile_path \
22924 exclude_expsyms \
22925 include_expsyms \
22926 file_list_spec \
22927 variables_saved_for_relink \
22928 libname_spec \
22929 library_names_spec \
22930 soname_spec \
22931 finish_eval \
22932 old_striplib \
22933 striplib; do
22934 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22935 *[\\\\\\\`\\"\\\$]*)
22936 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22939 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22941 esac
22942 done
22944 # Double-quote double-evaled strings.
22945 for var in reload_cmds \
22946 old_postinstall_cmds \
22947 old_postuninstall_cmds \
22948 old_archive_cmds \
22949 extract_expsyms_cmds \
22950 old_archive_from_new_cmds \
22951 old_archive_from_expsyms_cmds \
22952 archive_cmds \
22953 archive_expsym_cmds \
22954 module_cmds \
22955 module_expsym_cmds \
22956 export_symbols_cmds \
22957 prelink_cmds \
22958 postinstall_cmds \
22959 postuninstall_cmds \
22960 finish_cmds \
22961 sys_lib_search_path_spec \
22962 sys_lib_dlsearch_path_spec; do
22963 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22964 *[\\\\\\\`\\"\\\$]*)
22965 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22968 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22970 esac
22971 done
22973 # Fix-up fallback echo if it was mangled by the above quoting rules.
22974 case \$lt_ECHO in
22975 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22977 esac
22979 ac_aux_dir='$ac_aux_dir'
22980 xsi_shell='$xsi_shell'
22981 lt_shell_append='$lt_shell_append'
22983 # See if we are running on zsh, and set the options which allow our
22984 # commands through without removal of \ escapes INIT.
22985 if test -n "\${ZSH_VERSION+set}" ; then
22986 setopt NO_GLOB_SUBST
22990 PACKAGE='$PACKAGE'
22991 VERSION='$VERSION'
22992 TIMESTAMP='$TIMESTAMP'
22993 RM='$RM'
22994 ofile='$ofile'
22998 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22999 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
23000 # from automake.
23001 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23002 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23003 LINGUAS="${LINGUAS-%UNSET%}"
23006 GCC="$GCC"
23007 CC="$CC"
23008 acx_cv_header_stdint="$acx_cv_header_stdint"
23009 acx_cv_type_int8_t="$acx_cv_type_int8_t"
23010 acx_cv_type_int16_t="$acx_cv_type_int16_t"
23011 acx_cv_type_int32_t="$acx_cv_type_int32_t"
23012 acx_cv_type_int64_t="$acx_cv_type_int64_t"
23013 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23014 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23015 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23016 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23017 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23018 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23019 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23020 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23021 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23025 _ACEOF
23029 cat >>$CONFIG_STATUS <<\_ACEOF
23030 for ac_config_target in $ac_config_targets
23032 case "$ac_config_target" in
23033 # Handling of arguments.
23034 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23035 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23036 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23037 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
23038 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23039 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23040 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23041 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
23042 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23043 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23044 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23045 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23046 { (exit 1); exit 1; }; };;
23047 esac
23048 done
23050 # If the user did not use the arguments to specify the items to instantiate,
23051 # then the envvar interface is used. Set only those that are not.
23052 # We use the long form for the default assignment because of an extremely
23053 # bizarre bug on SunOS 4.1.3.
23054 if $ac_need_defaults; then
23055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23056 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23060 # Have a temporary directory for convenience. Make it in the build tree
23061 # simply because there is no reason to put it here, and in addition,
23062 # creating and moving files from /tmp can sometimes cause problems.
23063 # Create a temporary directory, and hook for its removal unless debugging.
23064 $debug ||
23066 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23067 trap '{ (exit 1); exit 1; }' 1 2 13 15
23070 # Create a (secure) tmp directory for tmp files.
23073 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23074 test -n "$tmp" && test -d "$tmp"
23075 } ||
23077 tmp=./confstat$$-$RANDOM
23078 (umask 077 && mkdir $tmp)
23079 } ||
23081 echo "$me: cannot create a temporary directory in ." >&2
23082 { (exit 1); exit 1; }
23085 _ACEOF
23087 cat >>$CONFIG_STATUS <<_ACEOF
23090 # CONFIG_FILES section.
23093 # No need to generate the scripts if there are no CONFIG_FILES.
23094 # This happens for instance when ./config.status config.h
23095 if test -n "\$CONFIG_FILES"; then
23096 # Protect against being on the right side of a sed subst in config.status.
23097 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23098 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23099 s,@SHELL@,$SHELL,;t t
23100 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23101 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23102 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23103 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23104 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23105 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23106 s,@exec_prefix@,$exec_prefix,;t t
23107 s,@prefix@,$prefix,;t t
23108 s,@program_transform_name@,$program_transform_name,;t t
23109 s,@bindir@,$bindir,;t t
23110 s,@sbindir@,$sbindir,;t t
23111 s,@libexecdir@,$libexecdir,;t t
23112 s,@datadir@,$datadir,;t t
23113 s,@sysconfdir@,$sysconfdir,;t t
23114 s,@sharedstatedir@,$sharedstatedir,;t t
23115 s,@localstatedir@,$localstatedir,;t t
23116 s,@libdir@,$libdir,;t t
23117 s,@includedir@,$includedir,;t t
23118 s,@oldincludedir@,$oldincludedir,;t t
23119 s,@infodir@,$infodir,;t t
23120 s,@mandir@,$mandir,;t t
23121 s,@build_alias@,$build_alias,;t t
23122 s,@host_alias@,$host_alias,;t t
23123 s,@target_alias@,$target_alias,;t t
23124 s,@DEFS@,$DEFS,;t t
23125 s,@ECHO_C@,$ECHO_C,;t t
23126 s,@ECHO_N@,$ECHO_N,;t t
23127 s,@ECHO_T@,$ECHO_T,;t t
23128 s,@LIBS@,$LIBS,;t t
23129 s,@build@,$build,;t t
23130 s,@build_cpu@,$build_cpu,;t t
23131 s,@build_vendor@,$build_vendor,;t t
23132 s,@build_os@,$build_os,;t t
23133 s,@host@,$host,;t t
23134 s,@host_cpu@,$host_cpu,;t t
23135 s,@host_vendor@,$host_vendor,;t t
23136 s,@host_os@,$host_os,;t t
23137 s,@target@,$target,;t t
23138 s,@target_cpu@,$target_cpu,;t t
23139 s,@target_vendor@,$target_vendor,;t t
23140 s,@target_os@,$target_os,;t t
23141 s,@CC@,$CC,;t t
23142 s,@CFLAGS@,$CFLAGS,;t t
23143 s,@LDFLAGS@,$LDFLAGS,;t t
23144 s,@CPPFLAGS@,$CPPFLAGS,;t t
23145 s,@ac_ct_CC@,$ac_ct_CC,;t t
23146 s,@EXEEXT@,$EXEEXT,;t t
23147 s,@OBJEXT@,$OBJEXT,;t t
23148 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23149 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23150 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23151 s,@CYGPATH_W@,$CYGPATH_W,;t t
23152 s,@PACKAGE@,$PACKAGE,;t t
23153 s,@VERSION@,$VERSION,;t t
23154 s,@ACLOCAL@,$ACLOCAL,;t t
23155 s,@AUTOCONF@,$AUTOCONF,;t t
23156 s,@AUTOMAKE@,$AUTOMAKE,;t t
23157 s,@AUTOHEADER@,$AUTOHEADER,;t t
23158 s,@MAKEINFO@,$MAKEINFO,;t t
23159 s,@install_sh@,$install_sh,;t t
23160 s,@STRIP@,$STRIP,;t t
23161 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23162 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23163 s,@mkdir_p@,$mkdir_p,;t t
23164 s,@AWK@,$AWK,;t t
23165 s,@SET_MAKE@,$SET_MAKE,;t t
23166 s,@am__leading_dot@,$am__leading_dot,;t t
23167 s,@AMTAR@,$AMTAR,;t t
23168 s,@am__tar@,$am__tar,;t t
23169 s,@am__untar@,$am__untar,;t t
23170 s,@DEPDIR@,$DEPDIR,;t t
23171 s,@am__include@,$am__include,;t t
23172 s,@am__quote@,$am__quote,;t t
23173 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23174 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23175 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23176 s,@CCDEPMODE@,$CCDEPMODE,;t t
23177 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23178 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23179 s,@AR@,$AR,;t t
23180 s,@ac_ct_AR@,$ac_ct_AR,;t t
23181 s,@RANLIB@,$RANLIB,;t t
23182 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23183 s,@CPP@,$CPP,;t t
23184 s,@EGREP@,$EGREP,;t t
23185 s,@LIBTOOL@,$LIBTOOL,;t t
23186 s,@SED@,$SED,;t t
23187 s,@FGREP@,$FGREP,;t t
23188 s,@GREP@,$GREP,;t t
23189 s,@LD@,$LD,;t t
23190 s,@DUMPBIN@,$DUMPBIN,;t t
23191 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23192 s,@NM@,$NM,;t t
23193 s,@LN_S@,$LN_S,;t t
23194 s,@OBJDUMP@,$OBJDUMP,;t t
23195 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23196 s,@lt_ECHO@,$lt_ECHO,;t t
23197 s,@DSYMUTIL@,$DSYMUTIL,;t t
23198 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23199 s,@NMEDIT@,$NMEDIT,;t t
23200 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23201 s,@LIPO@,$LIPO,;t t
23202 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23203 s,@OTOOL@,$OTOOL,;t t
23204 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23205 s,@OTOOL64@,$OTOOL64,;t t
23206 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
23207 s,@DEBUGDIR@,$DEBUGDIR,;t t
23208 s,@PKGVERSION@,$PKGVERSION,;t t
23209 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23210 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
23211 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23212 s,@NO_WERROR@,$NO_WERROR,;t t
23213 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23214 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23215 s,@MAINT@,$MAINT,;t t
23216 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23217 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
23218 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23219 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
23220 s,@host_noncanonical@,$host_noncanonical,;t t
23221 s,@target_noncanonical@,$target_noncanonical,;t t
23222 s,@bfdlibdir@,$bfdlibdir,;t t
23223 s,@bfdincludedir@,$bfdincludedir,;t t
23224 s,@USE_NLS@,$USE_NLS,;t t
23225 s,@LIBINTL@,$LIBINTL,;t t
23226 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23227 s,@INCINTL@,$INCINTL,;t t
23228 s,@XGETTEXT@,$XGETTEXT,;t t
23229 s,@GMSGFMT@,$GMSGFMT,;t t
23230 s,@POSUB@,$POSUB,;t t
23231 s,@CATALOGS@,$CATALOGS,;t t
23232 s,@DATADIRNAME@,$DATADIRNAME,;t t
23233 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23234 s,@GENCAT@,$GENCAT,;t t
23235 s,@CATOBJEXT@,$CATOBJEXT,;t t
23236 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23237 s,@MSGFMT@,$MSGFMT,;t t
23238 s,@MSGMERGE@,$MSGMERGE,;t t
23239 s,@HDEFINES@,$HDEFINES,;t t
23240 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
23241 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
23242 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23243 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23244 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
23245 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
23246 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23247 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23248 s,@COREFILE@,$COREFILE,;t t
23249 s,@COREFLAG@,$COREFLAG,;t t
23250 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
23251 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
23252 s,@TDEFINES@,$TDEFINES,;t t
23253 s,@wordsize@,$wordsize,;t t
23254 s,@bfd64_libs@,$bfd64_libs,;t t
23255 s,@all_backends@,$all_backends,;t t
23256 s,@bfd_backends@,$bfd_backends,;t t
23257 s,@bfd_machines@,$bfd_machines,;t t
23258 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23259 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23260 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23261 s,@tdefaults@,$tdefaults,;t t
23262 s,@datarootdir@,$datarootdir,;t t
23263 s,@docdir@,$docdir,;t t
23264 s,@htmldir@,$htmldir,;t t
23265 s,@LIBOBJS@,$LIBOBJS,;t t
23266 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23267 CEOF
23269 _ACEOF
23271 cat >>$CONFIG_STATUS <<\_ACEOF
23272 # Split the substitutions into bite-sized pieces for seds with
23273 # small command number limits, like on Digital OSF/1 and HP-UX.
23274 ac_max_sed_lines=48
23275 ac_sed_frag=1 # Number of current file.
23276 ac_beg=1 # First line for current file.
23277 ac_end=$ac_max_sed_lines # Line after last line for current file.
23278 ac_more_lines=:
23279 ac_sed_cmds=
23280 while $ac_more_lines; do
23281 if test $ac_beg -gt 1; then
23282 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23283 else
23284 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23286 if test ! -s $tmp/subs.frag; then
23287 ac_more_lines=false
23288 else
23289 # The purpose of the label and of the branching condition is to
23290 # speed up the sed processing (if there are no `@' at all, there
23291 # is no need to browse any of the substitutions).
23292 # These are the two extra sed commands mentioned above.
23293 (echo ':t
23294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23295 if test -z "$ac_sed_cmds"; then
23296 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23297 else
23298 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23300 ac_sed_frag=`expr $ac_sed_frag + 1`
23301 ac_beg=$ac_end
23302 ac_end=`expr $ac_end + $ac_max_sed_lines`
23304 done
23305 if test -z "$ac_sed_cmds"; then
23306 ac_sed_cmds=cat
23308 fi # test -n "$CONFIG_FILES"
23310 _ACEOF
23311 cat >>$CONFIG_STATUS <<\_ACEOF
23312 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23314 case $ac_file in
23315 - | *:- | *:-:* ) # input from stdin
23316 cat >$tmp/stdin
23317 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23319 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23321 * ) ac_file_in=$ac_file.in ;;
23322 esac
23324 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23325 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23327 X"$ac_file" : 'X\(//\)[^/]' \| \
23328 X"$ac_file" : 'X\(//\)$' \| \
23329 X"$ac_file" : 'X\(/\)' \| \
23330 . : '\(.\)' 2>/dev/null ||
23331 echo X"$ac_file" |
23332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23334 /^X\(\/\/\)$/{ s//\1/; q; }
23335 /^X\(\/\).*/{ s//\1/; q; }
23336 s/.*/./; q'`
23337 { if $as_mkdir_p; then
23338 mkdir -p "$ac_dir"
23339 else
23340 as_dir="$ac_dir"
23341 as_dirs=
23342 while test ! -d "$as_dir"; do
23343 as_dirs="$as_dir $as_dirs"
23344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23346 X"$as_dir" : 'X\(//\)[^/]' \| \
23347 X"$as_dir" : 'X\(//\)$' \| \
23348 X"$as_dir" : 'X\(/\)' \| \
23349 . : '\(.\)' 2>/dev/null ||
23350 echo X"$as_dir" |
23351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23353 /^X\(\/\/\)$/{ s//\1/; q; }
23354 /^X\(\/\).*/{ s//\1/; q; }
23355 s/.*/./; q'`
23356 done
23357 test ! -n "$as_dirs" || mkdir $as_dirs
23358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23359 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23360 { (exit 1); exit 1; }; }; }
23362 ac_builddir=.
23364 if test "$ac_dir" != .; then
23365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23366 # A "../" for each directory in $ac_dir_suffix.
23367 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23368 else
23369 ac_dir_suffix= ac_top_builddir=
23372 case $srcdir in
23373 .) # No --srcdir option. We are building in place.
23374 ac_srcdir=.
23375 if test -z "$ac_top_builddir"; then
23376 ac_top_srcdir=.
23377 else
23378 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23379 fi ;;
23380 [\\/]* | ?:[\\/]* ) # Absolute path.
23381 ac_srcdir=$srcdir$ac_dir_suffix;
23382 ac_top_srcdir=$srcdir ;;
23383 *) # Relative path.
23384 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23385 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23386 esac
23388 # Do not use `cd foo && pwd` to compute absolute paths, because
23389 # the directories may not exist.
23390 case `pwd` in
23391 .) ac_abs_builddir="$ac_dir";;
23393 case "$ac_dir" in
23394 .) ac_abs_builddir=`pwd`;;
23395 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23396 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23397 esac;;
23398 esac
23399 case $ac_abs_builddir in
23400 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23402 case ${ac_top_builddir}. in
23403 .) ac_abs_top_builddir=$ac_abs_builddir;;
23404 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23405 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23406 esac;;
23407 esac
23408 case $ac_abs_builddir in
23409 .) ac_abs_srcdir=$ac_srcdir;;
23411 case $ac_srcdir in
23412 .) ac_abs_srcdir=$ac_abs_builddir;;
23413 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23414 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23415 esac;;
23416 esac
23417 case $ac_abs_builddir in
23418 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23420 case $ac_top_srcdir in
23421 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23422 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23423 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23424 esac;;
23425 esac
23428 case $INSTALL in
23429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23430 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23431 esac
23433 if test x"$ac_file" != x-; then
23434 { echo "$as_me:$LINENO: creating $ac_file" >&5
23435 echo "$as_me: creating $ac_file" >&6;}
23436 rm -f "$ac_file"
23438 # Let's still pretend it is `configure' which instantiates (i.e., don't
23439 # use $as_me), people would be surprised to read:
23440 # /* config.h. Generated by config.status. */
23441 if test x"$ac_file" = x-; then
23442 configure_input=
23443 else
23444 configure_input="$ac_file. "
23446 configure_input=$configure_input"Generated from `echo $ac_file_in |
23447 sed 's,.*/,,'` by configure."
23449 # First look for the input files in the build tree, otherwise in the
23450 # src tree.
23451 ac_file_inputs=`IFS=:
23452 for f in $ac_file_in; do
23453 case $f in
23454 -) echo $tmp/stdin ;;
23455 [\\/$]*)
23456 # Absolute (can't be DOS-style, as IFS=:)
23457 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23458 echo "$as_me: error: cannot find input file: $f" >&2;}
23459 { (exit 1); exit 1; }; }
23460 echo "$f";;
23461 *) # Relative
23462 if test -f "$f"; then
23463 # Build tree
23464 echo "$f"
23465 elif test -f "$srcdir/$f"; then
23466 # Source tree
23467 echo "$srcdir/$f"
23468 else
23469 # /dev/null tree
23470 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23471 echo "$as_me: error: cannot find input file: $f" >&2;}
23472 { (exit 1); exit 1; }; }
23473 fi;;
23474 esac
23475 done` || { (exit 1); exit 1; }
23476 _ACEOF
23477 cat >>$CONFIG_STATUS <<_ACEOF
23478 sed "$ac_vpsub
23479 $extrasub
23480 _ACEOF
23481 cat >>$CONFIG_STATUS <<\_ACEOF
23483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23484 s,@configure_input@,$configure_input,;t t
23485 s,@srcdir@,$ac_srcdir,;t t
23486 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23487 s,@top_srcdir@,$ac_top_srcdir,;t t
23488 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23489 s,@builddir@,$ac_builddir,;t t
23490 s,@abs_builddir@,$ac_abs_builddir,;t t
23491 s,@top_builddir@,$ac_top_builddir,;t t
23492 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23493 s,@INSTALL@,$ac_INSTALL,;t t
23494 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23495 rm -f $tmp/stdin
23496 if test x"$ac_file" != x-; then
23497 mv $tmp/out $ac_file
23498 else
23499 cat $tmp/out
23500 rm -f $tmp/out
23503 done
23504 _ACEOF
23505 cat >>$CONFIG_STATUS <<\_ACEOF
23508 # CONFIG_HEADER section.
23511 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23512 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23514 # ac_d sets the value in "#define NAME VALUE" lines.
23515 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23516 ac_dB='[ ].*$,\1#\2'
23517 ac_dC=' '
23518 ac_dD=',;t'
23519 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23520 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23521 ac_uB='$,\1#\2define\3'
23522 ac_uC=' '
23523 ac_uD=',;t'
23525 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23527 case $ac_file in
23528 - | *:- | *:-:* ) # input from stdin
23529 cat >$tmp/stdin
23530 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23532 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23534 * ) ac_file_in=$ac_file.in ;;
23535 esac
23537 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23538 echo "$as_me: creating $ac_file" >&6;}
23540 # First look for the input files in the build tree, otherwise in the
23541 # src tree.
23542 ac_file_inputs=`IFS=:
23543 for f in $ac_file_in; do
23544 case $f in
23545 -) echo $tmp/stdin ;;
23546 [\\/$]*)
23547 # Absolute (can't be DOS-style, as IFS=:)
23548 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23549 echo "$as_me: error: cannot find input file: $f" >&2;}
23550 { (exit 1); exit 1; }; }
23551 # Do quote $f, to prevent DOS paths from being IFS'd.
23552 echo "$f";;
23553 *) # Relative
23554 if test -f "$f"; then
23555 # Build tree
23556 echo "$f"
23557 elif test -f "$srcdir/$f"; then
23558 # Source tree
23559 echo "$srcdir/$f"
23560 else
23561 # /dev/null tree
23562 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23563 echo "$as_me: error: cannot find input file: $f" >&2;}
23564 { (exit 1); exit 1; }; }
23565 fi;;
23566 esac
23567 done` || { (exit 1); exit 1; }
23568 # Remove the trailing spaces.
23569 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23571 _ACEOF
23573 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23574 # `conftest.undefs', that substitutes the proper values into
23575 # config.h.in to produce config.h. The first handles `#define'
23576 # templates, and the second `#undef' templates.
23577 # And first: Protect against being on the right side of a sed subst in
23578 # config.status. Protect against being in an unquoted here document
23579 # in config.status.
23580 rm -f conftest.defines conftest.undefs
23581 # Using a here document instead of a string reduces the quoting nightmare.
23582 # Putting comments in sed scripts is not portable.
23584 # `end' is used to avoid that the second main sed command (meant for
23585 # 0-ary CPP macros) applies to n-ary macro definitions.
23586 # See the Autoconf documentation for `clear'.
23587 cat >confdef2sed.sed <<\_ACEOF
23588 s/[\\&,]/\\&/g
23589 s,[\\$`],\\&,g
23590 t clear
23591 : clear
23592 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23593 t end
23594 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23595 : end
23596 _ACEOF
23597 # If some macros were called several times there might be several times
23598 # the same #defines, which is useless. Nevertheless, we may not want to
23599 # sort them, since we want the *last* AC-DEFINE to be honored.
23600 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23601 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23602 rm -f confdef2sed.sed
23604 # This sed command replaces #undef with comments. This is necessary, for
23605 # example, in the case of _POSIX_SOURCE, which is predefined and required
23606 # on some systems where configure will not decide to define it.
23607 cat >>conftest.undefs <<\_ACEOF
23608 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23609 _ACEOF
23611 # Break up conftest.defines because some shells have a limit on the size
23612 # of here documents, and old seds have small limits too (100 cmds).
23613 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23614 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23615 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23616 echo ' :' >>$CONFIG_STATUS
23617 rm -f conftest.tail
23618 while grep . conftest.defines >/dev/null
23620 # Write a limited-size here document to $tmp/defines.sed.
23621 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23622 # Speed up: don't consider the non `#define' lines.
23623 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23624 # Work around the forget-to-reset-the-flag bug.
23625 echo 't clr' >>$CONFIG_STATUS
23626 echo ': clr' >>$CONFIG_STATUS
23627 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23628 echo 'CEOF
23629 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23630 rm -f $tmp/in
23631 mv $tmp/out $tmp/in
23632 ' >>$CONFIG_STATUS
23633 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23634 rm -f conftest.defines
23635 mv conftest.tail conftest.defines
23636 done
23637 rm -f conftest.defines
23638 echo ' fi # grep' >>$CONFIG_STATUS
23639 echo >>$CONFIG_STATUS
23641 # Break up conftest.undefs because some shells have a limit on the size
23642 # of here documents, and old seds have small limits too (100 cmds).
23643 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23644 rm -f conftest.tail
23645 while grep . conftest.undefs >/dev/null
23647 # Write a limited-size here document to $tmp/undefs.sed.
23648 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23649 # Speed up: don't consider the non `#undef'
23650 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23651 # Work around the forget-to-reset-the-flag bug.
23652 echo 't clr' >>$CONFIG_STATUS
23653 echo ': clr' >>$CONFIG_STATUS
23654 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23655 echo 'CEOF
23656 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23657 rm -f $tmp/in
23658 mv $tmp/out $tmp/in
23659 ' >>$CONFIG_STATUS
23660 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23661 rm -f conftest.undefs
23662 mv conftest.tail conftest.undefs
23663 done
23664 rm -f conftest.undefs
23666 cat >>$CONFIG_STATUS <<\_ACEOF
23667 # Let's still pretend it is `configure' which instantiates (i.e., don't
23668 # use $as_me), people would be surprised to read:
23669 # /* config.h. Generated by config.status. */
23670 if test x"$ac_file" = x-; then
23671 echo "/* Generated by configure. */" >$tmp/config.h
23672 else
23673 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23675 cat $tmp/in >>$tmp/config.h
23676 rm -f $tmp/in
23677 if test x"$ac_file" != x-; then
23678 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23679 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23680 echo "$as_me: $ac_file is unchanged" >&6;}
23681 else
23682 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23683 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23684 X"$ac_file" : 'X\(//\)[^/]' \| \
23685 X"$ac_file" : 'X\(//\)$' \| \
23686 X"$ac_file" : 'X\(/\)' \| \
23687 . : '\(.\)' 2>/dev/null ||
23688 echo X"$ac_file" |
23689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23691 /^X\(\/\/\)$/{ s//\1/; q; }
23692 /^X\(\/\).*/{ s//\1/; q; }
23693 s/.*/./; q'`
23694 { if $as_mkdir_p; then
23695 mkdir -p "$ac_dir"
23696 else
23697 as_dir="$ac_dir"
23698 as_dirs=
23699 while test ! -d "$as_dir"; do
23700 as_dirs="$as_dir $as_dirs"
23701 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23702 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23703 X"$as_dir" : 'X\(//\)[^/]' \| \
23704 X"$as_dir" : 'X\(//\)$' \| \
23705 X"$as_dir" : 'X\(/\)' \| \
23706 . : '\(.\)' 2>/dev/null ||
23707 echo X"$as_dir" |
23708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23710 /^X\(\/\/\)$/{ s//\1/; q; }
23711 /^X\(\/\).*/{ s//\1/; q; }
23712 s/.*/./; q'`
23713 done
23714 test ! -n "$as_dirs" || mkdir $as_dirs
23715 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23716 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23717 { (exit 1); exit 1; }; }; }
23719 rm -f $ac_file
23720 mv $tmp/config.h $ac_file
23722 else
23723 cat $tmp/config.h
23724 rm -f $tmp/config.h
23726 # Compute $ac_file's index in $config_headers.
23727 _am_stamp_count=1
23728 for _am_header in $config_headers :; do
23729 case $_am_header in
23730 $ac_file | $ac_file:* )
23731 break ;;
23733 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23734 esac
23735 done
23736 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23737 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23738 X$ac_file : 'X\(//\)[^/]' \| \
23739 X$ac_file : 'X\(//\)$' \| \
23740 X$ac_file : 'X\(/\)' \| \
23741 . : '\(.\)' 2>/dev/null ||
23742 echo X$ac_file |
23743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23745 /^X\(\/\/\)$/{ s//\1/; q; }
23746 /^X\(\/\).*/{ s//\1/; q; }
23747 s/.*/./; q'`/stamp-h$_am_stamp_count
23748 done
23749 _ACEOF
23750 cat >>$CONFIG_STATUS <<\_ACEOF
23753 # CONFIG_COMMANDS section.
23755 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23756 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23757 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23758 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23759 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23760 X"$ac_dest" : 'X\(//\)[^/]' \| \
23761 X"$ac_dest" : 'X\(//\)$' \| \
23762 X"$ac_dest" : 'X\(/\)' \| \
23763 . : '\(.\)' 2>/dev/null ||
23764 echo X"$ac_dest" |
23765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23767 /^X\(\/\/\)$/{ s//\1/; q; }
23768 /^X\(\/\).*/{ s//\1/; q; }
23769 s/.*/./; q'`
23770 { if $as_mkdir_p; then
23771 mkdir -p "$ac_dir"
23772 else
23773 as_dir="$ac_dir"
23774 as_dirs=
23775 while test ! -d "$as_dir"; do
23776 as_dirs="$as_dir $as_dirs"
23777 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23779 X"$as_dir" : 'X\(//\)[^/]' \| \
23780 X"$as_dir" : 'X\(//\)$' \| \
23781 X"$as_dir" : 'X\(/\)' \| \
23782 . : '\(.\)' 2>/dev/null ||
23783 echo X"$as_dir" |
23784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23786 /^X\(\/\/\)$/{ s//\1/; q; }
23787 /^X\(\/\).*/{ s//\1/; q; }
23788 s/.*/./; q'`
23789 done
23790 test ! -n "$as_dirs" || mkdir $as_dirs
23791 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23792 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23793 { (exit 1); exit 1; }; }; }
23795 ac_builddir=.
23797 if test "$ac_dir" != .; then
23798 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23799 # A "../" for each directory in $ac_dir_suffix.
23800 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23801 else
23802 ac_dir_suffix= ac_top_builddir=
23805 case $srcdir in
23806 .) # No --srcdir option. We are building in place.
23807 ac_srcdir=.
23808 if test -z "$ac_top_builddir"; then
23809 ac_top_srcdir=.
23810 else
23811 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23812 fi ;;
23813 [\\/]* | ?:[\\/]* ) # Absolute path.
23814 ac_srcdir=$srcdir$ac_dir_suffix;
23815 ac_top_srcdir=$srcdir ;;
23816 *) # Relative path.
23817 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23818 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23819 esac
23821 # Do not use `cd foo && pwd` to compute absolute paths, because
23822 # the directories may not exist.
23823 case `pwd` in
23824 .) ac_abs_builddir="$ac_dir";;
23826 case "$ac_dir" in
23827 .) ac_abs_builddir=`pwd`;;
23828 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23829 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23830 esac;;
23831 esac
23832 case $ac_abs_builddir in
23833 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23835 case ${ac_top_builddir}. in
23836 .) ac_abs_top_builddir=$ac_abs_builddir;;
23837 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23838 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23839 esac;;
23840 esac
23841 case $ac_abs_builddir in
23842 .) ac_abs_srcdir=$ac_srcdir;;
23844 case $ac_srcdir in
23845 .) ac_abs_srcdir=$ac_abs_builddir;;
23846 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23847 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23848 esac;;
23849 esac
23850 case $ac_abs_builddir in
23851 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23853 case $ac_top_srcdir in
23854 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23855 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23856 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23857 esac;;
23858 esac
23861 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23862 echo "$as_me: executing $ac_dest commands" >&6;}
23863 case $ac_dest in
23864 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23865 # Strip MF so we end up with the name of the file.
23866 mf=`echo "$mf" | sed -e 's/:.*$//'`
23867 # Check whether this is an Automake generated Makefile or not.
23868 # We used to match only the files named `Makefile.in', but
23869 # some people rename them; so instead we look at the file content.
23870 # Grep'ing the first line is not enough: some people post-process
23871 # each Makefile.in and add a new line on top of each file to say so.
23872 # So let's grep whole file.
23873 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23874 dirpart=`(dirname "$mf") 2>/dev/null ||
23875 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23876 X"$mf" : 'X\(//\)[^/]' \| \
23877 X"$mf" : 'X\(//\)$' \| \
23878 X"$mf" : 'X\(/\)' \| \
23879 . : '\(.\)' 2>/dev/null ||
23880 echo X"$mf" |
23881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23883 /^X\(\/\/\)$/{ s//\1/; q; }
23884 /^X\(\/\).*/{ s//\1/; q; }
23885 s/.*/./; q'`
23886 else
23887 continue
23889 # Extract the definition of DEPDIR, am__include, and am__quote
23890 # from the Makefile without running `make'.
23891 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23892 test -z "$DEPDIR" && continue
23893 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23894 test -z "am__include" && continue
23895 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23896 # When using ansi2knr, U may be empty or an underscore; expand it
23897 U=`sed -n 's/^U = //p' < "$mf"`
23898 # Find all dependency output files, they are included files with
23899 # $(DEPDIR) in their names. We invoke sed twice because it is the
23900 # simplest approach to changing $(DEPDIR) to its actual value in the
23901 # expansion.
23902 for file in `sed -n "
23903 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23904 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23905 # Make sure the directory exists.
23906 test -f "$dirpart/$file" && continue
23907 fdir=`(dirname "$file") 2>/dev/null ||
23908 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23909 X"$file" : 'X\(//\)[^/]' \| \
23910 X"$file" : 'X\(//\)$' \| \
23911 X"$file" : 'X\(/\)' \| \
23912 . : '\(.\)' 2>/dev/null ||
23913 echo X"$file" |
23914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23916 /^X\(\/\/\)$/{ s//\1/; q; }
23917 /^X\(\/\).*/{ s//\1/; q; }
23918 s/.*/./; q'`
23919 { if $as_mkdir_p; then
23920 mkdir -p $dirpart/$fdir
23921 else
23922 as_dir=$dirpart/$fdir
23923 as_dirs=
23924 while test ! -d "$as_dir"; do
23925 as_dirs="$as_dir $as_dirs"
23926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23928 X"$as_dir" : 'X\(//\)[^/]' \| \
23929 X"$as_dir" : 'X\(//\)$' \| \
23930 X"$as_dir" : 'X\(/\)' \| \
23931 . : '\(.\)' 2>/dev/null ||
23932 echo X"$as_dir" |
23933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23935 /^X\(\/\/\)$/{ s//\1/; q; }
23936 /^X\(\/\).*/{ s//\1/; q; }
23937 s/.*/./; q'`
23938 done
23939 test ! -n "$as_dirs" || mkdir $as_dirs
23940 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23941 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23942 { (exit 1); exit 1; }; }; }
23944 # echo "creating $dirpart/$file"
23945 echo '# dummy' > "$dirpart/$file"
23946 done
23947 done
23949 libtool )
23951 # See if we are running on zsh, and set the options which allow our
23952 # commands through without removal of \ escapes.
23953 if test -n "${ZSH_VERSION+set}" ; then
23954 setopt NO_GLOB_SUBST
23957 cfgfile="${ofile}T"
23958 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23959 $RM "$cfgfile"
23961 cat <<_LT_EOF >> "$cfgfile"
23962 #! $SHELL
23964 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23965 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23966 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23967 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23969 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23970 # 2006, 2007, 2008 Free Software Foundation, Inc.
23971 # Written by Gordon Matzigkeit, 1996
23973 # This file is part of GNU Libtool.
23975 # GNU Libtool is free software; you can redistribute it and/or
23976 # modify it under the terms of the GNU General Public License as
23977 # published by the Free Software Foundation; either version 2 of
23978 # the License, or (at your option) any later version.
23980 # As a special exception to the GNU General Public License,
23981 # if you distribute this file as part of a program or library that
23982 # is built using GNU Libtool, you may include this file under the
23983 # same distribution terms that you use for the rest of that program.
23985 # GNU Libtool is distributed in the hope that it will be useful,
23986 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23987 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23988 # GNU General Public License for more details.
23990 # You should have received a copy of the GNU General Public License
23991 # along with GNU Libtool; see the file COPYING. If not, a copy
23992 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23993 # obtained by writing to the Free Software Foundation, Inc.,
23994 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23997 # The names of the tagged configurations supported by this script.
23998 available_tags=""
24000 # ### BEGIN LIBTOOL CONFIG
24002 # Whether or not to build shared libraries.
24003 build_libtool_libs=$enable_shared
24005 # Which release of libtool.m4 was used?
24006 macro_version=$macro_version
24007 macro_revision=$macro_revision
24009 # Whether or not to build static libraries.
24010 build_old_libs=$enable_static
24012 # What type of objects to build.
24013 pic_mode=$pic_mode
24015 # Whether or not to optimize for fast installation.
24016 fast_install=$enable_fast_install
24018 # The host system.
24019 host_alias=$host_alias
24020 host=$host
24021 host_os=$host_os
24023 # The build system.
24024 build_alias=$build_alias
24025 build=$build
24026 build_os=$build_os
24028 # A sed program that does not truncate output.
24029 SED=$lt_SED
24031 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24032 Xsed="\$SED -e 1s/^X//"
24034 # A grep program that handles long lines.
24035 GREP=$lt_GREP
24037 # An ERE matcher.
24038 EGREP=$lt_EGREP
24040 # A literal string matcher.
24041 FGREP=$lt_FGREP
24043 # A BSD- or MS-compatible name lister.
24044 NM=$lt_NM
24046 # Whether we need soft or hard links.
24047 LN_S=$lt_LN_S
24049 # What is the maximum length of a command?
24050 max_cmd_len=$max_cmd_len
24052 # Object file suffix (normally "o").
24053 objext=$ac_objext
24055 # Executable file suffix (normally "").
24056 exeext=$exeext
24058 # whether the shell understands "unset".
24059 lt_unset=$lt_unset
24061 # turn spaces into newlines.
24062 SP2NL=$lt_lt_SP2NL
24064 # turn newlines into spaces.
24065 NL2SP=$lt_lt_NL2SP
24067 # How to create reloadable object files.
24068 reload_flag=$lt_reload_flag
24069 reload_cmds=$lt_reload_cmds
24071 # An object symbol dumper.
24072 OBJDUMP=$lt_OBJDUMP
24074 # Method to check whether dependent libraries are shared objects.
24075 deplibs_check_method=$lt_deplibs_check_method
24077 # Command to use when deplibs_check_method == "file_magic".
24078 file_magic_cmd=$lt_file_magic_cmd
24080 # The archiver.
24081 AR=$lt_AR
24082 AR_FLAGS=$lt_AR_FLAGS
24084 # A symbol stripping program.
24085 STRIP=$lt_STRIP
24087 # Commands used to install an old-style archive.
24088 RANLIB=$lt_RANLIB
24089 old_postinstall_cmds=$lt_old_postinstall_cmds
24090 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24092 # A C compiler.
24093 LTCC=$lt_CC
24095 # LTCC compiler flags.
24096 LTCFLAGS=$lt_CFLAGS
24098 # Take the output of nm and produce a listing of raw symbols and C names.
24099 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24101 # Transform the output of nm in a proper C declaration.
24102 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24104 # Transform the output of nm in a C name address pair.
24105 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24107 # Transform the output of nm in a C name address pair when lib prefix is needed.
24108 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24110 # The name of the directory that contains temporary libtool files.
24111 objdir=$objdir
24113 # Shell to use when invoking shell scripts.
24114 SHELL=$lt_SHELL
24116 # An echo program that does not interpret backslashes.
24117 ECHO=$lt_ECHO
24119 # Used to examine libraries when file_magic_cmd begins with "file".
24120 MAGIC_CMD=$MAGIC_CMD
24122 # Must we lock files when doing compilation?
24123 need_locks=$lt_need_locks
24125 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24126 DSYMUTIL=$lt_DSYMUTIL
24128 # Tool to change global to local symbols on Mac OS X.
24129 NMEDIT=$lt_NMEDIT
24131 # Tool to manipulate fat objects and archives on Mac OS X.
24132 LIPO=$lt_LIPO
24134 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24135 OTOOL=$lt_OTOOL
24137 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24138 OTOOL64=$lt_OTOOL64
24140 # Old archive suffix (normally "a").
24141 libext=$libext
24143 # Shared library suffix (normally ".so").
24144 shrext_cmds=$lt_shrext_cmds
24146 # The commands to extract the exported symbol list from a shared archive.
24147 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24149 # Variables whose values should be saved in libtool wrapper scripts and
24150 # restored at link time.
24151 variables_saved_for_relink=$lt_variables_saved_for_relink
24153 # Do we need the "lib" prefix for modules?
24154 need_lib_prefix=$need_lib_prefix
24156 # Do we need a version for libraries?
24157 need_version=$need_version
24159 # Library versioning type.
24160 version_type=$version_type
24162 # Shared library runtime path variable.
24163 runpath_var=$runpath_var
24165 # Shared library path variable.
24166 shlibpath_var=$shlibpath_var
24168 # Is shlibpath searched before the hard-coded library search path?
24169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24171 # Format of library name prefix.
24172 libname_spec=$lt_libname_spec
24174 # List of archive names. First name is the real one, the rest are links.
24175 # The last name is the one that the linker finds with -lNAME
24176 library_names_spec=$lt_library_names_spec
24178 # The coded name of the library, if different from the real name.
24179 soname_spec=$lt_soname_spec
24181 # Command to use after installation of a shared archive.
24182 postinstall_cmds=$lt_postinstall_cmds
24184 # Command to use after uninstallation of a shared archive.
24185 postuninstall_cmds=$lt_postuninstall_cmds
24187 # Commands used to finish a libtool library installation in a directory.
24188 finish_cmds=$lt_finish_cmds
24190 # As "finish_cmds", except a single script fragment to be evaled but
24191 # not shown.
24192 finish_eval=$lt_finish_eval
24194 # Whether we should hardcode library paths into libraries.
24195 hardcode_into_libs=$hardcode_into_libs
24197 # Compile-time system search path for libraries.
24198 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24200 # Run-time system search path for libraries.
24201 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24203 # Whether dlopen is supported.
24204 dlopen_support=$enable_dlopen
24206 # Whether dlopen of programs is supported.
24207 dlopen_self=$enable_dlopen_self
24209 # Whether dlopen of statically linked programs is supported.
24210 dlopen_self_static=$enable_dlopen_self_static
24212 # Commands to strip libraries.
24213 old_striplib=$lt_old_striplib
24214 striplib=$lt_striplib
24217 # The linker used to build libraries.
24218 LD=$lt_LD
24220 # Commands used to build an old-style archive.
24221 old_archive_cmds=$lt_old_archive_cmds
24223 # A language specific compiler.
24224 CC=$lt_compiler
24226 # Is the compiler the GNU compiler?
24227 with_gcc=$GCC
24229 # Compiler flag to turn off builtin functions.
24230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24232 # How to pass a linker flag through the compiler.
24233 wl=$lt_lt_prog_compiler_wl
24235 # Additional compiler flags for building library objects.
24236 pic_flag=$lt_lt_prog_compiler_pic
24238 # Compiler flag to prevent dynamic linking.
24239 link_static_flag=$lt_lt_prog_compiler_static
24241 # Does compiler simultaneously support -c and -o options?
24242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24244 # Whether or not to add -lc for building shared libraries.
24245 build_libtool_need_lc=$archive_cmds_need_lc
24247 # Whether or not to disallow shared libs when runtime libs are static.
24248 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24250 # Compiler flag to allow reflexive dlopens.
24251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24253 # Compiler flag to generate shared objects directly from archives.
24254 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24256 # Whether the compiler copes with passing no objects directly.
24257 compiler_needs_object=$lt_compiler_needs_object
24259 # Create an old-style archive from a shared archive.
24260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24262 # Create a temporary old-style archive to link instead of a shared archive.
24263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24265 # Commands used to build a shared archive.
24266 archive_cmds=$lt_archive_cmds
24267 archive_expsym_cmds=$lt_archive_expsym_cmds
24269 # Commands used to build a loadable module if different from building
24270 # a shared archive.
24271 module_cmds=$lt_module_cmds
24272 module_expsym_cmds=$lt_module_expsym_cmds
24274 # Whether we are building with GNU ld or not.
24275 with_gnu_ld=$lt_with_gnu_ld
24277 # Flag that allows shared libraries with undefined symbols to be built.
24278 allow_undefined_flag=$lt_allow_undefined_flag
24280 # Flag that enforces no undefined symbols.
24281 no_undefined_flag=$lt_no_undefined_flag
24283 # Flag to hardcode \$libdir into a binary during linking.
24284 # This must work even if \$libdir does not exist
24285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24287 # If ld is used when linking, flag to hardcode \$libdir into a binary
24288 # during linking. This must work even if \$libdir does not exist.
24289 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24291 # Whether we need a single "-rpath" flag with a separated argument.
24292 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24294 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24295 # DIR into the resulting binary.
24296 hardcode_direct=$hardcode_direct
24298 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24299 # DIR into the resulting binary and the resulting library dependency is
24300 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24301 # library is relocated.
24302 hardcode_direct_absolute=$hardcode_direct_absolute
24304 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24305 # into the resulting binary.
24306 hardcode_minus_L=$hardcode_minus_L
24308 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24309 # into the resulting binary.
24310 hardcode_shlibpath_var=$hardcode_shlibpath_var
24312 # Set to "yes" if building a shared library automatically hardcodes DIR
24313 # into the library and all subsequent libraries and executables linked
24314 # against it.
24315 hardcode_automatic=$hardcode_automatic
24317 # Set to yes if linker adds runtime paths of dependent libraries
24318 # to runtime path list.
24319 inherit_rpath=$inherit_rpath
24321 # Whether libtool must link a program against all its dependency libraries.
24322 link_all_deplibs=$link_all_deplibs
24324 # Fix the shell variable \$srcfile for the compiler.
24325 fix_srcfile_path=$lt_fix_srcfile_path
24327 # Set to "yes" if exported symbols are required.
24328 always_export_symbols=$always_export_symbols
24330 # The commands to list exported symbols.
24331 export_symbols_cmds=$lt_export_symbols_cmds
24333 # Symbols that should not be listed in the preloaded symbols.
24334 exclude_expsyms=$lt_exclude_expsyms
24336 # Symbols that must always be exported.
24337 include_expsyms=$lt_include_expsyms
24339 # Commands necessary for linking programs (against libraries) with templates.
24340 prelink_cmds=$lt_prelink_cmds
24342 # Specify filename containing input files.
24343 file_list_spec=$lt_file_list_spec
24345 # How to hardcode a shared library path into an executable.
24346 hardcode_action=$hardcode_action
24348 # ### END LIBTOOL CONFIG
24350 _LT_EOF
24352 case $host_os in
24353 aix3*)
24354 cat <<\_LT_EOF >> "$cfgfile"
24355 # AIX sometimes has problems with the GCC collect2 program. For some
24356 # reason, if we set the COLLECT_NAMES environment variable, the problems
24357 # vanish in a puff of smoke.
24358 if test "X${COLLECT_NAMES+set}" != Xset; then
24359 COLLECT_NAMES=
24360 export COLLECT_NAMES
24362 _LT_EOF
24364 esac
24367 ltmain="$ac_aux_dir/ltmain.sh"
24370 # We use sed instead of cat because bash on DJGPP gets confused if
24371 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24372 # text mode, it properly converts lines to CR/LF. This bash problem
24373 # is reportedly fixed, but why not run on old versions too?
24374 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24375 || (rm -f "$cfgfile"; exit 1)
24377 case $xsi_shell in
24378 yes)
24379 cat << \_LT_EOF >> "$cfgfile"
24381 # func_dirname file append nondir_replacement
24382 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24383 # otherwise set result to NONDIR_REPLACEMENT.
24384 func_dirname ()
24386 case ${1} in
24387 */*) func_dirname_result="${1%/*}${2}" ;;
24388 * ) func_dirname_result="${3}" ;;
24389 esac
24392 # func_basename file
24393 func_basename ()
24395 func_basename_result="${1##*/}"
24398 # func_dirname_and_basename file append nondir_replacement
24399 # perform func_basename and func_dirname in a single function
24400 # call:
24401 # dirname: Compute the dirname of FILE. If nonempty,
24402 # add APPEND to the result, otherwise set result
24403 # to NONDIR_REPLACEMENT.
24404 # value returned in "$func_dirname_result"
24405 # basename: Compute filename of FILE.
24406 # value retuned in "$func_basename_result"
24407 # Implementation must be kept synchronized with func_dirname
24408 # and func_basename. For efficiency, we do not delegate to
24409 # those functions but instead duplicate the functionality here.
24410 func_dirname_and_basename ()
24412 case ${1} in
24413 */*) func_dirname_result="${1%/*}${2}" ;;
24414 * ) func_dirname_result="${3}" ;;
24415 esac
24416 func_basename_result="${1##*/}"
24419 # func_stripname prefix suffix name
24420 # strip PREFIX and SUFFIX off of NAME.
24421 # PREFIX and SUFFIX must not contain globbing or regex special
24422 # characters, hashes, percent signs, but SUFFIX may contain a leading
24423 # dot (in which case that matches only a dot).
24424 func_stripname ()
24426 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24427 # positional parameters, so assign one to ordinary parameter first.
24428 func_stripname_result=${3}
24429 func_stripname_result=${func_stripname_result#"${1}"}
24430 func_stripname_result=${func_stripname_result%"${2}"}
24433 # func_opt_split
24434 func_opt_split ()
24436 func_opt_split_opt=${1%%=*}
24437 func_opt_split_arg=${1#*=}
24440 # func_lo2o object
24441 func_lo2o ()
24443 case ${1} in
24444 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24445 *) func_lo2o_result=${1} ;;
24446 esac
24449 # func_xform libobj-or-source
24450 func_xform ()
24452 func_xform_result=${1%.*}.lo
24455 # func_arith arithmetic-term...
24456 func_arith ()
24458 func_arith_result=$(( $* ))
24461 # func_len string
24462 # STRING may not start with a hyphen.
24463 func_len ()
24465 func_len_result=${#1}
24468 _LT_EOF
24470 *) # Bourne compatible functions.
24471 cat << \_LT_EOF >> "$cfgfile"
24473 # func_dirname file append nondir_replacement
24474 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24475 # otherwise set result to NONDIR_REPLACEMENT.
24476 func_dirname ()
24478 # Extract subdirectory from the argument.
24479 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24480 if test "X$func_dirname_result" = "X${1}"; then
24481 func_dirname_result="${3}"
24482 else
24483 func_dirname_result="$func_dirname_result${2}"
24487 # func_basename file
24488 func_basename ()
24490 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24494 # func_stripname prefix suffix name
24495 # strip PREFIX and SUFFIX off of NAME.
24496 # PREFIX and SUFFIX must not contain globbing or regex special
24497 # characters, hashes, percent signs, but SUFFIX may contain a leading
24498 # dot (in which case that matches only a dot).
24499 # func_strip_suffix prefix name
24500 func_stripname ()
24502 case ${2} in
24503 .*) func_stripname_result=`$ECHO "X${3}" \
24504 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24505 *) func_stripname_result=`$ECHO "X${3}" \
24506 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24507 esac
24510 # sed scripts:
24511 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24512 my_sed_long_arg='1s/^-[^=]*=//'
24514 # func_opt_split
24515 func_opt_split ()
24517 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24518 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24521 # func_lo2o object
24522 func_lo2o ()
24524 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24527 # func_xform libobj-or-source
24528 func_xform ()
24530 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24533 # func_arith arithmetic-term...
24534 func_arith ()
24536 func_arith_result=`expr "$@"`
24539 # func_len string
24540 # STRING may not start with a hyphen.
24541 func_len ()
24543 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24546 _LT_EOF
24547 esac
24549 case $lt_shell_append in
24550 yes)
24551 cat << \_LT_EOF >> "$cfgfile"
24553 # func_append var value
24554 # Append VALUE to the end of shell variable VAR.
24555 func_append ()
24557 eval "$1+=\$2"
24559 _LT_EOF
24562 cat << \_LT_EOF >> "$cfgfile"
24564 # func_append var value
24565 # Append VALUE to the end of shell variable VAR.
24566 func_append ()
24568 eval "$1=\$$1\$2"
24571 _LT_EOF
24573 esac
24576 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24577 || (rm -f "$cfgfile"; exit 1)
24579 mv -f "$cfgfile" "$ofile" ||
24580 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24581 chmod +x "$ofile"
24584 default-1 )
24585 for ac_file in $CONFIG_FILES; do
24586 # Support "outfile[:infile[:infile...]]"
24587 case "$ac_file" in
24588 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24589 esac
24590 # PO directories have a Makefile.in generated from Makefile.in.in.
24591 case "$ac_file" in */Makefile.in)
24592 # Adjust a relative srcdir.
24593 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24594 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24595 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24596 # In autoconf-2.13 it is called $ac_given_srcdir.
24597 # In autoconf-2.50 it is called $srcdir.
24598 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24599 case "$ac_given_srcdir" in
24600 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24601 /*) top_srcdir="$ac_given_srcdir" ;;
24602 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24603 esac
24604 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24605 rm -f "$ac_dir/POTFILES"
24606 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24607 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24608 POMAKEFILEDEPS="POTFILES.in"
24609 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24610 # on $ac_dir but don't depend on user-specified configuration
24611 # parameters.
24612 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24613 # The LINGUAS file contains the set of available languages.
24614 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24615 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24617 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24618 # Hide the ALL_LINGUAS assigment from automake.
24619 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24620 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24621 else
24622 # The set of available languages was given in configure.in.
24623 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24625 case "$ac_given_srcdir" in
24626 .) srcdirpre= ;;
24627 *) srcdirpre='$(srcdir)/' ;;
24628 esac
24629 POFILES=
24630 GMOFILES=
24631 UPDATEPOFILES=
24632 DUMMYPOFILES=
24633 for lang in $ALL_LINGUAS; do
24634 POFILES="$POFILES $srcdirpre$lang.po"
24635 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24636 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24637 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24638 done
24639 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24640 # environment variable.
24641 INST_LINGUAS=
24642 if test -n "$ALL_LINGUAS"; then
24643 for presentlang in $ALL_LINGUAS; do
24644 useit=no
24645 if test "%UNSET%" != "$LINGUAS"; then
24646 desiredlanguages="$LINGUAS"
24647 else
24648 desiredlanguages="$ALL_LINGUAS"
24650 for desiredlang in $desiredlanguages; do
24651 # Use the presentlang catalog if desiredlang is
24652 # a. equal to presentlang, or
24653 # b. a variant of presentlang (because in this case,
24654 # presentlang can be used as a fallback for messages
24655 # which are not translated in the desiredlang catalog).
24656 case "$desiredlang" in
24657 "$presentlang"*) useit=yes;;
24658 esac
24659 done
24660 if test $useit = yes; then
24661 INST_LINGUAS="$INST_LINGUAS $presentlang"
24663 done
24665 CATALOGS=
24666 if test -n "$INST_LINGUAS"; then
24667 for lang in $INST_LINGUAS; do
24668 CATALOGS="$CATALOGS $lang.gmo"
24669 done
24671 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24672 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"
24673 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24674 if test -f "$f"; then
24675 case "$f" in
24676 *.orig | *.bak | *~) ;;
24677 *) cat "$f" >> "$ac_dir/Makefile" ;;
24678 esac
24680 done
24683 esac
24684 done ;;
24685 bfd_stdint.h )
24686 if test "$GCC" = yes; then
24687 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24688 else
24689 echo "/* generated for $CC */" > tmp-stdint.h
24692 sed 's/^ *//' >> tmp-stdint.h <<EOF
24694 #ifndef GCC_GENERATED_STDINT_H
24695 #define GCC_GENERATED_STDINT_H 1
24697 #include <sys/types.h>
24700 if test "$acx_cv_header_stdint" != stdint.h; then
24701 echo "#include <stddef.h>" >> tmp-stdint.h
24703 if test "$acx_cv_header_stdint" != stddef.h; then
24704 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24707 sed 's/^ *//' >> tmp-stdint.h <<EOF
24708 /* glibc uses these symbols as guards to prevent redefinitions. */
24709 #ifdef __int8_t_defined
24710 #define _INT8_T
24711 #define _INT16_T
24712 #define _INT32_T
24713 #endif
24714 #ifdef __uint32_t_defined
24715 #define _UINT32_T
24716 #endif
24720 # ----------------- done header, emit basic int types -------------
24721 if test "$acx_cv_header_stdint" = stddef.h; then
24722 sed 's/^ *//' >> tmp-stdint.h <<EOF
24724 #ifndef _UINT8_T
24725 #define _UINT8_T
24726 #ifndef __uint8_t_defined
24727 #define __uint8_t_defined
24728 typedef unsigned $acx_cv_type_int8_t uint8_t;
24729 #endif
24730 #endif
24732 #ifndef _UINT16_T
24733 #define _UINT16_T
24734 #ifndef __uint16_t_defined
24735 #define __uint16_t_defined
24736 typedef unsigned $acx_cv_type_int16_t uint16_t;
24737 #endif
24738 #endif
24740 #ifndef _UINT32_T
24741 #define _UINT32_T
24742 #ifndef __uint32_t_defined
24743 #define __uint32_t_defined
24744 typedef unsigned $acx_cv_type_int32_t uint32_t;
24745 #endif
24746 #endif
24748 #ifndef _INT8_T
24749 #define _INT8_T
24750 #ifndef __int8_t_defined
24751 #define __int8_t_defined
24752 typedef $acx_cv_type_int8_t int8_t;
24753 #endif
24754 #endif
24756 #ifndef _INT16_T
24757 #define _INT16_T
24758 #ifndef __int16_t_defined
24759 #define __int16_t_defined
24760 typedef $acx_cv_type_int16_t int16_t;
24761 #endif
24762 #endif
24764 #ifndef _INT32_T
24765 #define _INT32_T
24766 #ifndef __int32_t_defined
24767 #define __int32_t_defined
24768 typedef $acx_cv_type_int32_t int32_t;
24769 #endif
24770 #endif
24772 elif test "$ac_cv_type_u_int32_t" = yes; then
24773 sed 's/^ *//' >> tmp-stdint.h <<EOF
24775 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24776 #ifndef _INT8_T
24777 #define _INT8_T
24778 #endif
24779 #ifndef _INT16_T
24780 #define _INT16_T
24781 #endif
24782 #ifndef _INT32_T
24783 #define _INT32_T
24784 #endif
24786 #ifndef _UINT8_T
24787 #define _UINT8_T
24788 #ifndef __uint8_t_defined
24789 #define __uint8_t_defined
24790 typedef u_int8_t uint8_t;
24791 #endif
24792 #endif
24794 #ifndef _UINT16_T
24795 #define _UINT16_T
24796 #ifndef __uint16_t_defined
24797 #define __uint16_t_defined
24798 typedef u_int16_t uint16_t;
24799 #endif
24800 #endif
24802 #ifndef _UINT32_T
24803 #define _UINT32_T
24804 #ifndef __uint32_t_defined
24805 #define __uint32_t_defined
24806 typedef u_int32_t uint32_t;
24807 #endif
24808 #endif
24810 else
24811 sed 's/^ *//' >> tmp-stdint.h <<EOF
24813 /* Some systems have guard macros to prevent redefinitions, define them. */
24814 #ifndef _INT8_T
24815 #define _INT8_T
24816 #endif
24817 #ifndef _INT16_T
24818 #define _INT16_T
24819 #endif
24820 #ifndef _INT32_T
24821 #define _INT32_T
24822 #endif
24823 #ifndef _UINT8_T
24824 #define _UINT8_T
24825 #endif
24826 #ifndef _UINT16_T
24827 #define _UINT16_T
24828 #endif
24829 #ifndef _UINT32_T
24830 #define _UINT32_T
24831 #endif
24835 # ------------- done basic int types, emit int64_t types ------------
24836 if test "$ac_cv_type_uint64_t" = yes; then
24837 sed 's/^ *//' >> tmp-stdint.h <<EOF
24839 /* system headers have good uint64_t and int64_t */
24840 #ifndef _INT64_T
24841 #define _INT64_T
24842 #endif
24843 #ifndef _UINT64_T
24844 #define _UINT64_T
24845 #endif
24847 elif test "$ac_cv_type_u_int64_t" = yes; then
24848 sed 's/^ *//' >> tmp-stdint.h <<EOF
24850 /* system headers have an u_int64_t (and int64_t) */
24851 #ifndef _INT64_T
24852 #define _INT64_T
24853 #endif
24854 #ifndef _UINT64_T
24855 #define _UINT64_T
24856 #ifndef __uint64_t_defined
24857 #define __uint64_t_defined
24858 typedef u_int64_t uint64_t;
24859 #endif
24860 #endif
24862 elif test -n "$acx_cv_type_int64_t"; then
24863 sed 's/^ *//' >> tmp-stdint.h <<EOF
24865 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24866 #ifndef _INT64_T
24867 #define _INT64_T
24868 typedef $acx_cv_type_int64_t int64_t;
24869 #endif
24870 #ifndef _UINT64_T
24871 #define _UINT64_T
24872 #ifndef __uint64_t_defined
24873 #define __uint64_t_defined
24874 typedef unsigned $acx_cv_type_int64_t uint64_t;
24875 #endif
24876 #endif
24878 else
24879 sed 's/^ *//' >> tmp-stdint.h <<EOF
24881 /* some common heuristics for int64_t, using compiler-specific tests */
24882 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24883 #ifndef _INT64_T
24884 #define _INT64_T
24885 #ifndef __int64_t_defined
24886 typedef long long int64_t;
24887 #endif
24888 #endif
24889 #ifndef _UINT64_T
24890 #define _UINT64_T
24891 typedef unsigned long long uint64_t;
24892 #endif
24894 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24895 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24896 does not implement __extension__. But that compiler doesn't define
24897 __GNUC_MINOR__. */
24898 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24899 # define __extension__
24900 # endif
24902 # ifndef _INT64_T
24903 # define _INT64_T
24904 __extension__ typedef long long int64_t;
24905 # endif
24906 # ifndef _UINT64_T
24907 # define _UINT64_T
24908 __extension__ typedef unsigned long long uint64_t;
24909 # endif
24911 #elif !defined __STRICT_ANSI__
24912 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24914 # ifndef _INT64_T
24915 # define _INT64_T
24916 typedef __int64 int64_t;
24917 # endif
24918 # ifndef _UINT64_T
24919 # define _UINT64_T
24920 typedef unsigned __int64 uint64_t;
24921 # endif
24922 # endif /* compiler */
24924 #endif /* ANSI version */
24928 # ------------- done int64_t types, emit intptr types ------------
24929 if test "$ac_cv_type_uintptr_t" != yes; then
24930 sed 's/^ *//' >> tmp-stdint.h <<EOF
24932 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24933 #ifndef __uintptr_t_defined
24934 typedef u$acx_cv_type_intptr_t uintptr_t;
24935 #endif
24936 #ifndef __intptr_t_defined
24937 typedef $acx_cv_type_intptr_t intptr_t;
24938 #endif
24942 # ------------- done intptr types, emit int_least types ------------
24943 if test "$ac_cv_type_int_least32_t" != yes; then
24944 sed 's/^ *//' >> tmp-stdint.h <<EOF
24946 /* Define int_least types */
24947 typedef int8_t int_least8_t;
24948 typedef int16_t int_least16_t;
24949 typedef int32_t int_least32_t;
24950 #ifdef _INT64_T
24951 typedef int64_t int_least64_t;
24952 #endif
24954 typedef uint8_t uint_least8_t;
24955 typedef uint16_t uint_least16_t;
24956 typedef uint32_t uint_least32_t;
24957 #ifdef _UINT64_T
24958 typedef uint64_t uint_least64_t;
24959 #endif
24963 # ------------- done intptr types, emit int_fast types ------------
24964 if test "$ac_cv_type_int_fast32_t" != yes; then
24965 sed 's/^ *//' >> tmp-stdint.h <<EOF
24967 /* Define int_fast types. short is often slow */
24968 typedef int8_t int_fast8_t;
24969 typedef int int_fast16_t;
24970 typedef int32_t int_fast32_t;
24971 #ifdef _INT64_T
24972 typedef int64_t int_fast64_t;
24973 #endif
24975 typedef uint8_t uint_fast8_t;
24976 typedef unsigned int uint_fast16_t;
24977 typedef uint32_t uint_fast32_t;
24978 #ifdef _UINT64_T
24979 typedef uint64_t uint_fast64_t;
24980 #endif
24984 if test "$ac_cv_type_uintmax_t" != yes; then
24985 sed 's/^ *//' >> tmp-stdint.h <<EOF
24987 /* Define intmax based on what we found */
24988 #ifdef _INT64_T
24989 typedef int64_t intmax_t;
24990 #else
24991 typedef long intmax_t;
24992 #endif
24993 #ifdef _UINT64_T
24994 typedef uint64_t uintmax_t;
24995 #else
24996 typedef unsigned long uintmax_t;
24997 #endif
25001 sed 's/^ *//' >> tmp-stdint.h <<EOF
25003 #endif /* GCC_GENERATED_STDINT_H */
25006 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
25007 rm -f tmp-stdint.h
25008 else
25009 mv -f tmp-stdint.h bfd_stdint.h
25013 default )
25014 case "$srcdir" in
25015 .) srcdirpre= ;;
25016 *) srcdirpre='$(srcdir)/' ;;
25017 esac
25018 POFILES=
25019 GMOFILES=
25020 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25021 if test $lang != dummy; then
25022 POFILES="$POFILES $srcdirpre$lang.po"
25023 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25025 done
25026 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25027 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25028 -e "s,@POFILES@,$POFILES," \
25029 -e "s,@GMOFILES@,$GMOFILES," \
25030 po/Makefile.in > po/Makefile ;;
25031 esac
25032 done
25033 _ACEOF
25035 cat >>$CONFIG_STATUS <<\_ACEOF
25037 { (exit 0); exit 0; }
25038 _ACEOF
25039 chmod +x $CONFIG_STATUS
25040 ac_clean_files=$ac_clean_files_save
25043 # configure is writing to config.log, and then calls config.status.
25044 # config.status does its own redirection, appending to config.log.
25045 # Unfortunately, on DOS this fails, as config.log is still kept open
25046 # by configure, so config.status won't be able to write to it; its
25047 # output is simply discarded. So we exec the FD to /dev/null,
25048 # effectively closing config.log, so it can be properly (re)opened and
25049 # appended to by config.status. When coming back to configure, we
25050 # need to make the FD available again.
25051 if test "$no_create" != yes; then
25052 ac_cs_success=:
25053 ac_config_status_args=
25054 test "$silent" = yes &&
25055 ac_config_status_args="$ac_config_status_args --quiet"
25056 exec 5>/dev/null
25057 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25058 exec 5>>config.log
25059 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25060 # would make configure fail if this is the last instruction.
25061 $ac_cs_success || { (exit 1); exit 1; }