bfd/
[binutils.git] / bfd / configure
blob9477b6b233f935793bf694e055188764dfac950d
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 lt_ECHO 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
4937 # Check whether --enable-largefile or --disable-largefile was given.
4938 if test "${enable_largefile+set}" = set; then
4939 enableval="$enable_largefile"
4942 if test "$enable_largefile" != no; then
4944 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4945 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4946 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 ac_cv_sys_largefile_CC=no
4950 if test "$GCC" != yes; then
4951 ac_save_CC=$CC
4952 while :; do
4953 # IRIX 6.2 and later do not support large files by default,
4954 # so use the C compiler's -n32 option if that helps.
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h. */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4961 #include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4969 ? 1 : -1];
4971 main ()
4975 return 0;
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -z "$ac_c_werror_flag"
4988 || test ! -s conftest.err'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 break
5001 else
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5006 rm -f conftest.err conftest.$ac_objext
5007 CC="$CC -n32"
5008 rm -f conftest.$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_sys_largefile_CC=' -n32'; break
5031 else
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5036 rm -f conftest.err conftest.$ac_objext
5037 break
5038 done
5039 CC=$ac_save_CC
5040 rm -f conftest.$ac_ext
5043 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5044 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5045 if test "$ac_cv_sys_largefile_CC" != no; then
5046 CC=$CC$ac_cv_sys_largefile_CC
5049 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5050 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5051 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 while :; do
5055 ac_cv_sys_file_offset_bits=no
5056 cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h. */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5062 #include <sys/types.h>
5063 /* Check that off_t can represent 2**63 - 1 correctly.
5064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5065 since some C++ compilers masquerading as C compilers
5066 incorrectly reject 9223372036854775807. */
5067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5069 && LARGE_OFF_T % 2147483647 == 1)
5070 ? 1 : -1];
5072 main ()
5076 return 0;
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try='test -z "$ac_c_werror_flag"
5089 || test ! -s conftest.err'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 break
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #define _FILE_OFFSET_BITS 64
5115 #include <sys/types.h>
5116 /* Check that off_t can represent 2**63 - 1 correctly.
5117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5118 since some C++ compilers masquerading as C compilers
5119 incorrectly reject 9223372036854775807. */
5120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5122 && LARGE_OFF_T % 2147483647 == 1)
5123 ? 1 : -1];
5125 main ()
5129 return 0;
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -z "$ac_c_werror_flag"
5142 || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_sys_file_offset_bits=64; break
5155 else
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5161 break
5162 done
5164 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5165 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5166 if test "$ac_cv_sys_file_offset_bits" != no; then
5168 cat >>confdefs.h <<_ACEOF
5169 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5170 _ACEOF
5173 rm -f conftest*
5174 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5175 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5176 if test "${ac_cv_sys_large_files+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 while :; do
5180 ac_cv_sys_large_files=no
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <sys/types.h>
5188 /* Check that off_t can represent 2**63 - 1 correctly.
5189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5190 since some C++ compilers masquerading as C compilers
5191 incorrectly reject 9223372036854775807. */
5192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5194 && LARGE_OFF_T % 2147483647 == 1)
5195 ? 1 : -1];
5197 main ()
5201 return 0;
5203 _ACEOF
5204 rm -f conftest.$ac_objext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest.$ac_objext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 break
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 #define _LARGE_FILES 1
5240 #include <sys/types.h>
5241 /* Check that off_t can represent 2**63 - 1 correctly.
5242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5243 since some C++ compilers masquerading as C compilers
5244 incorrectly reject 9223372036854775807. */
5245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5247 && LARGE_OFF_T % 2147483647 == 1)
5248 ? 1 : -1];
5250 main ()
5254 return 0;
5256 _ACEOF
5257 rm -f conftest.$ac_objext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_cv_sys_large_files=1; break
5280 else
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286 break
5287 done
5289 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5290 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5291 if test "$ac_cv_sys_large_files" != no; then
5293 cat >>confdefs.h <<_ACEOF
5294 #define _LARGE_FILES $ac_cv_sys_large_files
5295 _ACEOF
5298 rm -f conftest*
5304 macro_version='2.1a'
5305 macro_revision='1.2435'
5318 ltmain="$ac_aux_dir/ltmain.sh"
5320 # Set options
5322 enable_dlopen=no
5325 enable_win32_dll=no
5329 # Check whether --enable-static or --disable-static was given.
5330 if test "${enable_static+set}" = set; then
5331 enableval="$enable_static"
5332 p=${PACKAGE-default}
5333 case $enableval in
5334 yes) enable_static=yes ;;
5335 no) enable_static=no ;;
5337 enable_static=no
5338 # Look at the argument we got. We use all the common list separators.
5339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5340 for pkg in $enableval; do
5341 IFS="$lt_save_ifs"
5342 if test "X$pkg" = "X$p"; then
5343 enable_static=yes
5345 done
5346 IFS="$lt_save_ifs"
5348 esac
5349 else
5350 enable_static=yes
5361 # Check whether --with-pic or --without-pic was given.
5362 if test "${with_pic+set}" = set; then
5363 withval="$with_pic"
5364 pic_mode="$withval"
5365 else
5366 pic_mode=default
5369 test -z "$pic_mode" && pic_mode=default
5377 # Check whether --enable-fast-install or --disable-fast-install was given.
5378 if test "${enable_fast_install+set}" = set; then
5379 enableval="$enable_fast_install"
5380 p=${PACKAGE-default}
5381 case $enableval in
5382 yes) enable_fast_install=yes ;;
5383 no) enable_fast_install=no ;;
5385 enable_fast_install=no
5386 # Look at the argument we got. We use all the common list separators.
5387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5388 for pkg in $enableval; do
5389 IFS="$lt_save_ifs"
5390 if test "X$pkg" = "X$p"; then
5391 enable_fast_install=yes
5393 done
5394 IFS="$lt_save_ifs"
5396 esac
5397 else
5398 enable_fast_install=yes
5408 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5409 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5410 if test "${lt_cv_path_SED+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 # Loop through the user's path and test for sed and gsed.
5414 # Then use that list of sed's as ones to test for truncation.
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for lt_ac_prog in sed gsed; do
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5423 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5425 done
5426 done
5427 done
5428 IFS=$as_save_IFS
5429 lt_ac_max=0
5430 lt_ac_count=0
5431 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5432 # along with /bin/sed that truncates output.
5433 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5434 test ! -f $lt_ac_sed && continue
5435 cat /dev/null > conftest.in
5436 lt_ac_count=0
5437 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5438 # Check for GNU sed and select it if it is found.
5439 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5440 lt_cv_path_SED=$lt_ac_sed
5441 break
5443 while true; do
5444 cat conftest.in conftest.in >conftest.tmp
5445 mv conftest.tmp conftest.in
5446 cp conftest.in conftest.nl
5447 echo >>conftest.nl
5448 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5449 cmp -s conftest.out conftest.nl || break
5450 # 10000 chars as input seems more than enough
5451 test $lt_ac_count -gt 10 && break
5452 lt_ac_count=`expr $lt_ac_count + 1`
5453 if test $lt_ac_count -gt $lt_ac_max; then
5454 lt_ac_max=$lt_ac_count
5455 lt_cv_path_SED=$lt_ac_sed
5457 done
5458 done
5462 SED=$lt_cv_path_SED
5464 echo "$as_me:$LINENO: result: $SED" >&5
5465 echo "${ECHO_T}$SED" >&6
5467 test -z "$SED" && SED=sed
5468 Xsed="$SED -e 1s/^X//"
5480 echo "$as_me:$LINENO: checking for fgrep" >&5
5481 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5482 if test "${ac_cv_prog_fgrep+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5486 then ac_cv_prog_fgrep='grep -F'
5487 else ac_cv_prog_fgrep='fgrep'
5490 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5491 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5492 FGREP=$ac_cv_prog_fgrep
5495 test -z "$GREP" && GREP=grep
5515 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5516 if test "${with_gnu_ld+set}" = set; then
5517 withval="$with_gnu_ld"
5518 test "$withval" = no || with_gnu_ld=yes
5519 else
5520 with_gnu_ld=no
5522 ac_prog=ld
5523 if test "$GCC" = yes; then
5524 # Check if gcc -print-prog-name=ld gives a path.
5525 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5526 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5527 case $host in
5528 *-*-mingw*)
5529 # gcc leaves a trailing carriage return which upsets mingw
5530 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5532 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5533 esac
5534 case $ac_prog in
5535 # Accept absolute paths.
5536 [\\/]* | ?:[\\/]*)
5537 re_direlt='/[^/][^/]*/\.\./'
5538 # Canonicalize the pathname of ld
5539 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5540 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5541 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5542 done
5543 test -z "$LD" && LD="$ac_prog"
5546 # If it fails, then pretend we aren't using GCC.
5547 ac_prog=ld
5550 # If it is relative, then search for the first ld in PATH.
5551 with_gnu_ld=unknown
5553 esac
5554 elif test "$with_gnu_ld" = yes; then
5555 echo "$as_me:$LINENO: checking for GNU ld" >&5
5556 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5557 else
5558 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5559 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5561 if test "${lt_cv_path_LD+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564 if test -z "$LD"; then
5565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5566 for ac_dir in $PATH; do
5567 IFS="$lt_save_ifs"
5568 test -z "$ac_dir" && ac_dir=.
5569 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5570 lt_cv_path_LD="$ac_dir/$ac_prog"
5571 # Check to see if the program is GNU ld. I'd rather use --version,
5572 # but apparently some variants of GNU ld only accept -v.
5573 # Break only if it was the GNU/non-GNU ld that we prefer.
5574 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5575 *GNU* | *'with BFD'*)
5576 test "$with_gnu_ld" != no && break
5579 test "$with_gnu_ld" != yes && break
5581 esac
5583 done
5584 IFS="$lt_save_ifs"
5585 else
5586 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5590 LD="$lt_cv_path_LD"
5591 if test -n "$LD"; then
5592 echo "$as_me:$LINENO: result: $LD" >&5
5593 echo "${ECHO_T}$LD" >&6
5594 else
5595 echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6
5598 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5599 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5600 { (exit 1); exit 1; }; }
5601 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5602 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5603 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5607 case `$LD -v 2>&1 </dev/null` in
5608 *GNU* | *'with BFD'*)
5609 lt_cv_prog_gnu_ld=yes
5612 lt_cv_prog_gnu_ld=no
5614 esac
5616 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5617 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5618 with_gnu_ld=$lt_cv_prog_gnu_ld
5629 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5630 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5631 if test "${lt_cv_path_NM+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 if test -n "$NM"; then
5635 # Let the user override the test.
5636 lt_cv_path_NM="$NM"
5637 else
5638 lt_nm_to_check="${ac_tool_prefix}nm"
5639 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5640 lt_nm_to_check="$lt_nm_to_check nm"
5642 for lt_tmp_nm in $lt_nm_to_check; do
5643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5644 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5645 IFS="$lt_save_ifs"
5646 test -z "$ac_dir" && ac_dir=.
5647 tmp_nm="$ac_dir/$lt_tmp_nm"
5648 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5649 # Check to see if the nm accepts a BSD-compat flag.
5650 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5651 # nm: unknown option "B" ignored
5652 # Tru64's nm complains that /dev/null is an invalid object file
5653 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5654 */dev/null* | *'Invalid file or object type'*)
5655 lt_cv_path_NM="$tmp_nm -B"
5656 break
5659 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5660 */dev/null*)
5661 lt_cv_path_NM="$tmp_nm -p"
5662 break
5665 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5666 continue # so that we can try to find one that supports BSD flags
5668 esac
5670 esac
5672 done
5673 IFS="$lt_save_ifs"
5674 done
5675 : ${lt_cv_path_NM=no}
5678 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5679 echo "${ECHO_T}$lt_cv_path_NM" >&6
5680 if test "$lt_cv_path_NM" != "no"; then
5681 NM="$lt_cv_path_NM"
5682 else
5683 # Didn't find any BSD compatible name lister, look for dumpbin.
5684 if test -n "$ac_tool_prefix"; then
5685 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5689 echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5691 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 if test -n "$DUMPBIN"; then
5695 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5708 done
5709 done
5713 DUMPBIN=$ac_cv_prog_DUMPBIN
5714 if test -n "$DUMPBIN"; then
5715 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5716 echo "${ECHO_T}$DUMPBIN" >&6
5717 else
5718 echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6
5722 test -n "$DUMPBIN" && break
5723 done
5725 if test -z "$DUMPBIN"; then
5726 ac_ct_DUMPBIN=$DUMPBIN
5727 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5729 # Extract the first word of "$ac_prog", so it can be a program name with args.
5730 set dummy $ac_prog; ac_word=$2
5731 echo "$as_me:$LINENO: checking for $ac_word" >&5
5732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5733 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736 if test -n "$ac_ct_DUMPBIN"; then
5737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
5750 done
5751 done
5755 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5756 if test -n "$ac_ct_DUMPBIN"; then
5757 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5758 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5759 else
5760 echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6
5764 test -n "$ac_ct_DUMPBIN" && break
5765 done
5766 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5768 DUMPBIN=$ac_ct_DUMPBIN
5772 if test "$DUMPBIN" != ":"; then
5773 NM="$DUMPBIN"
5776 test -z "$NM" && NM=nm
5783 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5784 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5785 if test "${lt_cv_nm_interface+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788 lt_cv_nm_interface="BSD nm"
5789 echo "int some_variable = 0;" > conftest.$ac_ext
5790 (eval echo "\"\$as_me:5425: $ac_compile\"" >&5)
5791 (eval "$ac_compile" 2>conftest.err)
5792 cat conftest.err >&5
5793 (eval echo "\"\$as_me:5428: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5794 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5795 cat conftest.err >&5
5796 (eval echo "\"\$as_me:5431: output\"" >&5)
5797 cat conftest.out >&5
5798 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5799 lt_cv_nm_interface="MS dumpbin"
5801 rm -f conftest*
5803 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5804 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5806 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5807 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5808 LN_S=$as_ln_s
5809 if test "$LN_S" = "ln -s"; then
5810 echo "$as_me:$LINENO: result: yes" >&5
5811 echo "${ECHO_T}yes" >&6
5812 else
5813 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5814 echo "${ECHO_T}no, using $LN_S" >&6
5817 # find the maximum length of command line arguments
5818 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5819 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5820 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5824 teststring="ABCD"
5826 case $build_os in
5827 msdosdjgpp*)
5828 # On DJGPP, this test can blow up pretty badly due to problems in libc
5829 # (any single argument exceeding 2000 bytes causes a buffer overrun
5830 # during glob expansion). Even if it were fixed, the result of this
5831 # check would be larger than it should be.
5832 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5835 gnu*)
5836 # Under GNU Hurd, this test is not required because there is
5837 # no limit to the length of command line arguments.
5838 # Libtool will interpret -1 as no limit whatsoever
5839 lt_cv_sys_max_cmd_len=-1;
5842 cygwin* | mingw*)
5843 # On Win9x/ME, this test blows up -- it succeeds, but takes
5844 # about 5 minutes as the teststring grows exponentially.
5845 # Worse, since 9x/ME are not pre-emptively multitasking,
5846 # you end up with a "frozen" computer, even though with patience
5847 # the test eventually succeeds (with a max line length of 256k).
5848 # Instead, let's just punt: use the minimum linelength reported by
5849 # all of the supported platforms: 8192 (on NT/2K/XP).
5850 lt_cv_sys_max_cmd_len=8192;
5853 amigaos*)
5854 # On AmigaOS with pdksh, this test takes hours, literally.
5855 # So we just punt and use a minimum line length of 8192.
5856 lt_cv_sys_max_cmd_len=8192;
5859 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5860 # This has been around since 386BSD, at least. Likely further.
5861 if test -x /sbin/sysctl; then
5862 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5863 elif test -x /usr/sbin/sysctl; then
5864 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5865 else
5866 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5868 # And add a safety zone
5869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5873 interix*)
5874 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5875 lt_cv_sys_max_cmd_len=196608
5878 osf*)
5879 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5880 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5881 # nice to cause kernel panics so lets avoid the loop below.
5882 # First set a reasonable default.
5883 lt_cv_sys_max_cmd_len=16384
5885 if test -x /sbin/sysconfig; then
5886 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5887 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5888 esac
5891 sco3.2v5*)
5892 lt_cv_sys_max_cmd_len=102400
5894 sysv5* | sco5v6* | sysv4.2uw2*)
5895 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5896 if test -n "$kargmax"; then
5897 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5898 else
5899 lt_cv_sys_max_cmd_len=32768
5903 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5904 if test -n $lt_cv_sys_max_cmd_len; then
5905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5907 else
5908 # Make teststring a little bigger before we do anything with it.
5909 # a 1K string should be a reasonable start.
5910 for i in 1 2 3 4 5 6 7 8 ; do
5911 teststring=$teststring$teststring
5912 done
5913 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5914 # If test is not a shell built-in, we'll probably end up computing a
5915 # maximum length that is only half of the actual maximum length, but
5916 # we can't tell.
5917 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5918 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5919 test $i != 17 # 1/2 MB should be enough
5921 i=`expr $i + 1`
5922 teststring=$teststring$teststring
5923 done
5924 # Only check the string length outside the loop.
5925 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5926 teststring=
5927 # Add a significant safety factor because C++ compilers can tack on
5928 # massive amounts of additional arguments before passing them to the
5929 # linker. It appears as though 1/2 is a usable value.
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5933 esac
5937 if test -n $lt_cv_sys_max_cmd_len ; then
5938 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5939 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5940 else
5941 echo "$as_me:$LINENO: result: none" >&5
5942 echo "${ECHO_T}none" >&6
5944 max_cmd_len=$lt_cv_sys_max_cmd_len
5952 : ${CP="cp -f"}
5953 : ${MV="mv -f"}
5954 : ${RM="rm -f"}
5956 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5957 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5958 # Try some XSI features
5959 xsi_shell=no
5960 ( _lt_dummy="a/b/c"
5961 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5962 = c,a/b,, ) >/dev/null 2>&1 \
5963 && xsi_shell=yes
5964 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5965 echo "${ECHO_T}$xsi_shell" >&6
5968 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5969 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5970 lt_shell_append=no
5971 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5972 >/dev/null 2>&1 \
5973 && lt_shell_append=yes
5974 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5975 echo "${ECHO_T}$lt_shell_append" >&6
5978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5979 lt_unset=unset
5980 else
5981 lt_unset=false
5988 # test EBCDIC or ASCII
5989 case `echo X|tr X '\101'` in
5990 A) # ASCII based system
5991 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5992 lt_SP2NL='tr \040 \012'
5993 lt_NL2SP='tr \015\012 \040\040'
5995 *) # EBCDIC based system
5996 lt_SP2NL='tr \100 \n'
5997 lt_NL2SP='tr \r\n \100\100'
5999 esac
6009 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6010 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6011 if test "${lt_cv_ld_reload_flag+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 lt_cv_ld_reload_flag='-r'
6016 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6017 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6018 reload_flag=$lt_cv_ld_reload_flag
6019 case $reload_flag in
6020 "" | " "*) ;;
6021 *) reload_flag=" $reload_flag" ;;
6022 esac
6023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6024 case $host_os in
6025 darwin*)
6026 if test "$GCC" = yes; then
6027 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6028 else
6029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6032 esac
6043 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6044 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6045 if test "${lt_cv_deplibs_check_method+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 lt_cv_file_magic_cmd='$MAGIC_CMD'
6049 lt_cv_file_magic_test_file=
6050 lt_cv_deplibs_check_method='unknown'
6051 # Need to set the preceding variable on all platforms that support
6052 # interlibrary dependencies.
6053 # 'none' -- dependencies not supported.
6054 # `unknown' -- same as none, but documents that we really don't know.
6055 # 'pass_all' -- all dependencies passed with no checks.
6056 # 'test_compile' -- check by making test program.
6057 # 'file_magic [[regex]]' -- check by looking for files in library path
6058 # which responds to the $file_magic_cmd with a given extended regex.
6059 # If you have `file' or equivalent on your system and you're not sure
6060 # whether `pass_all' will *always* work, you probably want this one.
6062 case $host_os in
6063 aix[4-9]*)
6064 lt_cv_deplibs_check_method=pass_all
6067 beos*)
6068 lt_cv_deplibs_check_method=pass_all
6071 bsdi[45]*)
6072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6073 lt_cv_file_magic_cmd='/usr/bin/file -L'
6074 lt_cv_file_magic_test_file=/shlib/libc.so
6077 cygwin*)
6078 # func_win32_libid is a shell function defined in ltmain.sh
6079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6080 lt_cv_file_magic_cmd='func_win32_libid'
6083 mingw* | pw32*)
6084 # Base MSYS/MinGW do not provide the 'file' command needed by
6085 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6086 # unless we find 'file', for example because we are cross-compiling.
6087 if ( file / ) >/dev/null 2>&1; then
6088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6089 lt_cv_file_magic_cmd='func_win32_libid'
6090 else
6091 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6092 lt_cv_file_magic_cmd='$OBJDUMP -f'
6096 darwin* | rhapsody*)
6097 lt_cv_deplibs_check_method=pass_all
6100 freebsd* | dragonfly*)
6101 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6102 case $host_cpu in
6103 i*86 )
6104 # Not sure whether the presence of OpenBSD here was a mistake.
6105 # Let's accept both of them until this is cleared up.
6106 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6107 lt_cv_file_magic_cmd=/usr/bin/file
6108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6110 esac
6111 else
6112 lt_cv_deplibs_check_method=pass_all
6116 gnu*)
6117 lt_cv_deplibs_check_method=pass_all
6120 hpux10.20* | hpux11*)
6121 lt_cv_file_magic_cmd=/usr/bin/file
6122 case $host_cpu in
6123 ia64*)
6124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6125 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6127 hppa*64*)
6128 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]'
6129 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6132 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6133 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6135 esac
6138 interix[3-9]*)
6139 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6143 irix5* | irix6* | nonstopux*)
6144 case $LD in
6145 *-32|*"-32 ") libmagic=32-bit;;
6146 *-n32|*"-n32 ") libmagic=N32;;
6147 *-64|*"-64 ") libmagic=64-bit;;
6148 *) libmagic=never-match;;
6149 esac
6150 lt_cv_deplibs_check_method=pass_all
6153 # This must be Linux ELF.
6154 linux* | k*bsd*-gnu)
6155 lt_cv_deplibs_check_method=pass_all
6158 netbsd*)
6159 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6161 else
6162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6166 newos6*)
6167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6168 lt_cv_file_magic_cmd=/usr/bin/file
6169 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6172 *nto* | *qnx*)
6173 lt_cv_deplibs_check_method=pass_all
6176 openbsd*)
6177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6179 else
6180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6184 osf3* | osf4* | osf5*)
6185 lt_cv_deplibs_check_method=pass_all
6188 rdos*)
6189 lt_cv_deplibs_check_method=pass_all
6192 solaris*)
6193 lt_cv_deplibs_check_method=pass_all
6196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6197 lt_cv_deplibs_check_method=pass_all
6200 sysv4 | sysv4.3*)
6201 case $host_vendor in
6202 motorola)
6203 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]'
6204 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6206 ncr)
6207 lt_cv_deplibs_check_method=pass_all
6209 sequent)
6210 lt_cv_file_magic_cmd='/bin/file'
6211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6213 sni)
6214 lt_cv_file_magic_cmd='/bin/file'
6215 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6216 lt_cv_file_magic_test_file=/lib/libc.so
6218 siemens)
6219 lt_cv_deplibs_check_method=pass_all
6222 lt_cv_deplibs_check_method=pass_all
6224 esac
6227 tpf*)
6228 lt_cv_deplibs_check_method=pass_all
6230 esac
6233 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6234 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6235 file_magic_cmd=$lt_cv_file_magic_cmd
6236 deplibs_check_method=$lt_cv_deplibs_check_method
6237 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6250 if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}ar; ac_word=$2
6253 echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6255 if test "${ac_cv_prog_AR+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 if test -n "$AR"; then
6259 ac_cv_prog_AR="$AR" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268 ac_cv_prog_AR="${ac_tool_prefix}ar"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6272 done
6273 done
6277 AR=$ac_cv_prog_AR
6278 if test -n "$AR"; then
6279 echo "$as_me:$LINENO: result: $AR" >&5
6280 echo "${ECHO_T}$AR" >&6
6281 else
6282 echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6
6287 if test -z "$ac_cv_prog_AR"; then
6288 ac_ct_AR=$AR
6289 # Extract the first word of "ar", so it can be a program name with args.
6290 set dummy ar; ac_word=$2
6291 echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6293 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 if test -n "$ac_ct_AR"; then
6297 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306 ac_cv_prog_ac_ct_AR="ar"
6307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6310 done
6311 done
6313 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6316 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6317 if test -n "$ac_ct_AR"; then
6318 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6319 echo "${ECHO_T}$ac_ct_AR" >&6
6320 else
6321 echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6
6325 AR=$ac_ct_AR
6326 else
6327 AR="$ac_cv_prog_AR"
6330 test -z "$AR" && AR=ar
6331 test -z "$AR_FLAGS" && AR_FLAGS=cru
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}strip; ac_word=$2
6346 echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6348 if test "${ac_cv_prog_STRIP+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 if test -n "$STRIP"; then
6352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6365 done
6366 done
6370 STRIP=$ac_cv_prog_STRIP
6371 if test -n "$STRIP"; then
6372 echo "$as_me:$LINENO: result: $STRIP" >&5
6373 echo "${ECHO_T}$STRIP" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6
6380 if test -z "$ac_cv_prog_STRIP"; then
6381 ac_ct_STRIP=$STRIP
6382 # Extract the first word of "strip", so it can be a program name with args.
6383 set dummy strip; ac_word=$2
6384 echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6386 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 if test -n "$ac_ct_STRIP"; then
6390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_ac_ct_STRIP="strip"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6403 done
6404 done
6406 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6409 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6410 if test -n "$ac_ct_STRIP"; then
6411 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6412 echo "${ECHO_T}$ac_ct_STRIP" >&6
6413 else
6414 echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6
6418 STRIP=$ac_ct_STRIP
6419 else
6420 STRIP="$ac_cv_prog_STRIP"
6423 test -z "$STRIP" && STRIP=:
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6433 echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6435 if test "${ac_cv_prog_RANLIB+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438 if test -n "$RANLIB"; then
6439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6452 done
6453 done
6457 RANLIB=$ac_cv_prog_RANLIB
6458 if test -n "$RANLIB"; then
6459 echo "$as_me:$LINENO: result: $RANLIB" >&5
6460 echo "${ECHO_T}$RANLIB" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6
6467 if test -z "$ac_cv_prog_RANLIB"; then
6468 ac_ct_RANLIB=$RANLIB
6469 # Extract the first word of "ranlib", so it can be a program name with args.
6470 set dummy ranlib; ac_word=$2
6471 echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6473 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476 if test -n "$ac_ct_RANLIB"; then
6477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486 ac_cv_prog_ac_ct_RANLIB="ranlib"
6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6490 done
6491 done
6493 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6496 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6497 if test -n "$ac_ct_RANLIB"; then
6498 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6499 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6500 else
6501 echo "$as_me:$LINENO: result: no" >&5
6502 echo "${ECHO_T}no" >&6
6505 RANLIB=$ac_ct_RANLIB
6506 else
6507 RANLIB="$ac_cv_prog_RANLIB"
6510 test -z "$RANLIB" && RANLIB=:
6517 # Determine commands to create old-style static archives.
6518 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6519 old_postinstall_cmds='chmod 644 $oldlib'
6520 old_postuninstall_cmds=
6522 if test -n "$RANLIB"; then
6523 case $host_os in
6524 openbsd*)
6525 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6530 esac
6531 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6567 # If no C compiler was specified, use CC.
6568 LTCC=${LTCC-"$CC"}
6570 # If no C compiler flags were specified, use CFLAGS.
6571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6573 # Allow CC to be a program name with arguments.
6574 compiler=$CC
6577 # Check for command to grab the raw symbol name followed by C symbol from nm.
6578 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6579 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6580 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6584 # These are sane defaults that work on at least a few old systems.
6585 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6587 # Character class describing NM global symbol codes.
6588 symcode='[BCDEGRST]'
6590 # Regexp to match symbols that can be accessed directly from C.
6591 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6593 # Define system-specific variables.
6594 case $host_os in
6595 aix*)
6596 symcode='[BCDT]'
6598 cygwin* | mingw* | pw32*)
6599 symcode='[ABCDGISTW]'
6601 hpux*)
6602 if test "$host_cpu" = ia64; then
6603 symcode='[ABCDEGRST]'
6606 irix* | nonstopux*)
6607 symcode='[BCDEGRST]'
6609 osf*)
6610 symcode='[BCDEGQRST]'
6612 solaris*)
6613 symcode='[BDRT]'
6615 sco3.2v5*)
6616 symcode='[DT]'
6618 sysv4.2uw2*)
6619 symcode='[DT]'
6621 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6622 symcode='[ABDT]'
6624 sysv4)
6625 symcode='[DFNSTU]'
6627 esac
6629 # If we're using GNU nm, then use its standard symbol codes.
6630 case `$NM -V 2>&1` in
6631 *GNU* | *'with BFD'*)
6632 symcode='[ABCDGIRSTW]' ;;
6633 esac
6635 # Transform an extracted symbol line into a proper C declaration.
6636 # Some systems (esp. on ia64) link data and code symbols differently,
6637 # so use this general approach.
6638 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6640 # Transform an extracted symbol line into symbol name and symbol address
6641 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6643 # Handle CRLF in mingw tool chain
6644 opt_cr=
6645 case $build_os in
6646 mingw*)
6647 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6649 esac
6651 # Try without a prefix underscore, then with it.
6652 for ac_symprfx in "" "_"; do
6654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6655 symxfrm="\\1 $ac_symprfx\\2 \\2"
6657 # Write the raw and C identifiers.
6658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6659 # Fake it for dumpbin and say T for any non-static function
6660 # and D for any global variable.
6661 # Also find C++ and __fastcall symbols from MSVC++,
6662 # which start with @ or ?.
6663 lt_cv_sys_global_symbol_pipe="$AWK '"\
6664 " {last_section=section; section=\$ 3};"\
6665 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6666 " \$ 0!~/External *\|/{next};"\
6667 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6668 " {if(hide[section]) next};"\
6669 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6670 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6671 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6672 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6673 " ' prfx=^$ac_symprfx"
6674 else
6675 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6678 # Check to see that the pipe works correctly.
6679 pipe_works=no
6681 rm -f conftest*
6682 cat > conftest.$ac_ext <<_LT_EOF
6683 #ifdef __cplusplus
6684 extern "C" {
6685 #endif
6686 char nm_test_var;
6687 void nm_test_func(void);
6688 void nm_test_func(void){}
6689 #ifdef __cplusplus
6691 #endif
6692 int main(){nm_test_var='a';nm_test_func();return(0);}
6693 _LT_EOF
6695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696 (eval $ac_compile) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; then
6700 # Now try to grab the symbols.
6701 nlist=conftest.nm
6702 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6703 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && test -s "$nlist"; then
6707 # Try sorting and uniquifying the output.
6708 if sort "$nlist" | uniq > "$nlist"T; then
6709 mv -f "$nlist"T "$nlist"
6710 else
6711 rm -f "$nlist"T
6714 # Make sure that we snagged all the symbols we need.
6715 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6716 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6717 cat <<_LT_EOF > conftest.$ac_ext
6718 #ifdef __cplusplus
6719 extern "C" {
6720 #endif
6722 _LT_EOF
6723 # Now generate the symbol file.
6724 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6726 cat <<_LT_EOF >> conftest.$ac_ext
6728 /* The mapping between symbol names and symbols. */
6729 const struct {
6730 const char *name;
6731 void *address;
6733 lt__PROGRAM__LTX_preloaded_symbols[] =
6735 { "@PROGRAM@", (void *) 0 },
6736 _LT_EOF
6737 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6738 cat <<\_LT_EOF >> conftest.$ac_ext
6739 {0, (void *) 0}
6742 /* This works around a problem in FreeBSD linker */
6743 #ifdef FREEBSD_WORKAROUND
6744 static const void *lt_preloaded_setup() {
6745 return lt__PROGRAM__LTX_preloaded_symbols;
6747 #endif
6749 #ifdef __cplusplus
6751 #endif
6752 _LT_EOF
6753 # Now try linking the two files.
6754 mv conftest.$ac_objext conftstm.$ac_objext
6755 lt_save_LIBS="$LIBS"
6756 lt_save_CFLAGS="$CFLAGS"
6757 LIBS="conftstm.$ac_objext"
6758 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760 (eval $ac_link) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6764 pipe_works=yes
6766 LIBS="$lt_save_LIBS"
6767 CFLAGS="$lt_save_CFLAGS"
6768 else
6769 echo "cannot find nm_test_func in $nlist" >&5
6771 else
6772 echo "cannot find nm_test_var in $nlist" >&5
6774 else
6775 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6777 else
6778 echo "$progname: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6781 rm -f conftest* conftst*
6783 # Do not use the global_symbol_pipe unless it works.
6784 if test "$pipe_works" = yes; then
6785 break
6786 else
6787 lt_cv_sys_global_symbol_pipe=
6789 done
6793 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6794 lt_cv_sys_global_symbol_to_cdecl=
6796 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6797 echo "$as_me:$LINENO: result: failed" >&5
6798 echo "${ECHO_T}failed" >&6
6799 else
6800 echo "$as_me:$LINENO: result: ok" >&5
6801 echo "${ECHO_T}ok" >&6
6820 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6821 if test "${enable_libtool_lock+set}" = set; then
6822 enableval="$enable_libtool_lock"
6825 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6827 # Some flags need to be propagated to the compiler or linker for good
6828 # libtool support.
6829 case $host in
6830 ia64-*-hpux*)
6831 # Find out which ABI we are using.
6832 echo 'int i;' > conftest.$ac_ext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; then
6838 case `/usr/bin/file conftest.$ac_objext` in
6839 *ELF-32*)
6840 HPUX_IA64_MODE="32"
6842 *ELF-64*)
6843 HPUX_IA64_MODE="64"
6845 esac
6847 rm -rf conftest*
6849 *-*-irix6*)
6850 # Find out which ABI we are using.
6851 echo '#line 6486 "configure"' > conftest.$ac_ext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853 (eval $ac_compile) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; then
6857 if test "$lt_cv_prog_gnu_ld" = yes; then
6858 case `/usr/bin/file conftest.$ac_objext` in
6859 *32-bit*)
6860 LD="${LD-ld} -melf32bsmip"
6862 *N32*)
6863 LD="${LD-ld} -melf32bmipn32"
6865 *64-bit*)
6866 LD="${LD-ld} -melf64bmip"
6868 esac
6869 else
6870 case `/usr/bin/file conftest.$ac_objext` in
6871 *32-bit*)
6872 LD="${LD-ld} -32"
6874 *N32*)
6875 LD="${LD-ld} -n32"
6877 *64-bit*)
6878 LD="${LD-ld} -64"
6880 esac
6883 rm -rf conftest*
6886 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6887 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6888 # Find out which ABI we are using.
6889 echo 'int i;' > conftest.$ac_ext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; then
6895 case `/usr/bin/file conftest.o` in
6896 *32-bit*)
6897 case $host in
6898 x86_64-*kfreebsd*-gnu)
6899 LD="${LD-ld} -m elf_i386_fbsd"
6901 x86_64-*linux*)
6902 LD="${LD-ld} -m elf_i386"
6904 ppc64-*linux*|powerpc64-*linux*)
6905 LD="${LD-ld} -m elf32ppclinux"
6907 s390x-*linux*)
6908 LD="${LD-ld} -m elf_s390"
6910 sparc64-*linux*)
6911 LD="${LD-ld} -m elf32_sparc"
6913 esac
6915 *64-bit*)
6916 case $host in
6917 x86_64-*kfreebsd*-gnu)
6918 LD="${LD-ld} -m elf_x86_64_fbsd"
6920 x86_64-*linux*)
6921 LD="${LD-ld} -m elf_x86_64"
6923 ppc*-*linux*|powerpc*-*linux*)
6924 LD="${LD-ld} -m elf64ppc"
6926 s390*-*linux*|s390*-*tpf*)
6927 LD="${LD-ld} -m elf64_s390"
6929 sparc*-*linux*)
6930 LD="${LD-ld} -m elf64_sparc"
6932 esac
6934 esac
6936 rm -rf conftest*
6939 *-*-sco3.2v5*)
6940 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6941 SAVE_CFLAGS="$CFLAGS"
6942 CFLAGS="$CFLAGS -belf"
6943 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6944 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6945 if test "${lt_cv_cc_needs_belf+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948 ac_ext=c
6949 ac_cpp='$CPP $CPPFLAGS'
6950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6962 main ()
6966 return 0;
6968 _ACEOF
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 lt_cv_cc_needs_belf=yes
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 lt_cv_cc_needs_belf=no
6998 rm -f conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
7000 ac_ext=c
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7007 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7008 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7009 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7010 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7011 CFLAGS="$SAVE_CFLAGS"
7014 sparc*-*solaris*)
7015 # Find out which ABI we are using.
7016 echo 'int i;' > conftest.$ac_ext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018 (eval $ac_compile) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; then
7022 case `/usr/bin/file conftest.o` in
7023 *64-bit*)
7024 case $lt_cv_prog_gnu_ld in
7025 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7026 *) LD="${LD-ld} -64" ;;
7027 esac
7029 esac
7031 rm -rf conftest*
7033 esac
7035 need_locks="$enable_libtool_lock"
7038 for ac_header in dlfcn.h
7040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7041 echo "$as_me:$LINENO: checking for $ac_header" >&5
7042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 $ac_includes_default
7054 #include <$ac_header>
7055 _ACEOF
7056 rm -f conftest.$ac_objext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058 (eval $ac_compile) 2>conftest.er1
7059 ac_status=$?
7060 grep -v '^ *+' conftest.er1 >conftest.err
7061 rm -f conftest.er1
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7065 { ac_try='test -z "$ac_c_werror_flag"
7066 || test ! -s conftest.err'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; } &&
7072 { ac_try='test -s conftest.$ac_objext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 (eval $ac_try) 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 eval "$as_ac_Header=yes"
7079 else
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7083 eval "$as_ac_Header=no"
7085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7090 cat >>confdefs.h <<_ACEOF
7091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7092 _ACEOF
7096 done
7100 # This can be used to rebuild libtool when needed
7101 LIBTOOL_DEPS="$ltmain"
7103 # Always use our own libtool.
7104 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7130 test -z "$LN_S" && LN_S="ln -s"
7145 if test -n "${ZSH_VERSION+set}" ; then
7146 setopt NO_GLOB_SUBST
7149 echo "$as_me:$LINENO: checking for objdir" >&5
7150 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7151 if test "${lt_cv_objdir+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154 rm -f .libs 2>/dev/null
7155 mkdir .libs 2>/dev/null
7156 if test -d .libs; then
7157 lt_cv_objdir=.libs
7158 else
7159 # MS-DOS does not allow filenames that begin with a dot.
7160 lt_cv_objdir=_libs
7162 rmdir .libs 2>/dev/null
7164 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7165 echo "${ECHO_T}$lt_cv_objdir" >&6
7166 objdir=$lt_cv_objdir
7172 cat >>confdefs.h <<_ACEOF
7173 #define LT_OBJDIR "$lt_cv_objdir/"
7174 _ACEOF
7192 case $host_os in
7193 aix3*)
7194 # AIX sometimes has problems with the GCC collect2 program. For some
7195 # reason, if we set the COLLECT_NAMES environment variable, the problems
7196 # vanish in a puff of smoke.
7197 if test "X${COLLECT_NAMES+set}" != Xset; then
7198 COLLECT_NAMES=
7199 export COLLECT_NAMES
7202 esac
7204 # Sed substitution that helps us do robust quoting. It backslashifies
7205 # metacharacters that are still active within double-quoted strings.
7206 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7208 # Same as above, but do not quote variable references.
7209 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7211 # Sed substitution to delay expansion of an escaped shell variable in a
7212 # double_quote_subst'ed string.
7213 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7215 # Sed substitution to delay expansion of an escaped single quote.
7216 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7218 # Sed substitution to avoid accidental globbing in evaled expressions
7219 no_glob_subst='s/\*/\\\*/g'
7221 # Global variables:
7222 ofile=libtool
7223 can_build_shared=yes
7225 # All known linkers require a `.a' archive for static linking (except MSVC,
7226 # which needs '.lib').
7227 libext=a
7229 with_gnu_ld="$lt_cv_prog_gnu_ld"
7231 old_CC="$CC"
7232 old_CFLAGS="$CFLAGS"
7234 # Set sane defaults for various variables
7235 test -z "$CC" && CC=cc
7236 test -z "$LTCC" && LTCC=$CC
7237 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7238 test -z "$LD" && LD=ld
7239 test -z "$ac_objext" && ac_objext=o
7241 for cc_temp in $compiler""; do
7242 case $cc_temp in
7243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7245 \-*) ;;
7246 *) break;;
7247 esac
7248 done
7249 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7252 # Only perform the check for file, if the check method requires it
7253 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7254 case $deplibs_check_method in
7255 file_magic*)
7256 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7257 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7258 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7259 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 case $MAGIC_CMD in
7263 [\\/*] | ?:[\\/]*)
7264 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7267 lt_save_MAGIC_CMD="$MAGIC_CMD"
7268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7269 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7270 for ac_dir in $ac_dummy; do
7271 IFS="$lt_save_ifs"
7272 test -z "$ac_dir" && ac_dir=.
7273 if test -f $ac_dir/${ac_tool_prefix}file; then
7274 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7275 if test -n "$file_magic_test_file"; then
7276 case $deplibs_check_method in
7277 "file_magic "*)
7278 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7280 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7281 $EGREP "$file_magic_regex" > /dev/null; then
7283 else
7284 cat <<_LT_EOF 1>&2
7286 *** Warning: the command libtool uses to detect shared libraries,
7287 *** $file_magic_cmd, produces output that libtool cannot recognize.
7288 *** The result is that libtool may fail to recognize shared libraries
7289 *** as such. This will affect the creation of libtool libraries that
7290 *** depend on shared libraries, but programs linked with such libtool
7291 *** libraries will work regardless of this problem. Nevertheless, you
7292 *** may want to report the problem to your system manager and/or to
7293 *** bug-libtool@gnu.org
7295 _LT_EOF
7296 fi ;;
7297 esac
7299 break
7301 done
7302 IFS="$lt_save_ifs"
7303 MAGIC_CMD="$lt_save_MAGIC_CMD"
7305 esac
7308 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7309 if test -n "$MAGIC_CMD"; then
7310 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7311 echo "${ECHO_T}$MAGIC_CMD" >&6
7312 else
7313 echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6
7321 if test -z "$lt_cv_path_MAGIC_CMD"; then
7322 if test -n "$ac_tool_prefix"; then
7323 echo "$as_me:$LINENO: checking for file" >&5
7324 echo $ECHO_N "checking for file... $ECHO_C" >&6
7325 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328 case $MAGIC_CMD in
7329 [\\/*] | ?:[\\/]*)
7330 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7333 lt_save_MAGIC_CMD="$MAGIC_CMD"
7334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336 for ac_dir in $ac_dummy; do
7337 IFS="$lt_save_ifs"
7338 test -z "$ac_dir" && ac_dir=.
7339 if test -f $ac_dir/file; then
7340 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7341 if test -n "$file_magic_test_file"; then
7342 case $deplibs_check_method in
7343 "file_magic "*)
7344 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347 $EGREP "$file_magic_regex" > /dev/null; then
7349 else
7350 cat <<_LT_EOF 1>&2
7352 *** Warning: the command libtool uses to detect shared libraries,
7353 *** $file_magic_cmd, produces output that libtool cannot recognize.
7354 *** The result is that libtool may fail to recognize shared libraries
7355 *** as such. This will affect the creation of libtool libraries that
7356 *** depend on shared libraries, but programs linked with such libtool
7357 *** libraries will work regardless of this problem. Nevertheless, you
7358 *** may want to report the problem to your system manager and/or to
7359 *** bug-libtool@gnu.org
7361 _LT_EOF
7362 fi ;;
7363 esac
7365 break
7367 done
7368 IFS="$lt_save_ifs"
7369 MAGIC_CMD="$lt_save_MAGIC_CMD"
7371 esac
7374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375 if test -n "$MAGIC_CMD"; then
7376 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7377 echo "${ECHO_T}$MAGIC_CMD" >&6
7378 else
7379 echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7384 else
7385 MAGIC_CMD=:
7391 esac
7393 # Use C for the default configuration in the libtool script
7395 lt_save_CC="$CC"
7396 ac_ext=c
7397 ac_cpp='$CPP $CPPFLAGS'
7398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7403 # Source file extension for C test sources.
7404 ac_ext=c
7406 # Object file extension for compiled C test sources.
7407 objext=o
7408 objext=$objext
7410 # Code to be used in simple compile tests
7411 lt_simple_compile_test_code="int some_variable = 0;"
7413 # Code to be used in simple link tests
7414 lt_simple_link_test_code='int main(){return(0);}'
7422 # If no C compiler was specified, use CC.
7423 LTCC=${LTCC-"$CC"}
7425 # If no C compiler flags were specified, use CFLAGS.
7426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7428 # Allow CC to be a program name with arguments.
7429 compiler=$CC
7431 # Save the default compiler, since it gets overwritten when the other
7432 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7433 compiler_DEFAULT=$CC
7435 # save warnings/boilerplate of simple test code
7436 ac_outfile=conftest.$ac_objext
7437 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7438 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7439 _lt_compiler_boilerplate=`cat conftest.err`
7440 $RM conftest*
7442 ac_outfile=conftest.$ac_objext
7443 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7444 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7445 _lt_linker_boilerplate=`cat conftest.err`
7446 $RM conftest*
7449 ## CAVEAT EMPTOR:
7450 ## There is no encapsulation within the following macros, do not change
7451 ## the running order or otherwise move them around unless you know exactly
7452 ## what you are doing...
7453 if test -n "$compiler"; then
7455 lt_prog_compiler_no_builtin_flag=
7457 if test "$GCC" = yes; then
7458 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7460 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7461 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7462 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 lt_cv_prog_compiler_rtti_exceptions=no
7466 ac_outfile=conftest.$ac_objext
7467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7468 lt_compiler_flag="-fno-rtti -fno-exceptions"
7469 # Insert the option either (1) after the last *FLAGS variable, or
7470 # (2) before a word containing "conftest.", or (3) at the end.
7471 # Note that $ac_compile itself does not contain backslashes and begins
7472 # with a dollar sign (not a hyphen), so the echo should work correctly.
7473 # The option is referenced via a variable to avoid confusing sed.
7474 lt_compile=`echo "$ac_compile" | $SED \
7475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7477 -e 's:$: $lt_compiler_flag:'`
7478 (eval echo "\"\$as_me:7113: $lt_compile\"" >&5)
7479 (eval "$lt_compile" 2>conftest.err)
7480 ac_status=$?
7481 cat conftest.err >&5
7482 echo "$as_me:7117: \$? = $ac_status" >&5
7483 if (exit $ac_status) && test -s "$ac_outfile"; then
7484 # The compiler can only warn and ignore the option if not recognized
7485 # So say no if there are warnings other than the usual output.
7486 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7489 lt_cv_prog_compiler_rtti_exceptions=yes
7492 $RM conftest*
7495 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7496 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7498 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7499 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7500 else
7511 lt_prog_compiler_wl=
7512 lt_prog_compiler_pic=
7513 lt_prog_compiler_static=
7515 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7516 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7518 if test "$GCC" = yes; then
7519 lt_prog_compiler_wl='-Wl,'
7520 lt_prog_compiler_static='-static'
7522 case $host_os in
7523 aix*)
7524 # All AIX code is PIC.
7525 if test "$host_cpu" = ia64; then
7526 # AIX 5 now supports IA64 processor
7527 lt_prog_compiler_static='-Bstatic'
7531 amigaos*)
7532 if test "$host_cpu" = m68k; then
7533 # FIXME: we need at least 68020 code to build shared libraries, but
7534 # adding the `-m68020' flag to GCC prevents building anything better,
7535 # like `-m68040'.
7536 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7540 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7541 # PIC is the default for these OSes.
7544 mingw* | cygwin* | pw32* | os2*)
7545 # This hack is so that the source file can tell whether it is being
7546 # built for inclusion in a dll (and should export symbols for example).
7547 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7548 # (--disable-auto-import) libraries
7549 lt_prog_compiler_pic='-DDLL_EXPORT'
7552 darwin* | rhapsody*)
7553 # PIC is the default on this platform
7554 # Common symbols not allowed in MH_DYLIB files
7555 lt_prog_compiler_pic='-fno-common'
7558 hpux*)
7559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7560 # not for PA HP-UX.
7561 case $host_cpu in
7562 hppa*64*|ia64*)
7563 # +Z the default
7566 lt_prog_compiler_pic='-fPIC'
7568 esac
7571 interix[3-9]*)
7572 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7573 # Instead, we relocate shared libraries at runtime.
7576 msdosdjgpp*)
7577 # Just because we use GCC doesn't mean we suddenly get shared libraries
7578 # on systems that don't support them.
7579 lt_prog_compiler_can_build_shared=no
7580 enable_shared=no
7583 *nto* | *qnx*)
7584 # QNX uses GNU C++, but need to define -shared option too, otherwise
7585 # it will coredump.
7586 lt_prog_compiler_pic='-fPIC -shared'
7589 sysv4*MP*)
7590 if test -d /usr/nec; then
7591 lt_prog_compiler_pic=-Kconform_pic
7596 lt_prog_compiler_pic='-fPIC'
7598 esac
7599 else
7600 # PORTME Check for flag to pass linker flags through the system compiler.
7601 case $host_os in
7602 aix*)
7603 lt_prog_compiler_wl='-Wl,'
7604 if test "$host_cpu" = ia64; then
7605 # AIX 5 now supports IA64 processor
7606 lt_prog_compiler_static='-Bstatic'
7607 else
7608 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7611 darwin*)
7612 # PIC is the default on this platform
7613 # Common symbols not allowed in MH_DYLIB files
7614 case $cc_basename in
7615 xlc*)
7616 lt_prog_compiler_pic='-qnocommon'
7617 lt_prog_compiler_wl='-Wl,'
7619 esac
7622 mingw* | cygwin* | pw32* | os2*)
7623 # This hack is so that the source file can tell whether it is being
7624 # built for inclusion in a dll (and should export symbols for example).
7625 lt_prog_compiler_pic='-DDLL_EXPORT'
7628 hpux9* | hpux10* | hpux11*)
7629 lt_prog_compiler_wl='-Wl,'
7630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7631 # not for PA HP-UX.
7632 case $host_cpu in
7633 hppa*64*|ia64*)
7634 # +Z the default
7637 lt_prog_compiler_pic='+Z'
7639 esac
7640 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7641 lt_prog_compiler_static='${wl}-a ${wl}archive'
7644 irix5* | irix6* | nonstopux*)
7645 lt_prog_compiler_wl='-Wl,'
7646 # PIC (with -KPIC) is the default.
7647 lt_prog_compiler_static='-non_shared'
7650 linux* | k*bsd*-gnu)
7651 case $cc_basename in
7652 icc* | ecc*)
7653 lt_prog_compiler_wl='-Wl,'
7654 lt_prog_compiler_pic='-KPIC'
7655 lt_prog_compiler_static='-static'
7657 pgcc* | pgf77* | pgf90* | pgf95*)
7658 # Portland Group compilers (*not* the Pentium gcc compiler,
7659 # which looks to be a dead project)
7660 lt_prog_compiler_wl='-Wl,'
7661 lt_prog_compiler_pic='-fpic'
7662 lt_prog_compiler_static='-Bstatic'
7664 ccc*)
7665 lt_prog_compiler_wl='-Wl,'
7666 # All Alpha code is PIC.
7667 lt_prog_compiler_static='-non_shared'
7670 case `$CC -V 2>&1 | sed 5q` in
7671 *Sun\ C*)
7672 # Sun C 5.9
7673 lt_prog_compiler_pic='-KPIC'
7674 lt_prog_compiler_static='-Bstatic'
7675 lt_prog_compiler_wl='-Wl,'
7677 *Sun\ F*)
7678 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7679 lt_prog_compiler_pic='-KPIC'
7680 lt_prog_compiler_static='-Bstatic'
7681 lt_prog_compiler_wl=''
7683 esac
7685 esac
7688 newsos6)
7689 lt_prog_compiler_pic='-KPIC'
7690 lt_prog_compiler_static='-Bstatic'
7693 *nto* | *qnx*)
7694 # QNX uses GNU C++, but need to define -shared option too, otherwise
7695 # it will coredump.
7696 lt_prog_compiler_pic='-fPIC -shared'
7699 osf3* | osf4* | osf5*)
7700 lt_prog_compiler_wl='-Wl,'
7701 # All OSF/1 code is PIC.
7702 lt_prog_compiler_static='-non_shared'
7705 rdos*)
7706 lt_prog_compiler_static='-non_shared'
7709 solaris*)
7710 lt_prog_compiler_pic='-KPIC'
7711 lt_prog_compiler_static='-Bstatic'
7712 case $cc_basename in
7713 f77* | f90* | f95*)
7714 lt_prog_compiler_wl='-Qoption ld ';;
7716 lt_prog_compiler_wl='-Wl,';;
7717 esac
7720 sunos4*)
7721 lt_prog_compiler_wl='-Qoption ld '
7722 lt_prog_compiler_pic='-PIC'
7723 lt_prog_compiler_static='-Bstatic'
7726 sysv4 | sysv4.2uw2* | sysv4.3*)
7727 lt_prog_compiler_wl='-Wl,'
7728 lt_prog_compiler_pic='-KPIC'
7729 lt_prog_compiler_static='-Bstatic'
7732 sysv4*MP*)
7733 if test -d /usr/nec ;then
7734 lt_prog_compiler_pic='-Kconform_pic'
7735 lt_prog_compiler_static='-Bstatic'
7739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-Bstatic'
7745 unicos*)
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_can_build_shared=no
7750 uts4*)
7751 lt_prog_compiler_pic='-pic'
7752 lt_prog_compiler_static='-Bstatic'
7756 lt_prog_compiler_can_build_shared=no
7758 esac
7761 case $host_os in
7762 # For platforms which do not support PIC, -DPIC is meaningless:
7763 *djgpp*)
7764 lt_prog_compiler_pic=
7767 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7769 esac
7770 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7771 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7779 # Check to make sure the PIC flag actually works.
7781 if test -n "$lt_prog_compiler_pic"; then
7782 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7784 if test "${lt_prog_compiler_pic_works+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787 lt_prog_compiler_pic_works=no
7788 ac_outfile=conftest.$ac_objext
7789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7791 # Insert the option either (1) after the last *FLAGS variable, or
7792 # (2) before a word containing "conftest.", or (3) at the end.
7793 # Note that $ac_compile itself does not contain backslashes and begins
7794 # with a dollar sign (not a hyphen), so the echo should work correctly.
7795 # The option is referenced via a variable to avoid confusing sed.
7796 lt_compile=`echo "$ac_compile" | $SED \
7797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7799 -e 's:$: $lt_compiler_flag:'`
7800 (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
7801 (eval "$lt_compile" 2>conftest.err)
7802 ac_status=$?
7803 cat conftest.err >&5
7804 echo "$as_me:7439: \$? = $ac_status" >&5
7805 if (exit $ac_status) && test -s "$ac_outfile"; then
7806 # The compiler can only warn and ignore the option if not recognized
7807 # So say no if there are warnings other than the usual output.
7808 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7811 lt_prog_compiler_pic_works=yes
7814 $RM conftest*
7817 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7818 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7820 if test x"$lt_prog_compiler_pic_works" = xyes; then
7821 case $lt_prog_compiler_pic in
7822 "" | " "*) ;;
7823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7824 esac
7825 else
7826 lt_prog_compiler_pic=
7827 lt_prog_compiler_can_build_shared=no
7838 # Check to make sure the static flag actually works.
7840 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7841 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7842 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7843 if test "${lt_prog_compiler_static_works+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846 lt_prog_compiler_static_works=no
7847 save_LDFLAGS="$LDFLAGS"
7848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7849 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7851 # The linker can only warn and ignore the option if not recognized
7852 # So say no if there are warnings
7853 if test -s conftest.err; then
7854 # Append any errors to the config.log.
7855 cat conftest.err 1>&5
7856 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7858 if diff conftest.exp conftest.er2 >/dev/null; then
7859 lt_prog_compiler_static_works=yes
7861 else
7862 lt_prog_compiler_static_works=yes
7865 $RM conftest*
7866 LDFLAGS="$save_LDFLAGS"
7869 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7870 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7872 if test x"$lt_prog_compiler_static_works" = xyes; then
7874 else
7875 lt_prog_compiler_static=
7884 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7885 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7886 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 lt_cv_prog_compiler_c_o=no
7890 $RM -r conftest 2>/dev/null
7891 mkdir conftest
7892 cd conftest
7893 mkdir out
7894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7896 lt_compiler_flag="-o out/conftest2.$ac_objext"
7897 # Insert the option either (1) after the last *FLAGS variable, or
7898 # (2) before a word containing "conftest.", or (3) at the end.
7899 # Note that $ac_compile itself does not contain backslashes and begins
7900 # with a dollar sign (not a hyphen), so the echo should work correctly.
7901 lt_compile=`echo "$ac_compile" | $SED \
7902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7904 -e 's:$: $lt_compiler_flag:'`
7905 (eval echo "\"\$as_me:7540: $lt_compile\"" >&5)
7906 (eval "$lt_compile" 2>out/conftest.err)
7907 ac_status=$?
7908 cat out/conftest.err >&5
7909 echo "$as_me:7544: \$? = $ac_status" >&5
7910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7911 then
7912 # The compiler can only warn and ignore the option if not recognized
7913 # So say no if there are warnings
7914 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7917 lt_cv_prog_compiler_c_o=yes
7920 chmod u+w . 2>&5
7921 $RM conftest*
7922 # SGI C++ compiler will create directory out/ii_files/ for
7923 # template instantiation
7924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7925 $RM out/* && rmdir out
7926 cd ..
7927 $RM -r conftest
7928 $RM conftest*
7931 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7932 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7939 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7940 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7941 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944 lt_cv_prog_compiler_c_o=no
7945 $RM -r conftest 2>/dev/null
7946 mkdir conftest
7947 cd conftest
7948 mkdir out
7949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7951 lt_compiler_flag="-o out/conftest2.$ac_objext"
7952 # Insert the option either (1) after the last *FLAGS variable, or
7953 # (2) before a word containing "conftest.", or (3) at the end.
7954 # Note that $ac_compile itself does not contain backslashes and begins
7955 # with a dollar sign (not a hyphen), so the echo should work correctly.
7956 lt_compile=`echo "$ac_compile" | $SED \
7957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7959 -e 's:$: $lt_compiler_flag:'`
7960 (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
7961 (eval "$lt_compile" 2>out/conftest.err)
7962 ac_status=$?
7963 cat out/conftest.err >&5
7964 echo "$as_me:7599: \$? = $ac_status" >&5
7965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7966 then
7967 # The compiler can only warn and ignore the option if not recognized
7968 # So say no if there are warnings
7969 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7972 lt_cv_prog_compiler_c_o=yes
7975 chmod u+w . 2>&5
7976 $RM conftest*
7977 # SGI C++ compiler will create directory out/ii_files/ for
7978 # template instantiation
7979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7980 $RM out/* && rmdir out
7981 cd ..
7982 $RM -r conftest
7983 $RM conftest*
7986 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7987 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7992 hard_links="nottested"
7993 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7994 # do not overwrite the value of need_locks provided by the user
7995 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7996 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7997 hard_links=yes
7998 $RM conftest*
7999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8000 touch conftest.a
8001 ln conftest.a conftest.b 2>&5 || hard_links=no
8002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8003 echo "$as_me:$LINENO: result: $hard_links" >&5
8004 echo "${ECHO_T}$hard_links" >&6
8005 if test "$hard_links" = no; then
8006 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8007 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8008 need_locks=warn
8010 else
8011 need_locks=no
8019 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8020 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8022 runpath_var=
8023 allow_undefined_flag=
8024 always_export_symbols=no
8025 archive_cmds=
8026 archive_expsym_cmds=
8027 compiler_needs_object=no
8028 enable_shared_with_static_runtimes=no
8029 export_dynamic_flag_spec=
8030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8031 hardcode_automatic=no
8032 hardcode_direct=no
8033 hardcode_direct_absolute=no
8034 hardcode_libdir_flag_spec=
8035 hardcode_libdir_flag_spec_ld=
8036 hardcode_libdir_separator=
8037 hardcode_minus_L=no
8038 hardcode_shlibpath_var=unsupported
8039 inherit_rpath=no
8040 link_all_deplibs=unknown
8041 module_cmds=
8042 module_expsym_cmds=
8043 old_archive_from_new_cmds=
8044 old_archive_from_expsyms_cmds=
8045 thread_safe_flag_spec=
8046 whole_archive_flag_spec=
8047 # include_expsyms should be a list of space-separated symbols to be *always*
8048 # included in the symbol list
8049 include_expsyms=
8050 # exclude_expsyms can be an extended regexp of symbols to exclude
8051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8053 # as well as any symbol that contains `d'.
8054 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8056 # platforms (ab)use it in PIC code, but their linkers get confused if
8057 # the symbol is explicitly referenced. Since portable code cannot
8058 # rely on this symbol name, it's probably fine to never include it in
8059 # preloaded symbol tables.
8060 extract_expsyms_cmds=
8062 case $host_os in
8063 cygwin* | mingw* | pw32*)
8064 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8065 # When not using gcc, we currently assume that we are using
8066 # Microsoft Visual C++.
8067 if test "$GCC" != yes; then
8068 with_gnu_ld=no
8071 interix*)
8072 # we just hope/assume this is gcc and not c89 (= MSVC++)
8073 with_gnu_ld=yes
8075 openbsd*)
8076 with_gnu_ld=no
8078 esac
8080 ld_shlibs=yes
8081 if test "$with_gnu_ld" = yes; then
8082 # If archive_cmds runs LD, not CC, wlarc should be empty
8083 wlarc='${wl}'
8085 # Set some defaults for GNU ld with shared library support. These
8086 # are reset later if shared libraries are not supported. Putting them
8087 # here allows them to be overridden if necessary.
8088 runpath_var=LD_RUN_PATH
8089 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8090 export_dynamic_flag_spec='${wl}--export-dynamic'
8091 # ancient GNU ld didn't support --whole-archive et. al.
8092 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8093 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8094 else
8095 whole_archive_flag_spec=
8097 supports_anon_versioning=no
8098 case `$LD -v 2>&1` in
8099 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8100 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8101 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8102 *\ 2.11.*) ;; # other 2.11 versions
8103 *) supports_anon_versioning=yes ;;
8104 esac
8106 # See if GNU ld supports shared libraries.
8107 case $host_os in
8108 aix[3-9]*)
8109 # On AIX/PPC, the GNU linker is very broken
8110 if test "$host_cpu" != ia64; then
8111 ld_shlibs=no
8112 cat <<_LT_EOF 1>&2
8114 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8115 *** to be unable to reliably create shared libraries on AIX.
8116 *** Therefore, libtool is disabling shared libraries support. If you
8117 *** really care for shared libraries, you may want to modify your PATH
8118 *** so that a non-GNU linker is found, and then restart.
8120 _LT_EOF
8124 amigaos*)
8125 if test "$host_cpu" = m68k; then
8126 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)'
8127 hardcode_libdir_flag_spec='-L$libdir'
8128 hardcode_minus_L=yes
8131 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8132 # that the semantics of dynamic libraries on AmigaOS, at least up
8133 # to version 4, is to share data among multiple programs linked
8134 # with the same dynamic library. Since this doesn't match the
8135 # behavior of shared libraries on other platforms, we can't use
8136 # them.
8137 ld_shlibs=no
8140 beos*)
8141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8142 allow_undefined_flag=unsupported
8143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8144 # support --undefined. This deserves some investigation. FIXME
8145 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146 else
8147 ld_shlibs=no
8151 cygwin* | mingw* | pw32*)
8152 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8153 # as there is no search path for DLLs.
8154 hardcode_libdir_flag_spec='-L$libdir'
8155 allow_undefined_flag=unsupported
8156 always_export_symbols=no
8157 enable_shared_with_static_runtimes=yes
8158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8162 # If the export-symbols file already is a .def file (1st line
8163 # is EXPORTS), use it as is; otherwise, prepend...
8164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8165 cp $export_symbols $output_objdir/$soname.def;
8166 else
8167 echo EXPORTS > $output_objdir/$soname.def;
8168 cat $export_symbols >> $output_objdir/$soname.def;
8170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8171 else
8172 ld_shlibs=no
8176 interix[3-9]*)
8177 hardcode_direct=no
8178 hardcode_shlibpath_var=no
8179 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8180 export_dynamic_flag_spec='${wl}-E'
8181 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8182 # Instead, shared libraries are loaded at an image base (0x10000000 by
8183 # default) and relocated if they conflict, which is a slow very memory
8184 # consuming and fragmenting process. To avoid this, we pick a random,
8185 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8186 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8187 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8188 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'
8191 gnu* | linux* | tpf* | k*bsd*-gnu)
8192 tmp_diet=no
8193 if test "$host_os" = linux-dietlibc; then
8194 case $cc_basename in
8195 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8196 esac
8198 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8199 && test "$tmp_diet" = no
8200 then
8201 tmp_addflag=
8202 case $cc_basename,$host_cpu in
8203 pgcc*) # Portland Group C compiler
8204 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'
8205 tmp_addflag=' $pic_flag'
8207 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8208 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'
8209 tmp_addflag=' $pic_flag -Mnomain' ;;
8210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8211 tmp_addflag=' -i_dynamic' ;;
8212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8213 tmp_addflag=' -i_dynamic -nofor_main' ;;
8214 ifc* | ifort*) # Intel Fortran compiler
8215 tmp_addflag=' -nofor_main' ;;
8216 esac
8217 case `$CC -V 2>&1 | sed 5q` in
8218 *Sun\ C*) # Sun C 5.9
8219 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'
8220 compiler_needs_object=yes
8221 tmp_sharedflag='-G' ;;
8222 *Sun\ F*) # Sun Fortran 8.3
8223 tmp_sharedflag='-G' ;;
8225 tmp_sharedflag='-shared' ;;
8226 esac
8227 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229 if test "x$supports_anon_versioning" = xyes; then
8230 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8232 echo "local: *; };" >> $output_objdir/$libname.ver~
8233 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8235 else
8236 ld_shlibs=no
8240 netbsd*)
8241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8242 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8243 wlarc=
8244 else
8245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8250 solaris*)
8251 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8252 ld_shlibs=no
8253 cat <<_LT_EOF 1>&2
8255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8256 *** create shared libraries on Solaris systems. Therefore, libtool
8257 *** is disabling shared libraries support. We urge you to upgrade GNU
8258 *** binutils to release 2.9.1 or newer. Another option is to modify
8259 *** your PATH or compiler configuration so that the native linker is
8260 *** used, and then restart.
8262 _LT_EOF
8263 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266 else
8267 ld_shlibs=no
8271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8272 case `$LD -v 2>&1` in
8273 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8274 ld_shlibs=no
8275 cat <<_LT_EOF 1>&2
8277 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8278 *** reliably create shared libraries on SCO systems. Therefore, libtool
8279 *** is disabling shared libraries support. We urge you to upgrade GNU
8280 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8281 *** your PATH or compiler configuration so that the native linker is
8282 *** used, and then restart.
8284 _LT_EOF
8287 # For security reasons, it is highly recommended that you always
8288 # use absolute paths for naming shared libraries, and exclude the
8289 # DT_RUNPATH tag from executables and libraries. But doing so
8290 # requires that you compile everything twice, which is a pain.
8291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295 else
8296 ld_shlibs=no
8299 esac
8302 sunos4*)
8303 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8304 wlarc=
8305 hardcode_direct=yes
8306 hardcode_shlibpath_var=no
8310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313 else
8314 ld_shlibs=no
8317 esac
8319 if test "$ld_shlibs" = no; then
8320 runpath_var=
8321 hardcode_libdir_flag_spec=
8322 export_dynamic_flag_spec=
8323 whole_archive_flag_spec=
8325 else
8326 # PORTME fill in a description of your system's linker (not GNU ld)
8327 case $host_os in
8328 aix3*)
8329 allow_undefined_flag=unsupported
8330 always_export_symbols=yes
8331 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'
8332 # Note: this linker hardcodes the directories in LIBPATH if there
8333 # are no directories specified by -L.
8334 hardcode_minus_L=yes
8335 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8336 # Neither direct hardcoding nor static linking is supported with a
8337 # broken collect2.
8338 hardcode_direct=unsupported
8342 aix[4-9]*)
8343 if test "$host_cpu" = ia64; then
8344 # On IA64, the linker does run time linking by default, so we don't
8345 # have to do anything special.
8346 aix_use_runtimelinking=no
8347 exp_sym_flag='-Bexport'
8348 no_entry_flag=""
8349 else
8350 # If we're using GNU nm, then we don't want the "-C" option.
8351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8352 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8353 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'
8354 else
8355 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'
8357 aix_use_runtimelinking=no
8359 # Test if we are trying to use run time linking or normal
8360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8361 # need to do runtime linking.
8362 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8363 for ld_flag in $LDFLAGS; do
8364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8365 aix_use_runtimelinking=yes
8366 break
8368 done
8370 esac
8372 exp_sym_flag='-bexport'
8373 no_entry_flag='-bnoentry'
8376 # When large executables or shared objects are built, AIX ld can
8377 # have problems creating the table of contents. If linking a library
8378 # or program results in "error TOC overflow" add -mminimal-toc to
8379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8382 archive_cmds=''
8383 hardcode_direct=yes
8384 hardcode_direct_absolute=yes
8385 hardcode_libdir_separator=':'
8386 link_all_deplibs=yes
8387 file_list_spec='${wl}-f,'
8389 if test "$GCC" = yes; then
8390 case $host_os in aix4.[012]|aix4.[012].*)
8391 # We only want to do this on AIX 4.2 and lower, the check
8392 # below for broken collect2 doesn't work under 4.3+
8393 collect2name=`${CC} -print-prog-name=collect2`
8394 if test -f "$collect2name" &&
8395 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8396 then
8397 # We have reworked collect2
8399 else
8400 # We have old collect2
8401 hardcode_direct=unsupported
8402 # It fails to find uninstalled libraries when the uninstalled
8403 # path is not listed in the libpath. Setting hardcode_minus_L
8404 # to unsupported forces relinking
8405 hardcode_minus_L=yes
8406 hardcode_libdir_flag_spec='-L$libdir'
8407 hardcode_libdir_separator=
8410 esac
8411 shared_flag='-shared'
8412 if test "$aix_use_runtimelinking" = yes; then
8413 shared_flag="$shared_flag "'${wl}-G'
8415 else
8416 # not using gcc
8417 if test "$host_cpu" = ia64; then
8418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8419 # chokes on -Wl,-G. The following line is correct:
8420 shared_flag='-G'
8421 else
8422 if test "$aix_use_runtimelinking" = yes; then
8423 shared_flag='${wl}-G'
8424 else
8425 shared_flag='${wl}-bM:SRE'
8430 # It seems that -bexpall does not export symbols beginning with
8431 # underscore (_), so it is better to generate a list of symbols to export.
8432 always_export_symbols=yes
8433 if test "$aix_use_runtimelinking" = yes; then
8434 # Warning - without using the other runtime loading flags (-brtl),
8435 # -berok will link without error, but may produce a broken library.
8436 allow_undefined_flag='-berok'
8437 # Determine the default libpath from the value encoded in an
8438 # empty executable.
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8447 main ()
8451 return 0;
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8477 lt_aix_libpath_sed='
8478 /Import File Strings/,/^$/ {
8479 /^0/ {
8480 s/^0 *\(.*\)$/\1/
8484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8485 # Check for a 64-bit object if we didn't find anything.
8486 if test -z "$aix_libpath"; then
8487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8494 rm -f conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8499 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"
8500 else
8501 if test "$host_cpu" = ia64; then
8502 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8503 allow_undefined_flag="-z nodefs"
8504 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"
8505 else
8506 # Determine the default libpath from the value encoded in an
8507 # empty executable.
8508 cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h. */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8516 main ()
8520 return 0;
8522 _ACEOF
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525 (eval $ac_link) 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag"
8533 || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest$ac_exeext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8546 lt_aix_libpath_sed='
8547 /Import File Strings/,/^$/ {
8548 /^0/ {
8549 s/^0 *\(.*\)$/\1/
8553 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8554 # Check for a 64-bit object if we didn't find anything.
8555 if test -z "$aix_libpath"; then
8556 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8563 rm -f conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8568 # Warning - without using the other run time loading flags,
8569 # -berok will link without error, but may produce a broken library.
8570 no_undefined_flag=' ${wl}-bernotok'
8571 allow_undefined_flag=' ${wl}-berok'
8572 # Exported symbols can be pulled into shared objects from archives
8573 whole_archive_flag_spec='$convenience'
8574 archive_cmds_need_lc=yes
8575 # This is similar to how AIX traditionally builds its shared libraries.
8576 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'
8581 amigaos*)
8582 if test "$host_cpu" = m68k; then
8583 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)'
8584 hardcode_libdir_flag_spec='-L$libdir'
8585 hardcode_minus_L=yes
8587 # see comment about different semantics on the GNU ld section
8588 ld_shlibs=no
8591 bsdi[45]*)
8592 export_dynamic_flag_spec=-rdynamic
8595 cygwin* | mingw* | pw32*)
8596 # When not using gcc, we currently assume that we are using
8597 # Microsoft Visual C++.
8598 # hardcode_libdir_flag_spec is actually meaningless, as there is
8599 # no search path for DLLs.
8600 hardcode_libdir_flag_spec=' '
8601 allow_undefined_flag=unsupported
8602 # Tell ltmain to make .lib files, not .a files.
8603 libext=lib
8604 # Tell ltmain to make .dll files, not .so files.
8605 shrext_cmds=".dll"
8606 # FIXME: Setting linknames here is a bad hack.
8607 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8608 # The linker will automatically build a .lib file if we build a DLL.
8609 old_archive_from_new_cmds='true'
8610 # FIXME: Should let the user specify the lib program.
8611 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8612 fix_srcfile_path='`cygpath -w "$srcfile"`'
8613 enable_shared_with_static_runtimes=yes
8616 darwin* | rhapsody*)
8617 case $host_os in
8618 rhapsody* | darwin1.[012])
8619 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8621 *) # Darwin 1.3 on
8622 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8623 10.[012])
8624 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8626 10.*)
8627 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8629 esac
8631 esac
8632 archive_cmds_need_lc=no
8633 hardcode_direct=no
8634 hardcode_automatic=yes
8635 hardcode_shlibpath_var=unsupported
8636 whole_archive_flag_spec=''
8637 link_all_deplibs=yes
8638 if test "$GCC" = yes ; then
8639 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642 lt_cv_apple_cc_single_mod=no
8643 if test -z "${LT_MULTI_MODULE}"; then
8644 # By default we will add the -single_module flag. You can override
8645 # by either setting the environment variable LT_MULTI_MODULE
8646 # non-empty at configure time, or by adding -multi-module to the
8647 # link flags.
8648 echo "int foo(void){return 1;}" > conftest.c
8649 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8650 -dynamiclib ${wl}-single_module conftest.c
8651 if test -f libconftest.dylib; then
8652 lt_cv_apple_cc_single_mod=yes
8653 rm libconftest.dylib
8655 rm conftest.$ac_ext
8659 output_verbose_link_cmd=echo
8660 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8661 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8662 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8663 else
8664 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8665 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8667 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8668 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8669 else
8670 case $cc_basename in
8671 xlc*)
8672 output_verbose_link_cmd=echo
8673 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8674 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8675 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8676 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8677 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8680 ld_shlibs=no
8682 esac
8686 dgux*)
8687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688 hardcode_libdir_flag_spec='-L$libdir'
8689 hardcode_shlibpath_var=no
8692 freebsd1*)
8693 ld_shlibs=no
8696 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8697 # support. Future versions do this automatically, but an explicit c++rt0.o
8698 # does not break anything, and helps significantly (at the cost of a little
8699 # extra space).
8700 freebsd2.2*)
8701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8702 hardcode_libdir_flag_spec='-R$libdir'
8703 hardcode_direct=yes
8704 hardcode_shlibpath_var=no
8707 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8708 freebsd2*)
8709 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8710 hardcode_direct=yes
8711 hardcode_minus_L=yes
8712 hardcode_shlibpath_var=no
8715 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8716 freebsd* | dragonfly*)
8717 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8718 hardcode_libdir_flag_spec='-R$libdir'
8719 hardcode_direct=yes
8720 hardcode_shlibpath_var=no
8723 hpux9*)
8724 if test "$GCC" = yes; then
8725 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'
8726 else
8727 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'
8729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730 hardcode_libdir_separator=:
8731 hardcode_direct=yes
8733 # hardcode_minus_L: Not really in the search PATH,
8734 # but as the default location of the library.
8735 hardcode_minus_L=yes
8736 export_dynamic_flag_spec='${wl}-E'
8739 hpux10*)
8740 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8741 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8742 else
8743 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8745 if test "$with_gnu_ld" = no; then
8746 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8747 hardcode_libdir_flag_spec_ld='+b $libdir'
8748 hardcode_libdir_separator=:
8749 hardcode_direct=yes
8750 hardcode_direct_absolute=yes
8751 export_dynamic_flag_spec='${wl}-E'
8752 # hardcode_minus_L: Not really in the search PATH,
8753 # but as the default location of the library.
8754 hardcode_minus_L=yes
8758 hpux11*)
8759 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8760 case $host_cpu in
8761 hppa*64*)
8762 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8764 ia64*)
8765 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8768 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8770 esac
8771 else
8772 case $host_cpu in
8773 hppa*64*)
8774 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776 ia64*)
8777 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8782 esac
8784 if test "$with_gnu_ld" = no; then
8785 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8786 hardcode_libdir_separator=:
8788 case $host_cpu in
8789 hppa*64*|ia64*)
8790 hardcode_direct=no
8791 hardcode_shlibpath_var=no
8794 hardcode_direct=yes
8795 hardcode_direct_absolute=yes
8796 export_dynamic_flag_spec='${wl}-E'
8798 # hardcode_minus_L: Not really in the search PATH,
8799 # but as the default location of the library.
8800 hardcode_minus_L=yes
8802 esac
8806 irix5* | irix6* | nonstopux*)
8807 if test "$GCC" = yes; then
8808 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'
8809 # Try to use the -exported_symbol ld option, if it does not
8810 # work, assume that -exports_file does not work either and
8811 # implicitly export all symbols.
8812 save_LDFLAGS="$LDFLAGS"
8813 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8814 cat >conftest.$ac_ext <<_ACEOF
8815 int foo(void) {}
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag"
8827 || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest$ac_exeext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 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'
8841 else
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8846 rm -f conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LDFLAGS="$save_LDFLAGS"
8849 else
8850 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'
8851 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'
8853 archive_cmds_need_lc='no'
8854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8855 hardcode_libdir_separator=:
8856 inherit_rpath=yes
8857 link_all_deplibs=yes
8860 netbsd*)
8861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8863 else
8864 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8866 hardcode_libdir_flag_spec='-R$libdir'
8867 hardcode_direct=yes
8868 hardcode_shlibpath_var=no
8871 newsos6)
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_direct=yes
8874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8875 hardcode_libdir_separator=:
8876 hardcode_shlibpath_var=no
8879 *nto* | *qnx*)
8882 openbsd*)
8883 hardcode_direct=yes
8884 hardcode_shlibpath_var=no
8885 hardcode_direct_absolute=yes
8886 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8888 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8890 export_dynamic_flag_spec='${wl}-E'
8891 else
8892 case $host_os in
8893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_libdir_flag_spec='-R$libdir'
8898 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8901 esac
8905 os2*)
8906 hardcode_libdir_flag_spec='-L$libdir'
8907 hardcode_minus_L=yes
8908 allow_undefined_flag=unsupported
8909 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'
8910 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8913 osf3*)
8914 if test "$GCC" = yes; then
8915 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8916 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'
8917 else
8918 allow_undefined_flag=' -expect_unresolved \*'
8919 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'
8921 archive_cmds_need_lc='no'
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 hardcode_libdir_separator=:
8926 osf4* | osf5*) # as osf3* with the addition of -msym flag
8927 if test "$GCC" = yes; then
8928 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8929 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'
8930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8931 else
8932 allow_undefined_flag=' -expect_unresolved \*'
8933 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'
8934 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~
8935 $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'
8937 # Both c and cxx compiler support -rpath directly
8938 hardcode_libdir_flag_spec='-rpath $libdir'
8940 archive_cmds_need_lc='no'
8941 hardcode_libdir_separator=:
8944 solaris*)
8945 no_undefined_flag=' -z defs'
8946 if test "$GCC" = yes; then
8947 wlarc='${wl}'
8948 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8950 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8951 else
8952 case `$CC -V 2>&1` in
8953 *"Compilers 5.0"*)
8954 wlarc=''
8955 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8956 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8957 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8960 wlarc='${wl}'
8961 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8963 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8965 esac
8967 hardcode_libdir_flag_spec='-R$libdir'
8968 hardcode_shlibpath_var=no
8969 case $host_os in
8970 solaris2.[0-5] | solaris2.[0-5].*) ;;
8972 # The compiler driver will combine and reorder linker options,
8973 # but understands `-z linker_flag'. GCC discards it without `$wl',
8974 # but is careful enough not to reorder.
8975 # Supported since Solaris 2.6 (maybe 2.5.1?)
8976 if test "$GCC" = yes; then
8977 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8978 else
8979 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8982 esac
8983 link_all_deplibs=yes
8986 sunos4*)
8987 if test "x$host_vendor" = xsequent; then
8988 # Use $CC to link under sequent, because it throws in some extra .o
8989 # files that make .init and .fini sections work.
8990 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8991 else
8992 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_direct=yes
8996 hardcode_minus_L=yes
8997 hardcode_shlibpath_var=no
9000 sysv4)
9001 case $host_vendor in
9002 sni)
9003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 hardcode_direct=yes # is this really true???
9006 siemens)
9007 ## LD is ld it makes a PLAMLIB
9008 ## CC just makes a GrossModule.
9009 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9010 reload_cmds='$CC -r -o $output$reload_objs'
9011 hardcode_direct=no
9013 motorola)
9014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9015 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9017 esac
9018 runpath_var='LD_RUN_PATH'
9019 hardcode_shlibpath_var=no
9022 sysv4.3*)
9023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 hardcode_shlibpath_var=no
9025 export_dynamic_flag_spec='-Bexport'
9028 sysv4*MP*)
9029 if test -d /usr/nec; then
9030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9031 hardcode_shlibpath_var=no
9032 runpath_var=LD_RUN_PATH
9033 hardcode_runpath_var=yes
9034 ld_shlibs=yes
9038 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9039 no_undefined_flag='${wl}-z,text'
9040 archive_cmds_need_lc=no
9041 hardcode_shlibpath_var=no
9042 runpath_var='LD_RUN_PATH'
9044 if test "$GCC" = yes; then
9045 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9046 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047 else
9048 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9049 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 sysv5* | sco3.2v5* | sco5v6*)
9054 # Note: We can NOT use -z defs as we might desire, because we do not
9055 # link with -lc, and that would cause any symbols used from libc to
9056 # always be unresolved, which means just about no library would
9057 # ever link correctly. If we're not using GNU ld we use -z text
9058 # though, which does catch some bad symbols but isn't as heavy-handed
9059 # as -z defs.
9060 no_undefined_flag='${wl}-z,text'
9061 allow_undefined_flag='${wl}-z,nodefs'
9062 archive_cmds_need_lc=no
9063 hardcode_shlibpath_var=no
9064 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9065 hardcode_libdir_separator=':'
9066 link_all_deplibs=yes
9067 export_dynamic_flag_spec='${wl}-Bexport'
9068 runpath_var='LD_RUN_PATH'
9070 if test "$GCC" = yes; then
9071 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9073 else
9074 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9075 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9079 uts4*)
9080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9081 hardcode_libdir_flag_spec='-L$libdir'
9082 hardcode_shlibpath_var=no
9086 ld_shlibs=no
9088 esac
9090 if test x$host_vendor = xsni; then
9091 case $host in
9092 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9093 export_dynamic_flag_spec='${wl}-Blargedynsym'
9095 esac
9099 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9100 echo "${ECHO_T}$ld_shlibs" >&6
9101 test "$ld_shlibs" = no && can_build_shared=no
9103 with_gnu_ld=$with_gnu_ld
9120 # Do we need to explicitly link libc?
9122 case "x$archive_cmds_need_lc" in
9123 x|xyes)
9124 # Assume -lc should be added
9125 archive_cmds_need_lc=yes
9127 if test "$enable_shared" = yes && test "$GCC" = yes; then
9128 case $archive_cmds in
9129 *'~'*)
9130 # FIXME: we may have to deal with multi-command sequences.
9132 '$CC '*)
9133 # Test whether the compiler implicitly links with -lc since on some
9134 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9135 # to ld, don't add -lc before -lgcc.
9136 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9137 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9138 $RM conftest*
9139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9142 (eval $ac_compile) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } 2>conftest.err; then
9146 soname=conftest
9147 lib=conftest
9148 libobjs=conftest.$ac_objext
9149 deplibs=
9150 wl=$lt_prog_compiler_wl
9151 pic_flag=$lt_prog_compiler_pic
9152 compiler_flags=-v
9153 linker_flags=-v
9154 verstring=
9155 output_objdir=.
9156 libname=conftest
9157 lt_save_allow_undefined_flag=$allow_undefined_flag
9158 allow_undefined_flag=
9159 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9160 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }
9164 then
9165 archive_cmds_need_lc=no
9166 else
9167 archive_cmds_need_lc=yes
9169 allow_undefined_flag=$lt_save_allow_undefined_flag
9170 else
9171 cat conftest.err 1>&5
9173 $RM conftest*
9174 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9175 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9177 esac
9180 esac
9338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9339 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9340 withGCC=$GCC
9341 if test "$withGCC" = yes; then
9342 case $host_os in
9343 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9344 *) lt_awk_arg="/^libraries:/" ;;
9345 esac
9346 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9347 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9348 # if the path contains ";" then we assume it to be the separator
9349 # otherwise default to the standard path separator (i.e. ":") - it is
9350 # assumed that no part of a normal pathname contains ";" but that should
9351 # okay in the real world where ";" in dirpaths is itself problematic.
9352 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9353 else
9354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9356 # Ok, now we have the path, separated by spaces, we can step through it
9357 # and add multilib dir if necessary.
9358 lt_tmp_lt_search_path_spec=
9359 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9360 for lt_sys_path in $lt_search_path_spec; do
9361 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9363 else
9364 test -d "$lt_sys_path" && \
9365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9367 done
9368 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9369 BEGIN {RS=" "; FS="/|\n";} {
9370 lt_foo="";
9371 lt_count=0;
9372 for (lt_i = NF; lt_i > 0; lt_i--) {
9373 if ($lt_i != "" && $lt_i != ".") {
9374 if ($lt_i == "..") {
9375 lt_count++;
9376 } else {
9377 if (lt_count == 0) {
9378 lt_foo="/" $lt_i lt_foo;
9379 } else {
9380 lt_count--;
9385 if (lt_foo != "") { lt_freq[lt_foo]++; }
9386 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9388 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9389 else
9390 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9392 library_names_spec=
9393 libname_spec='lib$name'
9394 soname_spec=
9395 shrext_cmds=".so"
9396 postinstall_cmds=
9397 postuninstall_cmds=
9398 finish_cmds=
9399 finish_eval=
9400 shlibpath_var=
9401 shlibpath_overrides_runpath=unknown
9402 version_type=none
9403 dynamic_linker="$host_os ld.so"
9404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9405 need_lib_prefix=unknown
9406 hardcode_into_libs=no
9408 # when you set need_version to no, make sure it does not cause -set_version
9409 # flags to be left without arguments
9410 need_version=unknown
9412 case $host_os in
9413 aix3*)
9414 version_type=linux
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9416 shlibpath_var=LIBPATH
9418 # AIX 3 has no versioning support, so we append a major version to the name.
9419 soname_spec='${libname}${release}${shared_ext}$major'
9422 aix[4-9]*)
9423 version_type=linux
9424 need_lib_prefix=no
9425 need_version=no
9426 hardcode_into_libs=yes
9427 if test "$host_cpu" = ia64; then
9428 # AIX 5 supports IA64
9429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 else
9432 # With GCC up to 2.95.x, collect2 would create an import file
9433 # for dependence libraries. The import file would start with
9434 # the line `#! .'. This would cause the generated library to
9435 # depend on `.', always an invalid library. This was fixed in
9436 # development snapshots of GCC prior to 3.0.
9437 case $host_os in
9438 aix4 | aix4.[01] | aix4.[01].*)
9439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9440 echo ' yes '
9441 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9443 else
9444 can_build_shared=no
9447 esac
9448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9449 # soname into executable. Probably we can add versioning support to
9450 # collect2, so additional links can be useful in future.
9451 if test "$aix_use_runtimelinking" = yes; then
9452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9453 # instead of lib<name>.a to let people know that these are not
9454 # typical AIX shared libraries.
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 else
9457 # We preserve .a as extension for shared libraries through AIX4.2
9458 # and later when we are not doing run time linking.
9459 library_names_spec='${libname}${release}.a $libname.a'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9462 shlibpath_var=LIBPATH
9466 amigaos*)
9467 if test "$host_cpu" = m68k; then
9468 library_names_spec='$libname.ixlibrary $libname.a'
9469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9470 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'
9471 else
9472 dynamic_linker=no
9476 beos*)
9477 library_names_spec='${libname}${shared_ext}'
9478 dynamic_linker="$host_os ld.so"
9479 shlibpath_var=LIBRARY_PATH
9482 bsdi[45]*)
9483 version_type=linux
9484 need_version=no
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9491 # the default ld.so.conf also contains /usr/contrib/lib and
9492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9493 # libtool to hard-code these into programs
9496 cygwin* | mingw* | pw32*)
9497 version_type=windows
9498 shrext_cmds=".dll"
9499 need_version=no
9500 need_lib_prefix=no
9502 case $withGCC,$host_os in
9503 yes,cygwin* | yes,mingw* | yes,pw32*)
9504 library_names_spec='$libname.dll.a'
9505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9506 postinstall_cmds='base_file=`basename \${file}`~
9507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9508 dldir=$destdir/`dirname \$dlpath`~
9509 test -d \$dldir || mkdir -p \$dldir~
9510 $install_prog $dir/$dlname \$dldir/$dlname~
9511 chmod a+x \$dldir/$dlname~
9512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9516 dlpath=$dir/\$dldll~
9517 $RM \$dlpath'
9518 shlibpath_overrides_runpath=yes
9520 case $host_os in
9521 cygwin*)
9522 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9523 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9524 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9526 mingw*)
9527 # MinGW DLLs use traditional 'lib' prefix
9528 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9529 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9530 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9531 # It is most probably a Windows format PATH printed by
9532 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9533 # path with ; separators, and with drive letters. We can handle the
9534 # drive letters (cygwin fileutils understands them), so leave them,
9535 # especially as we might pass files found there to a mingw objdump,
9536 # which wouldn't understand a cygwinified path. Ahh.
9537 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9538 else
9539 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9542 pw32*)
9543 # pw32 DLLs use 'pw' prefix rather than 'lib'
9544 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9546 esac
9550 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9552 esac
9553 dynamic_linker='Win32 ld.exe'
9554 # FIXME: first we should search . and the directory the executable is in
9555 shlibpath_var=PATH
9558 darwin* | rhapsody*)
9559 dynamic_linker="$host_os dyld"
9560 version_type=darwin
9561 need_lib_prefix=no
9562 need_version=no
9563 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9564 soname_spec='${libname}${release}${major}$shared_ext'
9565 shlibpath_overrides_runpath=yes
9566 shlibpath_var=DYLD_LIBRARY_PATH
9567 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9569 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9573 dgux*)
9574 version_type=linux
9575 need_lib_prefix=no
9576 need_version=no
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9582 freebsd1*)
9583 dynamic_linker=no
9586 freebsd* | dragonfly*)
9587 # DragonFly does not have aout. When/if they implement a new
9588 # versioning mechanism, adjust this.
9589 if test -x /usr/bin/objformat; then
9590 objformat=`/usr/bin/objformat`
9591 else
9592 case $host_os in
9593 freebsd[123]*) objformat=aout ;;
9594 *) objformat=elf ;;
9595 esac
9597 version_type=freebsd-$objformat
9598 case $version_type in
9599 freebsd-elf*)
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9601 need_version=no
9602 need_lib_prefix=no
9604 freebsd-*)
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9606 need_version=yes
9608 esac
9609 shlibpath_var=LD_LIBRARY_PATH
9610 case $host_os in
9611 freebsd2*)
9612 shlibpath_overrides_runpath=yes
9614 freebsd3.[01]* | freebsdelf3.[01]*)
9615 shlibpath_overrides_runpath=yes
9616 hardcode_into_libs=yes
9618 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9619 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9620 shlibpath_overrides_runpath=no
9621 hardcode_into_libs=yes
9623 *) # from 4.6 on, and DragonFly
9624 shlibpath_overrides_runpath=yes
9625 hardcode_into_libs=yes
9627 esac
9630 gnu*)
9631 version_type=linux
9632 need_lib_prefix=no
9633 need_version=no
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9635 soname_spec='${libname}${release}${shared_ext}$major'
9636 shlibpath_var=LD_LIBRARY_PATH
9637 hardcode_into_libs=yes
9640 hpux9* | hpux10* | hpux11*)
9641 # Give a soname corresponding to the major version so that dld.sl refuses to
9642 # link against other versions.
9643 version_type=sunos
9644 need_lib_prefix=no
9645 need_version=no
9646 case $host_cpu in
9647 ia64*)
9648 shrext_cmds='.so'
9649 hardcode_into_libs=yes
9650 dynamic_linker="$host_os dld.so"
9651 shlibpath_var=LD_LIBRARY_PATH
9652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 if test "X$HPUX_IA64_MODE" = X32; then
9656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9657 else
9658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9662 hppa*64*)
9663 shrext_cmds='.sl'
9664 hardcode_into_libs=yes
9665 dynamic_linker="$host_os dld.sl"
9666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9674 shrext_cmds='.sl'
9675 dynamic_linker="$host_os dld.sl"
9676 shlibpath_var=SHLIB_PATH
9677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9681 esac
9682 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9683 postinstall_cmds='chmod 555 $lib'
9686 interix[3-9]*)
9687 version_type=linux
9688 need_lib_prefix=no
9689 need_version=no
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9691 soname_spec='${libname}${release}${shared_ext}$major'
9692 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9693 shlibpath_var=LD_LIBRARY_PATH
9694 shlibpath_overrides_runpath=no
9695 hardcode_into_libs=yes
9698 irix5* | irix6* | nonstopux*)
9699 case $host_os in
9700 nonstopux*) version_type=nonstopux ;;
9702 if test "$lt_cv_prog_gnu_ld" = yes; then
9703 version_type=linux
9704 else
9705 version_type=irix
9706 fi ;;
9707 esac
9708 need_lib_prefix=no
9709 need_version=no
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9712 case $host_os in
9713 irix5* | nonstopux*)
9714 libsuff= shlibsuff=
9717 case $LD in # libtool.m4 will add one of these switches to LD
9718 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9719 libsuff= shlibsuff= libmagic=32-bit;;
9720 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9721 libsuff=32 shlibsuff=N32 libmagic=N32;;
9722 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9723 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9724 *) libsuff= shlibsuff= libmagic=never-match;;
9725 esac
9727 esac
9728 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9729 shlibpath_overrides_runpath=no
9730 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9731 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9732 hardcode_into_libs=yes
9735 # No shared lib support for Linux oldld, aout, or coff.
9736 linux*oldld* | linux*aout* | linux*coff*)
9737 dynamic_linker=no
9740 # This must be Linux ELF.
9741 linux* | k*bsd*-gnu)
9742 version_type=linux
9743 need_lib_prefix=no
9744 need_version=no
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 shlibpath_overrides_runpath=no
9750 # Some binutils ld are patched to set DT_RUNPATH
9751 save_LDFLAGS=$LDFLAGS
9752 save_libdir=$libdir
9753 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9754 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h. */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9763 main ()
9767 return 0;
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest$ac_exeext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9793 shlibpath_overrides_runpath=yes
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9801 rm -f conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803 LDFLAGS=$save_LDFLAGS
9804 libdir=$save_libdir
9806 # This implies no fast_install, which is unacceptable.
9807 # Some rework will be needed to allow for fast_install
9808 # before this can be enabled.
9809 hardcode_into_libs=yes
9811 # Append ld.so.conf contents to the search path
9812 if test -f /etc/ld.so.conf; then
9813 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9814 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9817 # We used to test for /lib/ld.so.1 and disable shared libraries on
9818 # powerpc, because MkLinux only supported shared libraries with the
9819 # GNU dynamic linker. Since this was broken with cross compilers,
9820 # most powerpc-linux boxes support dynamic linking these days and
9821 # people can always --disable-shared, the test was removed, and we
9822 # assume the GNU/Linux dynamic linker is in use.
9823 dynamic_linker='GNU/Linux ld.so'
9826 netbsd*)
9827 version_type=sunos
9828 need_lib_prefix=no
9829 need_version=no
9830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9833 dynamic_linker='NetBSD (a.out) ld.so'
9834 else
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9836 soname_spec='${libname}${release}${shared_ext}$major'
9837 dynamic_linker='NetBSD ld.elf_so'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 shlibpath_overrides_runpath=yes
9841 hardcode_into_libs=yes
9844 newsos6)
9845 version_type=linux
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9851 *nto* | *qnx*)
9852 version_type=qnx
9853 need_lib_prefix=no
9854 need_version=no
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 shlibpath_overrides_runpath=no
9859 hardcode_into_libs=yes
9860 dynamic_linker='ldqnx.so'
9863 openbsd*)
9864 version_type=sunos
9865 sys_lib_dlsearch_path_spec="/usr/lib"
9866 need_lib_prefix=no
9867 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9868 case $host_os in
9869 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9870 *) need_version=no ;;
9871 esac
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9874 shlibpath_var=LD_LIBRARY_PATH
9875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9876 case $host_os in
9877 openbsd2.[89] | openbsd2.[89].*)
9878 shlibpath_overrides_runpath=no
9881 shlibpath_overrides_runpath=yes
9883 esac
9884 else
9885 shlibpath_overrides_runpath=yes
9889 os2*)
9890 libname_spec='$name'
9891 shrext_cmds=".dll"
9892 need_lib_prefix=no
9893 library_names_spec='$libname${shared_ext} $libname.a'
9894 dynamic_linker='OS/2 ld.exe'
9895 shlibpath_var=LIBPATH
9898 osf3* | osf4* | osf5*)
9899 version_type=osf
9900 need_lib_prefix=no
9901 need_version=no
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9906 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9909 rdos*)
9910 dynamic_linker=no
9913 solaris*)
9914 version_type=linux
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 shlibpath_overrides_runpath=yes
9921 hardcode_into_libs=yes
9922 # ldd complains unless libraries are executable
9923 postinstall_cmds='chmod +x $lib'
9926 sunos4*)
9927 version_type=sunos
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9929 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 shlibpath_overrides_runpath=yes
9932 if test "$with_gnu_ld" = yes; then
9933 need_lib_prefix=no
9935 need_version=yes
9938 sysv4 | sysv4.3*)
9939 version_type=linux
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 case $host_vendor in
9944 sni)
9945 shlibpath_overrides_runpath=no
9946 need_lib_prefix=no
9947 runpath_var=LD_RUN_PATH
9949 siemens)
9950 need_lib_prefix=no
9952 motorola)
9953 need_lib_prefix=no
9954 need_version=no
9955 shlibpath_overrides_runpath=no
9956 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9958 esac
9961 sysv4*MP*)
9962 if test -d /usr/nec ;then
9963 version_type=linux
9964 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9965 soname_spec='$libname${shared_ext}.$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9971 version_type=freebsd-elf
9972 need_lib_prefix=no
9973 need_version=no
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=yes
9978 hardcode_into_libs=yes
9979 if test "$with_gnu_ld" = yes; then
9980 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9981 else
9982 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9983 case $host_os in
9984 sco3.2v5*)
9985 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9987 esac
9989 sys_lib_dlsearch_path_spec='/usr/lib'
9992 tpf*)
9993 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9994 version_type=linux
9995 need_lib_prefix=no
9996 need_version=no
9997 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998 shlibpath_var=LD_LIBRARY_PATH
9999 shlibpath_overrides_runpath=no
10000 hardcode_into_libs=yes
10003 uts4*)
10004 version_type=linux
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 shlibpath_var=LD_LIBRARY_PATH
10011 dynamic_linker=no
10013 esac
10014 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10015 echo "${ECHO_T}$dynamic_linker" >&6
10016 test "$dynamic_linker" = no && can_build_shared=no
10018 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10019 if test "$GCC" = yes; then
10020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10109 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10110 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10111 hardcode_action=
10112 if test -n "$hardcode_libdir_flag_spec" ||
10113 test -n "$runpath_var" ||
10114 test "X$hardcode_automatic" = "Xyes" ; then
10116 # We can hardcode non-existent directories.
10117 if test "$hardcode_direct" != no &&
10118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10119 # have to relink, otherwise we might link with an installed library
10120 # when we should be linking with a yet-to-be-installed one
10121 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10122 test "$hardcode_minus_L" != no; then
10123 # Linking always hardcodes the temporary library directory.
10124 hardcode_action=relink
10125 else
10126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10127 hardcode_action=immediate
10129 else
10130 # We cannot hardcode anything, or else we can only hardcode existing
10131 # directories.
10132 hardcode_action=unsupported
10134 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10135 echo "${ECHO_T}$hardcode_action" >&6
10137 if test "$hardcode_action" = relink ||
10138 test "$inherit_rpath" = yes; then
10139 # Fast installation is not supported
10140 enable_fast_install=no
10141 elif test "$shlibpath_overrides_runpath" = yes ||
10142 test "$enable_shared" = no; then
10143 # Fast installation is not necessary
10144 enable_fast_install=needless
10152 if test "x$enable_dlopen" != xyes; then
10153 enable_dlopen=unknown
10154 enable_dlopen_self=unknown
10155 enable_dlopen_self_static=unknown
10156 else
10157 lt_cv_dlopen=no
10158 lt_cv_dlopen_libs=
10160 case $host_os in
10161 beos*)
10162 lt_cv_dlopen="load_add_on"
10163 lt_cv_dlopen_libs=
10164 lt_cv_dlopen_self=yes
10167 mingw* | pw32*)
10168 lt_cv_dlopen="LoadLibrary"
10169 lt_cv_dlopen_libs=
10172 cygwin*)
10173 lt_cv_dlopen="dlopen"
10174 lt_cv_dlopen_libs=
10177 darwin*)
10178 # if libdl is installed we need to link against it
10179 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10180 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184 ac_check_lib_save_LIBS=$LIBS
10185 LIBS="-ldl $LIBS"
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10193 /* Override any gcc2 internal prototype to avoid an error. */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 /* We use char because int might match the return type of a gcc2
10198 builtin and then its argument prototype would still apply. */
10199 char dlopen ();
10201 main ()
10203 dlopen ();
10205 return 0;
10207 _ACEOF
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag"
10218 || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_lib_dl_dlopen=yes
10231 else
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 ac_cv_lib_dl_dlopen=no
10237 rm -f conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 LIBS=$ac_check_lib_save_LIBS
10241 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10242 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10243 if test $ac_cv_lib_dl_dlopen = yes; then
10244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10245 else
10247 lt_cv_dlopen="dyld"
10248 lt_cv_dlopen_libs=
10249 lt_cv_dlopen_self=yes
10256 echo "$as_me:$LINENO: checking for shl_load" >&5
10257 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10258 if test "${ac_cv_func_shl_load+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 else
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h. */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10269 #define shl_load innocuous_shl_load
10271 /* System header to define __stub macros and hopefully few prototypes,
10272 which can conflict with char shl_load (); below.
10273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10274 <limits.h> exists even on freestanding compilers. */
10276 #ifdef __STDC__
10277 # include <limits.h>
10278 #else
10279 # include <assert.h>
10280 #endif
10282 #undef shl_load
10284 /* Override any gcc2 internal prototype to avoid an error. */
10285 #ifdef __cplusplus
10286 extern "C"
10288 #endif
10289 /* We use char because int might match the return type of a gcc2
10290 builtin and then its argument prototype would still apply. */
10291 char shl_load ();
10292 /* The GNU C library defines this for functions which it implements
10293 to always fail with ENOSYS. Some functions are actually named
10294 something starting with __ and the normal name is an alias. */
10295 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10296 choke me
10297 #else
10298 char (*f) () = shl_load;
10299 #endif
10300 #ifdef __cplusplus
10302 #endif
10305 main ()
10307 return f != shl_load;
10309 return 0;
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -z "$ac_c_werror_flag"
10322 || test ! -s conftest.err'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; } &&
10328 { ac_try='test -s conftest$ac_exeext'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_func_shl_load=yes
10335 else
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_func_shl_load=no
10341 rm -f conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10344 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10345 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10346 if test $ac_cv_func_shl_load = yes; then
10347 lt_cv_dlopen="shl_load"
10348 else
10349 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10350 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10351 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354 ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-ldld $LIBS"
10356 cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h. */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10363 /* Override any gcc2 internal prototype to avoid an error. */
10364 #ifdef __cplusplus
10365 extern "C"
10366 #endif
10367 /* We use char because int might match the return type of a gcc2
10368 builtin and then its argument prototype would still apply. */
10369 char shl_load ();
10371 main ()
10373 shl_load ();
10375 return 0;
10377 _ACEOF
10378 rm -f conftest.$ac_objext conftest$ac_exeext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380 (eval $ac_link) 2>conftest.er1
10381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag"
10388 || test ! -s conftest.err'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; } &&
10394 { ac_try='test -s conftest$ac_exeext'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; }; then
10400 ac_cv_lib_dld_shl_load=yes
10401 else
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10405 ac_cv_lib_dld_shl_load=no
10407 rm -f conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LIBS=$ac_check_lib_save_LIBS
10411 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10412 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10413 if test $ac_cv_lib_dld_shl_load = yes; then
10414 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10415 else
10416 echo "$as_me:$LINENO: checking for dlopen" >&5
10417 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10418 if test "${ac_cv_func_dlopen+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h. */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10429 #define dlopen innocuous_dlopen
10431 /* System header to define __stub macros and hopefully few prototypes,
10432 which can conflict with char dlopen (); below.
10433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10434 <limits.h> exists even on freestanding compilers. */
10436 #ifdef __STDC__
10437 # include <limits.h>
10438 #else
10439 # include <assert.h>
10440 #endif
10442 #undef dlopen
10444 /* Override any gcc2 internal prototype to avoid an error. */
10445 #ifdef __cplusplus
10446 extern "C"
10448 #endif
10449 /* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10451 char dlopen ();
10452 /* The GNU C library defines this for functions which it implements
10453 to always fail with ENOSYS. Some functions are actually named
10454 something starting with __ and the normal name is an alias. */
10455 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10456 choke me
10457 #else
10458 char (*f) () = dlopen;
10459 #endif
10460 #ifdef __cplusplus
10462 #endif
10465 main ()
10467 return f != dlopen;
10469 return 0;
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -z "$ac_c_werror_flag"
10482 || test ! -s conftest.err'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; } &&
10488 { ac_try='test -s conftest$ac_exeext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_func_dlopen=yes
10495 else
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ac_cv_func_dlopen=no
10501 rm -f conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext conftest.$ac_ext
10504 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10505 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10506 if test $ac_cv_func_dlopen = yes; then
10507 lt_cv_dlopen="dlopen"
10508 else
10509 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10510 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10511 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514 ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-ldl $LIBS"
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10523 /* Override any gcc2 internal prototype to avoid an error. */
10524 #ifdef __cplusplus
10525 extern "C"
10526 #endif
10527 /* We use char because int might match the return type of a gcc2
10528 builtin and then its argument prototype would still apply. */
10529 char dlopen ();
10531 main ()
10533 dlopen ();
10535 return 0;
10537 _ACEOF
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540 (eval $ac_link) 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_c_werror_flag"
10548 || test ! -s conftest.err'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; } &&
10554 { ac_try='test -s conftest$ac_exeext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 ac_cv_lib_dl_dlopen=yes
10561 else
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 ac_cv_lib_dl_dlopen=no
10567 rm -f conftest.err conftest.$ac_objext \
10568 conftest$ac_exeext conftest.$ac_ext
10569 LIBS=$ac_check_lib_save_LIBS
10571 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10572 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10573 if test $ac_cv_lib_dl_dlopen = yes; then
10574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10575 else
10576 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10577 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10578 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581 ac_check_lib_save_LIBS=$LIBS
10582 LIBS="-lsvld $LIBS"
10583 cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h. */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10590 /* Override any gcc2 internal prototype to avoid an error. */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
10594 /* We use char because int might match the return type of a gcc2
10595 builtin and then its argument prototype would still apply. */
10596 char dlopen ();
10598 main ()
10600 dlopen ();
10602 return 0;
10604 _ACEOF
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } &&
10614 { ac_try='test -z "$ac_c_werror_flag"
10615 || test ! -s conftest.err'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; } &&
10621 { ac_try='test -s conftest$ac_exeext'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_cv_lib_svld_dlopen=yes
10628 else
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 ac_cv_lib_svld_dlopen=no
10634 rm -f conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10636 LIBS=$ac_check_lib_save_LIBS
10638 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10639 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10640 if test $ac_cv_lib_svld_dlopen = yes; then
10641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10642 else
10643 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10644 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10645 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648 ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-ldld $LIBS"
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10657 /* Override any gcc2 internal prototype to avoid an error. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 /* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663 char dld_link ();
10665 main ()
10667 dld_link ();
10669 return 0;
10671 _ACEOF
10672 rm -f conftest.$ac_objext conftest$ac_exeext
10673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674 (eval $ac_link) 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -z "$ac_c_werror_flag"
10682 || test ! -s conftest.err'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; } &&
10688 { ac_try='test -s conftest$ac_exeext'
10689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; }; then
10694 ac_cv_lib_dld_dld_link=yes
10695 else
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10699 ac_cv_lib_dld_dld_link=no
10701 rm -f conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10705 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10706 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10707 if test $ac_cv_lib_dld_dld_link = yes; then
10708 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10727 esac
10729 if test "x$lt_cv_dlopen" != xno; then
10730 enable_dlopen=yes
10731 else
10732 enable_dlopen=no
10735 case $lt_cv_dlopen in
10736 dlopen)
10737 save_CPPFLAGS="$CPPFLAGS"
10738 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10740 save_LDFLAGS="$LDFLAGS"
10741 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10743 save_LIBS="$LIBS"
10744 LIBS="$lt_cv_dlopen_libs $LIBS"
10746 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10747 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10748 if test "${lt_cv_dlopen_self+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751 if test "$cross_compiling" = yes; then :
10752 lt_cv_dlopen_self=cross
10753 else
10754 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10755 lt_status=$lt_dlunknown
10756 cat > conftest.$ac_ext <<_LT_EOF
10757 #line 10392 "configure"
10758 #include "confdefs.h"
10760 #if HAVE_DLFCN_H
10761 #include <dlfcn.h>
10762 #endif
10764 #include <stdio.h>
10766 #ifdef RTLD_GLOBAL
10767 # define LT_DLGLOBAL RTLD_GLOBAL
10768 #else
10769 # ifdef DL_GLOBAL
10770 # define LT_DLGLOBAL DL_GLOBAL
10771 # else
10772 # define LT_DLGLOBAL 0
10773 # endif
10774 #endif
10776 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10777 find out it does not work in some platform. */
10778 #ifndef LT_DLLAZY_OR_NOW
10779 # ifdef RTLD_LAZY
10780 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10781 # else
10782 # ifdef DL_LAZY
10783 # define LT_DLLAZY_OR_NOW DL_LAZY
10784 # else
10785 # ifdef RTLD_NOW
10786 # define LT_DLLAZY_OR_NOW RTLD_NOW
10787 # else
10788 # ifdef DL_NOW
10789 # define LT_DLLAZY_OR_NOW DL_NOW
10790 # else
10791 # define LT_DLLAZY_OR_NOW 0
10792 # endif
10793 # endif
10794 # endif
10795 # endif
10796 #endif
10798 #ifdef __cplusplus
10799 extern "C" void exit (int);
10800 #endif
10802 void fnord() { int i=42;}
10803 int main ()
10805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10806 int status = $lt_dlunknown;
10808 if (self)
10810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10811 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10812 /* dlclose (self); */
10814 else
10815 puts (dlerror ());
10817 exit (status);
10819 _LT_EOF
10820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10821 (eval $ac_link) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10825 (./conftest; exit; ) >&5 2>/dev/null
10826 lt_status=$?
10827 case x$lt_status in
10828 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10829 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10830 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10831 esac
10832 else :
10833 # compilation failed
10834 lt_cv_dlopen_self=no
10837 rm -fr conftest*
10841 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10842 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10844 if test "x$lt_cv_dlopen_self" = xyes; then
10845 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10846 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10847 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10848 if test "${lt_cv_dlopen_self_static+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851 if test "$cross_compiling" = yes; then :
10852 lt_cv_dlopen_self_static=cross
10853 else
10854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10855 lt_status=$lt_dlunknown
10856 cat > conftest.$ac_ext <<_LT_EOF
10857 #line 10492 "configure"
10858 #include "confdefs.h"
10860 #if HAVE_DLFCN_H
10861 #include <dlfcn.h>
10862 #endif
10864 #include <stdio.h>
10866 #ifdef RTLD_GLOBAL
10867 # define LT_DLGLOBAL RTLD_GLOBAL
10868 #else
10869 # ifdef DL_GLOBAL
10870 # define LT_DLGLOBAL DL_GLOBAL
10871 # else
10872 # define LT_DLGLOBAL 0
10873 # endif
10874 #endif
10876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10877 find out it does not work in some platform. */
10878 #ifndef LT_DLLAZY_OR_NOW
10879 # ifdef RTLD_LAZY
10880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10881 # else
10882 # ifdef DL_LAZY
10883 # define LT_DLLAZY_OR_NOW DL_LAZY
10884 # else
10885 # ifdef RTLD_NOW
10886 # define LT_DLLAZY_OR_NOW RTLD_NOW
10887 # else
10888 # ifdef DL_NOW
10889 # define LT_DLLAZY_OR_NOW DL_NOW
10890 # else
10891 # define LT_DLLAZY_OR_NOW 0
10892 # endif
10893 # endif
10894 # endif
10895 # endif
10896 #endif
10898 #ifdef __cplusplus
10899 extern "C" void exit (int);
10900 #endif
10902 void fnord() { int i=42;}
10903 int main ()
10905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10906 int status = $lt_dlunknown;
10908 if (self)
10910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10911 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10912 /* dlclose (self); */
10914 else
10915 puts (dlerror ());
10917 exit (status);
10919 _LT_EOF
10920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10921 (eval $ac_link) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10925 (./conftest; exit; ) >&5 2>/dev/null
10926 lt_status=$?
10927 case x$lt_status in
10928 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10929 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10930 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10931 esac
10932 else :
10933 # compilation failed
10934 lt_cv_dlopen_self_static=no
10937 rm -fr conftest*
10941 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10942 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10945 CPPFLAGS="$save_CPPFLAGS"
10946 LDFLAGS="$save_LDFLAGS"
10947 LIBS="$save_LIBS"
10949 esac
10951 case $lt_cv_dlopen_self in
10952 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10953 *) enable_dlopen_self=unknown ;;
10954 esac
10956 case $lt_cv_dlopen_self_static in
10957 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10958 *) enable_dlopen_self_static=unknown ;;
10959 esac
10978 striplib=
10979 old_striplib=
10980 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10981 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10982 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10983 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10984 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10985 echo "$as_me:$LINENO: result: yes" >&5
10986 echo "${ECHO_T}yes" >&6
10987 else
10988 # FIXME - insert some real tests, host_os isn't really good enough
10989 case $host_os in
10990 darwin*)
10991 if test -n "$STRIP" ; then
10992 striplib="$STRIP -x"
10993 old_striplib="$STRIP -S"
10994 echo "$as_me:$LINENO: result: yes" >&5
10995 echo "${ECHO_T}yes" >&6
10996 else
10997 echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6
11002 echo "$as_me:$LINENO: result: no" >&5
11003 echo "${ECHO_T}no" >&6
11005 esac
11019 # Report which library types will actually be built
11020 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11021 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11022 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11023 echo "${ECHO_T}$can_build_shared" >&6
11025 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11026 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11027 test "$can_build_shared" = "no" && enable_shared=no
11029 # On AIX, shared libraries and static libraries use the same namespace, and
11030 # are all built from PIC.
11031 case $host_os in
11032 aix3*)
11033 test "$enable_shared" = yes && enable_static=no
11034 if test -n "$RANLIB"; then
11035 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11036 postinstall_cmds='$RANLIB $lib'
11040 aix[4-9]*)
11041 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11042 test "$enable_shared" = yes && enable_static=no
11045 esac
11046 echo "$as_me:$LINENO: result: $enable_shared" >&5
11047 echo "${ECHO_T}$enable_shared" >&6
11049 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11050 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11051 # Make sure either enable_shared or enable_static is yes.
11052 test "$enable_shared" = yes || enable_static=yes
11053 echo "$as_me:$LINENO: result: $enable_static" >&5
11054 echo "${ECHO_T}$enable_static" >&6
11060 ac_ext=c
11061 ac_cpp='$CPP $CPPFLAGS'
11062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11066 CC="$lt_save_CC"
11080 ac_config_commands="$ac_config_commands libtool"
11085 # Only expand once:
11089 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11090 if test "${enable_64_bit_bfd+set}" = set; then
11091 enableval="$enable_64_bit_bfd"
11092 case "${enableval}" in
11093 yes) want64=true ;;
11094 no) want64=false ;;
11095 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11096 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11097 { (exit 1); exit 1; }; } ;;
11098 esac
11099 else
11100 want64=false
11102 # Check whether --enable-targets or --disable-targets was given.
11103 if test "${enable_targets+set}" = set; then
11104 enableval="$enable_targets"
11105 case "${enableval}" in
11106 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11107 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11108 { (exit 1); exit 1; }; }
11110 no) enable_targets= ;;
11111 *) enable_targets=$enableval ;;
11112 esac
11114 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11115 if test "${enable_commonbfdlib+set}" = set; then
11116 enableval="$enable_commonbfdlib"
11117 case "${enableval}" in
11118 yes) commonbfdlib=true ;;
11119 no) commonbfdlib=false ;;
11120 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11121 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11122 { (exit 1); exit 1; }; } ;;
11123 esac
11126 # Check whether --with-mmap or --without-mmap was given.
11127 if test "${with_mmap+set}" = set; then
11128 withval="$with_mmap"
11129 case "${withval}" in
11130 yes) want_mmap=true ;;
11131 no) want_mmap=false ;;
11132 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11133 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11134 { (exit 1); exit 1; }; } ;;
11135 esac
11136 else
11137 want_mmap=false
11139 # Check whether --enable-secureplt or --disable-secureplt was given.
11140 if test "${enable_secureplt+set}" = set; then
11141 enableval="$enable_secureplt"
11142 case "${enableval}" in
11143 yes) use_secureplt=true ;;
11144 no) use_secureplt=false ;;
11145 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11146 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11147 { (exit 1); exit 1; }; } ;;
11148 esac
11149 else
11150 use_secureplt=false
11151 fi; if test $use_secureplt = true; then
11153 cat >>confdefs.h <<\_ACEOF
11154 #define USE_SECUREPLT 1
11155 _ACEOF
11159 DEBUGDIR=${libdir}/debug
11161 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11162 if test "${with_separate_debug_dir+set}" = set; then
11163 withval="$with_separate_debug_dir"
11164 DEBUGDIR="${withval}"
11168 # Check to see if we should allow the generation of
11169 # symbols with the ELF standard's STT_COMMON type.
11170 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11171 if test "${enable_elf_stt_common+set}" = set; then
11172 enableval="$enable_elf_stt_common"
11173 case "${enableval}" in
11174 yes) want_elf_stt_common=true ;;
11175 no) want_elf_stt_common=false ;;
11176 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11177 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11178 { (exit 1); exit 1; }; } ;;
11179 esac
11180 else
11181 # We have to choose a default behaviour. For native builds we could
11182 # test whether the loader supports the STT_COMMON type, but that would
11183 # mean that built binaries could not be exported to older systems where
11184 # the loader does not support it. So by default we always choose to
11185 # disable this feature.
11186 want_elf_stt_common=false
11187 fi; if test $want_elf_stt_common = true; then
11189 cat >>confdefs.h <<\_ACEOF
11190 #define USE_STT_COMMON 1
11191 _ACEOF
11197 # Check whether --with-pkgversion or --without-pkgversion was given.
11198 if test "${with_pkgversion+set}" = set; then
11199 withval="$with_pkgversion"
11200 case "$withval" in
11201 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11202 echo "$as_me: error: package version not specified" >&2;}
11203 { (exit 1); exit 1; }; } ;;
11204 no) PKGVERSION= ;;
11205 *) PKGVERSION="($withval) " ;;
11206 esac
11207 else
11208 PKGVERSION="(GNU Binutils) "
11215 # Check whether --with-bugurl or --without-bugurl was given.
11216 if test "${with_bugurl+set}" = set; then
11217 withval="$with_bugurl"
11218 case "$withval" in
11219 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11220 echo "$as_me: error: bug URL not specified" >&2;}
11221 { (exit 1); exit 1; }; } ;;
11222 no) BUGURL=
11224 *) BUGURL="$withval"
11226 esac
11227 else
11228 BUGURL="http://www.sourceware.org/bugzilla/"
11231 case ${BUGURL} in
11233 REPORT_BUGS_TO=
11234 REPORT_BUGS_TEXI=
11237 REPORT_BUGS_TO="<$BUGURL>"
11238 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11240 esac;
11246 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11248 # Check whether --enable-werror or --disable-werror was given.
11249 if test "${enable_werror+set}" = set; then
11250 enableval="$enable_werror"
11251 case "${enableval}" in
11252 yes | y) ERROR_ON_WARNING="yes" ;;
11253 no | n) ERROR_ON_WARNING="no" ;;
11254 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11255 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11256 { (exit 1); exit 1; }; } ;;
11257 esac
11260 # Enable -Wno-format by default when using gcc on mingw
11261 case "${host}" in
11262 *-*-mingw32*)
11263 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11264 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11267 *) ;;
11268 esac
11270 # Enable -Werror by default when using gcc
11271 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11272 ERROR_ON_WARNING=yes
11275 NO_WERROR=
11276 if test "${ERROR_ON_WARNING}" = yes ; then
11277 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11278 NO_WERROR="-Wno-error"
11281 if test "${GCC}" = yes ; then
11282 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11285 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11286 if test "${enable_build_warnings+set}" = set; then
11287 enableval="$enable_build_warnings"
11288 case "${enableval}" in
11289 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11290 no) if test "${GCC}" = yes ; then
11291 WARN_CFLAGS="-w"
11292 fi;;
11293 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11294 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11295 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11296 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11297 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11298 esac
11301 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11302 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11309 ac_config_headers="$ac_config_headers config.h:config.in"
11312 if test -z "$target" ; then
11313 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11314 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11315 { (exit 1); exit 1; }; }
11318 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11319 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11320 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11321 if test "${enable_maintainer_mode+set}" = set; then
11322 enableval="$enable_maintainer_mode"
11323 USE_MAINTAINER_MODE=$enableval
11324 else
11325 USE_MAINTAINER_MODE=no
11327 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11328 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11331 if test $USE_MAINTAINER_MODE = yes; then
11332 MAINTAINER_MODE_TRUE=
11333 MAINTAINER_MODE_FALSE='#'
11334 else
11335 MAINTAINER_MODE_TRUE='#'
11336 MAINTAINER_MODE_FALSE=
11339 MAINT=$MAINTAINER_MODE_TRUE
11344 if false; then
11345 GENINSRC_NEVER_TRUE=
11346 GENINSRC_NEVER_FALSE='#'
11347 else
11348 GENINSRC_NEVER_TRUE='#'
11349 GENINSRC_NEVER_FALSE=
11352 case ${build_alias} in
11353 "") build_noncanonical=${build} ;;
11354 *) build_noncanonical=${build_alias} ;;
11355 esac
11357 case ${host_alias} in
11358 "") host_noncanonical=${build_noncanonical} ;;
11359 *) host_noncanonical=${host_alias} ;;
11360 esac
11362 case ${target_alias} in
11363 "") target_noncanonical=${host_noncanonical} ;;
11364 *) target_noncanonical=${target_alias} ;;
11365 esac
11367 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
11368 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
11369 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
11370 if test "${enable_install_libbfd+set}" = set; then
11371 enableval="$enable_install_libbfd"
11372 install_libbfd_p=$enableval
11373 else
11374 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11375 install_libbfd_p=yes
11376 else
11377 install_libbfd_p=no
11380 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
11381 echo "${ECHO_T}$install_libbfd_p" >&6
11384 if test $install_libbfd_p = yes; then
11385 INSTALL_LIBBFD_TRUE=
11386 INSTALL_LIBBFD_FALSE='#'
11387 else
11388 INSTALL_LIBBFD_TRUE='#'
11389 INSTALL_LIBBFD_FALSE=
11392 # Need _noncanonical variables for this.
11397 # libbfd.a is a host library containing target dependent code
11398 bfdlibdir='$(libdir)'
11399 bfdincludedir='$(includedir)'
11400 if test "${host}" != "${target}"; then
11401 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11402 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11410 host64=false
11411 target64=false
11412 bfd_default_target_size=32
11414 # host stuff:
11416 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
11417 # If we haven't got the data from the intl directory,
11418 # assume NLS is disabled.
11419 USE_NLS=no
11420 LIBINTL=
11421 LIBINTL_DEP=
11422 INCINTL=
11423 XGETTEXT=
11424 GMSGFMT=
11425 POSUB=
11427 if test -f ../intl/config.intl; then
11428 . ../intl/config.intl
11430 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11431 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11432 if test x"$USE_NLS" != xyes; then
11433 echo "$as_me:$LINENO: result: no" >&5
11434 echo "${ECHO_T}no" >&6
11435 else
11436 echo "$as_me:$LINENO: result: yes" >&5
11437 echo "${ECHO_T}yes" >&6
11439 cat >>confdefs.h <<\_ACEOF
11440 #define ENABLE_NLS 1
11441 _ACEOF
11444 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11445 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11446 # Look for .po and .gmo files in the source directory.
11447 CATALOGS=
11448 XLINGUAS=
11449 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11450 # If there aren't any .gmo files the shell will give us the
11451 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11452 # weeded out.
11453 case "$cat" in *\**)
11454 continue;;
11455 esac
11456 # The quadruple backslash is collapsed to a double backslash
11457 # by the backticks, then collapsed again by the double quotes,
11458 # leaving us with one backslash in the sed expression (right
11459 # before the dot that mustn't act as a wildcard).
11460 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11461 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11462 # The user is allowed to set LINGUAS to a list of languages to
11463 # install catalogs for. If it's empty that means "all of them."
11464 if test "x$LINGUAS" = x; then
11465 CATALOGS="$CATALOGS $cat"
11466 XLINGUAS="$XLINGUAS $lang"
11467 else
11468 case "$LINGUAS" in *$lang*)
11469 CATALOGS="$CATALOGS $cat"
11470 XLINGUAS="$XLINGUAS $lang"
11472 esac
11474 done
11475 LINGUAS="$XLINGUAS"
11476 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11477 echo "${ECHO_T}$LINGUAS" >&6
11480 DATADIRNAME=share
11482 INSTOBJEXT=.mo
11484 GENCAT=gencat
11486 CATOBJEXT=.gmo
11490 MKINSTALLDIRS=
11491 if test -n "$ac_aux_dir"; then
11492 case "$ac_aux_dir" in
11493 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11494 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11495 esac
11497 if test -z "$MKINSTALLDIRS"; then
11498 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11503 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11504 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11505 # Check whether --enable-nls or --disable-nls was given.
11506 if test "${enable_nls+set}" = set; then
11507 enableval="$enable_nls"
11508 USE_NLS=$enableval
11509 else
11510 USE_NLS=yes
11512 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11513 echo "${ECHO_T}$USE_NLS" >&6
11520 # Prepare PATH_SEPARATOR.
11521 # The user is always right.
11522 if test "${PATH_SEPARATOR+set}" != set; then
11523 echo "#! /bin/sh" >conf$$.sh
11524 echo "exit 0" >>conf$$.sh
11525 chmod +x conf$$.sh
11526 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11527 PATH_SEPARATOR=';'
11528 else
11529 PATH_SEPARATOR=:
11531 rm -f conf$$.sh
11534 # Find out how to test for executable files. Don't use a zero-byte file,
11535 # as systems may use methods other than mode bits to determine executability.
11536 cat >conf$$.file <<_ASEOF
11537 #! /bin/sh
11538 exit 0
11539 _ASEOF
11540 chmod +x conf$$.file
11541 if test -x conf$$.file >/dev/null 2>&1; then
11542 ac_executable_p="test -x"
11543 else
11544 ac_executable_p="test -f"
11546 rm -f conf$$.file
11548 # Extract the first word of "msgfmt", so it can be a program name with args.
11549 set dummy msgfmt; ac_word=$2
11550 echo "$as_me:$LINENO: checking for $ac_word" >&5
11551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11552 if test "${ac_cv_path_MSGFMT+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555 case "$MSGFMT" in
11556 [\\/]* | ?:[\\/]*)
11557 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11560 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11561 for ac_dir in $PATH; do
11562 IFS="$ac_save_IFS"
11563 test -z "$ac_dir" && ac_dir=.
11564 for ac_exec_ext in '' $ac_executable_extensions; do
11565 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11566 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11567 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11568 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11569 break 2
11572 done
11573 done
11574 IFS="$ac_save_IFS"
11575 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11577 esac
11579 MSGFMT="$ac_cv_path_MSGFMT"
11580 if test "$MSGFMT" != ":"; then
11581 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11582 echo "${ECHO_T}$MSGFMT" >&6
11583 else
11584 echo "$as_me:$LINENO: result: no" >&5
11585 echo "${ECHO_T}no" >&6
11588 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11589 set dummy gmsgfmt; ac_word=$2
11590 echo "$as_me:$LINENO: checking for $ac_word" >&5
11591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11592 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595 case $GMSGFMT in
11596 [\\/]* | ?:[\\/]*)
11597 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11607 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11611 done
11612 done
11614 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11616 esac
11618 GMSGFMT=$ac_cv_path_GMSGFMT
11620 if test -n "$GMSGFMT"; then
11621 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11622 echo "${ECHO_T}$GMSGFMT" >&6
11623 else
11624 echo "$as_me:$LINENO: result: no" >&5
11625 echo "${ECHO_T}no" >&6
11630 # Prepare PATH_SEPARATOR.
11631 # The user is always right.
11632 if test "${PATH_SEPARATOR+set}" != set; then
11633 echo "#! /bin/sh" >conf$$.sh
11634 echo "exit 0" >>conf$$.sh
11635 chmod +x conf$$.sh
11636 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11637 PATH_SEPARATOR=';'
11638 else
11639 PATH_SEPARATOR=:
11641 rm -f conf$$.sh
11644 # Find out how to test for executable files. Don't use a zero-byte file,
11645 # as systems may use methods other than mode bits to determine executability.
11646 cat >conf$$.file <<_ASEOF
11647 #! /bin/sh
11648 exit 0
11649 _ASEOF
11650 chmod +x conf$$.file
11651 if test -x conf$$.file >/dev/null 2>&1; then
11652 ac_executable_p="test -x"
11653 else
11654 ac_executable_p="test -f"
11656 rm -f conf$$.file
11658 # Extract the first word of "xgettext", so it can be a program name with args.
11659 set dummy xgettext; ac_word=$2
11660 echo "$as_me:$LINENO: checking for $ac_word" >&5
11661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11662 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665 case "$XGETTEXT" in
11666 [\\/]* | ?:[\\/]*)
11667 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11670 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11671 for ac_dir in $PATH; do
11672 IFS="$ac_save_IFS"
11673 test -z "$ac_dir" && ac_dir=.
11674 for ac_exec_ext in '' $ac_executable_extensions; do
11675 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11676 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11677 (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
11678 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11679 break 2
11682 done
11683 done
11684 IFS="$ac_save_IFS"
11685 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11687 esac
11689 XGETTEXT="$ac_cv_path_XGETTEXT"
11690 if test "$XGETTEXT" != ":"; then
11691 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11692 echo "${ECHO_T}$XGETTEXT" >&6
11693 else
11694 echo "$as_me:$LINENO: result: no" >&5
11695 echo "${ECHO_T}no" >&6
11698 rm -f messages.po
11701 # Prepare PATH_SEPARATOR.
11702 # The user is always right.
11703 if test "${PATH_SEPARATOR+set}" != set; then
11704 echo "#! /bin/sh" >conf$$.sh
11705 echo "exit 0" >>conf$$.sh
11706 chmod +x conf$$.sh
11707 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11708 PATH_SEPARATOR=';'
11709 else
11710 PATH_SEPARATOR=:
11712 rm -f conf$$.sh
11715 # Find out how to test for executable files. Don't use a zero-byte file,
11716 # as systems may use methods other than mode bits to determine executability.
11717 cat >conf$$.file <<_ASEOF
11718 #! /bin/sh
11719 exit 0
11720 _ASEOF
11721 chmod +x conf$$.file
11722 if test -x conf$$.file >/dev/null 2>&1; then
11723 ac_executable_p="test -x"
11724 else
11725 ac_executable_p="test -f"
11727 rm -f conf$$.file
11729 # Extract the first word of "msgmerge", so it can be a program name with args.
11730 set dummy msgmerge; ac_word=$2
11731 echo "$as_me:$LINENO: checking for $ac_word" >&5
11732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11733 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736 case "$MSGMERGE" in
11737 [\\/]* | ?:[\\/]*)
11738 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11741 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11742 for ac_dir in $PATH; do
11743 IFS="$ac_save_IFS"
11744 test -z "$ac_dir" && ac_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11747 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11748 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11749 break 2
11752 done
11753 done
11754 IFS="$ac_save_IFS"
11755 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11757 esac
11759 MSGMERGE="$ac_cv_path_MSGMERGE"
11760 if test "$MSGMERGE" != ":"; then
11761 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11762 echo "${ECHO_T}$MSGMERGE" >&6
11763 else
11764 echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6
11769 if test "$GMSGFMT" != ":"; then
11770 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11771 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11773 else
11774 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11775 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11776 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11777 GMSGFMT=":"
11781 if test "$XGETTEXT" != ":"; then
11782 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11783 (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
11785 else
11786 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11787 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11788 XGETTEXT=":"
11790 rm -f messages.po
11793 ac_config_commands="$ac_config_commands default-1"
11797 # Permit host specific settings.
11798 . ${srcdir}/configure.host
11801 # Find a good install program. We prefer a C program (faster),
11802 # so one script is as good as another. But avoid the broken or
11803 # incompatible versions:
11804 # SysV /etc/install, /usr/sbin/install
11805 # SunOS /usr/etc/install
11806 # IRIX /sbin/install
11807 # AIX /bin/install
11808 # AmigaOS /C/install, which installs bootblocks on floppy discs
11809 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11810 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11811 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11812 # OS/2's system install, which has a completely different semantic
11813 # ./install, which can be erroneously created by make from ./install.sh.
11814 # Reject install programs that cannot install multiple files.
11815 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11816 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11817 if test -z "$INSTALL"; then
11818 if test "${ac_cv_path_install+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 # Account for people who put trailing slashes in PATH elements.
11827 case $as_dir/ in
11828 ./ | .// | /cC/* | \
11829 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11830 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11831 /usr/ucb/* ) ;;
11833 # OSF1 and SCO ODT 3.0 have their own names for install.
11834 # Don't use installbsd from OSF since it installs stuff as root
11835 # by default.
11836 for ac_prog in ginstall scoinst install; do
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11839 if test $ac_prog = install &&
11840 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11841 # AIX install. It has an incompatible calling convention.
11843 elif test $ac_prog = install &&
11844 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11845 # program-specific install script used by HP pwplus--don't use.
11847 else
11848 rm -rf conftest.one conftest.two conftest.dir
11849 echo one > conftest.one
11850 echo two > conftest.two
11851 mkdir conftest.dir
11852 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11853 test -s conftest.one && test -s conftest.two &&
11854 test -s conftest.dir/conftest.one &&
11855 test -s conftest.dir/conftest.two
11856 then
11857 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11858 break 3
11862 done
11863 done
11865 esac
11866 done
11868 rm -rf conftest.one conftest.two conftest.dir
11871 if test "${ac_cv_path_install+set}" = set; then
11872 INSTALL=$ac_cv_path_install
11873 else
11874 # As a last resort, use the slow shell script. Don't cache a
11875 # value for INSTALL within a source directory, because that will
11876 # break other packages using the cache if that directory is
11877 # removed, or if the value is a relative name.
11878 INSTALL=$ac_install_sh
11881 echo "$as_me:$LINENO: result: $INSTALL" >&5
11882 echo "${ECHO_T}$INSTALL" >&6
11884 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11885 # It thinks the first close brace ends the variable substitution.
11886 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11888 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11890 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11893 BFD_HOST_64BIT_LONG=0
11894 BFD_HOST_64BIT_LONG_LONG=0
11895 BFD_HOST_64_BIT_DEFINED=0
11896 BFD_HOST_64_BIT=
11897 BFD_HOST_U_64_BIT=
11898 BFD_HOSTPTR_T="unsigned long"
11900 echo "$as_me:$LINENO: checking for long long" >&5
11901 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11902 if test "${ac_cv_type_long_long+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905 cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h. */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11911 $ac_includes_default
11913 main ()
11915 if ((long long *) 0)
11916 return 0;
11917 if (sizeof (long long))
11918 return 0;
11920 return 0;
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11925 (eval $ac_compile) 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag"
11933 || test ! -s conftest.err'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest.$ac_objext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_cv_type_long_long=yes
11946 else
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 ac_cv_type_long_long=no
11952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11954 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11955 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11957 echo "$as_me:$LINENO: checking size of long long" >&5
11958 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11959 if test "${ac_cv_sizeof_long_long+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962 if test "$ac_cv_type_long_long" = yes; then
11963 # The cast to unsigned long works around a bug in the HP C Compiler
11964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11966 # This bug is HP SR number 8606223364.
11967 if test "$cross_compiling" = yes; then
11968 # Depending upon the size, compute the lo and hi bounds.
11969 cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h. */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 $ac_includes_default
11977 main ()
11979 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11980 test_array [0] = 0
11983 return 0;
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11988 (eval $ac_compile) 2>conftest.er1
11989 ac_status=$?
11990 grep -v '^ *+' conftest.er1 >conftest.err
11991 rm -f conftest.er1
11992 cat conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -z "$ac_c_werror_flag"
11996 || test ! -s conftest.err'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest.$ac_objext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 ac_lo=0 ac_mid=0
12009 while :; do
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h. */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 $ac_includes_default
12018 main ()
12020 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12021 test_array [0] = 0
12024 return 0;
12026 _ACEOF
12027 rm -f conftest.$ac_objext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12029 (eval $ac_compile) 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag"
12037 || test ! -s conftest.err'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest.$ac_objext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 ac_hi=$ac_mid; break
12050 else
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 ac_lo=`expr $ac_mid + 1`
12055 if test $ac_lo -le $ac_mid; then
12056 ac_lo= ac_hi=
12057 break
12059 ac_mid=`expr 2 '*' $ac_mid + 1`
12061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12062 done
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h. */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 $ac_includes_default
12075 main ()
12077 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12078 test_array [0] = 0
12081 return 0;
12083 _ACEOF
12084 rm -f conftest.$ac_objext
12085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12086 (eval $ac_compile) 2>conftest.er1
12087 ac_status=$?
12088 grep -v '^ *+' conftest.er1 >conftest.err
12089 rm -f conftest.er1
12090 cat conftest.err >&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } &&
12093 { ac_try='test -z "$ac_c_werror_flag"
12094 || test ! -s conftest.err'
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; } &&
12100 { ac_try='test -s conftest.$ac_objext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106 ac_hi=-1 ac_mid=-1
12107 while :; do
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12116 main ()
12118 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12119 test_array [0] = 0
12122 return 0;
12124 _ACEOF
12125 rm -f conftest.$ac_objext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127 (eval $ac_compile) 2>conftest.er1
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -z "$ac_c_werror_flag"
12135 || test ! -s conftest.err'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_lo=$ac_mid; break
12148 else
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 ac_hi=`expr '(' $ac_mid ')' - 1`
12153 if test $ac_mid -le $ac_hi; then
12154 ac_lo= ac_hi=
12155 break
12157 ac_mid=`expr 2 '*' $ac_mid`
12159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160 done
12161 else
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_lo= ac_hi=
12167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12170 # Binary search between lo and hi bounds.
12171 while test "x$ac_lo" != "x$ac_hi"; do
12172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h. */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 $ac_includes_default
12181 main ()
12183 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12184 test_array [0] = 0
12187 return 0;
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12192 (eval $ac_compile) 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag"
12200 || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_hi=$ac_mid
12213 else
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_lo=`expr '(' $ac_mid ')' + 1`
12219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12220 done
12221 case $ac_lo in
12222 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12223 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12224 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12225 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12226 See \`config.log' for more details." >&5
12227 echo "$as_me: error: cannot compute sizeof (long long), 77
12228 See \`config.log' for more details." >&2;}
12229 { (exit 1); exit 1; }; }; } ;;
12230 esac
12231 else
12232 if test "$cross_compiling" = yes; then
12233 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12234 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12235 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12236 See \`config.log' for more details." >&5
12237 echo "$as_me: error: cannot run test program while cross compiling
12238 See \`config.log' for more details." >&2;}
12239 { (exit 1); exit 1; }; }; }
12240 else
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 $ac_includes_default
12248 long longval () { return (long) (sizeof (long long)); }
12249 unsigned long ulongval () { return (long) (sizeof (long long)); }
12250 #include <stdio.h>
12251 #include <stdlib.h>
12253 main ()
12256 FILE *f = fopen ("conftest.val", "w");
12257 if (! f)
12258 exit (1);
12259 if (((long) (sizeof (long long))) < 0)
12261 long i = longval ();
12262 if (i != ((long) (sizeof (long long))))
12263 exit (1);
12264 fprintf (f, "%ld\n", i);
12266 else
12268 unsigned long i = ulongval ();
12269 if (i != ((long) (sizeof (long long))))
12270 exit (1);
12271 fprintf (f, "%lu\n", i);
12273 exit (ferror (f) || fclose (f) != 0);
12276 return 0;
12278 _ACEOF
12279 rm -f conftest$ac_exeext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281 (eval $ac_link) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_sizeof_long_long=`cat conftest.val`
12291 else
12292 echo "$as_me: program exited with status $ac_status" >&5
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ( exit $ac_status )
12297 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12298 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12300 See \`config.log' for more details." >&5
12301 echo "$as_me: error: cannot compute sizeof (long long), 77
12302 See \`config.log' for more details." >&2;}
12303 { (exit 1); exit 1; }; }; }
12305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12308 rm -f conftest.val
12309 else
12310 ac_cv_sizeof_long_long=0
12313 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12314 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12315 cat >>confdefs.h <<_ACEOF
12316 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12317 _ACEOF
12320 echo "$as_me:$LINENO: checking for void *" >&5
12321 echo $ECHO_N "checking for void *... $ECHO_C" >&6
12322 if test "${ac_cv_type_void_p+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331 $ac_includes_default
12333 main ()
12335 if ((void * *) 0)
12336 return 0;
12337 if (sizeof (void *))
12338 return 0;
12340 return 0;
12342 _ACEOF
12343 rm -f conftest.$ac_objext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345 (eval $ac_compile) 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag"
12353 || test ! -s conftest.err'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest.$ac_objext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 ac_cv_type_void_p=yes
12366 else
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_cv_type_void_p=no
12372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12374 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12375 echo "${ECHO_T}$ac_cv_type_void_p" >&6
12377 echo "$as_me:$LINENO: checking size of void *" >&5
12378 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12379 if test "${ac_cv_sizeof_void_p+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382 if test "$ac_cv_type_void_p" = yes; then
12383 # The cast to unsigned long works around a bug in the HP C Compiler
12384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12386 # This bug is HP SR number 8606223364.
12387 if test "$cross_compiling" = yes; then
12388 # Depending upon the size, compute the lo and hi bounds.
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 $ac_includes_default
12397 main ()
12399 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12400 test_array [0] = 0
12403 return 0;
12405 _ACEOF
12406 rm -f conftest.$ac_objext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408 (eval $ac_compile) 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_c_werror_flag"
12416 || test ! -s conftest.err'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest.$ac_objext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428 ac_lo=0 ac_mid=0
12429 while :; do
12430 cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h. */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 $ac_includes_default
12438 main ()
12440 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12441 test_array [0] = 0
12444 return 0;
12446 _ACEOF
12447 rm -f conftest.$ac_objext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12449 (eval $ac_compile) 2>conftest.er1
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
12456 { ac_try='test -z "$ac_c_werror_flag"
12457 || test ! -s conftest.err'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest.$ac_objext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_hi=$ac_mid; break
12470 else
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12474 ac_lo=`expr $ac_mid + 1`
12475 if test $ac_lo -le $ac_mid; then
12476 ac_lo= ac_hi=
12477 break
12479 ac_mid=`expr 2 '*' $ac_mid + 1`
12481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12482 done
12483 else
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h. */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 $ac_includes_default
12495 main ()
12497 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12498 test_array [0] = 0
12501 return 0;
12503 _ACEOF
12504 rm -f conftest.$ac_objext
12505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506 (eval $ac_compile) 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
12513 { ac_try='test -z "$ac_c_werror_flag"
12514 || test ! -s conftest.err'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_hi=-1 ac_mid=-1
12527 while :; do
12528 cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h. */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534 $ac_includes_default
12536 main ()
12538 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12539 test_array [0] = 0
12542 return 0;
12544 _ACEOF
12545 rm -f conftest.$ac_objext
12546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12547 (eval $ac_compile) 2>conftest.er1
12548 ac_status=$?
12549 grep -v '^ *+' conftest.er1 >conftest.err
12550 rm -f conftest.er1
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try='test -z "$ac_c_werror_flag"
12555 || test ! -s conftest.err'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try='test -s conftest.$ac_objext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 ac_lo=$ac_mid; break
12568 else
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ac_hi=`expr '(' $ac_mid ')' - 1`
12573 if test $ac_mid -le $ac_hi; then
12574 ac_lo= ac_hi=
12575 break
12577 ac_mid=`expr 2 '*' $ac_mid`
12579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580 done
12581 else
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 ac_lo= ac_hi=
12587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12590 # Binary search between lo and hi bounds.
12591 while test "x$ac_lo" != "x$ac_hi"; do
12592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12593 cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h. */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 $ac_includes_default
12601 main ()
12603 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12604 test_array [0] = 0
12607 return 0;
12609 _ACEOF
12610 rm -f conftest.$ac_objext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612 (eval $ac_compile) 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12632 ac_hi=$ac_mid
12633 else
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12637 ac_lo=`expr '(' $ac_mid ')' + 1`
12639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12640 done
12641 case $ac_lo in
12642 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12643 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12644 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12645 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12646 See \`config.log' for more details." >&5
12647 echo "$as_me: error: cannot compute sizeof (void *), 77
12648 See \`config.log' for more details." >&2;}
12649 { (exit 1); exit 1; }; }; } ;;
12650 esac
12651 else
12652 if test "$cross_compiling" = yes; then
12653 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12654 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12655 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12656 See \`config.log' for more details." >&5
12657 echo "$as_me: error: cannot run test program while cross compiling
12658 See \`config.log' for more details." >&2;}
12659 { (exit 1); exit 1; }; }; }
12660 else
12661 cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h. */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 $ac_includes_default
12668 long longval () { return (long) (sizeof (void *)); }
12669 unsigned long ulongval () { return (long) (sizeof (void *)); }
12670 #include <stdio.h>
12671 #include <stdlib.h>
12673 main ()
12676 FILE *f = fopen ("conftest.val", "w");
12677 if (! f)
12678 exit (1);
12679 if (((long) (sizeof (void *))) < 0)
12681 long i = longval ();
12682 if (i != ((long) (sizeof (void *))))
12683 exit (1);
12684 fprintf (f, "%ld\n", i);
12686 else
12688 unsigned long i = ulongval ();
12689 if (i != ((long) (sizeof (void *))))
12690 exit (1);
12691 fprintf (f, "%lu\n", i);
12693 exit (ferror (f) || fclose (f) != 0);
12696 return 0;
12698 _ACEOF
12699 rm -f conftest$ac_exeext
12700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12701 (eval $ac_link) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_sizeof_void_p=`cat conftest.val`
12711 else
12712 echo "$as_me: program exited with status $ac_status" >&5
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12716 ( exit $ac_status )
12717 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12718 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12720 See \`config.log' for more details." >&5
12721 echo "$as_me: error: cannot compute sizeof (void *), 77
12722 See \`config.log' for more details." >&2;}
12723 { (exit 1); exit 1; }; }; }
12725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12728 rm -f conftest.val
12729 else
12730 ac_cv_sizeof_void_p=0
12733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12734 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12735 cat >>confdefs.h <<_ACEOF
12736 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12737 _ACEOF
12740 echo "$as_me:$LINENO: checking for long" >&5
12741 echo $ECHO_N "checking for long... $ECHO_C" >&6
12742 if test "${ac_cv_type_long+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12753 main ()
12755 if ((long *) 0)
12756 return 0;
12757 if (sizeof (long))
12758 return 0;
12760 return 0;
12762 _ACEOF
12763 rm -f conftest.$ac_objext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_c_werror_flag"
12773 || test ! -s conftest.err'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; } &&
12779 { ac_try='test -s conftest.$ac_objext'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; }; then
12785 ac_cv_type_long=yes
12786 else
12787 echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.$ac_ext >&5
12790 ac_cv_type_long=no
12792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12794 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12795 echo "${ECHO_T}$ac_cv_type_long" >&6
12797 echo "$as_me:$LINENO: checking size of long" >&5
12798 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12799 if test "${ac_cv_sizeof_long+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802 if test "$ac_cv_type_long" = yes; then
12803 # The cast to unsigned long works around a bug in the HP C Compiler
12804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12806 # This bug is HP SR number 8606223364.
12807 if test "$cross_compiling" = yes; then
12808 # Depending upon the size, compute the lo and hi bounds.
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 $ac_includes_default
12817 main ()
12819 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12820 test_array [0] = 0
12823 return 0;
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828 (eval $ac_compile) 2>conftest.er1
12829 ac_status=$?
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
12835 { ac_try='test -z "$ac_c_werror_flag"
12836 || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest.$ac_objext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_lo=0 ac_mid=0
12849 while :; do
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h. */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 $ac_includes_default
12858 main ()
12860 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12861 test_array [0] = 0
12864 return 0;
12866 _ACEOF
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869 (eval $ac_compile) 2>conftest.er1
12870 ac_status=$?
12871 grep -v '^ *+' conftest.er1 >conftest.err
12872 rm -f conftest.er1
12873 cat conftest.err >&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } &&
12876 { ac_try='test -z "$ac_c_werror_flag"
12877 || test ! -s conftest.err'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest.$ac_objext'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
12889 ac_hi=$ac_mid; break
12890 else
12891 echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12894 ac_lo=`expr $ac_mid + 1`
12895 if test $ac_lo -le $ac_mid; then
12896 ac_lo= ac_hi=
12897 break
12899 ac_mid=`expr 2 '*' $ac_mid + 1`
12901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902 done
12903 else
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12907 cat >conftest.$ac_ext <<_ACEOF
12908 /* confdefs.h. */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 $ac_includes_default
12915 main ()
12917 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12918 test_array [0] = 0
12921 return 0;
12923 _ACEOF
12924 rm -f conftest.$ac_objext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926 (eval $ac_compile) 2>conftest.er1
12927 ac_status=$?
12928 grep -v '^ *+' conftest.er1 >conftest.err
12929 rm -f conftest.er1
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -z "$ac_c_werror_flag"
12934 || test ! -s conftest.err'
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12937 ac_status=$?
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; } &&
12940 { ac_try='test -s conftest.$ac_objext'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; }; then
12946 ac_hi=-1 ac_mid=-1
12947 while :; do
12948 cat >conftest.$ac_ext <<_ACEOF
12949 /* confdefs.h. */
12950 _ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12954 $ac_includes_default
12956 main ()
12958 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12959 test_array [0] = 0
12962 return 0;
12964 _ACEOF
12965 rm -f conftest.$ac_objext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>conftest.er1
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
12974 { ac_try='test -z "$ac_c_werror_flag"
12975 || test ! -s conftest.err'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest.$ac_objext'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_lo=$ac_mid; break
12988 else
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 ac_hi=`expr '(' $ac_mid ')' - 1`
12993 if test $ac_mid -le $ac_hi; then
12994 ac_lo= ac_hi=
12995 break
12997 ac_mid=`expr 2 '*' $ac_mid`
12999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13000 done
13001 else
13002 echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13005 ac_lo= ac_hi=
13007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13010 # Binary search between lo and hi bounds.
13011 while test "x$ac_lo" != "x$ac_hi"; do
13012 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13013 cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h. */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 $ac_includes_default
13021 main ()
13023 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13024 test_array [0] = 0
13027 return 0;
13029 _ACEOF
13030 rm -f conftest.$ac_objext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032 (eval $ac_compile) 2>conftest.er1
13033 ac_status=$?
13034 grep -v '^ *+' conftest.er1 >conftest.err
13035 rm -f conftest.er1
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try='test -z "$ac_c_werror_flag"
13040 || test ! -s conftest.err'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13052 ac_hi=$ac_mid
13053 else
13054 echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13057 ac_lo=`expr '(' $ac_mid ')' + 1`
13059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13060 done
13061 case $ac_lo in
13062 ?*) ac_cv_sizeof_long=$ac_lo;;
13063 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13064 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13066 See \`config.log' for more details." >&5
13067 echo "$as_me: error: cannot compute sizeof (long), 77
13068 See \`config.log' for more details." >&2;}
13069 { (exit 1); exit 1; }; }; } ;;
13070 esac
13071 else
13072 if test "$cross_compiling" = yes; then
13073 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13074 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13075 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13076 See \`config.log' for more details." >&5
13077 echo "$as_me: error: cannot run test program while cross compiling
13078 See \`config.log' for more details." >&2;}
13079 { (exit 1); exit 1; }; }; }
13080 else
13081 cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h. */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 $ac_includes_default
13088 long longval () { return (long) (sizeof (long)); }
13089 unsigned long ulongval () { return (long) (sizeof (long)); }
13090 #include <stdio.h>
13091 #include <stdlib.h>
13093 main ()
13096 FILE *f = fopen ("conftest.val", "w");
13097 if (! f)
13098 exit (1);
13099 if (((long) (sizeof (long))) < 0)
13101 long i = longval ();
13102 if (i != ((long) (sizeof (long))))
13103 exit (1);
13104 fprintf (f, "%ld\n", i);
13106 else
13108 unsigned long i = ulongval ();
13109 if (i != ((long) (sizeof (long))))
13110 exit (1);
13111 fprintf (f, "%lu\n", i);
13113 exit (ferror (f) || fclose (f) != 0);
13116 return 0;
13118 _ACEOF
13119 rm -f conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_cv_sizeof_long=`cat conftest.val`
13131 else
13132 echo "$as_me: program exited with status $ac_status" >&5
13133 echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13136 ( exit $ac_status )
13137 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13138 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13140 See \`config.log' for more details." >&5
13141 echo "$as_me: error: cannot compute sizeof (long), 77
13142 See \`config.log' for more details." >&2;}
13143 { (exit 1); exit 1; }; }; }
13145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13148 rm -f conftest.val
13149 else
13150 ac_cv_sizeof_long=0
13153 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13154 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13155 cat >>confdefs.h <<_ACEOF
13156 #define SIZEOF_LONG $ac_cv_sizeof_long
13157 _ACEOF
13161 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13162 host64=true
13165 if test "x${ac_cv_sizeof_long}" = "x8"; then
13166 BFD_HOST_64BIT_LONG=1
13167 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13168 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13169 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13170 BFD_HOST_64BIT_LONG_LONG=1
13171 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13172 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13173 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13174 BFD_HOSTPTR_T="unsigned long long"
13178 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13179 BFD_HOST_64_BIT_DEFINED=1
13180 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13181 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13191 # Put a plausible default for CC_FOR_BUILD in Makefile.
13192 if test -z "$CC_FOR_BUILD"; then
13193 if test "x$cross_compiling" = "xno"; then
13194 CC_FOR_BUILD='$(CC)'
13195 else
13196 CC_FOR_BUILD=gcc
13200 # Also set EXEEXT_FOR_BUILD.
13201 if test "x$cross_compiling" = "xno"; then
13202 EXEEXT_FOR_BUILD='$(EXEEXT)'
13203 else
13204 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13205 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13206 if test "${bfd_cv_build_exeext+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209 rm -f conftest*
13210 echo 'int main () { return 0; }' > conftest.c
13211 bfd_cv_build_exeext=
13212 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13213 for file in conftest.*; do
13214 case $file in
13215 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13216 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13217 esac
13218 done
13219 rm -f conftest*
13220 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13222 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13223 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13224 EXEEXT_FOR_BUILD=""
13225 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13236 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
13238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13240 echo "$as_me:$LINENO: checking for $ac_header" >&5
13241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13247 else
13248 # Is the header compilable?
13249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13251 cat >conftest.$ac_ext <<_ACEOF
13252 /* confdefs.h. */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13257 $ac_includes_default
13258 #include <$ac_header>
13259 _ACEOF
13260 rm -f conftest.$ac_objext
13261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262 (eval $ac_compile) 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -z "$ac_c_werror_flag"
13270 || test ! -s conftest.err'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } &&
13276 { ac_try='test -s conftest.$ac_objext'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; }; then
13282 ac_header_compiler=yes
13283 else
13284 echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13287 ac_header_compiler=no
13289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13291 echo "${ECHO_T}$ac_header_compiler" >&6
13293 # Is the header present?
13294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13296 cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h. */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 #include <$ac_header>
13303 _ACEOF
13304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13305 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
13312 if test -s conftest.err; then
13313 ac_cpp_err=$ac_c_preproc_warn_flag
13314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13315 else
13316 ac_cpp_err=
13318 else
13319 ac_cpp_err=yes
13321 if test -z "$ac_cpp_err"; then
13322 ac_header_preproc=yes
13323 else
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 ac_header_preproc=no
13329 rm -f conftest.err conftest.$ac_ext
13330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13331 echo "${ECHO_T}$ac_header_preproc" >&6
13333 # So? What about this header?
13334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13335 yes:no: )
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13340 ac_header_preproc=yes
13342 no:yes:* )
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13356 cat <<\_ASBOX
13357 ## ------------------------------------------ ##
13358 ## Report this to the AC_PACKAGE_NAME lists. ##
13359 ## ------------------------------------------ ##
13360 _ASBOX
13362 sed "s/^/$as_me: WARNING: /" >&2
13364 esac
13365 echo "$as_me:$LINENO: checking for $ac_header" >&5
13366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370 eval "$as_ac_Header=\$ac_header_preproc"
13372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13377 cat >>confdefs.h <<_ACEOF
13378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13379 _ACEOF
13383 done
13388 for ac_header in fcntl.h sys/file.h sys/time.h
13390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13392 echo "$as_me:$LINENO: checking for $ac_header" >&5
13393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13399 else
13400 # Is the header compilable?
13401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h. */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 $ac_includes_default
13410 #include <$ac_header>
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414 (eval $ac_compile) 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -z "$ac_c_werror_flag"
13422 || test ! -s conftest.err'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_header_compiler=yes
13435 else
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13439 ac_header_compiler=no
13441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13443 echo "${ECHO_T}$ac_header_compiler" >&6
13445 # Is the header present?
13446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h. */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 #include <$ac_header>
13455 _ACEOF
13456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } >/dev/null; then
13464 if test -s conftest.err; then
13465 ac_cpp_err=$ac_c_preproc_warn_flag
13466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13467 else
13468 ac_cpp_err=
13470 else
13471 ac_cpp_err=yes
13473 if test -z "$ac_cpp_err"; then
13474 ac_header_preproc=yes
13475 else
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ac_header_preproc=no
13481 rm -f conftest.err conftest.$ac_ext
13482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13483 echo "${ECHO_T}$ac_header_preproc" >&6
13485 # So? What about this header?
13486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13487 yes:no: )
13488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13492 ac_header_preproc=yes
13494 no:yes:* )
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13508 cat <<\_ASBOX
13509 ## ------------------------------------------ ##
13510 ## Report this to the AC_PACKAGE_NAME lists. ##
13511 ## ------------------------------------------ ##
13512 _ASBOX
13514 sed "s/^/$as_me: WARNING: /" >&2
13516 esac
13517 echo "$as_me:$LINENO: checking for $ac_header" >&5
13518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522 eval "$as_ac_Header=\$ac_header_preproc"
13524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13529 cat >>confdefs.h <<_ACEOF
13530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13531 _ACEOF
13535 done
13539 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13541 acx_cv_header_stdint=stddef.h
13542 acx_cv_header_stdint_kind="(already complete)"
13543 for i in stdint.h $inttype_headers; do
13544 unset ac_cv_type_uintptr_t
13545 unset ac_cv_type_uintmax_t
13546 unset ac_cv_type_int_least32_t
13547 unset ac_cv_type_int_fast32_t
13548 unset ac_cv_type_uint64_t
13549 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13550 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13551 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13552 if test "${ac_cv_type_uintmax_t+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 #include <sys/types.h>
13562 #include <$i>
13565 main ()
13567 if ((uintmax_t *) 0)
13568 return 0;
13569 if (sizeof (uintmax_t))
13570 return 0;
13572 return 0;
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest.$ac_objext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_type_uintmax_t=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_cv_type_uintmax_t=no
13604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13606 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13607 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13608 if test $ac_cv_type_uintmax_t = yes; then
13609 acx_cv_header_stdint=$i
13610 else
13611 continue
13614 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13615 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13616 if test "${ac_cv_type_uintptr_t+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619 cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h. */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 #include <sys/types.h>
13626 #include <$i>
13629 main ()
13631 if ((uintptr_t *) 0)
13632 return 0;
13633 if (sizeof (uintptr_t))
13634 return 0;
13636 return 0;
13638 _ACEOF
13639 rm -f conftest.$ac_objext
13640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13641 (eval $ac_compile) 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -z "$ac_c_werror_flag"
13649 || test ! -s conftest.err'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest.$ac_objext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 ac_cv_type_uintptr_t=yes
13662 else
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13666 ac_cv_type_uintptr_t=no
13668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13670 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13671 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13672 if test $ac_cv_type_uintptr_t = yes; then
13674 else
13675 acx_cv_header_stdint_kind="(mostly complete)"
13678 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13679 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13680 if test "${ac_cv_type_int_least32_t+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683 cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h. */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689 #include <sys/types.h>
13690 #include <$i>
13693 main ()
13695 if ((int_least32_t *) 0)
13696 return 0;
13697 if (sizeof (int_least32_t))
13698 return 0;
13700 return 0;
13702 _ACEOF
13703 rm -f conftest.$ac_objext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705 (eval $ac_compile) 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -z "$ac_c_werror_flag"
13713 || test ! -s conftest.err'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_cv_type_int_least32_t=yes
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 ac_cv_type_int_least32_t=no
13732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13734 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13735 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13736 if test $ac_cv_type_int_least32_t = yes; then
13738 else
13739 acx_cv_header_stdint_kind="(mostly complete)"
13742 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13743 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13744 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747 cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h. */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 #include <sys/types.h>
13754 #include <$i>
13757 main ()
13759 if ((int_fast32_t *) 0)
13760 return 0;
13761 if (sizeof (int_fast32_t))
13762 return 0;
13764 return 0;
13766 _ACEOF
13767 rm -f conftest.$ac_objext
13768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13769 (eval $ac_compile) 2>conftest.er1
13770 ac_status=$?
13771 grep -v '^ *+' conftest.er1 >conftest.err
13772 rm -f conftest.er1
13773 cat conftest.err >&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } &&
13776 { ac_try='test -z "$ac_c_werror_flag"
13777 || test ! -s conftest.err'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789 ac_cv_type_int_fast32_t=yes
13790 else
13791 echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13794 ac_cv_type_int_fast32_t=no
13796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13798 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13799 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13800 if test $ac_cv_type_int_fast32_t = yes; then
13802 else
13803 acx_cv_header_stdint_kind="(mostly complete)"
13806 echo "$as_me:$LINENO: checking for uint64_t" >&5
13807 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13808 if test "${ac_cv_type_uint64_t+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h. */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13817 #include <sys/types.h>
13818 #include <$i>
13821 main ()
13823 if ((uint64_t *) 0)
13824 return 0;
13825 if (sizeof (uint64_t))
13826 return 0;
13828 return 0;
13830 _ACEOF
13831 rm -f conftest.$ac_objext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13833 (eval $ac_compile) 2>conftest.er1
13834 ac_status=$?
13835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -z "$ac_c_werror_flag"
13841 || test ! -s conftest.err'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_type_uint64_t=yes
13854 else
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13858 ac_cv_type_uint64_t=no
13860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13862 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13863 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13864 if test $ac_cv_type_uint64_t = yes; then
13866 else
13867 acx_cv_header_stdint_kind="(lacks uint64_t)"
13870 break
13871 done
13872 if test "$acx_cv_header_stdint" = stddef.h; then
13873 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13874 for i in stdint.h $inttype_headers; do
13875 unset ac_cv_type_uintptr_t
13876 unset ac_cv_type_uint32_t
13877 unset ac_cv_type_uint64_t
13878 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13879 echo "$as_me:$LINENO: checking for uint32_t" >&5
13880 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13881 if test "${ac_cv_type_uint32_t+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 #include <sys/types.h>
13891 #include <$i>
13894 main ()
13896 if ((uint32_t *) 0)
13897 return 0;
13898 if (sizeof (uint32_t))
13899 return 0;
13901 return 0;
13903 _ACEOF
13904 rm -f conftest.$ac_objext
13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906 (eval $ac_compile) 2>conftest.er1
13907 ac_status=$?
13908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
13913 { ac_try='test -z "$ac_c_werror_flag"
13914 || test ! -s conftest.err'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try='test -s conftest.$ac_objext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_type_uint32_t=yes
13927 else
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13931 ac_cv_type_uint32_t=no
13933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13935 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13936 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13937 if test $ac_cv_type_uint32_t = yes; then
13938 acx_cv_header_stdint=$i
13939 else
13940 continue
13943 echo "$as_me:$LINENO: checking for uint64_t" >&5
13944 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13945 if test "${ac_cv_type_uint64_t+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 else
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h. */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 #include <sys/types.h>
13955 #include <$i>
13958 main ()
13960 if ((uint64_t *) 0)
13961 return 0;
13962 if (sizeof (uint64_t))
13963 return 0;
13965 return 0;
13967 _ACEOF
13968 rm -f conftest.$ac_objext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970 (eval $ac_compile) 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -z "$ac_c_werror_flag"
13978 || test ! -s conftest.err'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest.$ac_objext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_type_uint64_t=yes
13991 else
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13995 ac_cv_type_uint64_t=no
13997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13999 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14000 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14002 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14003 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14004 if test "${ac_cv_type_uintptr_t+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 #include <sys/types.h>
14014 #include <$i>
14017 main ()
14019 if ((uintptr_t *) 0)
14020 return 0;
14021 if (sizeof (uintptr_t))
14022 return 0;
14024 return 0;
14026 _ACEOF
14027 rm -f conftest.$ac_objext
14028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14029 (eval $ac_compile) 2>conftest.er1
14030 ac_status=$?
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -z "$ac_c_werror_flag"
14037 || test ! -s conftest.err'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_cv_type_uintptr_t=yes
14050 else
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_cv_type_uintptr_t=no
14056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14058 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14059 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14061 break
14062 done
14064 if test "$acx_cv_header_stdint" = stddef.h; then
14065 acx_cv_header_stdint_kind="(u_intXX_t style)"
14066 for i in sys/types.h $inttype_headers; do
14067 unset ac_cv_type_u_int32_t
14068 unset ac_cv_type_u_int64_t
14069 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14070 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14071 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14072 if test "${ac_cv_type_u_int32_t+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 else
14075 cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h. */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 #include <sys/types.h>
14082 #include <$i>
14085 main ()
14087 if ((u_int32_t *) 0)
14088 return 0;
14089 if (sizeof (u_int32_t))
14090 return 0;
14092 return 0;
14094 _ACEOF
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -z "$ac_c_werror_flag"
14105 || test ! -s conftest.err'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_type_u_int32_t=yes
14118 else
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_cv_type_u_int32_t=no
14124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14126 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14127 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14128 if test $ac_cv_type_u_int32_t = yes; then
14129 acx_cv_header_stdint=$i
14130 else
14131 continue
14134 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14135 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14136 if test "${ac_cv_type_u_int64_t+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 #include <sys/types.h>
14146 #include <$i>
14149 main ()
14151 if ((u_int64_t *) 0)
14152 return 0;
14153 if (sizeof (u_int64_t))
14154 return 0;
14156 return 0;
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try='test -z "$ac_c_werror_flag"
14169 || test ! -s conftest.err'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest.$ac_objext'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 ac_cv_type_u_int64_t=yes
14182 else
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14186 ac_cv_type_u_int64_t=no
14188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14190 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14191 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14193 break
14194 done
14196 if test "$acx_cv_header_stdint" = stddef.h; then
14197 acx_cv_header_stdint_kind="(using manual detection)"
14200 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14201 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14202 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14203 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14204 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14206 # ----------------- Summarize what we found so far
14208 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14209 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14211 case `$as_basename bfd_stdint.h ||
14212 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14213 Xbfd_stdint.h : 'X\(//\)$' \| \
14214 Xbfd_stdint.h : 'X\(/\)$' \| \
14215 . : '\(.\)' 2>/dev/null ||
14216 echo X/bfd_stdint.h |
14217 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14218 /^X\/\(\/\/\)$/{ s//\1/; q; }
14219 /^X\/\(\/\).*/{ s//\1/; q; }
14220 s/.*/./; q'` in
14221 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14222 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14223 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14224 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14225 *) ;;
14226 esac
14228 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14229 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14231 # ----------------- done included file, check C basic types --------
14233 # Lacking an uintptr_t? Test size of void *
14234 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14235 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14236 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14237 if test "${ac_cv_type_void_p+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h. */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 $ac_includes_default
14248 main ()
14250 if ((void * *) 0)
14251 return 0;
14252 if (sizeof (void *))
14253 return 0;
14255 return 0;
14257 _ACEOF
14258 rm -f conftest.$ac_objext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -z "$ac_c_werror_flag"
14268 || test ! -s conftest.err'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_type_void_p=yes
14281 else
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_cv_type_void_p=no
14287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14289 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14290 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14292 echo "$as_me:$LINENO: checking size of void *" >&5
14293 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14294 if test "${ac_cv_sizeof_void_p+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297 if test "$ac_cv_type_void_p" = yes; then
14298 # The cast to unsigned long works around a bug in the HP C Compiler
14299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14301 # This bug is HP SR number 8606223364.
14302 if test "$cross_compiling" = yes; then
14303 # Depending upon the size, compute the lo and hi bounds.
14304 cat >conftest.$ac_ext <<_ACEOF
14305 /* confdefs.h. */
14306 _ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 $ac_includes_default
14312 main ()
14314 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14315 test_array [0] = 0
14318 return 0;
14320 _ACEOF
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -z "$ac_c_werror_flag"
14331 || test ! -s conftest.err'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest.$ac_objext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_lo=0 ac_mid=0
14344 while :; do
14345 cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h. */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 $ac_includes_default
14353 main ()
14355 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14356 test_array [0] = 0
14359 return 0;
14361 _ACEOF
14362 rm -f conftest.$ac_objext
14363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364 (eval $ac_compile) 2>conftest.er1
14365 ac_status=$?
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
14371 { ac_try='test -z "$ac_c_werror_flag"
14372 || test ! -s conftest.err'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } &&
14378 { ac_try='test -s conftest.$ac_objext'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 ac_hi=$ac_mid; break
14385 else
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14389 ac_lo=`expr $ac_mid + 1`
14390 if test $ac_lo -le $ac_mid; then
14391 ac_lo= ac_hi=
14392 break
14394 ac_mid=`expr 2 '*' $ac_mid + 1`
14396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14397 done
14398 else
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14402 cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h. */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14408 $ac_includes_default
14410 main ()
14412 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14413 test_array [0] = 0
14416 return 0;
14418 _ACEOF
14419 rm -f conftest.$ac_objext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
14428 { ac_try='test -z "$ac_c_werror_flag"
14429 || test ! -s conftest.err'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 ac_hi=-1 ac_mid=-1
14442 while :; do
14443 cat >conftest.$ac_ext <<_ACEOF
14444 /* confdefs.h. */
14445 _ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 $ac_includes_default
14451 main ()
14453 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14454 test_array [0] = 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_lo=$ac_mid; break
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_hi=`expr '(' $ac_mid ')' - 1`
14488 if test $ac_mid -le $ac_hi; then
14489 ac_lo= ac_hi=
14490 break
14492 ac_mid=`expr 2 '*' $ac_mid`
14494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14495 done
14496 else
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 ac_lo= ac_hi=
14502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14505 # Binary search between lo and hi bounds.
14506 while test "x$ac_lo" != "x$ac_hi"; do
14507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14508 cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h. */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 $ac_includes_default
14516 main ()
14518 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14519 test_array [0] = 0
14522 return 0;
14524 _ACEOF
14525 rm -f conftest.$ac_objext
14526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14527 (eval $ac_compile) 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag"
14535 || test ! -s conftest.err'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; } &&
14541 { ac_try='test -s conftest.$ac_objext'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14544 ac_status=$?
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14547 ac_hi=$ac_mid
14548 else
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 ac_lo=`expr '(' $ac_mid ')' + 1`
14554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14555 done
14556 case $ac_lo in
14557 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14558 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14559 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14561 See \`config.log' for more details." >&5
14562 echo "$as_me: error: cannot compute sizeof (void *), 77
14563 See \`config.log' for more details." >&2;}
14564 { (exit 1); exit 1; }; }; } ;;
14565 esac
14566 else
14567 if test "$cross_compiling" = yes; then
14568 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14569 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14570 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14571 See \`config.log' for more details." >&5
14572 echo "$as_me: error: cannot run test program while cross compiling
14573 See \`config.log' for more details." >&2;}
14574 { (exit 1); exit 1; }; }; }
14575 else
14576 cat >conftest.$ac_ext <<_ACEOF
14577 /* confdefs.h. */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582 $ac_includes_default
14583 long longval () { return (long) (sizeof (void *)); }
14584 unsigned long ulongval () { return (long) (sizeof (void *)); }
14585 #include <stdio.h>
14586 #include <stdlib.h>
14588 main ()
14591 FILE *f = fopen ("conftest.val", "w");
14592 if (! f)
14593 exit (1);
14594 if (((long) (sizeof (void *))) < 0)
14596 long i = longval ();
14597 if (i != ((long) (sizeof (void *))))
14598 exit (1);
14599 fprintf (f, "%ld\n", i);
14601 else
14603 unsigned long i = ulongval ();
14604 if (i != ((long) (sizeof (void *))))
14605 exit (1);
14606 fprintf (f, "%lu\n", i);
14608 exit (ferror (f) || fclose (f) != 0);
14611 return 0;
14613 _ACEOF
14614 rm -f conftest$ac_exeext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14616 (eval $ac_link) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 ac_cv_sizeof_void_p=`cat conftest.val`
14626 else
14627 echo "$as_me: program exited with status $ac_status" >&5
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 ( exit $ac_status )
14632 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14633 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14635 See \`config.log' for more details." >&5
14636 echo "$as_me: error: cannot compute sizeof (void *), 77
14637 See \`config.log' for more details." >&2;}
14638 { (exit 1); exit 1; }; }; }
14640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14643 rm -f conftest.val
14644 else
14645 ac_cv_sizeof_void_p=0
14648 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14649 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14650 cat >>confdefs.h <<_ACEOF
14651 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14652 _ACEOF
14655 esac
14657 # Lacking an uint64_t? Test size of long
14658 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14659 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14660 echo $ECHO_N "checking for long... $ECHO_C" >&6
14661 if test "${ac_cv_type_long+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664 cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h. */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 $ac_includes_default
14672 main ()
14674 if ((long *) 0)
14675 return 0;
14676 if (sizeof (long))
14677 return 0;
14679 return 0;
14681 _ACEOF
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_cv_type_long=yes
14705 else
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_cv_type_long=no
14711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14713 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14714 echo "${ECHO_T}$ac_cv_type_long" >&6
14716 echo "$as_me:$LINENO: checking size of long" >&5
14717 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14718 if test "${ac_cv_sizeof_long+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721 if test "$ac_cv_type_long" = yes; then
14722 # The cast to unsigned long works around a bug in the HP C Compiler
14723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14725 # This bug is HP SR number 8606223364.
14726 if test "$cross_compiling" = yes; then
14727 # Depending upon the size, compute the lo and hi bounds.
14728 cat >conftest.$ac_ext <<_ACEOF
14729 /* confdefs.h. */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 $ac_includes_default
14736 main ()
14738 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14739 test_array [0] = 0
14742 return 0;
14744 _ACEOF
14745 rm -f conftest.$ac_objext
14746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14747 (eval $ac_compile) 2>conftest.er1
14748 ac_status=$?
14749 grep -v '^ *+' conftest.er1 >conftest.err
14750 rm -f conftest.er1
14751 cat conftest.err >&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
14754 { ac_try='test -z "$ac_c_werror_flag"
14755 || test ! -s conftest.err'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try='test -s conftest.$ac_objext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_lo=0 ac_mid=0
14768 while :; do
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 $ac_includes_default
14777 main ()
14779 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14780 test_array [0] = 0
14783 return 0;
14785 _ACEOF
14786 rm -f conftest.$ac_objext
14787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14788 (eval $ac_compile) 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_c_werror_flag"
14796 || test ! -s conftest.err'
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; } &&
14802 { ac_try='test -s conftest.$ac_objext'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14808 ac_hi=$ac_mid; break
14809 else
14810 echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14813 ac_lo=`expr $ac_mid + 1`
14814 if test $ac_lo -le $ac_mid; then
14815 ac_lo= ac_hi=
14816 break
14818 ac_mid=`expr 2 '*' $ac_mid + 1`
14820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14821 done
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h. */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 $ac_includes_default
14834 main ()
14836 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14837 test_array [0] = 0
14840 return 0;
14842 _ACEOF
14843 rm -f conftest.$ac_objext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14845 (eval $ac_compile) 2>conftest.er1
14846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } &&
14852 { ac_try='test -z "$ac_c_werror_flag"
14853 || test ! -s conftest.err'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; } &&
14859 { ac_try='test -s conftest.$ac_objext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_hi=-1 ac_mid=-1
14866 while :; do
14867 cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h. */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 $ac_includes_default
14875 main ()
14877 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14878 test_array [0] = 0
14881 return 0;
14883 _ACEOF
14884 rm -f conftest.$ac_objext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14886 (eval $ac_compile) 2>conftest.er1
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
14893 { ac_try='test -z "$ac_c_werror_flag"
14894 || test ! -s conftest.err'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; } &&
14900 { ac_try='test -s conftest.$ac_objext'
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 ac_lo=$ac_mid; break
14907 else
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911 ac_hi=`expr '(' $ac_mid ')' - 1`
14912 if test $ac_mid -le $ac_hi; then
14913 ac_lo= ac_hi=
14914 break
14916 ac_mid=`expr 2 '*' $ac_mid`
14918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14919 done
14920 else
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 ac_lo= ac_hi=
14926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14929 # Binary search between lo and hi bounds.
14930 while test "x$ac_lo" != "x$ac_hi"; do
14931 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14932 cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h. */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 $ac_includes_default
14940 main ()
14942 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14943 test_array [0] = 0
14946 return 0;
14948 _ACEOF
14949 rm -f conftest.$ac_objext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14951 (eval $ac_compile) 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
14958 { ac_try='test -z "$ac_c_werror_flag"
14959 || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest.$ac_objext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_hi=$ac_mid
14972 else
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14976 ac_lo=`expr '(' $ac_mid ')' + 1`
14978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14979 done
14980 case $ac_lo in
14981 ?*) ac_cv_sizeof_long=$ac_lo;;
14982 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14983 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14985 See \`config.log' for more details." >&5
14986 echo "$as_me: error: cannot compute sizeof (long), 77
14987 See \`config.log' for more details." >&2;}
14988 { (exit 1); exit 1; }; }; } ;;
14989 esac
14990 else
14991 if test "$cross_compiling" = yes; then
14992 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14993 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14995 See \`config.log' for more details." >&5
14996 echo "$as_me: error: cannot run test program while cross compiling
14997 See \`config.log' for more details." >&2;}
14998 { (exit 1); exit 1; }; }; }
14999 else
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 $ac_includes_default
15007 long longval () { return (long) (sizeof (long)); }
15008 unsigned long ulongval () { return (long) (sizeof (long)); }
15009 #include <stdio.h>
15010 #include <stdlib.h>
15012 main ()
15015 FILE *f = fopen ("conftest.val", "w");
15016 if (! f)
15017 exit (1);
15018 if (((long) (sizeof (long))) < 0)
15020 long i = longval ();
15021 if (i != ((long) (sizeof (long))))
15022 exit (1);
15023 fprintf (f, "%ld\n", i);
15025 else
15027 unsigned long i = ulongval ();
15028 if (i != ((long) (sizeof (long))))
15029 exit (1);
15030 fprintf (f, "%lu\n", i);
15032 exit (ferror (f) || fclose (f) != 0);
15035 return 0;
15037 _ACEOF
15038 rm -f conftest$ac_exeext
15039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15040 (eval $ac_link) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_cv_sizeof_long=`cat conftest.val`
15050 else
15051 echo "$as_me: program exited with status $ac_status" >&5
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15055 ( exit $ac_status )
15056 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15057 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15058 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15059 See \`config.log' for more details." >&5
15060 echo "$as_me: error: cannot compute sizeof (long), 77
15061 See \`config.log' for more details." >&2;}
15062 { (exit 1); exit 1; }; }; }
15064 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15067 rm -f conftest.val
15068 else
15069 ac_cv_sizeof_long=0
15072 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15073 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15074 cat >>confdefs.h <<_ACEOF
15075 #define SIZEOF_LONG $ac_cv_sizeof_long
15076 _ACEOF
15079 esac
15081 if test $acx_cv_header_stdint = stddef.h; then
15082 # Lacking a good header? Test size of everything and deduce all types.
15083 echo "$as_me:$LINENO: checking for int" >&5
15084 echo $ECHO_N "checking for int... $ECHO_C" >&6
15085 if test "${ac_cv_type_int+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h. */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15094 $ac_includes_default
15096 main ()
15098 if ((int *) 0)
15099 return 0;
15100 if (sizeof (int))
15101 return 0;
15103 return 0;
15105 _ACEOF
15106 rm -f conftest.$ac_objext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108 (eval $ac_compile) 2>conftest.er1
15109 ac_status=$?
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -z "$ac_c_werror_flag"
15116 || test ! -s conftest.err'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15128 ac_cv_type_int=yes
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_cv_type_int=no
15135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15137 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15138 echo "${ECHO_T}$ac_cv_type_int" >&6
15140 echo "$as_me:$LINENO: checking size of int" >&5
15141 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15142 if test "${ac_cv_sizeof_int+set}" = set; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 else
15145 if test "$ac_cv_type_int" = yes; then
15146 # The cast to unsigned long works around a bug in the HP C Compiler
15147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15149 # This bug is HP SR number 8606223364.
15150 if test "$cross_compiling" = yes; then
15151 # Depending upon the size, compute the lo and hi bounds.
15152 cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h. */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 $ac_includes_default
15160 main ()
15162 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15163 test_array [0] = 0
15166 return 0;
15168 _ACEOF
15169 rm -f conftest.$ac_objext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15171 (eval $ac_compile) 2>conftest.er1
15172 ac_status=$?
15173 grep -v '^ *+' conftest.er1 >conftest.err
15174 rm -f conftest.er1
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -z "$ac_c_werror_flag"
15179 || test ! -s conftest.err'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15182 ac_status=$?
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; } &&
15185 { ac_try='test -s conftest.$ac_objext'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; }; then
15191 ac_lo=0 ac_mid=0
15192 while :; do
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 $ac_includes_default
15201 main ()
15203 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15204 test_array [0] = 0
15207 return 0;
15209 _ACEOF
15210 rm -f conftest.$ac_objext
15211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15212 (eval $ac_compile) 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -z "$ac_c_werror_flag"
15220 || test ! -s conftest.err'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest.$ac_objext'
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_hi=$ac_mid; break
15233 else
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_lo=`expr $ac_mid + 1`
15238 if test $ac_lo -le $ac_mid; then
15239 ac_lo= ac_hi=
15240 break
15242 ac_mid=`expr 2 '*' $ac_mid + 1`
15244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15245 done
15246 else
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15250 cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h. */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 $ac_includes_default
15258 main ()
15260 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15261 test_array [0] = 0
15264 return 0;
15266 _ACEOF
15267 rm -f conftest.$ac_objext
15268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15269 (eval $ac_compile) 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } &&
15276 { ac_try='test -z "$ac_c_werror_flag"
15277 || test ! -s conftest.err'
15278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15279 (eval $ac_try) 2>&5
15280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; } &&
15283 { ac_try='test -s conftest.$ac_objext'
15284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285 (eval $ac_try) 2>&5
15286 ac_status=$?
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; }; then
15289 ac_hi=-1 ac_mid=-1
15290 while :; do
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h. */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 $ac_includes_default
15299 main ()
15301 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15302 test_array [0] = 0
15305 return 0;
15307 _ACEOF
15308 rm -f conftest.$ac_objext
15309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15310 (eval $ac_compile) 2>conftest.er1
15311 ac_status=$?
15312 grep -v '^ *+' conftest.er1 >conftest.err
15313 rm -f conftest.er1
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
15317 { ac_try='test -z "$ac_c_werror_flag"
15318 || test ! -s conftest.err'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest.$ac_objext'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_lo=$ac_mid; break
15331 else
15332 echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15335 ac_hi=`expr '(' $ac_mid ')' - 1`
15336 if test $ac_mid -le $ac_hi; then
15337 ac_lo= ac_hi=
15338 break
15340 ac_mid=`expr 2 '*' $ac_mid`
15342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15343 done
15344 else
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15348 ac_lo= ac_hi=
15350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15353 # Binary search between lo and hi bounds.
15354 while test "x$ac_lo" != "x$ac_hi"; do
15355 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15356 cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h. */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 $ac_includes_default
15364 main ()
15366 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15367 test_array [0] = 0
15370 return 0;
15372 _ACEOF
15373 rm -f conftest.$ac_objext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15375 (eval $ac_compile) 2>conftest.er1
15376 ac_status=$?
15377 grep -v '^ *+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try='test -z "$ac_c_werror_flag"
15383 || test ! -s conftest.err'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; } &&
15389 { ac_try='test -s conftest.$ac_objext'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }; then
15395 ac_hi=$ac_mid
15396 else
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15400 ac_lo=`expr '(' $ac_mid ')' + 1`
15402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15403 done
15404 case $ac_lo in
15405 ?*) ac_cv_sizeof_int=$ac_lo;;
15406 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15407 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15408 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15409 See \`config.log' for more details." >&5
15410 echo "$as_me: error: cannot compute sizeof (int), 77
15411 See \`config.log' for more details." >&2;}
15412 { (exit 1); exit 1; }; }; } ;;
15413 esac
15414 else
15415 if test "$cross_compiling" = yes; then
15416 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15417 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15418 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15419 See \`config.log' for more details." >&5
15420 echo "$as_me: error: cannot run test program while cross compiling
15421 See \`config.log' for more details." >&2;}
15422 { (exit 1); exit 1; }; }; }
15423 else
15424 cat >conftest.$ac_ext <<_ACEOF
15425 /* confdefs.h. */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 $ac_includes_default
15431 long longval () { return (long) (sizeof (int)); }
15432 unsigned long ulongval () { return (long) (sizeof (int)); }
15433 #include <stdio.h>
15434 #include <stdlib.h>
15436 main ()
15439 FILE *f = fopen ("conftest.val", "w");
15440 if (! f)
15441 exit (1);
15442 if (((long) (sizeof (int))) < 0)
15444 long i = longval ();
15445 if (i != ((long) (sizeof (int))))
15446 exit (1);
15447 fprintf (f, "%ld\n", i);
15449 else
15451 unsigned long i = ulongval ();
15452 if (i != ((long) (sizeof (int))))
15453 exit (1);
15454 fprintf (f, "%lu\n", i);
15456 exit (ferror (f) || fclose (f) != 0);
15459 return 0;
15461 _ACEOF
15462 rm -f conftest$ac_exeext
15463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15464 (eval $ac_link) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_cv_sizeof_int=`cat conftest.val`
15474 else
15475 echo "$as_me: program exited with status $ac_status" >&5
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ( exit $ac_status )
15480 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15481 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15483 See \`config.log' for more details." >&5
15484 echo "$as_me: error: cannot compute sizeof (int), 77
15485 See \`config.log' for more details." >&2;}
15486 { (exit 1); exit 1; }; }; }
15488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15491 rm -f conftest.val
15492 else
15493 ac_cv_sizeof_int=0
15496 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15497 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15498 cat >>confdefs.h <<_ACEOF
15499 #define SIZEOF_INT $ac_cv_sizeof_int
15500 _ACEOF
15503 echo "$as_me:$LINENO: checking for short" >&5
15504 echo $ECHO_N "checking for short... $ECHO_C" >&6
15505 if test "${ac_cv_type_short+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h. */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 $ac_includes_default
15516 main ()
15518 if ((short *) 0)
15519 return 0;
15520 if (sizeof (short))
15521 return 0;
15523 return 0;
15525 _ACEOF
15526 rm -f conftest.$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528 (eval $ac_compile) 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_cv_type_short=yes
15549 else
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_cv_type_short=no
15555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15557 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15558 echo "${ECHO_T}$ac_cv_type_short" >&6
15560 echo "$as_me:$LINENO: checking size of short" >&5
15561 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15562 if test "${ac_cv_sizeof_short+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 else
15565 if test "$ac_cv_type_short" = yes; then
15566 # The cast to unsigned long works around a bug in the HP C Compiler
15567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15569 # This bug is HP SR number 8606223364.
15570 if test "$cross_compiling" = yes; then
15571 # Depending upon the size, compute the lo and hi bounds.
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h. */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15578 $ac_includes_default
15580 main ()
15582 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15583 test_array [0] = 0
15586 return 0;
15588 _ACEOF
15589 rm -f conftest.$ac_objext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -z "$ac_c_werror_flag"
15599 || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest.$ac_objext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_lo=0 ac_mid=0
15612 while :; do
15613 cat >conftest.$ac_ext <<_ACEOF
15614 /* confdefs.h. */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 $ac_includes_default
15621 main ()
15623 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15624 test_array [0] = 0
15627 return 0;
15629 _ACEOF
15630 rm -f conftest.$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_hi=$ac_mid; break
15653 else
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15657 ac_lo=`expr $ac_mid + 1`
15658 if test $ac_lo -le $ac_mid; then
15659 ac_lo= ac_hi=
15660 break
15662 ac_mid=`expr 2 '*' $ac_mid + 1`
15664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15665 done
15666 else
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 cat >conftest.$ac_ext <<_ACEOF
15671 /* confdefs.h. */
15672 _ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15676 $ac_includes_default
15678 main ()
15680 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15681 test_array [0] = 0
15684 return 0;
15686 _ACEOF
15687 rm -f conftest.$ac_objext
15688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15689 (eval $ac_compile) 2>conftest.er1
15690 ac_status=$?
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } &&
15696 { ac_try='test -z "$ac_c_werror_flag"
15697 || test ! -s conftest.err'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; } &&
15703 { ac_try='test -s conftest.$ac_objext'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 ac_hi=-1 ac_mid=-1
15710 while :; do
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h. */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 $ac_includes_default
15719 main ()
15721 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15722 test_array [0] = 0
15725 return 0;
15727 _ACEOF
15728 rm -f conftest.$ac_objext
15729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15730 (eval $ac_compile) 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -z "$ac_c_werror_flag"
15738 || test ! -s conftest.err'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 ac_lo=$ac_mid; break
15751 else
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_hi=`expr '(' $ac_mid ')' - 1`
15756 if test $ac_mid -le $ac_hi; then
15757 ac_lo= ac_hi=
15758 break
15760 ac_mid=`expr 2 '*' $ac_mid`
15762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15763 done
15764 else
15765 echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15768 ac_lo= ac_hi=
15770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15773 # Binary search between lo and hi bounds.
15774 while test "x$ac_lo" != "x$ac_hi"; do
15775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15776 cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h. */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 $ac_includes_default
15784 main ()
15786 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15787 test_array [0] = 0
15790 return 0;
15792 _ACEOF
15793 rm -f conftest.$ac_objext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795 (eval $ac_compile) 2>conftest.er1
15796 ac_status=$?
15797 grep -v '^ *+' conftest.er1 >conftest.err
15798 rm -f conftest.er1
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } &&
15802 { ac_try='test -z "$ac_c_werror_flag"
15803 || test ! -s conftest.err'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; } &&
15809 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15815 ac_hi=$ac_mid
15816 else
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_lo=`expr '(' $ac_mid ')' + 1`
15822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15823 done
15824 case $ac_lo in
15825 ?*) ac_cv_sizeof_short=$ac_lo;;
15826 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15827 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15828 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15829 See \`config.log' for more details." >&5
15830 echo "$as_me: error: cannot compute sizeof (short), 77
15831 See \`config.log' for more details." >&2;}
15832 { (exit 1); exit 1; }; }; } ;;
15833 esac
15834 else
15835 if test "$cross_compiling" = yes; then
15836 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15837 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15838 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15839 See \`config.log' for more details." >&5
15840 echo "$as_me: error: cannot run test program while cross compiling
15841 See \`config.log' for more details." >&2;}
15842 { (exit 1); exit 1; }; }; }
15843 else
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h. */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 $ac_includes_default
15851 long longval () { return (long) (sizeof (short)); }
15852 unsigned long ulongval () { return (long) (sizeof (short)); }
15853 #include <stdio.h>
15854 #include <stdlib.h>
15856 main ()
15859 FILE *f = fopen ("conftest.val", "w");
15860 if (! f)
15861 exit (1);
15862 if (((long) (sizeof (short))) < 0)
15864 long i = longval ();
15865 if (i != ((long) (sizeof (short))))
15866 exit (1);
15867 fprintf (f, "%ld\n", i);
15869 else
15871 unsigned long i = ulongval ();
15872 if (i != ((long) (sizeof (short))))
15873 exit (1);
15874 fprintf (f, "%lu\n", i);
15876 exit (ferror (f) || fclose (f) != 0);
15879 return 0;
15881 _ACEOF
15882 rm -f conftest$ac_exeext
15883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15884 (eval $ac_link) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_cv_sizeof_short=`cat conftest.val`
15894 else
15895 echo "$as_me: program exited with status $ac_status" >&5
15896 echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15899 ( exit $ac_status )
15900 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15901 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15902 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15903 See \`config.log' for more details." >&5
15904 echo "$as_me: error: cannot compute sizeof (short), 77
15905 See \`config.log' for more details." >&2;}
15906 { (exit 1); exit 1; }; }; }
15908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15911 rm -f conftest.val
15912 else
15913 ac_cv_sizeof_short=0
15916 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15917 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15918 cat >>confdefs.h <<_ACEOF
15919 #define SIZEOF_SHORT $ac_cv_sizeof_short
15920 _ACEOF
15923 echo "$as_me:$LINENO: checking for char" >&5
15924 echo $ECHO_N "checking for char... $ECHO_C" >&6
15925 if test "${ac_cv_type_char+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h. */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 $ac_includes_default
15936 main ()
15938 if ((char *) 0)
15939 return 0;
15940 if (sizeof (char))
15941 return 0;
15943 return 0;
15945 _ACEOF
15946 rm -f conftest.$ac_objext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948 (eval $ac_compile) 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -z "$ac_c_werror_flag"
15956 || test ! -s conftest.err'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; } &&
15962 { ac_try='test -s conftest.$ac_objext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_cv_type_char=yes
15969 else
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ac_cv_type_char=no
15975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15977 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15978 echo "${ECHO_T}$ac_cv_type_char" >&6
15980 echo "$as_me:$LINENO: checking size of char" >&5
15981 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15982 if test "${ac_cv_sizeof_char+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984 else
15985 if test "$ac_cv_type_char" = yes; then
15986 # The cast to unsigned long works around a bug in the HP C Compiler
15987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15989 # This bug is HP SR number 8606223364.
15990 if test "$cross_compiling" = yes; then
15991 # Depending upon the size, compute the lo and hi bounds.
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 $ac_includes_default
16000 main ()
16002 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16003 test_array [0] = 0
16006 return 0;
16008 _ACEOF
16009 rm -f conftest.$ac_objext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16011 (eval $ac_compile) 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -z "$ac_c_werror_flag"
16019 || test ! -s conftest.err'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest.$ac_objext'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_lo=0 ac_mid=0
16032 while :; do
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h. */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 $ac_includes_default
16041 main ()
16043 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16044 test_array [0] = 0
16047 return 0;
16049 _ACEOF
16050 rm -f conftest.$ac_objext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052 (eval $ac_compile) 2>conftest.er1
16053 ac_status=$?
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag"
16060 || test ! -s conftest.err'
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; } &&
16066 { ac_try='test -s conftest.$ac_objext'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072 ac_hi=$ac_mid; break
16073 else
16074 echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16077 ac_lo=`expr $ac_mid + 1`
16078 if test $ac_lo -le $ac_mid; then
16079 ac_lo= ac_hi=
16080 break
16082 ac_mid=`expr 2 '*' $ac_mid + 1`
16084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16085 done
16086 else
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h. */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 $ac_includes_default
16098 main ()
16100 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16101 test_array [0] = 0
16104 return 0;
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag"
16117 || test ! -s conftest.err'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } &&
16123 { ac_try='test -s conftest.$ac_objext'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 ac_hi=-1 ac_mid=-1
16130 while :; do
16131 cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h. */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 $ac_includes_default
16139 main ()
16141 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16142 test_array [0] = 0
16145 return 0;
16147 _ACEOF
16148 rm -f conftest.$ac_objext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16150 (eval $ac_compile) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest.$ac_objext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 ac_lo=$ac_mid; break
16171 else
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 ac_hi=`expr '(' $ac_mid ')' - 1`
16176 if test $ac_mid -le $ac_hi; then
16177 ac_lo= ac_hi=
16178 break
16180 ac_mid=`expr 2 '*' $ac_mid`
16182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16183 done
16184 else
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16188 ac_lo= ac_hi=
16190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16193 # Binary search between lo and hi bounds.
16194 while test "x$ac_lo" != "x$ac_hi"; do
16195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 $ac_includes_default
16204 main ()
16206 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16207 test_array [0] = 0
16210 return 0;
16212 _ACEOF
16213 rm -f conftest.$ac_objext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>conftest.er1
16216 ac_status=$?
16217 grep -v '^ *+' conftest.er1 >conftest.err
16218 rm -f conftest.er1
16219 cat conftest.err >&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } &&
16222 { ac_try='test -z "$ac_c_werror_flag"
16223 || test ! -s conftest.err'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; } &&
16229 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16235 ac_hi=$ac_mid
16236 else
16237 echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16240 ac_lo=`expr '(' $ac_mid ')' + 1`
16242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243 done
16244 case $ac_lo in
16245 ?*) ac_cv_sizeof_char=$ac_lo;;
16246 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16247 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16248 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16249 See \`config.log' for more details." >&5
16250 echo "$as_me: error: cannot compute sizeof (char), 77
16251 See \`config.log' for more details." >&2;}
16252 { (exit 1); exit 1; }; }; } ;;
16253 esac
16254 else
16255 if test "$cross_compiling" = yes; then
16256 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16257 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16258 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16259 See \`config.log' for more details." >&5
16260 echo "$as_me: error: cannot run test program while cross compiling
16261 See \`config.log' for more details." >&2;}
16262 { (exit 1); exit 1; }; }; }
16263 else
16264 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h. */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 $ac_includes_default
16271 long longval () { return (long) (sizeof (char)); }
16272 unsigned long ulongval () { return (long) (sizeof (char)); }
16273 #include <stdio.h>
16274 #include <stdlib.h>
16276 main ()
16279 FILE *f = fopen ("conftest.val", "w");
16280 if (! f)
16281 exit (1);
16282 if (((long) (sizeof (char))) < 0)
16284 long i = longval ();
16285 if (i != ((long) (sizeof (char))))
16286 exit (1);
16287 fprintf (f, "%ld\n", i);
16289 else
16291 unsigned long i = ulongval ();
16292 if (i != ((long) (sizeof (char))))
16293 exit (1);
16294 fprintf (f, "%lu\n", i);
16296 exit (ferror (f) || fclose (f) != 0);
16299 return 0;
16301 _ACEOF
16302 rm -f conftest$ac_exeext
16303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16304 (eval $ac_link) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_cv_sizeof_char=`cat conftest.val`
16314 else
16315 echo "$as_me: program exited with status $ac_status" >&5
16316 echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16319 ( exit $ac_status )
16320 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16321 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16322 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16323 See \`config.log' for more details." >&5
16324 echo "$as_me: error: cannot compute sizeof (char), 77
16325 See \`config.log' for more details." >&2;}
16326 { (exit 1); exit 1; }; }; }
16328 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16331 rm -f conftest.val
16332 else
16333 ac_cv_sizeof_char=0
16336 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16337 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16338 cat >>confdefs.h <<_ACEOF
16339 #define SIZEOF_CHAR $ac_cv_sizeof_char
16340 _ACEOF
16344 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16345 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16346 case "$ac_cv_sizeof_char" in
16347 1) acx_cv_type_int8_t=char ;;
16348 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16349 echo "$as_me: error: no 8-bit type" >&2;}
16350 { (exit please report a bug); exit please report a bug; }; }
16351 esac
16352 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16353 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16355 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16356 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16357 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16358 2:*) acx_cv_type_int16_t=int ;;
16359 *:2) acx_cv_type_int16_t=short ;;
16360 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16361 echo "$as_me: error: no 16-bit type" >&2;}
16362 { (exit please report a bug); exit please report a bug; }; }
16363 esac
16364 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16365 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16367 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16368 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16369 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16370 4:*) acx_cv_type_int32_t=int ;;
16371 *:4) acx_cv_type_int32_t=long ;;
16372 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16373 echo "$as_me: error: no 32-bit type" >&2;}
16374 { (exit please report a bug); exit please report a bug; }; }
16375 esac
16376 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16377 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16380 # These tests are here to make the output prettier
16382 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16383 case "$ac_cv_sizeof_long" in
16384 8) acx_cv_type_int64_t=long ;;
16385 esac
16386 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16387 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16388 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16389 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16392 # Now we can use the above types
16394 if test "$ac_cv_type_uintptr_t" != yes; then
16395 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16396 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16397 case $ac_cv_sizeof_void_p in
16398 2) acx_cv_type_intptr_t=int16_t ;;
16399 4) acx_cv_type_intptr_t=int32_t ;;
16400 8) acx_cv_type_intptr_t=int64_t ;;
16401 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16402 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16403 { (exit please report a bug); exit please report a bug; }; }
16404 esac
16405 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16406 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16409 # ----------------- done all checks, emit header -------------
16410 ac_config_commands="$ac_config_commands bfd_stdint.h"
16414 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16415 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16416 if test "${ac_cv_header_time+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h. */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 #include <sys/types.h>
16426 #include <sys/time.h>
16427 #include <time.h>
16430 main ()
16432 if ((struct tm *) 0)
16433 return 0;
16435 return 0;
16437 _ACEOF
16438 rm -f conftest.$ac_objext
16439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16440 (eval $ac_compile) 2>conftest.er1
16441 ac_status=$?
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
16447 { ac_try='test -z "$ac_c_werror_flag"
16448 || test ! -s conftest.err'
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; } &&
16454 { ac_try='test -s conftest.$ac_objext'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_header_time=yes
16461 else
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 ac_cv_header_time=no
16467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16469 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16470 echo "${ECHO_T}$ac_cv_header_time" >&6
16471 if test $ac_cv_header_time = yes; then
16473 cat >>confdefs.h <<\_ACEOF
16474 #define TIME_WITH_SYS_TIME 1
16475 _ACEOF
16484 ac_header_dirent=no
16485 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16486 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16487 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16488 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
16489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 else
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h. */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 #include <sys/types.h>
16499 #include <$ac_hdr>
16502 main ()
16504 if ((DIR *) 0)
16505 return 0;
16507 return 0;
16509 _ACEOF
16510 rm -f conftest.$ac_objext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16512 (eval $ac_compile) 2>conftest.er1
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest.$ac_objext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 eval "$as_ac_Header=yes"
16533 else
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 eval "$as_ac_Header=no"
16539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16544 cat >>confdefs.h <<_ACEOF
16545 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16546 _ACEOF
16548 ac_header_dirent=$ac_hdr; break
16551 done
16552 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16553 if test $ac_header_dirent = dirent.h; then
16554 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16555 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16556 if test "${ac_cv_search_opendir+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559 ac_func_search_save_LIBS=$LIBS
16560 ac_cv_search_opendir=no
16561 cat >conftest.$ac_ext <<_ACEOF
16562 /* confdefs.h. */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16568 /* Override any gcc2 internal prototype to avoid an error. */
16569 #ifdef __cplusplus
16570 extern "C"
16571 #endif
16572 /* We use char because int might match the return type of a gcc2
16573 builtin and then its argument prototype would still apply. */
16574 char opendir ();
16576 main ()
16578 opendir ();
16580 return 0;
16582 _ACEOF
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>conftest.er1
16586 ac_status=$?
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag"
16593 || test ! -s conftest.err'
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; } &&
16599 { ac_try='test -s conftest$ac_exeext'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_cv_search_opendir="none required"
16606 else
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16611 rm -f conftest.err conftest.$ac_objext \
16612 conftest$ac_exeext conftest.$ac_ext
16613 if test "$ac_cv_search_opendir" = no; then
16614 for ac_lib in dir; do
16615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16616 cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h. */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16623 /* Override any gcc2 internal prototype to avoid an error. */
16624 #ifdef __cplusplus
16625 extern "C"
16626 #endif
16627 /* We use char because int might match the return type of a gcc2
16628 builtin and then its argument prototype would still apply. */
16629 char opendir ();
16631 main ()
16633 opendir ();
16635 return 0;
16637 _ACEOF
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640 (eval $ac_link) 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag"
16648 || test ! -s conftest.err'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_cv_search_opendir="-l$ac_lib"
16661 break
16662 else
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16667 rm -f conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16669 done
16671 LIBS=$ac_func_search_save_LIBS
16673 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16674 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16675 if test "$ac_cv_search_opendir" != no; then
16676 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16680 else
16681 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16682 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16683 if test "${ac_cv_search_opendir+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686 ac_func_search_save_LIBS=$LIBS
16687 ac_cv_search_opendir=no
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16695 /* Override any gcc2 internal prototype to avoid an error. */
16696 #ifdef __cplusplus
16697 extern "C"
16698 #endif
16699 /* We use char because int might match the return type of a gcc2
16700 builtin and then its argument prototype would still apply. */
16701 char opendir ();
16703 main ()
16705 opendir ();
16707 return 0;
16709 _ACEOF
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712 (eval $ac_link) 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_search_opendir="none required"
16733 else
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16738 rm -f conftest.err conftest.$ac_objext \
16739 conftest$ac_exeext conftest.$ac_ext
16740 if test "$ac_cv_search_opendir" = no; then
16741 for ac_lib in x; do
16742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16743 cat >conftest.$ac_ext <<_ACEOF
16744 /* confdefs.h. */
16745 _ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16750 /* Override any gcc2 internal prototype to avoid an error. */
16751 #ifdef __cplusplus
16752 extern "C"
16753 #endif
16754 /* We use char because int might match the return type of a gcc2
16755 builtin and then its argument prototype would still apply. */
16756 char opendir ();
16758 main ()
16760 opendir ();
16762 return 0;
16764 _ACEOF
16765 rm -f conftest.$ac_objext conftest$ac_exeext
16766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16767 (eval $ac_link) 2>conftest.er1
16768 ac_status=$?
16769 grep -v '^ *+' conftest.er1 >conftest.err
16770 rm -f conftest.er1
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
16774 { ac_try='test -z "$ac_c_werror_flag"
16775 || test ! -s conftest.err'
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; } &&
16781 { ac_try='test -s conftest$ac_exeext'
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 ac_cv_search_opendir="-l$ac_lib"
16788 break
16789 else
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16794 rm -f conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16796 done
16798 LIBS=$ac_func_search_save_LIBS
16800 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16801 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16802 if test "$ac_cv_search_opendir" != no; then
16803 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16809 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16810 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16811 if test "${gcc_cv_header_string+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16814 cat >conftest.$ac_ext <<_ACEOF
16815 /* confdefs.h. */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16820 #include <string.h>
16821 #include <strings.h>
16823 main ()
16827 return 0;
16829 _ACEOF
16830 rm -f conftest.$ac_objext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try='test -z "$ac_c_werror_flag"
16840 || test ! -s conftest.err'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 gcc_cv_header_string=yes
16853 else
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16857 gcc_cv_header_string=no
16859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16861 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16862 echo "${ECHO_T}$gcc_cv_header_string" >&6
16863 if test $gcc_cv_header_string = yes; then
16865 cat >>confdefs.h <<\_ACEOF
16866 #define STRING_WITH_STRINGS 1
16867 _ACEOF
16878 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16883 if eval "test \"\${$as_ac_var+set}\" = set"; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886 cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h. */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894 #define $ac_func innocuous_$ac_func
16896 /* System header to define __stub macros and hopefully few prototypes,
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16901 #ifdef __STDC__
16902 # include <limits.h>
16903 #else
16904 # include <assert.h>
16905 #endif
16907 #undef $ac_func
16909 /* Override any gcc2 internal prototype to avoid an error. */
16910 #ifdef __cplusplus
16911 extern "C"
16913 #endif
16914 /* We use char because int might match the return type of a gcc2
16915 builtin and then its argument prototype would still apply. */
16916 char $ac_func ();
16917 /* The GNU C library defines this for functions which it implements
16918 to always fail with ENOSYS. Some functions are actually named
16919 something starting with __ and the normal name is an alias. */
16920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16921 choke me
16922 #else
16923 char (*f) () = $ac_func;
16924 #endif
16925 #ifdef __cplusplus
16927 #endif
16930 main ()
16932 return f != $ac_func;
16934 return 0;
16936 _ACEOF
16937 rm -f conftest.$ac_objext conftest$ac_exeext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939 (eval $ac_link) 2>conftest.er1
16940 ac_status=$?
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 eval "$as_ac_var=yes"
16960 else
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 eval "$as_ac_var=no"
16966 rm -f conftest.err conftest.$ac_objext \
16967 conftest$ac_exeext conftest.$ac_ext
16969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16971 if test `eval echo '${'$as_ac_var'}'` = yes; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16974 _ACEOF
16977 done
16980 for ac_func in strtoull
16982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16983 echo "$as_me:$LINENO: checking for $ac_func" >&5
16984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16985 if eval "test \"\${$as_ac_var+set}\" = set"; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988 cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h. */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16996 #define $ac_func innocuous_$ac_func
16998 /* System header to define __stub macros and hopefully few prototypes,
16999 which can conflict with char $ac_func (); below.
17000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17001 <limits.h> exists even on freestanding compilers. */
17003 #ifdef __STDC__
17004 # include <limits.h>
17005 #else
17006 # include <assert.h>
17007 #endif
17009 #undef $ac_func
17011 /* Override any gcc2 internal prototype to avoid an error. */
17012 #ifdef __cplusplus
17013 extern "C"
17015 #endif
17016 /* We use char because int might match the return type of a gcc2
17017 builtin and then its argument prototype would still apply. */
17018 char $ac_func ();
17019 /* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17023 choke me
17024 #else
17025 char (*f) () = $ac_func;
17026 #endif
17027 #ifdef __cplusplus
17029 #endif
17032 main ()
17034 return f != $ac_func;
17036 return 0;
17038 _ACEOF
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041 (eval $ac_link) 2>conftest.er1
17042 ac_status=$?
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag"
17049 || test ! -s conftest.err'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest$ac_exeext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 eval "$as_ac_var=yes"
17062 else
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 eval "$as_ac_var=no"
17068 rm -f conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
17071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17073 if test `eval echo '${'$as_ac_var'}'` = yes; then
17074 cat >>confdefs.h <<_ACEOF
17075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17076 _ACEOF
17079 done
17082 echo "$as_me:$LINENO: checking whether basename is declared" >&5
17083 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17084 if test "${ac_cv_have_decl_basename+set}" = set; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086 else
17087 cat >conftest.$ac_ext <<_ACEOF
17088 /* confdefs.h. */
17089 _ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093 $ac_includes_default
17095 main ()
17097 #ifndef basename
17098 char *p = (char *) basename;
17099 #endif
17102 return 0;
17104 _ACEOF
17105 rm -f conftest.$ac_objext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>conftest.er1
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -z "$ac_c_werror_flag"
17115 || test ! -s conftest.err'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 ac_cv_have_decl_basename=yes
17128 else
17129 echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17132 ac_cv_have_decl_basename=no
17134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17136 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17137 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17138 if test $ac_cv_have_decl_basename = yes; then
17140 cat >>confdefs.h <<_ACEOF
17141 #define HAVE_DECL_BASENAME 1
17142 _ACEOF
17145 else
17146 cat >>confdefs.h <<_ACEOF
17147 #define HAVE_DECL_BASENAME 0
17148 _ACEOF
17154 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17155 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17156 if test "${ac_cv_have_decl_ftello+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159 cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h. */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17165 $ac_includes_default
17167 main ()
17169 #ifndef ftello
17170 char *p = (char *) ftello;
17171 #endif
17174 return 0;
17176 _ACEOF
17177 rm -f conftest.$ac_objext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17179 (eval $ac_compile) 2>conftest.er1
17180 ac_status=$?
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
17186 { ac_try='test -z "$ac_c_werror_flag"
17187 || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest.$ac_objext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_cv_have_decl_ftello=yes
17200 else
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ac_cv_have_decl_ftello=no
17206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17208 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17209 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17210 if test $ac_cv_have_decl_ftello = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 #define HAVE_DECL_FTELLO 1
17214 _ACEOF
17217 else
17218 cat >>confdefs.h <<_ACEOF
17219 #define HAVE_DECL_FTELLO 0
17220 _ACEOF
17226 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17227 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17228 if test "${ac_cv_have_decl_ftello64+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 else
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h. */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 $ac_includes_default
17239 main ()
17241 #ifndef ftello64
17242 char *p = (char *) ftello64;
17243 #endif
17246 return 0;
17248 _ACEOF
17249 rm -f conftest.$ac_objext
17250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17251 (eval $ac_compile) 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_c_werror_flag"
17259 || test ! -s conftest.err'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_have_decl_ftello64=yes
17272 else
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 ac_cv_have_decl_ftello64=no
17278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17280 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17281 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17282 if test $ac_cv_have_decl_ftello64 = yes; then
17284 cat >>confdefs.h <<_ACEOF
17285 #define HAVE_DECL_FTELLO64 1
17286 _ACEOF
17289 else
17290 cat >>confdefs.h <<_ACEOF
17291 #define HAVE_DECL_FTELLO64 0
17292 _ACEOF
17298 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17299 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17300 if test "${ac_cv_have_decl_fseeko+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 else
17303 cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h. */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17309 $ac_includes_default
17311 main ()
17313 #ifndef fseeko
17314 char *p = (char *) fseeko;
17315 #endif
17318 return 0;
17320 _ACEOF
17321 rm -f conftest.$ac_objext
17322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17323 (eval $ac_compile) 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try='test -s conftest.$ac_objext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_cv_have_decl_fseeko=yes
17344 else
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 ac_cv_have_decl_fseeko=no
17350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17352 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
17353 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
17354 if test $ac_cv_have_decl_fseeko = yes; then
17356 cat >>confdefs.h <<_ACEOF
17357 #define HAVE_DECL_FSEEKO 1
17358 _ACEOF
17361 else
17362 cat >>confdefs.h <<_ACEOF
17363 #define HAVE_DECL_FSEEKO 0
17364 _ACEOF
17370 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
17371 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
17372 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375 cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h. */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 $ac_includes_default
17383 main ()
17385 #ifndef fseeko64
17386 char *p = (char *) fseeko64;
17387 #endif
17390 return 0;
17392 _ACEOF
17393 rm -f conftest.$ac_objext
17394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17395 (eval $ac_compile) 2>conftest.er1
17396 ac_status=$?
17397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } &&
17402 { ac_try='test -z "$ac_c_werror_flag"
17403 || test ! -s conftest.err'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest.$ac_objext'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_cv_have_decl_fseeko64=yes
17416 else
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17420 ac_cv_have_decl_fseeko64=no
17422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17424 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
17425 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
17426 if test $ac_cv_have_decl_fseeko64 = yes; then
17428 cat >>confdefs.h <<_ACEOF
17429 #define HAVE_DECL_FSEEKO64 1
17430 _ACEOF
17433 else
17434 cat >>confdefs.h <<_ACEOF
17435 #define HAVE_DECL_FSEEKO64 0
17436 _ACEOF
17444 case "${host}" in
17445 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
17447 cat >>confdefs.h <<\_ACEOF
17448 #define USE_BINARY_FOPEN 1
17449 _ACEOF
17451 esac
17453 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
17454 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
17455 if test "${ac_cv_have_decl_ffs+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 else
17458 cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h. */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 $ac_includes_default
17466 main ()
17468 #ifndef ffs
17469 char *p = (char *) ffs;
17470 #endif
17473 return 0;
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478 (eval $ac_compile) 2>conftest.er1
17479 ac_status=$?
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -z "$ac_c_werror_flag"
17486 || test ! -s conftest.err'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; } &&
17492 { ac_try='test -s conftest.$ac_objext'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 ac_cv_have_decl_ffs=yes
17499 else
17500 echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17503 ac_cv_have_decl_ffs=no
17505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17507 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
17508 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
17509 if test $ac_cv_have_decl_ffs = yes; then
17511 cat >>confdefs.h <<_ACEOF
17512 #define HAVE_DECL_FFS 1
17513 _ACEOF
17516 else
17517 cat >>confdefs.h <<_ACEOF
17518 #define HAVE_DECL_FFS 0
17519 _ACEOF
17525 echo "$as_me:$LINENO: checking whether free is declared" >&5
17526 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
17527 if test "${ac_cv_have_decl_free+set}" = set; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 else
17530 cat >conftest.$ac_ext <<_ACEOF
17531 /* confdefs.h. */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 $ac_includes_default
17538 main ()
17540 #ifndef free
17541 char *p = (char *) free;
17542 #endif
17545 return 0;
17547 _ACEOF
17548 rm -f conftest.$ac_objext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17550 (eval $ac_compile) 2>conftest.er1
17551 ac_status=$?
17552 grep -v '^ *+' conftest.er1 >conftest.err
17553 rm -f conftest.er1
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag"
17558 || test ! -s conftest.err'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; } &&
17564 { ac_try='test -s conftest.$ac_objext'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 ac_cv_have_decl_free=yes
17571 else
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 ac_cv_have_decl_free=no
17577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17579 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
17580 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
17581 if test $ac_cv_have_decl_free = yes; then
17583 cat >>confdefs.h <<_ACEOF
17584 #define HAVE_DECL_FREE 1
17585 _ACEOF
17588 else
17589 cat >>confdefs.h <<_ACEOF
17590 #define HAVE_DECL_FREE 0
17591 _ACEOF
17597 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
17598 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
17599 if test "${ac_cv_have_decl_getenv+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602 cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h. */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17608 $ac_includes_default
17610 main ()
17612 #ifndef getenv
17613 char *p = (char *) getenv;
17614 #endif
17617 return 0;
17619 _ACEOF
17620 rm -f conftest.$ac_objext
17621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17622 (eval $ac_compile) 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
17629 { ac_try='test -z "$ac_c_werror_flag"
17630 || test ! -s conftest.err'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest.$ac_objext'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; }; then
17642 ac_cv_have_decl_getenv=yes
17643 else
17644 echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17647 ac_cv_have_decl_getenv=no
17649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17651 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
17652 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
17653 if test $ac_cv_have_decl_getenv = yes; then
17655 cat >>confdefs.h <<_ACEOF
17656 #define HAVE_DECL_GETENV 1
17657 _ACEOF
17660 else
17661 cat >>confdefs.h <<_ACEOF
17662 #define HAVE_DECL_GETENV 0
17663 _ACEOF
17669 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
17670 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
17671 if test "${ac_cv_have_decl_malloc+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 else
17674 cat >conftest.$ac_ext <<_ACEOF
17675 /* confdefs.h. */
17676 _ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h. */
17680 $ac_includes_default
17682 main ()
17684 #ifndef malloc
17685 char *p = (char *) malloc;
17686 #endif
17689 return 0;
17691 _ACEOF
17692 rm -f conftest.$ac_objext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17694 (eval $ac_compile) 2>conftest.er1
17695 ac_status=$?
17696 grep -v '^ *+' conftest.er1 >conftest.err
17697 rm -f conftest.er1
17698 cat conftest.err >&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } &&
17701 { ac_try='test -z "$ac_c_werror_flag"
17702 || test ! -s conftest.err'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; } &&
17708 { ac_try='test -s conftest.$ac_objext'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
17714 ac_cv_have_decl_malloc=yes
17715 else
17716 echo "$as_me: failed program was:" >&5
17717 sed 's/^/| /' conftest.$ac_ext >&5
17719 ac_cv_have_decl_malloc=no
17721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17723 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17724 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17725 if test $ac_cv_have_decl_malloc = yes; then
17727 cat >>confdefs.h <<_ACEOF
17728 #define HAVE_DECL_MALLOC 1
17729 _ACEOF
17732 else
17733 cat >>confdefs.h <<_ACEOF
17734 #define HAVE_DECL_MALLOC 0
17735 _ACEOF
17741 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17742 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17743 if test "${ac_cv_have_decl_realloc+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17745 else
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 $ac_includes_default
17754 main ()
17756 #ifndef realloc
17757 char *p = (char *) realloc;
17758 #endif
17761 return 0;
17763 _ACEOF
17764 rm -f conftest.$ac_objext
17765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17766 (eval $ac_compile) 2>conftest.er1
17767 ac_status=$?
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_cv_have_decl_realloc=yes
17787 else
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 ac_cv_have_decl_realloc=no
17793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17795 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17796 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17797 if test $ac_cv_have_decl_realloc = yes; then
17799 cat >>confdefs.h <<_ACEOF
17800 #define HAVE_DECL_REALLOC 1
17801 _ACEOF
17804 else
17805 cat >>confdefs.h <<_ACEOF
17806 #define HAVE_DECL_REALLOC 0
17807 _ACEOF
17813 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17814 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17815 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17816 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 else
17818 cat >conftest.$ac_ext <<_ACEOF
17819 /* confdefs.h. */
17820 _ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17824 $ac_includes_default
17826 main ()
17828 #ifndef stpcpy
17829 char *p = (char *) stpcpy;
17830 #endif
17833 return 0;
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17838 (eval $ac_compile) 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag"
17846 || test ! -s conftest.err'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try='test -s conftest.$ac_objext'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_cv_have_decl_stpcpy=yes
17859 else
17860 echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17863 ac_cv_have_decl_stpcpy=no
17865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17867 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17868 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17869 if test $ac_cv_have_decl_stpcpy = yes; then
17871 cat >>confdefs.h <<_ACEOF
17872 #define HAVE_DECL_STPCPY 1
17873 _ACEOF
17876 else
17877 cat >>confdefs.h <<_ACEOF
17878 #define HAVE_DECL_STPCPY 0
17879 _ACEOF
17885 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17886 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17887 if test "${ac_cv_have_decl_strstr+set}" = set; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 else
17890 cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h. */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17896 $ac_includes_default
17898 main ()
17900 #ifndef strstr
17901 char *p = (char *) strstr;
17902 #endif
17905 return 0;
17907 _ACEOF
17908 rm -f conftest.$ac_objext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17910 (eval $ac_compile) 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 ac_cv_have_decl_strstr=yes
17931 else
17932 echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17935 ac_cv_have_decl_strstr=no
17937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17939 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17940 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17941 if test $ac_cv_have_decl_strstr = yes; then
17943 cat >>confdefs.h <<_ACEOF
17944 #define HAVE_DECL_STRSTR 1
17945 _ACEOF
17948 else
17949 cat >>confdefs.h <<_ACEOF
17950 #define HAVE_DECL_STRSTR 0
17951 _ACEOF
17957 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17958 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17959 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962 cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h. */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 $ac_includes_default
17970 main ()
17972 #ifndef snprintf
17973 char *p = (char *) snprintf;
17974 #endif
17977 return 0;
17979 _ACEOF
17980 rm -f conftest.$ac_objext
17981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17982 (eval $ac_compile) 2>conftest.er1
17983 ac_status=$?
17984 grep -v '^ *+' conftest.er1 >conftest.err
17985 rm -f conftest.er1
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try='test -z "$ac_c_werror_flag"
17990 || test ! -s conftest.err'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; } &&
17996 { ac_try='test -s conftest.$ac_objext'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; }; then
18002 ac_cv_have_decl_snprintf=yes
18003 else
18004 echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18007 ac_cv_have_decl_snprintf=no
18009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18011 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18012 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18013 if test $ac_cv_have_decl_snprintf = yes; then
18015 cat >>confdefs.h <<_ACEOF
18016 #define HAVE_DECL_SNPRINTF 1
18017 _ACEOF
18020 else
18021 cat >>confdefs.h <<_ACEOF
18022 #define HAVE_DECL_SNPRINTF 0
18023 _ACEOF
18029 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18030 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18031 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 else
18034 cat >conftest.$ac_ext <<_ACEOF
18035 /* confdefs.h. */
18036 _ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18040 $ac_includes_default
18042 main ()
18044 #ifndef vsnprintf
18045 char *p = (char *) vsnprintf;
18046 #endif
18049 return 0;
18051 _ACEOF
18052 rm -f conftest.$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054 (eval $ac_compile) 2>conftest.er1
18055 ac_status=$?
18056 grep -v '^ *+' conftest.er1 >conftest.err
18057 rm -f conftest.er1
18058 cat conftest.err >&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
18061 { ac_try='test -z "$ac_c_werror_flag"
18062 || test ! -s conftest.err'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try='test -s conftest.$ac_objext'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 ac_cv_have_decl_vsnprintf=yes
18075 else
18076 echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18079 ac_cv_have_decl_vsnprintf=no
18081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18083 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18084 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18085 if test $ac_cv_have_decl_vsnprintf = yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_DECL_VSNPRINTF 1
18089 _ACEOF
18092 else
18093 cat >>confdefs.h <<_ACEOF
18094 #define HAVE_DECL_VSNPRINTF 0
18095 _ACEOF
18102 # Link in zlib if we can. This allows us to read compressed debug sections.
18103 # This is used only by compress.c.
18104 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18105 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18106 if test "${ac_cv_search_zlibVersion+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109 ac_func_search_save_LIBS=$LIBS
18110 ac_cv_search_zlibVersion=no
18111 cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h. */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18118 /* Override any gcc2 internal prototype to avoid an error. */
18119 #ifdef __cplusplus
18120 extern "C"
18121 #endif
18122 /* We use char because int might match the return type of a gcc2
18123 builtin and then its argument prototype would still apply. */
18124 char zlibVersion ();
18126 main ()
18128 zlibVersion ();
18130 return 0;
18132 _ACEOF
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18135 (eval $ac_link) 2>conftest.er1
18136 ac_status=$?
18137 grep -v '^ *+' conftest.er1 >conftest.err
18138 rm -f conftest.er1
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } &&
18142 { ac_try='test -z "$ac_c_werror_flag"
18143 || test ! -s conftest.err'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; } &&
18149 { ac_try='test -s conftest$ac_exeext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 ac_cv_search_zlibVersion="none required"
18156 else
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18161 rm -f conftest.err conftest.$ac_objext \
18162 conftest$ac_exeext conftest.$ac_ext
18163 if test "$ac_cv_search_zlibVersion" = no; then
18164 for ac_lib in z; do
18165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h. */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18173 /* Override any gcc2 internal prototype to avoid an error. */
18174 #ifdef __cplusplus
18175 extern "C"
18176 #endif
18177 /* We use char because int might match the return type of a gcc2
18178 builtin and then its argument prototype would still apply. */
18179 char zlibVersion ();
18181 main ()
18183 zlibVersion ();
18185 return 0;
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_search_zlibVersion="-l$ac_lib"
18211 break
18212 else
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18217 rm -f conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18219 done
18221 LIBS=$ac_func_search_save_LIBS
18223 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18224 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18225 if test "$ac_cv_search_zlibVersion" != no; then
18226 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18228 for ac_header in zlib.h
18230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18232 echo "$as_me:$LINENO: checking for $ac_header" >&5
18233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18239 else
18240 # Is the header compilable?
18241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18243 cat >conftest.$ac_ext <<_ACEOF
18244 /* confdefs.h. */
18245 _ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18249 $ac_includes_default
18250 #include <$ac_header>
18251 _ACEOF
18252 rm -f conftest.$ac_objext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18254 (eval $ac_compile) 2>conftest.er1
18255 ac_status=$?
18256 grep -v '^ *+' conftest.er1 >conftest.err
18257 rm -f conftest.er1
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
18261 { ac_try='test -z "$ac_c_werror_flag"
18262 || test ! -s conftest.err'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest.$ac_objext'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18274 ac_header_compiler=yes
18275 else
18276 echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18279 ac_header_compiler=no
18281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18283 echo "${ECHO_T}$ac_header_compiler" >&6
18285 # Is the header present?
18286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18288 cat >conftest.$ac_ext <<_ACEOF
18289 /* confdefs.h. */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 #include <$ac_header>
18295 _ACEOF
18296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18298 ac_status=$?
18299 grep -v '^ *+' conftest.er1 >conftest.err
18300 rm -f conftest.er1
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } >/dev/null; then
18304 if test -s conftest.err; then
18305 ac_cpp_err=$ac_c_preproc_warn_flag
18306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18307 else
18308 ac_cpp_err=
18310 else
18311 ac_cpp_err=yes
18313 if test -z "$ac_cpp_err"; then
18314 ac_header_preproc=yes
18315 else
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 ac_header_preproc=no
18321 rm -f conftest.err conftest.$ac_ext
18322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18323 echo "${ECHO_T}$ac_header_preproc" >&6
18325 # So? What about this header?
18326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18327 yes:no: )
18328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18332 ac_header_preproc=yes
18334 no:yes:* )
18335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18348 cat <<\_ASBOX
18349 ## ------------------------------------------ ##
18350 ## Report this to the AC_PACKAGE_NAME lists. ##
18351 ## ------------------------------------------ ##
18352 _ASBOX
18354 sed "s/^/$as_me: WARNING: /" >&2
18356 esac
18357 echo "$as_me:$LINENO: checking for $ac_header" >&5
18358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362 eval "$as_ac_Header=\$ac_header_preproc"
18364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18369 cat >>confdefs.h <<_ACEOF
18370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18371 _ACEOF
18375 done
18380 # If we are configured native, pick a core file support file.
18381 COREFILE=
18382 COREFLAG=
18383 TRAD_HEADER=
18384 if test "${target}" = "${host}"; then
18385 case "${host}" in
18386 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
18387 COREFILE=''
18389 alpha*-*-linux-*)
18390 COREFILE=trad-core.lo
18391 TRAD_HEADER='"hosts/alphalinux.h"'
18393 alpha*-*-netbsd* | alpha*-*-openbsd*)
18394 COREFILE=netbsd-core.lo
18396 alpha*-*-*) COREFILE=osf-core.lo ;;
18397 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
18398 COREFILE='' ;;
18399 arm-*-netbsd* | arm-*-openbsd*)
18400 COREFILE=netbsd-core.lo
18402 arm-*-riscix) COREFILE=trad-core.lo ;;
18403 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
18404 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
18405 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
18406 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
18407 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
18408 hppa*-*-netbsd* | hppa*-*-openbsd*)
18409 COREFILE=netbsd-core.lo
18412 i370-*-*)
18413 COREFILE=trad-core.lo
18414 TRAD_HEADER='"hosts/i370linux.h"'
18417 i[3-7]86-sequent-bsd*)
18418 COREFILE=trad-core.lo
18419 TRAD_HEADER='"hosts/symmetry.h"'
18421 i[3-7]86-sequent-sysv4*) ;;
18422 i[3-7]86-sequent-sysv*)
18423 COREFILE=trad-core.lo
18424 TRAD_HEADER='"hosts/symmetry.h"'
18426 i[3-7]86-*-bsdi)
18427 COREFILE=
18429 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*)
18430 COREFILE=trad-core.lo
18431 TRAD_HEADER='"hosts/i386bsd.h"'
18433 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
18434 COREFILE=''
18435 TRAD_HEADER='"hosts/i386bsd.h"'
18437 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
18438 COREFILE=netbsd-core.lo
18440 i[3-7]86-esix-sysv3*)
18441 COREFILE=trad-core.lo
18442 TRAD_HEADER='"hosts/esix.h"'
18444 i[3-7]86-*-sco3.2v5*)
18445 COREFILE=sco5-core.lo
18447 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
18448 COREFILE=trad-core.lo
18449 TRAD_HEADER='"hosts/i386sco.h"'
18451 i[3-7]86-*-mach3*)
18452 COREFILE=trad-core.lo
18453 TRAD_HEADER='"hosts/i386mach3.h"'
18455 i[3-7]86-*-linux-*)
18456 COREFILE=trad-core.lo
18457 TRAD_HEADER='"hosts/i386linux.h"'
18459 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
18460 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
18461 i860-*-mach3* | i860-*-osf1*)
18462 COREFILE=trad-core.lo
18463 TRAD_HEADER='"hosts/i860mach3.h"'
18465 mips-*-netbsd* | mips*-*-openbsd*)
18466 COREFILE=netbsd-core.lo
18468 mips-dec-*)
18469 COREFILE=trad-core.lo
18470 TRAD_HEADER='"hosts/decstation.h"'
18472 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
18473 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
18474 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
18475 mips-*-sysv4*) ;;
18476 mips-*-sysv* | mips-*-riscos*)
18477 COREFILE=trad-core.lo
18478 TRAD_HEADER='"hosts/riscos.h"'
18480 mips-sony-bsd*)
18481 COREFILE=trad-core.lo
18482 TRAD_HEADER='"hosts/news-mips.h"'
18484 m68*-bull*-sysv*)
18485 COREFILE=trad-core.lo
18486 TRAD_HEADER='"hosts/dpx2.h"'
18488 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
18489 m68*-hp-bsd*)
18490 COREFILE=trad-core.lo
18491 TRAD_HEADER='"hosts/hp300bsd.h"'
18493 m68*-*-linux-*)
18494 COREFILE=trad-core.lo
18495 TRAD_HEADER='"hosts/m68klinux.h"'
18497 m68*-motorola-sysv*)
18498 COREFILE=trad-core.lo
18499 TRAD_HEADER='"hosts/delta68.h"'
18501 m68*-sony-*)
18502 COREFILE=trad-core.lo
18503 TRAD_HEADER='"hosts/news.h"'
18505 m68*-*-netbsd* | m68*-*-openbsd*)
18506 COREFILE=netbsd-core.lo
18508 m68*-apple-aux*)
18509 COREFILE=trad-core.lo
18510 TRAD_HEADER='"hosts/m68kaux.h"'
18512 m88*-*-sysv4*)
18514 m88*-motorola-sysv*)
18515 COREFILE=ptrace-core.lo
18517 m88*-*-mach3*)
18518 COREFILE=trad-core.lo
18519 TRAD_HEADER='"hosts/m88kmach3.h"'
18521 m88*-*-openbsd*)
18522 COREFILE=netbsd-core.lo
18524 ns32k-pc532-mach)
18525 COREFILE=trad-core.lo
18526 TRAD_HEADER='"hosts/pc532mach.h"'
18528 ns32k-*-netbsd* | ns32k-*-openbsd*)
18529 COREFILE=netbsd-core.lo
18531 rs6000-*-lynx*)
18532 COREFILE=lynx-core.lo
18534 rs6000-*-aix5.* | powerpc-*-aix5.*)
18535 COREFILE=rs6000-core.lo
18536 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
18538 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
18539 COREFILE=rs6000-core.lo
18540 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
18541 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
18542 # have c_impl as a member of struct core_dumpx
18543 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
18544 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
18545 cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h. */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 #include <core.h>
18553 main ()
18555 struct core_dumpx c; c.c_impl = 0;
18557 return 0;
18559 _ACEOF
18560 rm -f conftest.$ac_objext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562 (eval $ac_compile) 2>conftest.er1
18563 ac_status=$?
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -z "$ac_c_werror_flag"
18570 || test ! -s conftest.err'
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest.$ac_objext'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18583 cat >>confdefs.h <<\_ACEOF
18584 #define HAVE_ST_C_IMPL 1
18585 _ACEOF
18587 echo "$as_me:$LINENO: result: yes" >&5
18588 echo "${ECHO_T}yes" >&6
18589 else
18590 echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 echo "$as_me:$LINENO: result: no" >&5
18594 echo "${ECHO_T}no" >&6
18596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18598 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
18599 rs6000-*-*) COREFILE=rs6000-core.lo ;;
18600 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
18601 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
18602 powerpc-*-beos*) ;;
18603 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
18604 COREFILE='' ;;
18605 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
18606 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
18607 s390*-*-*) COREFILE=trad-core.lo ;;
18608 sh*-*-netbsd* | sh*-*-openbsd*)
18609 COREFILE=netbsd-core.lo
18611 sparc-*-netbsd* | sparc*-*-openbsd*)
18612 COREFILE=netbsd-core.lo
18614 tahoe-*-*)
18615 COREFILE=trad-core.lo
18616 TRAD_HEADER='"hosts/tahoe.h"'
18618 vax-*-netbsd* | vax-*-openbsd*)
18619 COREFILE=netbsd-core.lo
18621 vax-*-ultrix2*)
18622 COREFILE=trad-core.lo
18623 TRAD_HEADER='"hosts/vaxult2.h"'
18625 vax-*-ultrix*)
18626 COREFILE=trad-core.lo
18627 TRAD_HEADER='"hosts/vaxult2.h"'
18629 vax-*-linux-*)
18630 COREFILE=trad-core.lo
18631 TRAD_HEADER='"hosts/vaxlinux.h"'
18633 vax-*-*)
18634 COREFILE=trad-core.lo
18635 TRAD_HEADER='"hosts/vaxbsd.h"'
18637 x86_64-*-netbsd* | x86_64-*-openbsd*)
18638 COREFILE=netbsd-core.lo
18640 esac
18642 case "$COREFILE" in
18643 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
18644 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
18645 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
18646 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
18647 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
18648 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
18649 osf-core.lo) COREFLAG=-DOSF_CORE ;;
18650 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
18651 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
18652 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
18653 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
18654 esac
18656 # ELF corefile support has several flavors, but all of
18657 # them use something called <sys/procfs.h>
18659 for ac_header in sys/procfs.h
18661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18663 echo "$as_me:$LINENO: checking for $ac_header" >&5
18664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18670 else
18671 # Is the header compilable?
18672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18674 cat >conftest.$ac_ext <<_ACEOF
18675 /* confdefs.h. */
18676 _ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 $ac_includes_default
18681 #include <$ac_header>
18682 _ACEOF
18683 rm -f conftest.$ac_objext
18684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18685 (eval $ac_compile) 2>conftest.er1
18686 ac_status=$?
18687 grep -v '^ *+' conftest.er1 >conftest.err
18688 rm -f conftest.er1
18689 cat conftest.err >&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } &&
18692 { ac_try='test -z "$ac_c_werror_flag"
18693 || test ! -s conftest.err'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } &&
18699 { ac_try='test -s conftest.$ac_objext'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 ac_header_compiler=yes
18706 else
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 ac_header_compiler=no
18712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18714 echo "${ECHO_T}$ac_header_compiler" >&6
18716 # Is the header present?
18717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 #include <$ac_header>
18726 _ACEOF
18727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18729 ac_status=$?
18730 grep -v '^ *+' conftest.er1 >conftest.err
18731 rm -f conftest.er1
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } >/dev/null; then
18735 if test -s conftest.err; then
18736 ac_cpp_err=$ac_c_preproc_warn_flag
18737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18738 else
18739 ac_cpp_err=
18741 else
18742 ac_cpp_err=yes
18744 if test -z "$ac_cpp_err"; then
18745 ac_header_preproc=yes
18746 else
18747 echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18750 ac_header_preproc=no
18752 rm -f conftest.err conftest.$ac_ext
18753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18754 echo "${ECHO_T}$ac_header_preproc" >&6
18756 # So? What about this header?
18757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18758 yes:no: )
18759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18763 ac_header_preproc=yes
18765 no:yes:* )
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18779 cat <<\_ASBOX
18780 ## ------------------------------------------ ##
18781 ## Report this to the AC_PACKAGE_NAME lists. ##
18782 ## ------------------------------------------ ##
18783 _ASBOX
18785 sed "s/^/$as_me: WARNING: /" >&2
18787 esac
18788 echo "$as_me:$LINENO: checking for $ac_header" >&5
18789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793 eval "$as_ac_Header=\$ac_header_preproc"
18795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18800 cat >>confdefs.h <<_ACEOF
18801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18802 _ACEOF
18806 done
18808 if test "$ac_cv_header_sys_procfs_h" = yes; then
18809 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
18810 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
18811 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 else
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h. */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18821 #define _SYSCALL32
18822 #include <sys/procfs.h>
18824 main ()
18826 prstatus_t avar
18828 return 0;
18830 _ACEOF
18831 rm -f conftest.$ac_objext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18833 (eval $ac_compile) 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag"
18841 || test ! -s conftest.err'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest.$ac_objext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 bfd_cv_have_sys_procfs_type_prstatus_t=yes
18854 else
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18858 bfd_cv_have_sys_procfs_type_prstatus_t=no
18861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18864 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
18866 cat >>confdefs.h <<\_ACEOF
18867 #define HAVE_PRSTATUS_T 1
18868 _ACEOF
18871 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
18872 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
18874 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
18875 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
18876 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
18878 else
18879 cat >conftest.$ac_ext <<_ACEOF
18880 /* confdefs.h. */
18881 _ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h. */
18886 #define _SYSCALL32
18887 #include <sys/procfs.h>
18889 main ()
18891 prstatus32_t avar
18893 return 0;
18895 _ACEOF
18896 rm -f conftest.$ac_objext
18897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18898 (eval $ac_compile) 2>conftest.er1
18899 ac_status=$?
18900 grep -v '^ *+' conftest.er1 >conftest.err
18901 rm -f conftest.er1
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try='test -z "$ac_c_werror_flag"
18906 || test ! -s conftest.err'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } &&
18912 { ac_try='test -s conftest.$ac_objext'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
18918 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
18919 else
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18923 bfd_cv_have_sys_procfs_type_prstatus32_t=no
18926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18929 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
18931 cat >>confdefs.h <<\_ACEOF
18932 #define HAVE_PRSTATUS32_T 1
18933 _ACEOF
18936 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
18937 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
18939 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
18940 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18941 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944 cat >conftest.$ac_ext <<_ACEOF
18945 /* confdefs.h. */
18946 _ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18951 #define _SYSCALL32
18952 #include <sys/procfs.h>
18954 main ()
18956 prstatus_t avar; void* aref = (void*) &avar.pr_who
18958 return 0;
18960 _ACEOF
18961 rm -f conftest.$ac_objext
18962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18963 (eval $ac_compile) 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag"
18971 || test ! -s conftest.err'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest.$ac_objext'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18984 else
18985 echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18988 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18994 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
18996 cat >>confdefs.h <<\_ACEOF
18997 #define HAVE_PRSTATUS_T_PR_WHO 1
18998 _ACEOF
19001 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19002 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
19004 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19005 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19006 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009 cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h. */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19016 #define _SYSCALL32
19017 #include <sys/procfs.h>
19019 main ()
19021 prstatus32_t avar; void* aref = (void*) &avar.pr_who
19023 return 0;
19025 _ACEOF
19026 rm -f conftest.$ac_objext
19027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19028 (eval $ac_compile) 2>conftest.er1
19029 ac_status=$?
19030 grep -v '^ *+' conftest.er1 >conftest.err
19031 rm -f conftest.er1
19032 cat conftest.err >&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } &&
19035 { ac_try='test -z "$ac_c_werror_flag"
19036 || test ! -s conftest.err'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; } &&
19042 { ac_try='test -s conftest.$ac_objext'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19049 else
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19053 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19059 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
19061 cat >>confdefs.h <<\_ACEOF
19062 #define HAVE_PRSTATUS32_T_PR_WHO 1
19063 _ACEOF
19066 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19067 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
19069 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19070 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19071 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074 cat >conftest.$ac_ext <<_ACEOF
19075 /* confdefs.h. */
19076 _ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19081 #define _SYSCALL32
19082 #include <sys/procfs.h>
19084 main ()
19086 pstatus_t avar
19088 return 0;
19090 _ACEOF
19091 rm -f conftest.$ac_objext
19092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19093 (eval $ac_compile) 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -z "$ac_c_werror_flag"
19101 || test ! -s conftest.err'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; } &&
19107 { ac_try='test -s conftest.$ac_objext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19114 else
19115 echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19118 bfd_cv_have_sys_procfs_type_pstatus_t=no
19121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19124 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19126 cat >>confdefs.h <<\_ACEOF
19127 #define HAVE_PSTATUS_T 1
19128 _ACEOF
19131 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19132 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19134 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19135 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19136 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h. */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19146 #define _SYSCALL32
19147 #include <sys/procfs.h>
19149 main ()
19151 pxstatus_t avar
19153 return 0;
19155 _ACEOF
19156 rm -f conftest.$ac_objext
19157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19158 (eval $ac_compile) 2>conftest.er1
19159 ac_status=$?
19160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
19165 { ac_try='test -z "$ac_c_werror_flag"
19166 || test ! -s conftest.err'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest.$ac_objext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19179 else
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19183 bfd_cv_have_sys_procfs_type_pxstatus_t=no
19186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19189 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
19191 cat >>confdefs.h <<\_ACEOF
19192 #define HAVE_PXSTATUS_T 1
19193 _ACEOF
19196 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19197 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
19199 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19200 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19201 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19203 else
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h. */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19211 #define _SYSCALL32
19212 #include <sys/procfs.h>
19214 main ()
19216 pstatus32_t avar
19218 return 0;
19220 _ACEOF
19221 rm -f conftest.$ac_objext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223 (eval $ac_compile) 2>conftest.er1
19224 ac_status=$?
19225 grep -v '^ *+' conftest.er1 >conftest.err
19226 rm -f conftest.er1
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
19230 { ac_try='test -z "$ac_c_werror_flag"
19231 || test ! -s conftest.err'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; } &&
19237 { ac_try='test -s conftest.$ac_objext'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
19243 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19244 else
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19248 bfd_cv_have_sys_procfs_type_pstatus32_t=no
19251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19254 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_PSTATUS32_T 1
19258 _ACEOF
19261 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19262 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
19264 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19265 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19266 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269 cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h. */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19276 #define _SYSCALL32
19277 #include <sys/procfs.h>
19279 main ()
19281 prpsinfo_t avar
19283 return 0;
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19288 (eval $ac_compile) 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } &&
19295 { ac_try='test -z "$ac_c_werror_flag"
19296 || test ! -s conftest.err'
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
19309 else
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
19316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19319 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
19321 cat >>confdefs.h <<\_ACEOF
19322 #define HAVE_PRPSINFO_T 1
19323 _ACEOF
19326 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
19327 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
19329 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
19330 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
19331 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h. */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19341 #define _SYSCALL32
19342 #include <sys/procfs.h>
19344 main ()
19346 prpsinfo32_t avar
19348 return 0;
19350 _ACEOF
19351 rm -f conftest.$ac_objext
19352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19353 (eval $ac_compile) 2>conftest.er1
19354 ac_status=$?
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } &&
19360 { ac_try='test -z "$ac_c_werror_flag"
19361 || test ! -s conftest.err'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; } &&
19367 { ac_try='test -s conftest.$ac_objext'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
19374 else
19375 echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19378 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
19381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19384 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
19386 cat >>confdefs.h <<\_ACEOF
19387 #define HAVE_PRPSINFO32_T 1
19388 _ACEOF
19391 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
19392 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
19394 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
19395 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
19396 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399 cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h. */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19406 #define _SYSCALL32
19407 #include <sys/procfs.h>
19409 main ()
19411 psinfo_t avar
19413 return 0;
19415 _ACEOF
19416 rm -f conftest.$ac_objext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418 (eval $ac_compile) 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest.$ac_objext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 bfd_cv_have_sys_procfs_type_psinfo_t=yes
19439 else
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 bfd_cv_have_sys_procfs_type_psinfo_t=no
19446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19449 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_PSINFO_T 1
19453 _ACEOF
19456 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
19457 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
19459 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
19460 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
19461 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h. */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19471 #define _SYSCALL32
19472 #include <sys/procfs.h>
19474 main ()
19476 psinfo32_t avar
19478 return 0;
19480 _ACEOF
19481 rm -f conftest.$ac_objext
19482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19483 (eval $ac_compile) 2>conftest.er1
19484 ac_status=$?
19485 grep -v '^ *+' conftest.er1 >conftest.err
19486 rm -f conftest.er1
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } &&
19490 { ac_try='test -z "$ac_c_werror_flag"
19491 || test ! -s conftest.err'
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; } &&
19497 { ac_try='test -s conftest.$ac_objext'
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; }; then
19503 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
19504 else
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19508 bfd_cv_have_sys_procfs_type_psinfo32_t=no
19511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19514 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
19516 cat >>confdefs.h <<\_ACEOF
19517 #define HAVE_PSINFO32_T 1
19518 _ACEOF
19521 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
19522 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
19524 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
19525 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
19526 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
19527 echo $ECHO_N "(cached) $ECHO_C" >&6
19528 else
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h. */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19536 #define _SYSCALL32
19537 #include <sys/procfs.h>
19539 main ()
19541 lwpstatus_t avar
19543 return 0;
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548 (eval $ac_compile) 2>conftest.er1
19549 ac_status=$?
19550 grep -v '^ *+' conftest.er1 >conftest.err
19551 rm -f conftest.er1
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
19555 { ac_try='test -z "$ac_c_werror_flag"
19556 || test ! -s conftest.err'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
19576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19579 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
19581 cat >>confdefs.h <<\_ACEOF
19582 #define HAVE_LWPSTATUS_T 1
19583 _ACEOF
19586 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
19587 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
19589 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
19590 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
19591 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h. */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19601 #define _SYSCALL32
19602 #include <sys/procfs.h>
19604 main ()
19606 lwpxstatus_t avar
19608 return 0;
19610 _ACEOF
19611 rm -f conftest.$ac_objext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19613 (eval $ac_compile) 2>conftest.er1
19614 ac_status=$?
19615 grep -v '^ *+' conftest.er1 >conftest.err
19616 rm -f conftest.er1
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } &&
19620 { ac_try='test -z "$ac_c_werror_flag"
19621 || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
19634 else
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
19641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19644 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_LWPXSTATUS_T 1
19648 _ACEOF
19651 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
19652 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
19654 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
19655 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
19656 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 else
19659 cat >conftest.$ac_ext <<_ACEOF
19660 /* confdefs.h. */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h. */
19666 #define _SYSCALL32
19667 #include <sys/procfs.h>
19669 main ()
19671 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
19673 return 0;
19675 _ACEOF
19676 rm -f conftest.$ac_objext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19678 (eval $ac_compile) 2>conftest.er1
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest.$ac_objext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
19699 else
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19703 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
19706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19709 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
19711 cat >>confdefs.h <<\_ACEOF
19712 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
19713 _ACEOF
19716 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
19717 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
19719 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
19720 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
19721 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724 cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h. */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19731 #define _SYSCALL32
19732 #include <sys/procfs.h>
19734 main ()
19736 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
19738 return 0;
19740 _ACEOF
19741 rm -f conftest.$ac_objext
19742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19743 (eval $ac_compile) 2>conftest.er1
19744 ac_status=$?
19745 grep -v '^ *+' conftest.er1 >conftest.err
19746 rm -f conftest.er1
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } &&
19750 { ac_try='test -z "$ac_c_werror_flag"
19751 || test ! -s conftest.err'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest.$ac_objext'
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
19764 else
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
19771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19774 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
19776 cat >>confdefs.h <<\_ACEOF
19777 #define HAVE_LWPSTATUS_T_PR_REG 1
19778 _ACEOF
19781 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
19782 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
19784 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
19785 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
19786 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h. */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19796 #define _SYSCALL32
19797 #include <sys/procfs.h>
19799 main ()
19801 win32_pstatus_t avar
19803 return 0;
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19808 (eval $ac_compile) 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try='test -z "$ac_c_werror_flag"
19816 || test ! -s conftest.err'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try='test -s conftest.$ac_objext'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
19828 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
19829 else
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
19836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19839 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
19841 cat >>confdefs.h <<\_ACEOF
19842 #define HAVE_WIN32_PSTATUS_T 1
19843 _ACEOF
19846 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
19847 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
19853 if test -n "$TRAD_HEADER"; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define TRAD_HEADER $TRAD_HEADER
19857 _ACEOF
19861 # Horrible hacks to build DLLs on Windows.
19862 WIN32LDFLAGS=
19863 WIN32LIBADD=
19864 case "${host}" in
19865 *-*-cygwin*)
19866 if test "$enable_shared" = "yes"; then
19867 WIN32LDFLAGS="-no-undefined"
19868 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
19871 *-*-linux*)
19872 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
19873 # libiberty.a.
19874 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
19875 if test -n "$x"; then
19876 WIN32LIBADD="-L../libiberty/pic -liberty"
19879 esac
19883 # target stuff:
19885 # Canonicalize the secondary target names.
19886 if test -n "$enable_targets" ; then
19887 for targ in `echo $enable_targets | sed 's/,/ /g'`
19889 result=`$ac_config_sub $targ 2>/dev/null`
19890 if test -n "$result" ; then
19891 canon_targets="$canon_targets $result"
19892 else
19893 # Allow targets that config.sub doesn't recognize, like "all".
19894 canon_targets="$canon_targets $targ"
19896 done
19899 all_targets=false
19900 defvec=
19901 selvecs=
19902 assocvecs=
19903 selarchs=
19904 TDEFINES=
19905 for targ in $target $canon_targets
19907 if test "x$targ" = "xall"; then
19908 all_targets=true
19909 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
19910 else
19911 . $srcdir/config.bfd
19912 if test "x$targ" = "x$target"; then
19913 defvec=$targ_defvec
19915 selvecs="$selvecs $targ_defvec $targ_selvecs"
19916 selarchs="$selarchs $targ_archs"
19917 TDEFINES="$TDEFINES $targ_cflags"
19919 done
19922 # This processing still needs to be done if we're to decide properly whether
19923 # 64-bit support needs to be compiled in. Currently, it will be included if
19924 # the default or any other explicitly requested target requires it; it
19925 # will not be included on a 32-bit host if no 64-bit target is requested, and
19926 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
19927 # used.
19929 # uniq the default and selected vectors in all the configured targets.
19930 f=""
19931 for i in $selvecs ; do
19932 case " $f " in
19933 *" $i "*) ;;
19934 *) f="$f $i" ;;
19935 esac
19936 done
19937 selvecs="$f"
19940 # uniq the associated vectors in all the configured targets.
19941 f=""
19942 for i in $assocvecs ; do
19943 case " $f " in
19944 *" $i "*) ;;
19945 *) f="$f $i" ;;
19946 esac
19947 done
19948 assocvecs="$f"
19951 # uniq the architectures in all the configured targets.
19952 f=""
19953 for i in $selarchs ; do
19954 case " $f " in
19955 *" $i "*) ;;
19956 *) f="$f $i" ;;
19957 esac
19958 done
19959 selarchs="$f"
19961 # Target backend .o files.
19964 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
19966 for vec in $selvecs
19968 target_size=32
19969 case "$vec" in
19970 # This list is alphabetized to make it easy to compare
19971 # with the two vector lists in targets.c. For the same reason,
19972 # use one entry per line, even though this leads to long lines.
19973 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
19974 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19975 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
19976 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19977 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19978 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
19979 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19980 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19981 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19982 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19983 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19984 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19985 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19986 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19987 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19988 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19989 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19990 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19991 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19992 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19993 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19994 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19995 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
19996 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
19997 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19998 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
19999 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20000 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20001 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20002 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20003 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20004 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20005 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
20006 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
20007 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20008 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20009 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20010 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20011 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20012 bfd_elf32_bigarm_symbian_vec)
20013 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20014 bfd_elf32_bigarm_vxworks_vec)
20015 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20016 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20017 bfd_elf32_bigmips_vxworks_vec)
20018 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20019 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
20020 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
20021 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20022 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
20023 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20024 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
20025 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
20026 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
20027 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20028 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20029 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
20030 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20031 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20032 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20033 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
20034 bfd_elf32_i386_dragonfly_vec)
20035 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20036 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20037 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20038 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20039 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20040 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20041 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
20042 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
20043 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
20044 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
20045 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
20046 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20047 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20048 bfd_elf32_littlearm_symbian_vec)
20049 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20050 bfd_elf32_littlearm_vxworks_vec)
20051 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20052 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20053 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20054 bfd_elf32_littlemips_vxworks_vec)
20055 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20056 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
20057 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20058 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20059 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20060 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20061 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20062 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20063 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20064 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20065 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20066 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20067 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20068 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20069 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20070 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
20071 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
20072 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
20073 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20074 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20075 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20076 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20077 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
20078 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
20079 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20080 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20081 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20082 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20083 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20084 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
20085 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20086 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20087 # FIXME: We include cofflink.lo not because it's needed for
20088 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20089 # which needs it but does not list it. Should be fixed in right place.
20090 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20091 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20092 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20093 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20094 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20095 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20096 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20097 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20098 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20099 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20100 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20101 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20102 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20103 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20104 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20105 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20106 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20107 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
20108 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20109 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20110 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20111 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
20112 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
20113 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
20114 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
20115 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20116 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20117 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20118 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20119 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20120 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 ;;
20121 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20122 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20123 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20124 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20125 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20126 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20127 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 ;;
20128 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
20129 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20130 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20131 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
20132 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20133 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20134 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20135 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20136 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20137 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20138 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20139 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20140 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 ;;
20141 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 ;;
20142 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20143 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20144 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
20145 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20146 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20147 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20148 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20149 cris_aout_vec) tb="$tb aout-cris.lo" ;;
20150 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
20151 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20152 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20153 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20154 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
20155 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20156 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20157 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20158 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20159 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20160 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20161 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20162 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20163 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20164 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
20165 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
20166 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20167 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
20168 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20169 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20170 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20171 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
20172 i386msdos_vec) tb="$tb i386msdos.lo" ;;
20173 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20174 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
20175 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20176 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
20177 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20178 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20179 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20180 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20181 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20182 ieee_vec) tb="$tb ieee.lo" ;;
20183 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20184 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
20185 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20186 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20187 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
20188 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
20189 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20190 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
20191 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
20192 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
20193 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
20194 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20195 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20196 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
20197 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20198 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20199 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20200 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20201 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20202 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
20203 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
20204 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
20205 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
20206 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
20207 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
20208 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
20209 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
20210 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
20211 pef_vec) tb="$tb pef.lo" ;;
20212 pef_xlib_vec) tb="$tb pef.lo" ;;
20213 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
20214 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20215 ppcboot_vec) tb="$tb ppcboot.lo" ;;
20216 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
20217 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20218 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20219 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20220 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20221 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20222 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20223 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20224 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20225 som_vec) tb="$tb som.lo" ;;
20226 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
20227 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20228 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20229 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20230 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20231 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
20232 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
20233 sym_vec) tb="$tb xsym.lo" ;;
20234 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20235 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
20236 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20237 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20238 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20239 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20240 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20241 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
20242 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
20243 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
20244 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
20245 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
20246 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
20247 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
20248 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
20249 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
20250 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
20251 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
20252 versados_vec) tb="$tb versados.lo" ;;
20253 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
20254 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20255 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20256 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
20257 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
20258 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
20260 # These appear out of order in targets.c
20261 srec_vec) tb="$tb srec.lo" ;;
20262 symbolsrec_vec) tb="$tb srec.lo" ;;
20263 tekhex_vec) tb="$tb tekhex.lo" ;;
20264 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20265 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20267 "") ;;
20268 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20269 echo "$as_me: error: *** unknown target vector $vec" >&2;}
20270 { (exit 1); exit 1; }; } ;;
20271 esac
20273 if test ${target_size} = 64; then
20274 target64=true
20276 if test x"${vec}" = x"${defvec}"; then
20277 bfd_default_target_size=${target_size}
20279 done
20281 # Target architecture .o files.
20282 # A couple of CPUs use shorter file names to avoid problems on DOS
20283 # filesystems.
20284 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
20286 # Weed out duplicate .o files.
20287 f=""
20288 for i in $tb ; do
20289 case " $f " in
20290 *" $i "*) ;;
20291 *) f="$f $i" ;;
20292 esac
20293 done
20294 tb="$f"
20296 f=""
20297 for i in $ta ; do
20298 case " $f " in
20299 *" $i "*) ;;
20300 *) f="$f $i" ;;
20301 esac
20302 done
20303 ta="$f"
20305 bfd_backends="$tb"
20306 bfd_machines="$ta"
20308 if test x${all_targets} = xtrue ; then
20309 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
20310 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
20311 selvecs=
20312 havevecs=
20313 selarchs=
20314 test -n "$assocvecs" &&
20315 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
20316 else # all_targets is true
20317 # Only set these if they will be nonempty, for the clever echo.
20318 havevecs=
20319 assocvecs=
20320 test -n "$selvecs" &&
20321 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
20322 test -n "$selvecs" &&
20323 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
20324 test -n "$selarchs" &&
20325 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
20326 fi # all_targets is true
20328 case ${host64}-${target64}-${want64} in
20329 *true*)
20330 wordsize=64
20331 bfd64_libs='$(BFD64_LIBS)'
20332 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
20333 if test $BFD_HOST_64_BIT_DEFINED = 0; then
20334 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
20335 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
20337 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
20339 if test -n "$GCC" ; then
20340 bad_64bit_gcc=no;
20341 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
20342 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
20343 # Add more tests for gcc versions with non-working 64-bit support here.
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h. */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 :__GNUC__:__GNUC_MINOR__:__i386__:
20351 _ACEOF
20352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20353 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
20354 bad_64bit_gcc=yes;
20355 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
20356 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
20357 else
20358 echo "$as_me:$LINENO: result: no" >&5
20359 echo "${ECHO_T}no" >&6
20361 rm -f conftest*
20363 if test $bad_64bit_gcc = yes ; then
20364 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
20365 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
20366 { (exit 1); exit 1; }; }
20370 false-false-false)
20371 wordsize=32
20372 all_backends='$(BFD32_BACKENDS)'
20374 esac
20383 # Determine the host dependant file_ptr a.k.a. off_t type. In order
20384 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
20385 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
20386 # Hopefully a reasonable assumption since fseeko et.al. should be
20387 # upward compatible.
20393 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
20395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20396 echo "$as_me:$LINENO: checking for $ac_func" >&5
20397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20398 if eval "test \"\${$as_ac_var+set}\" = set"; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20400 else
20401 cat >conftest.$ac_ext <<_ACEOF
20402 /* confdefs.h. */
20403 _ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20409 #define $ac_func innocuous_$ac_func
20411 /* System header to define __stub macros and hopefully few prototypes,
20412 which can conflict with char $ac_func (); below.
20413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20414 <limits.h> exists even on freestanding compilers. */
20416 #ifdef __STDC__
20417 # include <limits.h>
20418 #else
20419 # include <assert.h>
20420 #endif
20422 #undef $ac_func
20424 /* Override any gcc2 internal prototype to avoid an error. */
20425 #ifdef __cplusplus
20426 extern "C"
20428 #endif
20429 /* We use char because int might match the return type of a gcc2
20430 builtin and then its argument prototype would still apply. */
20431 char $ac_func ();
20432 /* The GNU C library defines this for functions which it implements
20433 to always fail with ENOSYS. Some functions are actually named
20434 something starting with __ and the normal name is an alias. */
20435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20436 choke me
20437 #else
20438 char (*f) () = $ac_func;
20439 #endif
20440 #ifdef __cplusplus
20442 #endif
20445 main ()
20447 return f != $ac_func;
20449 return 0;
20451 _ACEOF
20452 rm -f conftest.$ac_objext conftest$ac_exeext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20454 (eval $ac_link) 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest$ac_exeext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 eval "$as_ac_var=yes"
20475 else
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 eval "$as_ac_var=no"
20481 rm -f conftest.err conftest.$ac_objext \
20482 conftest$ac_exeext conftest.$ac_ext
20484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20486 if test `eval echo '${'$as_ac_var'}'` = yes; then
20487 cat >>confdefs.h <<_ACEOF
20488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20489 _ACEOF
20492 done
20494 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
20495 echo "$as_me:$LINENO: checking for off_t" >&5
20496 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20497 if test "${ac_cv_type_off_t+set}" = set; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20499 else
20500 cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h. */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 $ac_includes_default
20508 main ()
20510 if ((off_t *) 0)
20511 return 0;
20512 if (sizeof (off_t))
20513 return 0;
20515 return 0;
20517 _ACEOF
20518 rm -f conftest.$ac_objext
20519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20520 (eval $ac_compile) 2>conftest.er1
20521 ac_status=$?
20522 grep -v '^ *+' conftest.er1 >conftest.err
20523 rm -f conftest.er1
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } &&
20527 { ac_try='test -z "$ac_c_werror_flag"
20528 || test ! -s conftest.err'
20529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530 (eval $ac_try) 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; } &&
20534 { ac_try='test -s conftest.$ac_objext'
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; }; then
20540 ac_cv_type_off_t=yes
20541 else
20542 echo "$as_me: failed program was:" >&5
20543 sed 's/^/| /' conftest.$ac_ext >&5
20545 ac_cv_type_off_t=no
20547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20549 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20550 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20552 echo "$as_me:$LINENO: checking size of off_t" >&5
20553 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
20554 if test "${ac_cv_sizeof_off_t+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20557 if test "$ac_cv_type_off_t" = yes; then
20558 # The cast to unsigned long works around a bug in the HP C Compiler
20559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20561 # This bug is HP SR number 8606223364.
20562 if test "$cross_compiling" = yes; then
20563 # Depending upon the size, compute the lo and hi bounds.
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h. */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20570 $ac_includes_default
20572 main ()
20574 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
20575 test_array [0] = 0
20578 return 0;
20580 _ACEOF
20581 rm -f conftest.$ac_objext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20583 (eval $ac_compile) 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -z "$ac_c_werror_flag"
20591 || test ! -s conftest.err'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; } &&
20597 { ac_try='test -s conftest.$ac_objext'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_lo=0 ac_mid=0
20604 while :; do
20605 cat >conftest.$ac_ext <<_ACEOF
20606 /* confdefs.h. */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20611 $ac_includes_default
20613 main ()
20615 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20616 test_array [0] = 0
20619 return 0;
20621 _ACEOF
20622 rm -f conftest.$ac_objext
20623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20624 (eval $ac_compile) 2>conftest.er1
20625 ac_status=$?
20626 grep -v '^ *+' conftest.er1 >conftest.err
20627 rm -f conftest.er1
20628 cat conftest.err >&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } &&
20631 { ac_try='test -z "$ac_c_werror_flag"
20632 || test ! -s conftest.err'
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; } &&
20638 { ac_try='test -s conftest.$ac_objext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 ac_hi=$ac_mid; break
20645 else
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 ac_lo=`expr $ac_mid + 1`
20650 if test $ac_lo -le $ac_mid; then
20651 ac_lo= ac_hi=
20652 break
20654 ac_mid=`expr 2 '*' $ac_mid + 1`
20656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20657 done
20658 else
20659 echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20662 cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h. */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20668 $ac_includes_default
20670 main ()
20672 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
20673 test_array [0] = 0
20676 return 0;
20678 _ACEOF
20679 rm -f conftest.$ac_objext
20680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681 (eval $ac_compile) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_c_werror_flag"
20689 || test ! -s conftest.err'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest.$ac_objext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 ac_hi=-1 ac_mid=-1
20702 while :; do
20703 cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h. */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 $ac_includes_default
20711 main ()
20713 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
20714 test_array [0] = 0
20717 return 0;
20719 _ACEOF
20720 rm -f conftest.$ac_objext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20722 (eval $ac_compile) 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try='test -z "$ac_c_werror_flag"
20730 || test ! -s conftest.err'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
20736 { ac_try='test -s conftest.$ac_objext'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ac_lo=$ac_mid; break
20743 else
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20747 ac_hi=`expr '(' $ac_mid ')' - 1`
20748 if test $ac_mid -le $ac_hi; then
20749 ac_lo= ac_hi=
20750 break
20752 ac_mid=`expr 2 '*' $ac_mid`
20754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20755 done
20756 else
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 ac_lo= ac_hi=
20762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20765 # Binary search between lo and hi bounds.
20766 while test "x$ac_lo" != "x$ac_hi"; do
20767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20768 cat >conftest.$ac_ext <<_ACEOF
20769 /* confdefs.h. */
20770 _ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20774 $ac_includes_default
20776 main ()
20778 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20779 test_array [0] = 0
20782 return 0;
20784 _ACEOF
20785 rm -f conftest.$ac_objext
20786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20787 (eval $ac_compile) 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -z "$ac_c_werror_flag"
20795 || test ! -s conftest.err'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest.$ac_objext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 ac_hi=$ac_mid
20808 else
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ac_lo=`expr '(' $ac_mid ')' + 1`
20814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20815 done
20816 case $ac_lo in
20817 ?*) ac_cv_sizeof_off_t=$ac_lo;;
20818 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20819 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20820 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20821 See \`config.log' for more details." >&5
20822 echo "$as_me: error: cannot compute sizeof (off_t), 77
20823 See \`config.log' for more details." >&2;}
20824 { (exit 1); exit 1; }; }; } ;;
20825 esac
20826 else
20827 if test "$cross_compiling" = yes; then
20828 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20829 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20830 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20831 See \`config.log' for more details." >&5
20832 echo "$as_me: error: cannot run test program while cross compiling
20833 See \`config.log' for more details." >&2;}
20834 { (exit 1); exit 1; }; }; }
20835 else
20836 cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h. */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 $ac_includes_default
20843 long longval () { return (long) (sizeof (off_t)); }
20844 unsigned long ulongval () { return (long) (sizeof (off_t)); }
20845 #include <stdio.h>
20846 #include <stdlib.h>
20848 main ()
20851 FILE *f = fopen ("conftest.val", "w");
20852 if (! f)
20853 exit (1);
20854 if (((long) (sizeof (off_t))) < 0)
20856 long i = longval ();
20857 if (i != ((long) (sizeof (off_t))))
20858 exit (1);
20859 fprintf (f, "%ld\n", i);
20861 else
20863 unsigned long i = ulongval ();
20864 if (i != ((long) (sizeof (off_t))))
20865 exit (1);
20866 fprintf (f, "%lu\n", i);
20868 exit (ferror (f) || fclose (f) != 0);
20871 return 0;
20873 _ACEOF
20874 rm -f conftest$ac_exeext
20875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20876 (eval $ac_link) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; }; then
20885 ac_cv_sizeof_off_t=`cat conftest.val`
20886 else
20887 echo "$as_me: program exited with status $ac_status" >&5
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 ( exit $ac_status )
20892 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20893 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20895 See \`config.log' for more details." >&5
20896 echo "$as_me: error: cannot compute sizeof (off_t), 77
20897 See \`config.log' for more details." >&2;}
20898 { (exit 1); exit 1; }; }; }
20900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20903 rm -f conftest.val
20904 else
20905 ac_cv_sizeof_off_t=0
20908 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
20909 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
20910 cat >>confdefs.h <<_ACEOF
20911 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20912 _ACEOF
20916 echo "$as_me:$LINENO: checking file_ptr type" >&5
20917 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
20918 bfd_file_ptr="long"
20919 bfd_ufile_ptr="unsigned long"
20920 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
20921 -o x"${ac_cv_sizeof_off_t}" = x8; then
20922 bfd_file_ptr=BFD_HOST_64_BIT
20923 bfd_ufile_ptr=BFD_HOST_U_64_BIT
20925 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
20926 echo "${ECHO_T}$bfd_file_ptr" >&6
20931 tdefaults=""
20932 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
20933 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
20934 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
20935 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
20936 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
20941 for ac_header in stdlib.h unistd.h
20943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20945 echo "$as_me:$LINENO: checking for $ac_header" >&5
20946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20952 else
20953 # Is the header compilable?
20954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20956 cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h. */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20962 $ac_includes_default
20963 #include <$ac_header>
20964 _ACEOF
20965 rm -f conftest.$ac_objext
20966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20967 (eval $ac_compile) 2>conftest.er1
20968 ac_status=$?
20969 grep -v '^ *+' conftest.er1 >conftest.err
20970 rm -f conftest.er1
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -z "$ac_c_werror_flag"
20975 || test ! -s conftest.err'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; } &&
20981 { ac_try='test -s conftest.$ac_objext'
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; }; then
20987 ac_header_compiler=yes
20988 else
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20992 ac_header_compiler=no
20994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20996 echo "${ECHO_T}$ac_header_compiler" >&6
20998 # Is the header present?
20999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h. */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 #include <$ac_header>
21008 _ACEOF
21009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } >/dev/null; then
21017 if test -s conftest.err; then
21018 ac_cpp_err=$ac_c_preproc_warn_flag
21019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21020 else
21021 ac_cpp_err=
21023 else
21024 ac_cpp_err=yes
21026 if test -z "$ac_cpp_err"; then
21027 ac_header_preproc=yes
21028 else
21029 echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21032 ac_header_preproc=no
21034 rm -f conftest.err conftest.$ac_ext
21035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21036 echo "${ECHO_T}$ac_header_preproc" >&6
21038 # So? What about this header?
21039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21040 yes:no: )
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21045 ac_header_preproc=yes
21047 no:yes:* )
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21061 cat <<\_ASBOX
21062 ## ------------------------------------------ ##
21063 ## Report this to the AC_PACKAGE_NAME lists. ##
21064 ## ------------------------------------------ ##
21065 _ASBOX
21067 sed "s/^/$as_me: WARNING: /" >&2
21069 esac
21070 echo "$as_me:$LINENO: checking for $ac_header" >&5
21071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 else
21075 eval "$as_ac_Header=\$ac_header_preproc"
21077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21082 cat >>confdefs.h <<_ACEOF
21083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21084 _ACEOF
21088 done
21091 for ac_func in getpagesize
21093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21094 echo "$as_me:$LINENO: checking for $ac_func" >&5
21095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21096 if eval "test \"\${$as_ac_var+set}\" = set"; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h. */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21107 #define $ac_func innocuous_$ac_func
21109 /* System header to define __stub macros and hopefully few prototypes,
21110 which can conflict with char $ac_func (); below.
21111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21112 <limits.h> exists even on freestanding compilers. */
21114 #ifdef __STDC__
21115 # include <limits.h>
21116 #else
21117 # include <assert.h>
21118 #endif
21120 #undef $ac_func
21122 /* Override any gcc2 internal prototype to avoid an error. */
21123 #ifdef __cplusplus
21124 extern "C"
21126 #endif
21127 /* We use char because int might match the return type of a gcc2
21128 builtin and then its argument prototype would still apply. */
21129 char $ac_func ();
21130 /* The GNU C library defines this for functions which it implements
21131 to always fail with ENOSYS. Some functions are actually named
21132 something starting with __ and the normal name is an alias. */
21133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21134 choke me
21135 #else
21136 char (*f) () = $ac_func;
21137 #endif
21138 #ifdef __cplusplus
21140 #endif
21143 main ()
21145 return f != $ac_func;
21147 return 0;
21149 _ACEOF
21150 rm -f conftest.$ac_objext conftest$ac_exeext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21152 (eval $ac_link) 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -z "$ac_c_werror_flag"
21160 || test ! -s conftest.err'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest$ac_exeext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 eval "$as_ac_var=yes"
21173 else
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 eval "$as_ac_var=no"
21179 rm -f conftest.err conftest.$ac_objext \
21180 conftest$ac_exeext conftest.$ac_ext
21182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21184 if test `eval echo '${'$as_ac_var'}'` = yes; then
21185 cat >>confdefs.h <<_ACEOF
21186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21187 _ACEOF
21190 done
21192 echo "$as_me:$LINENO: checking for working mmap" >&5
21193 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21194 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 else
21197 if test "$cross_compiling" = yes; then
21198 ac_cv_func_mmap_fixed_mapped=no
21199 else
21200 cat >conftest.$ac_ext <<_ACEOF
21201 /* confdefs.h. */
21202 _ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h. */
21206 $ac_includes_default
21207 /* malloc might have been renamed as rpl_malloc. */
21208 #undef malloc
21210 /* Thanks to Mike Haertel and Jim Avera for this test.
21211 Here is a matrix of mmap possibilities:
21212 mmap private not fixed
21213 mmap private fixed at somewhere currently unmapped
21214 mmap private fixed at somewhere already mapped
21215 mmap shared not fixed
21216 mmap shared fixed at somewhere currently unmapped
21217 mmap shared fixed at somewhere already mapped
21218 For private mappings, we should verify that changes cannot be read()
21219 back from the file, nor mmap's back from the file at a different
21220 address. (There have been systems where private was not correctly
21221 implemented like the infamous i386 svr4.0, and systems where the
21222 VM page cache was not coherent with the file system buffer cache
21223 like early versions of FreeBSD and possibly contemporary NetBSD.)
21224 For shared mappings, we should conversely verify that changes get
21225 propagated back to all the places they're supposed to be.
21227 Grep wants private fixed already mapped.
21228 The main things grep needs to know about mmap are:
21229 * does it exist and is it safe to write into the mmap'd area
21230 * how to use it (BSD variants) */
21232 #include <fcntl.h>
21233 #include <sys/mman.h>
21235 #if !STDC_HEADERS && !HAVE_STDLIB_H
21236 char *malloc ();
21237 #endif
21239 /* This mess was copied from the GNU getpagesize.h. */
21240 #if !HAVE_GETPAGESIZE
21241 /* Assume that all systems that can run configure have sys/param.h. */
21242 # if !HAVE_SYS_PARAM_H
21243 # define HAVE_SYS_PARAM_H 1
21244 # endif
21246 # ifdef _SC_PAGESIZE
21247 # define getpagesize() sysconf(_SC_PAGESIZE)
21248 # else /* no _SC_PAGESIZE */
21249 # if HAVE_SYS_PARAM_H
21250 # include <sys/param.h>
21251 # ifdef EXEC_PAGESIZE
21252 # define getpagesize() EXEC_PAGESIZE
21253 # else /* no EXEC_PAGESIZE */
21254 # ifdef NBPG
21255 # define getpagesize() NBPG * CLSIZE
21256 # ifndef CLSIZE
21257 # define CLSIZE 1
21258 # endif /* no CLSIZE */
21259 # else /* no NBPG */
21260 # ifdef NBPC
21261 # define getpagesize() NBPC
21262 # else /* no NBPC */
21263 # ifdef PAGESIZE
21264 # define getpagesize() PAGESIZE
21265 # endif /* PAGESIZE */
21266 # endif /* no NBPC */
21267 # endif /* no NBPG */
21268 # endif /* no EXEC_PAGESIZE */
21269 # else /* no HAVE_SYS_PARAM_H */
21270 # define getpagesize() 8192 /* punt totally */
21271 # endif /* no HAVE_SYS_PARAM_H */
21272 # endif /* no _SC_PAGESIZE */
21274 #endif /* no HAVE_GETPAGESIZE */
21277 main ()
21279 char *data, *data2, *data3;
21280 int i, pagesize;
21281 int fd;
21283 pagesize = getpagesize ();
21285 /* First, make a file with some known garbage in it. */
21286 data = (char *) malloc (pagesize);
21287 if (!data)
21288 exit (1);
21289 for (i = 0; i < pagesize; ++i)
21290 *(data + i) = rand ();
21291 umask (0);
21292 fd = creat ("conftest.mmap", 0600);
21293 if (fd < 0)
21294 exit (1);
21295 if (write (fd, data, pagesize) != pagesize)
21296 exit (1);
21297 close (fd);
21299 /* Next, try to mmap the file at a fixed address which already has
21300 something else allocated at it. If we can, also make sure that
21301 we see the same garbage. */
21302 fd = open ("conftest.mmap", O_RDWR);
21303 if (fd < 0)
21304 exit (1);
21305 data2 = (char *) malloc (2 * pagesize);
21306 if (!data2)
21307 exit (1);
21308 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21309 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21310 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21311 exit (1);
21312 for (i = 0; i < pagesize; ++i)
21313 if (*(data + i) != *(data2 + i))
21314 exit (1);
21316 /* Finally, make sure that changes to the mapped area do not
21317 percolate back to the file as seen by read(). (This is a bug on
21318 some variants of i386 svr4.0.) */
21319 for (i = 0; i < pagesize; ++i)
21320 *(data2 + i) = *(data2 + i) + 1;
21321 data3 = (char *) malloc (pagesize);
21322 if (!data3)
21323 exit (1);
21324 if (read (fd, data3, pagesize) != pagesize)
21325 exit (1);
21326 for (i = 0; i < pagesize; ++i)
21327 if (*(data + i) != *(data3 + i))
21328 exit (1);
21329 close (fd);
21330 exit (0);
21332 _ACEOF
21333 rm -f conftest$ac_exeext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21335 (eval $ac_link) 2>&5
21336 ac_status=$?
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21341 ac_status=$?
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 ac_cv_func_mmap_fixed_mapped=yes
21345 else
21346 echo "$as_me: program exited with status $ac_status" >&5
21347 echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21350 ( exit $ac_status )
21351 ac_cv_func_mmap_fixed_mapped=no
21353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21356 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21357 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21358 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21360 cat >>confdefs.h <<\_ACEOF
21361 #define HAVE_MMAP 1
21362 _ACEOF
21365 rm -f conftest.mmap
21369 for ac_func in madvise mprotect
21371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21372 echo "$as_me:$LINENO: checking for $ac_func" >&5
21373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21374 if eval "test \"\${$as_ac_var+set}\" = set"; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377 cat >conftest.$ac_ext <<_ACEOF
21378 /* confdefs.h. */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h. */
21383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21385 #define $ac_func innocuous_$ac_func
21387 /* System header to define __stub macros and hopefully few prototypes,
21388 which can conflict with char $ac_func (); below.
21389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21390 <limits.h> exists even on freestanding compilers. */
21392 #ifdef __STDC__
21393 # include <limits.h>
21394 #else
21395 # include <assert.h>
21396 #endif
21398 #undef $ac_func
21400 /* Override any gcc2 internal prototype to avoid an error. */
21401 #ifdef __cplusplus
21402 extern "C"
21404 #endif
21405 /* We use char because int might match the return type of a gcc2
21406 builtin and then its argument prototype would still apply. */
21407 char $ac_func ();
21408 /* The GNU C library defines this for functions which it implements
21409 to always fail with ENOSYS. Some functions are actually named
21410 something starting with __ and the normal name is an alias. */
21411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21412 choke me
21413 #else
21414 char (*f) () = $ac_func;
21415 #endif
21416 #ifdef __cplusplus
21418 #endif
21421 main ()
21423 return f != $ac_func;
21425 return 0;
21427 _ACEOF
21428 rm -f conftest.$ac_objext conftest$ac_exeext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21430 (eval $ac_link) 2>conftest.er1
21431 ac_status=$?
21432 grep -v '^ *+' conftest.er1 >conftest.err
21433 rm -f conftest.er1
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
21437 { ac_try='test -z "$ac_c_werror_flag"
21438 || test ! -s conftest.err'
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; } &&
21444 { ac_try='test -s conftest$ac_exeext'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 eval "$as_ac_var=yes"
21451 else
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21455 eval "$as_ac_var=no"
21457 rm -f conftest.err conftest.$ac_objext \
21458 conftest$ac_exeext conftest.$ac_ext
21460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21462 if test `eval echo '${'$as_ac_var'}'` = yes; then
21463 cat >>confdefs.h <<_ACEOF
21464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21465 _ACEOF
21468 done
21470 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
21471 true+yes )
21472 cat >>confdefs.h <<\_ACEOF
21473 #define USE_MMAP 1
21474 _ACEOF
21476 esac
21478 rm -f doc/config.status
21479 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
21482 ac_config_commands="$ac_config_commands default"
21489 cat >confcache <<\_ACEOF
21490 # This file is a shell script that caches the results of configure
21491 # tests run on this system so they can be shared between configure
21492 # scripts and configure runs, see configure's option --config-cache.
21493 # It is not useful on other systems. If it contains results you don't
21494 # want to keep, you may remove or edit it.
21496 # config.status only pays attention to the cache file if you give it
21497 # the --recheck option to rerun configure.
21499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21501 # following values.
21503 _ACEOF
21505 # The following way of writing the cache mishandles newlines in values,
21506 # but we know of no workaround that is simple, portable, and efficient.
21507 # So, don't put newlines in cache variables' values.
21508 # Ultrix sh set writes to stderr and can't be redirected directly,
21509 # and sets the high bit in the cache file unless we assign to the vars.
21511 (set) 2>&1 |
21512 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21513 *ac_space=\ *)
21514 # `set' does not quote correctly, so add quotes (double-quote
21515 # substitution turns \\\\ into \\, and sed turns \\ into \).
21516 sed -n \
21517 "s/'/'\\\\''/g;
21518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21521 # `set' quotes correctly as required by POSIX, so do not add quotes.
21522 sed -n \
21523 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21525 esac;
21527 sed '
21528 t clear
21529 : clear
21530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21531 t end
21532 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21533 : end' >>confcache
21534 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21535 if test -w $cache_file; then
21536 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21537 cat confcache >$cache_file
21538 else
21539 echo "not updating unwritable cache $cache_file"
21542 rm -f confcache
21544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21545 # Let make expand exec_prefix.
21546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21548 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21549 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21550 # trailing colons and then remove the whole line if VPATH becomes empty
21551 # (actually we leave an empty line to preserve line numbers).
21552 if test "x$srcdir" = x.; then
21553 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21554 s/:*\$(srcdir):*/:/;
21555 s/:*\${srcdir}:*/:/;
21556 s/:*@srcdir@:*/:/;
21557 s/^\([^=]*=[ ]*\):*/\1/;
21558 s/:*$//;
21559 s/^[^=]*=[ ]*$//;
21563 DEFS=-DHAVE_CONFIG_H
21565 ac_libobjs=
21566 ac_ltlibobjs=
21567 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21568 # 1. Remove the extension, and $U if already installed.
21569 ac_i=`echo "$ac_i" |
21570 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21571 # 2. Add them.
21572 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21573 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21574 done
21575 LIBOBJS=$ac_libobjs
21577 LTLIBOBJS=$ac_ltlibobjs
21580 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21581 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21582 Usually this means the macro was only invoked conditionally." >&5
21583 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21584 Usually this means the macro was only invoked conditionally." >&2;}
21585 { (exit 1); exit 1; }; }
21587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21588 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21589 Usually this means the macro was only invoked conditionally." >&5
21590 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21591 Usually this means the macro was only invoked conditionally." >&2;}
21592 { (exit 1); exit 1; }; }
21594 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21595 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21596 Usually this means the macro was only invoked conditionally." >&5
21597 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21598 Usually this means the macro was only invoked conditionally." >&2;}
21599 { (exit 1); exit 1; }; }
21601 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
21602 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
21603 Usually this means the macro was only invoked conditionally." >&5
21604 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
21605 Usually this means the macro was only invoked conditionally." >&2;}
21606 { (exit 1); exit 1; }; }
21608 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
21609 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
21610 Usually this means the macro was only invoked conditionally." >&5
21611 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
21612 Usually this means the macro was only invoked conditionally." >&2;}
21613 { (exit 1); exit 1; }; }
21616 : ${CONFIG_STATUS=./config.status}
21617 ac_clean_files_save=$ac_clean_files
21618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21619 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21620 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21621 cat >$CONFIG_STATUS <<_ACEOF
21622 #! $SHELL
21623 # Generated by $as_me.
21624 # Run this file to recreate the current configuration.
21625 # Compiler output produced by configure, useful for debugging
21626 # configure, is in config.log if it exists.
21628 debug=false
21629 ac_cs_recheck=false
21630 ac_cs_silent=false
21631 SHELL=\${CONFIG_SHELL-$SHELL}
21632 _ACEOF
21634 cat >>$CONFIG_STATUS <<\_ACEOF
21635 ## --------------------- ##
21636 ## M4sh Initialization. ##
21637 ## --------------------- ##
21639 # Be Bourne compatible
21640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21641 emulate sh
21642 NULLCMD=:
21643 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21644 # is contrary to our usage. Disable this feature.
21645 alias -g '${1+"$@"}'='"$@"'
21646 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21647 set -o posix
21649 DUALCASE=1; export DUALCASE # for MKS sh
21651 # Support unset when possible.
21652 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21653 as_unset=unset
21654 else
21655 as_unset=false
21659 # Work around bugs in pre-3.0 UWIN ksh.
21660 $as_unset ENV MAIL MAILPATH
21661 PS1='$ '
21662 PS2='> '
21663 PS4='+ '
21665 # NLS nuisances.
21666 for as_var in \
21667 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21668 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21669 LC_TELEPHONE LC_TIME
21671 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21672 eval $as_var=C; export $as_var
21673 else
21674 $as_unset $as_var
21676 done
21678 # Required to use basename.
21679 if expr a : '\(a\)' >/dev/null 2>&1; then
21680 as_expr=expr
21681 else
21682 as_expr=false
21685 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21686 as_basename=basename
21687 else
21688 as_basename=false
21692 # Name of the executable.
21693 as_me=`$as_basename "$0" ||
21694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21695 X"$0" : 'X\(//\)$' \| \
21696 X"$0" : 'X\(/\)$' \| \
21697 . : '\(.\)' 2>/dev/null ||
21698 echo X/"$0" |
21699 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21700 /^X\/\(\/\/\)$/{ s//\1/; q; }
21701 /^X\/\(\/\).*/{ s//\1/; q; }
21702 s/.*/./; q'`
21705 # PATH needs CR, and LINENO needs CR and PATH.
21706 # Avoid depending upon Character Ranges.
21707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21710 as_cr_digits='0123456789'
21711 as_cr_alnum=$as_cr_Letters$as_cr_digits
21713 # The user is always right.
21714 if test "${PATH_SEPARATOR+set}" != set; then
21715 echo "#! /bin/sh" >conf$$.sh
21716 echo "exit 0" >>conf$$.sh
21717 chmod +x conf$$.sh
21718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21719 PATH_SEPARATOR=';'
21720 else
21721 PATH_SEPARATOR=:
21723 rm -f conf$$.sh
21727 as_lineno_1=$LINENO
21728 as_lineno_2=$LINENO
21729 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21730 test "x$as_lineno_1" != "x$as_lineno_2" &&
21731 test "x$as_lineno_3" = "x$as_lineno_2" || {
21732 # Find who we are. Look in the path if we contain no path at all
21733 # relative or not.
21734 case $0 in
21735 *[\\/]* ) as_myself=$0 ;;
21736 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21737 for as_dir in $PATH
21739 IFS=$as_save_IFS
21740 test -z "$as_dir" && as_dir=.
21741 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21742 done
21745 esac
21746 # We did not find ourselves, most probably we were run as `sh COMMAND'
21747 # in which case we are not to be found in the path.
21748 if test "x$as_myself" = x; then
21749 as_myself=$0
21751 if test ! -f "$as_myself"; then
21752 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21753 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21754 { (exit 1); exit 1; }; }
21756 case $CONFIG_SHELL in
21758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21759 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21761 IFS=$as_save_IFS
21762 test -z "$as_dir" && as_dir=.
21763 for as_base in sh bash ksh sh5; do
21764 case $as_dir in
21766 if ("$as_dir/$as_base" -c '
21767 as_lineno_1=$LINENO
21768 as_lineno_2=$LINENO
21769 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21770 test "x$as_lineno_1" != "x$as_lineno_2" &&
21771 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21772 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21773 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21774 CONFIG_SHELL=$as_dir/$as_base
21775 export CONFIG_SHELL
21776 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21777 fi;;
21778 esac
21779 done
21780 done
21782 esac
21784 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21785 # uniformly replaced by the line number. The first 'sed' inserts a
21786 # line-number line before each line; the second 'sed' does the real
21787 # work. The second script uses 'N' to pair each line-number line
21788 # with the numbered line, and appends trailing '-' during
21789 # substitution so that $LINENO is not a special case at line end.
21790 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21791 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21792 sed '=' <$as_myself |
21793 sed '
21795 s,$,-,
21796 : loop
21797 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21798 t loop
21799 s,-$,,
21800 s,^['$as_cr_digits']*\n,,
21801 ' >$as_me.lineno &&
21802 chmod +x $as_me.lineno ||
21803 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21804 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21805 { (exit 1); exit 1; }; }
21807 # Don't try to exec as it changes $[0], causing all sort of problems
21808 # (the dirname of $[0] is not the place where we might find the
21809 # original and so on. Autoconf is especially sensible to this).
21810 . ./$as_me.lineno
21811 # Exit status is that of the last command.
21812 exit
21816 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21817 *c*,-n*) ECHO_N= ECHO_C='
21818 ' ECHO_T=' ' ;;
21819 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21820 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21821 esac
21823 if expr a : '\(a\)' >/dev/null 2>&1; then
21824 as_expr=expr
21825 else
21826 as_expr=false
21829 rm -f conf$$ conf$$.exe conf$$.file
21830 echo >conf$$.file
21831 if ln -s conf$$.file conf$$ 2>/dev/null; then
21832 # We could just check for DJGPP; but this test a) works b) is more generic
21833 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21834 if test -f conf$$.exe; then
21835 # Don't use ln at all; we don't have any links
21836 as_ln_s='cp -p'
21837 else
21838 as_ln_s='ln -s'
21840 elif ln conf$$.file conf$$ 2>/dev/null; then
21841 as_ln_s=ln
21842 else
21843 as_ln_s='cp -p'
21845 rm -f conf$$ conf$$.exe conf$$.file
21847 if mkdir -p . 2>/dev/null; then
21848 as_mkdir_p=:
21849 else
21850 test -d ./-p && rmdir ./-p
21851 as_mkdir_p=false
21854 as_executable_p="test -f"
21856 # Sed expression to map a string onto a valid CPP name.
21857 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21859 # Sed expression to map a string onto a valid variable name.
21860 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21863 # IFS
21864 # We need space, tab and new line, in precisely that order.
21865 as_nl='
21867 IFS=" $as_nl"
21869 # CDPATH.
21870 $as_unset CDPATH
21872 exec 6>&1
21874 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21875 # report actual input values of CONFIG_FILES etc. instead of their
21876 # values after options handling. Logging --version etc. is OK.
21877 exec 5>>config.log
21879 echo
21880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21881 ## Running $as_me. ##
21882 _ASBOX
21883 } >&5
21884 cat >&5 <<_CSEOF
21886 This file was extended by $as_me, which was
21887 generated by GNU Autoconf 2.59. Invocation command line was
21889 CONFIG_FILES = $CONFIG_FILES
21890 CONFIG_HEADERS = $CONFIG_HEADERS
21891 CONFIG_LINKS = $CONFIG_LINKS
21892 CONFIG_COMMANDS = $CONFIG_COMMANDS
21893 $ $0 $@
21895 _CSEOF
21896 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21897 echo >&5
21898 _ACEOF
21900 # Files that config.status was made for.
21901 if test -n "$ac_config_files"; then
21902 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21905 if test -n "$ac_config_headers"; then
21906 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21909 if test -n "$ac_config_links"; then
21910 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21913 if test -n "$ac_config_commands"; then
21914 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21917 cat >>$CONFIG_STATUS <<\_ACEOF
21919 ac_cs_usage="\
21920 \`$as_me' instantiates files from templates according to the
21921 current configuration.
21923 Usage: $0 [OPTIONS] [FILE]...
21925 -h, --help print this help, then exit
21926 -V, --version print version number, then exit
21927 -q, --quiet do not print progress messages
21928 -d, --debug don't remove temporary files
21929 --recheck update $as_me by reconfiguring in the same conditions
21930 --file=FILE[:TEMPLATE]
21931 instantiate the configuration file FILE
21932 --header=FILE[:TEMPLATE]
21933 instantiate the configuration header FILE
21935 Configuration files:
21936 $config_files
21938 Configuration headers:
21939 $config_headers
21941 Configuration commands:
21942 $config_commands
21944 Report bugs to <bug-autoconf@gnu.org>."
21945 _ACEOF
21947 cat >>$CONFIG_STATUS <<_ACEOF
21948 ac_cs_version="\\
21949 config.status
21950 configured by $0, generated by GNU Autoconf 2.59,
21951 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21953 Copyright (C) 2003 Free Software Foundation, Inc.
21954 This config.status script is free software; the Free Software Foundation
21955 gives unlimited permission to copy, distribute and modify it."
21956 srcdir=$srcdir
21957 INSTALL="$INSTALL"
21958 _ACEOF
21960 cat >>$CONFIG_STATUS <<\_ACEOF
21961 # If no file are specified by the user, then we need to provide default
21962 # value. By we need to know if files were specified by the user.
21963 ac_need_defaults=:
21964 while test $# != 0
21966 case $1 in
21967 --*=*)
21968 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21969 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21970 ac_shift=:
21973 ac_option=$1
21974 ac_optarg=$2
21975 ac_shift=shift
21977 *) # This is not an option, so the user has probably given explicit
21978 # arguments.
21979 ac_option=$1
21980 ac_need_defaults=false;;
21981 esac
21983 case $ac_option in
21984 # Handling of the options.
21985 _ACEOF
21986 cat >>$CONFIG_STATUS <<\_ACEOF
21987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21988 ac_cs_recheck=: ;;
21989 --version | --vers* | -V )
21990 echo "$ac_cs_version"; exit 0 ;;
21991 --he | --h)
21992 # Conflict between --help and --header
21993 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21994 Try \`$0 --help' for more information." >&5
21995 echo "$as_me: error: ambiguous option: $1
21996 Try \`$0 --help' for more information." >&2;}
21997 { (exit 1); exit 1; }; };;
21998 --help | --hel | -h )
21999 echo "$ac_cs_usage"; exit 0 ;;
22000 --debug | --d* | -d )
22001 debug=: ;;
22002 --file | --fil | --fi | --f )
22003 $ac_shift
22004 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22005 ac_need_defaults=false;;
22006 --header | --heade | --head | --hea )
22007 $ac_shift
22008 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22009 ac_need_defaults=false;;
22010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22011 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22012 ac_cs_silent=: ;;
22014 # This is an error.
22015 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22016 Try \`$0 --help' for more information." >&5
22017 echo "$as_me: error: unrecognized option: $1
22018 Try \`$0 --help' for more information." >&2;}
22019 { (exit 1); exit 1; }; } ;;
22021 *) ac_config_targets="$ac_config_targets $1" ;;
22023 esac
22024 shift
22025 done
22027 ac_configure_extra_args=
22029 if $ac_cs_silent; then
22030 exec 6>/dev/null
22031 ac_configure_extra_args="$ac_configure_extra_args --silent"
22034 _ACEOF
22035 cat >>$CONFIG_STATUS <<_ACEOF
22036 if \$ac_cs_recheck; then
22037 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22038 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22041 _ACEOF
22043 cat >>$CONFIG_STATUS <<_ACEOF
22045 # INIT-COMMANDS section.
22048 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22051 # The HP-UX ksh and POSIX shell print the target directory to stdout
22052 # if CDPATH is set.
22053 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22055 sed_quote_subst='$sed_quote_subst'
22056 double_quote_subst='$double_quote_subst'
22057 delay_variable_subst='$delay_variable_subst'
22058 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22059 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22060 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22061 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22062 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22063 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22064 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22065 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22066 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22067 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22068 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22069 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22070 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22071 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22072 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22073 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22074 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22075 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22076 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22077 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22078 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22079 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22080 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22081 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22082 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22083 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22084 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22085 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22086 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22087 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22088 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22089 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22090 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22091 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22092 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22093 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22094 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22095 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22096 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22097 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22098 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22099 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22100 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22101 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"`'
22102 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22103 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22104 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22105 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22106 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22107 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22108 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22109 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22110 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22111 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22112 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22113 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22114 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22115 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22116 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22117 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22118 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22119 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22120 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22121 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22122 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22123 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22124 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22125 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22126 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22127 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22128 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22129 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22130 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22131 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22132 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22133 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22134 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22135 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22136 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22137 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22138 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22139 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22140 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22141 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22142 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22143 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22144 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22145 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22146 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22147 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22148 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22149 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22150 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22151 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22152 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22153 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22154 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22155 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22156 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22157 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22158 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22159 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22160 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22161 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22162 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22163 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22164 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22165 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22166 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22167 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22168 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22170 LTCC='$LTCC'
22171 LTCFLAGS='$LTCFLAGS'
22172 compiler='$compiler_DEFAULT'
22174 # Quote evaled strings.
22175 for var in SED \
22176 GREP \
22177 EGREP \
22178 FGREP \
22179 LD \
22180 NM \
22181 LN_S \
22182 lt_SP2NL \
22183 lt_NL2SP \
22184 reload_flag \
22185 deplibs_check_method \
22186 file_magic_cmd \
22187 AR \
22188 AR_FLAGS \
22189 STRIP \
22190 RANLIB \
22191 CC \
22192 CFLAGS \
22193 compiler \
22194 lt_cv_sys_global_symbol_pipe \
22195 lt_cv_sys_global_symbol_to_cdecl \
22196 lt_cv_sys_global_symbol_to_c_name_address \
22197 SHELL \
22198 ECHO \
22199 lt_prog_compiler_no_builtin_flag \
22200 lt_prog_compiler_wl \
22201 lt_prog_compiler_pic \
22202 lt_prog_compiler_static \
22203 lt_cv_prog_compiler_c_o \
22204 need_locks \
22205 shrext_cmds \
22206 export_dynamic_flag_spec \
22207 whole_archive_flag_spec \
22208 compiler_needs_object \
22209 with_gnu_ld \
22210 allow_undefined_flag \
22211 no_undefined_flag \
22212 hardcode_libdir_flag_spec \
22213 hardcode_libdir_flag_spec_ld \
22214 hardcode_libdir_separator \
22215 fix_srcfile_path \
22216 exclude_expsyms \
22217 include_expsyms \
22218 file_list_spec \
22219 variables_saved_for_relink \
22220 libname_spec \
22221 library_names_spec \
22222 soname_spec \
22223 finish_eval \
22224 old_striplib \
22225 striplib; do
22226 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22227 *[\\\\\\\`\\"\\\$]*)
22228 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22231 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22233 esac
22234 done
22236 # Double-quote double-evaled strings.
22237 for var in reload_cmds \
22238 old_postinstall_cmds \
22239 old_postuninstall_cmds \
22240 old_archive_cmds \
22241 extract_expsyms_cmds \
22242 old_archive_from_new_cmds \
22243 old_archive_from_expsyms_cmds \
22244 archive_cmds \
22245 archive_expsym_cmds \
22246 module_cmds \
22247 module_expsym_cmds \
22248 export_symbols_cmds \
22249 prelink_cmds \
22250 postinstall_cmds \
22251 postuninstall_cmds \
22252 finish_cmds \
22253 sys_lib_search_path_spec \
22254 sys_lib_dlsearch_path_spec; do
22255 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22256 *[\\\\\\\`\\"\\\$]*)
22257 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22260 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22262 esac
22263 done
22265 # Fix-up fallback echo if it was mangled by the above quoting rules.
22266 case \$lt_ECHO in
22267 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22269 esac
22271 ac_aux_dir='$ac_aux_dir'
22272 xsi_shell='$xsi_shell'
22273 lt_shell_append='$lt_shell_append'
22275 # See if we are running on zsh, and set the options which allow our
22276 # commands through without removal of \ escapes INIT.
22277 if test -n "\${ZSH_VERSION+set}" ; then
22278 setopt NO_GLOB_SUBST
22282 PACKAGE='$PACKAGE'
22283 VERSION='$VERSION'
22284 TIMESTAMP='$TIMESTAMP'
22285 RM='$RM'
22286 ofile='$ofile'
22290 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22291 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
22292 # from automake.
22293 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22294 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22295 LINGUAS="${LINGUAS-%UNSET%}"
22298 GCC="$GCC"
22299 CC="$CC"
22300 acx_cv_header_stdint="$acx_cv_header_stdint"
22301 acx_cv_type_int8_t="$acx_cv_type_int8_t"
22302 acx_cv_type_int16_t="$acx_cv_type_int16_t"
22303 acx_cv_type_int32_t="$acx_cv_type_int32_t"
22304 acx_cv_type_int64_t="$acx_cv_type_int64_t"
22305 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22306 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
22307 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
22308 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
22309 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
22310 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
22311 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
22312 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
22313 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
22317 _ACEOF
22321 cat >>$CONFIG_STATUS <<\_ACEOF
22322 for ac_config_target in $ac_config_targets
22324 case "$ac_config_target" in
22325 # Handling of arguments.
22326 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22327 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22328 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
22329 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
22330 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22331 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22332 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22333 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
22334 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22335 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22336 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22337 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22338 { (exit 1); exit 1; }; };;
22339 esac
22340 done
22342 # If the user did not use the arguments to specify the items to instantiate,
22343 # then the envvar interface is used. Set only those that are not.
22344 # We use the long form for the default assignment because of an extremely
22345 # bizarre bug on SunOS 4.1.3.
22346 if $ac_need_defaults; then
22347 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22348 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22352 # Have a temporary directory for convenience. Make it in the build tree
22353 # simply because there is no reason to put it here, and in addition,
22354 # creating and moving files from /tmp can sometimes cause problems.
22355 # Create a temporary directory, and hook for its removal unless debugging.
22356 $debug ||
22358 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22359 trap '{ (exit 1); exit 1; }' 1 2 13 15
22362 # Create a (secure) tmp directory for tmp files.
22365 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22366 test -n "$tmp" && test -d "$tmp"
22367 } ||
22369 tmp=./confstat$$-$RANDOM
22370 (umask 077 && mkdir $tmp)
22371 } ||
22373 echo "$me: cannot create a temporary directory in ." >&2
22374 { (exit 1); exit 1; }
22377 _ACEOF
22379 cat >>$CONFIG_STATUS <<_ACEOF
22382 # CONFIG_FILES section.
22385 # No need to generate the scripts if there are no CONFIG_FILES.
22386 # This happens for instance when ./config.status config.h
22387 if test -n "\$CONFIG_FILES"; then
22388 # Protect against being on the right side of a sed subst in config.status.
22389 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22390 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22391 s,@SHELL@,$SHELL,;t t
22392 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22393 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22394 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22395 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22396 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22397 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22398 s,@exec_prefix@,$exec_prefix,;t t
22399 s,@prefix@,$prefix,;t t
22400 s,@program_transform_name@,$program_transform_name,;t t
22401 s,@bindir@,$bindir,;t t
22402 s,@sbindir@,$sbindir,;t t
22403 s,@libexecdir@,$libexecdir,;t t
22404 s,@datadir@,$datadir,;t t
22405 s,@sysconfdir@,$sysconfdir,;t t
22406 s,@sharedstatedir@,$sharedstatedir,;t t
22407 s,@localstatedir@,$localstatedir,;t t
22408 s,@libdir@,$libdir,;t t
22409 s,@includedir@,$includedir,;t t
22410 s,@oldincludedir@,$oldincludedir,;t t
22411 s,@infodir@,$infodir,;t t
22412 s,@mandir@,$mandir,;t t
22413 s,@build_alias@,$build_alias,;t t
22414 s,@host_alias@,$host_alias,;t t
22415 s,@target_alias@,$target_alias,;t t
22416 s,@DEFS@,$DEFS,;t t
22417 s,@ECHO_C@,$ECHO_C,;t t
22418 s,@ECHO_N@,$ECHO_N,;t t
22419 s,@ECHO_T@,$ECHO_T,;t t
22420 s,@LIBS@,$LIBS,;t t
22421 s,@build@,$build,;t t
22422 s,@build_cpu@,$build_cpu,;t t
22423 s,@build_vendor@,$build_vendor,;t t
22424 s,@build_os@,$build_os,;t t
22425 s,@host@,$host,;t t
22426 s,@host_cpu@,$host_cpu,;t t
22427 s,@host_vendor@,$host_vendor,;t t
22428 s,@host_os@,$host_os,;t t
22429 s,@target@,$target,;t t
22430 s,@target_cpu@,$target_cpu,;t t
22431 s,@target_vendor@,$target_vendor,;t t
22432 s,@target_os@,$target_os,;t t
22433 s,@CC@,$CC,;t t
22434 s,@CFLAGS@,$CFLAGS,;t t
22435 s,@LDFLAGS@,$LDFLAGS,;t t
22436 s,@CPPFLAGS@,$CPPFLAGS,;t t
22437 s,@ac_ct_CC@,$ac_ct_CC,;t t
22438 s,@EXEEXT@,$EXEEXT,;t t
22439 s,@OBJEXT@,$OBJEXT,;t t
22440 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22441 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22442 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22443 s,@CYGPATH_W@,$CYGPATH_W,;t t
22444 s,@PACKAGE@,$PACKAGE,;t t
22445 s,@VERSION@,$VERSION,;t t
22446 s,@ACLOCAL@,$ACLOCAL,;t t
22447 s,@AUTOCONF@,$AUTOCONF,;t t
22448 s,@AUTOMAKE@,$AUTOMAKE,;t t
22449 s,@AUTOHEADER@,$AUTOHEADER,;t t
22450 s,@MAKEINFO@,$MAKEINFO,;t t
22451 s,@install_sh@,$install_sh,;t t
22452 s,@STRIP@,$STRIP,;t t
22453 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22454 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22455 s,@mkdir_p@,$mkdir_p,;t t
22456 s,@AWK@,$AWK,;t t
22457 s,@SET_MAKE@,$SET_MAKE,;t t
22458 s,@am__leading_dot@,$am__leading_dot,;t t
22459 s,@AMTAR@,$AMTAR,;t t
22460 s,@am__tar@,$am__tar,;t t
22461 s,@am__untar@,$am__untar,;t t
22462 s,@DEPDIR@,$DEPDIR,;t t
22463 s,@am__include@,$am__include,;t t
22464 s,@am__quote@,$am__quote,;t t
22465 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22466 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22467 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22468 s,@CCDEPMODE@,$CCDEPMODE,;t t
22469 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22470 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22471 s,@AR@,$AR,;t t
22472 s,@ac_ct_AR@,$ac_ct_AR,;t t
22473 s,@RANLIB@,$RANLIB,;t t
22474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22475 s,@CPP@,$CPP,;t t
22476 s,@EGREP@,$EGREP,;t t
22477 s,@LIBTOOL@,$LIBTOOL,;t t
22478 s,@SED@,$SED,;t t
22479 s,@FGREP@,$FGREP,;t t
22480 s,@GREP@,$GREP,;t t
22481 s,@LD@,$LD,;t t
22482 s,@DUMPBIN@,$DUMPBIN,;t t
22483 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22484 s,@NM@,$NM,;t t
22485 s,@LN_S@,$LN_S,;t t
22486 s,@lt_ECHO@,$lt_ECHO,;t t
22487 s,@DEBUGDIR@,$DEBUGDIR,;t t
22488 s,@PKGVERSION@,$PKGVERSION,;t t
22489 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22490 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22491 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22492 s,@NO_WERROR@,$NO_WERROR,;t t
22493 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22494 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22495 s,@MAINT@,$MAINT,;t t
22496 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
22497 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
22498 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
22499 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
22500 s,@host_noncanonical@,$host_noncanonical,;t t
22501 s,@target_noncanonical@,$target_noncanonical,;t t
22502 s,@bfdlibdir@,$bfdlibdir,;t t
22503 s,@bfdincludedir@,$bfdincludedir,;t t
22504 s,@USE_NLS@,$USE_NLS,;t t
22505 s,@LIBINTL@,$LIBINTL,;t t
22506 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
22507 s,@INCINTL@,$INCINTL,;t t
22508 s,@XGETTEXT@,$XGETTEXT,;t t
22509 s,@GMSGFMT@,$GMSGFMT,;t t
22510 s,@POSUB@,$POSUB,;t t
22511 s,@CATALOGS@,$CATALOGS,;t t
22512 s,@DATADIRNAME@,$DATADIRNAME,;t t
22513 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22514 s,@GENCAT@,$GENCAT,;t t
22515 s,@CATOBJEXT@,$CATOBJEXT,;t t
22516 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22517 s,@MSGFMT@,$MSGFMT,;t t
22518 s,@MSGMERGE@,$MSGMERGE,;t t
22519 s,@HDEFINES@,$HDEFINES,;t t
22520 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
22521 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
22522 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
22523 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
22524 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
22525 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
22526 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
22527 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
22528 s,@COREFILE@,$COREFILE,;t t
22529 s,@COREFLAG@,$COREFLAG,;t t
22530 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
22531 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
22532 s,@TDEFINES@,$TDEFINES,;t t
22533 s,@wordsize@,$wordsize,;t t
22534 s,@bfd64_libs@,$bfd64_libs,;t t
22535 s,@all_backends@,$all_backends,;t t
22536 s,@bfd_backends@,$bfd_backends,;t t
22537 s,@bfd_machines@,$bfd_machines,;t t
22538 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
22539 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
22540 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
22541 s,@tdefaults@,$tdefaults,;t t
22542 s,@datarootdir@,$datarootdir,;t t
22543 s,@docdir@,$docdir,;t t
22544 s,@htmldir@,$htmldir,;t t
22545 s,@LIBOBJS@,$LIBOBJS,;t t
22546 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22547 CEOF
22549 _ACEOF
22551 cat >>$CONFIG_STATUS <<\_ACEOF
22552 # Split the substitutions into bite-sized pieces for seds with
22553 # small command number limits, like on Digital OSF/1 and HP-UX.
22554 ac_max_sed_lines=48
22555 ac_sed_frag=1 # Number of current file.
22556 ac_beg=1 # First line for current file.
22557 ac_end=$ac_max_sed_lines # Line after last line for current file.
22558 ac_more_lines=:
22559 ac_sed_cmds=
22560 while $ac_more_lines; do
22561 if test $ac_beg -gt 1; then
22562 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22563 else
22564 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22566 if test ! -s $tmp/subs.frag; then
22567 ac_more_lines=false
22568 else
22569 # The purpose of the label and of the branching condition is to
22570 # speed up the sed processing (if there are no `@' at all, there
22571 # is no need to browse any of the substitutions).
22572 # These are the two extra sed commands mentioned above.
22573 (echo ':t
22574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22575 if test -z "$ac_sed_cmds"; then
22576 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22577 else
22578 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22580 ac_sed_frag=`expr $ac_sed_frag + 1`
22581 ac_beg=$ac_end
22582 ac_end=`expr $ac_end + $ac_max_sed_lines`
22584 done
22585 if test -z "$ac_sed_cmds"; then
22586 ac_sed_cmds=cat
22588 fi # test -n "$CONFIG_FILES"
22590 _ACEOF
22591 cat >>$CONFIG_STATUS <<\_ACEOF
22592 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22593 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22594 case $ac_file in
22595 - | *:- | *:-:* ) # input from stdin
22596 cat >$tmp/stdin
22597 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22599 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22600 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22601 * ) ac_file_in=$ac_file.in ;;
22602 esac
22604 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22605 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22607 X"$ac_file" : 'X\(//\)[^/]' \| \
22608 X"$ac_file" : 'X\(//\)$' \| \
22609 X"$ac_file" : 'X\(/\)' \| \
22610 . : '\(.\)' 2>/dev/null ||
22611 echo X"$ac_file" |
22612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22614 /^X\(\/\/\)$/{ s//\1/; q; }
22615 /^X\(\/\).*/{ s//\1/; q; }
22616 s/.*/./; q'`
22617 { if $as_mkdir_p; then
22618 mkdir -p "$ac_dir"
22619 else
22620 as_dir="$ac_dir"
22621 as_dirs=
22622 while test ! -d "$as_dir"; do
22623 as_dirs="$as_dir $as_dirs"
22624 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22626 X"$as_dir" : 'X\(//\)[^/]' \| \
22627 X"$as_dir" : 'X\(//\)$' \| \
22628 X"$as_dir" : 'X\(/\)' \| \
22629 . : '\(.\)' 2>/dev/null ||
22630 echo X"$as_dir" |
22631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22633 /^X\(\/\/\)$/{ s//\1/; q; }
22634 /^X\(\/\).*/{ s//\1/; q; }
22635 s/.*/./; q'`
22636 done
22637 test ! -n "$as_dirs" || mkdir $as_dirs
22638 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22639 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22640 { (exit 1); exit 1; }; }; }
22642 ac_builddir=.
22644 if test "$ac_dir" != .; then
22645 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22646 # A "../" for each directory in $ac_dir_suffix.
22647 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22648 else
22649 ac_dir_suffix= ac_top_builddir=
22652 case $srcdir in
22653 .) # No --srcdir option. We are building in place.
22654 ac_srcdir=.
22655 if test -z "$ac_top_builddir"; then
22656 ac_top_srcdir=.
22657 else
22658 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22659 fi ;;
22660 [\\/]* | ?:[\\/]* ) # Absolute path.
22661 ac_srcdir=$srcdir$ac_dir_suffix;
22662 ac_top_srcdir=$srcdir ;;
22663 *) # Relative path.
22664 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22665 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22666 esac
22668 # Do not use `cd foo && pwd` to compute absolute paths, because
22669 # the directories may not exist.
22670 case `pwd` in
22671 .) ac_abs_builddir="$ac_dir";;
22673 case "$ac_dir" in
22674 .) ac_abs_builddir=`pwd`;;
22675 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22676 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22677 esac;;
22678 esac
22679 case $ac_abs_builddir in
22680 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22682 case ${ac_top_builddir}. in
22683 .) ac_abs_top_builddir=$ac_abs_builddir;;
22684 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22685 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22686 esac;;
22687 esac
22688 case $ac_abs_builddir in
22689 .) ac_abs_srcdir=$ac_srcdir;;
22691 case $ac_srcdir in
22692 .) ac_abs_srcdir=$ac_abs_builddir;;
22693 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22694 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22695 esac;;
22696 esac
22697 case $ac_abs_builddir in
22698 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22700 case $ac_top_srcdir in
22701 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22702 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22703 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22704 esac;;
22705 esac
22708 case $INSTALL in
22709 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22710 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22711 esac
22713 if test x"$ac_file" != x-; then
22714 { echo "$as_me:$LINENO: creating $ac_file" >&5
22715 echo "$as_me: creating $ac_file" >&6;}
22716 rm -f "$ac_file"
22718 # Let's still pretend it is `configure' which instantiates (i.e., don't
22719 # use $as_me), people would be surprised to read:
22720 # /* config.h. Generated by config.status. */
22721 if test x"$ac_file" = x-; then
22722 configure_input=
22723 else
22724 configure_input="$ac_file. "
22726 configure_input=$configure_input"Generated from `echo $ac_file_in |
22727 sed 's,.*/,,'` by configure."
22729 # First look for the input files in the build tree, otherwise in the
22730 # src tree.
22731 ac_file_inputs=`IFS=:
22732 for f in $ac_file_in; do
22733 case $f in
22734 -) echo $tmp/stdin ;;
22735 [\\/$]*)
22736 # Absolute (can't be DOS-style, as IFS=:)
22737 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22738 echo "$as_me: error: cannot find input file: $f" >&2;}
22739 { (exit 1); exit 1; }; }
22740 echo "$f";;
22741 *) # Relative
22742 if test -f "$f"; then
22743 # Build tree
22744 echo "$f"
22745 elif test -f "$srcdir/$f"; then
22746 # Source tree
22747 echo "$srcdir/$f"
22748 else
22749 # /dev/null tree
22750 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22751 echo "$as_me: error: cannot find input file: $f" >&2;}
22752 { (exit 1); exit 1; }; }
22753 fi;;
22754 esac
22755 done` || { (exit 1); exit 1; }
22756 _ACEOF
22757 cat >>$CONFIG_STATUS <<_ACEOF
22758 sed "$ac_vpsub
22759 $extrasub
22760 _ACEOF
22761 cat >>$CONFIG_STATUS <<\_ACEOF
22763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22764 s,@configure_input@,$configure_input,;t t
22765 s,@srcdir@,$ac_srcdir,;t t
22766 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22767 s,@top_srcdir@,$ac_top_srcdir,;t t
22768 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22769 s,@builddir@,$ac_builddir,;t t
22770 s,@abs_builddir@,$ac_abs_builddir,;t t
22771 s,@top_builddir@,$ac_top_builddir,;t t
22772 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22773 s,@INSTALL@,$ac_INSTALL,;t t
22774 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22775 rm -f $tmp/stdin
22776 if test x"$ac_file" != x-; then
22777 mv $tmp/out $ac_file
22778 else
22779 cat $tmp/out
22780 rm -f $tmp/out
22783 done
22784 _ACEOF
22785 cat >>$CONFIG_STATUS <<\_ACEOF
22788 # CONFIG_HEADER section.
22791 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22792 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22794 # ac_d sets the value in "#define NAME VALUE" lines.
22795 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22796 ac_dB='[ ].*$,\1#\2'
22797 ac_dC=' '
22798 ac_dD=',;t'
22799 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22800 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22801 ac_uB='$,\1#\2define\3'
22802 ac_uC=' '
22803 ac_uD=',;t'
22805 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22807 case $ac_file in
22808 - | *:- | *:-:* ) # input from stdin
22809 cat >$tmp/stdin
22810 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22812 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22814 * ) ac_file_in=$ac_file.in ;;
22815 esac
22817 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22818 echo "$as_me: creating $ac_file" >&6;}
22820 # First look for the input files in the build tree, otherwise in the
22821 # src tree.
22822 ac_file_inputs=`IFS=:
22823 for f in $ac_file_in; do
22824 case $f in
22825 -) echo $tmp/stdin ;;
22826 [\\/$]*)
22827 # Absolute (can't be DOS-style, as IFS=:)
22828 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22829 echo "$as_me: error: cannot find input file: $f" >&2;}
22830 { (exit 1); exit 1; }; }
22831 # Do quote $f, to prevent DOS paths from being IFS'd.
22832 echo "$f";;
22833 *) # Relative
22834 if test -f "$f"; then
22835 # Build tree
22836 echo "$f"
22837 elif test -f "$srcdir/$f"; then
22838 # Source tree
22839 echo "$srcdir/$f"
22840 else
22841 # /dev/null tree
22842 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22843 echo "$as_me: error: cannot find input file: $f" >&2;}
22844 { (exit 1); exit 1; }; }
22845 fi;;
22846 esac
22847 done` || { (exit 1); exit 1; }
22848 # Remove the trailing spaces.
22849 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22851 _ACEOF
22853 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22854 # `conftest.undefs', that substitutes the proper values into
22855 # config.h.in to produce config.h. The first handles `#define'
22856 # templates, and the second `#undef' templates.
22857 # And first: Protect against being on the right side of a sed subst in
22858 # config.status. Protect against being in an unquoted here document
22859 # in config.status.
22860 rm -f conftest.defines conftest.undefs
22861 # Using a here document instead of a string reduces the quoting nightmare.
22862 # Putting comments in sed scripts is not portable.
22864 # `end' is used to avoid that the second main sed command (meant for
22865 # 0-ary CPP macros) applies to n-ary macro definitions.
22866 # See the Autoconf documentation for `clear'.
22867 cat >confdef2sed.sed <<\_ACEOF
22868 s/[\\&,]/\\&/g
22869 s,[\\$`],\\&,g
22870 t clear
22871 : clear
22872 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22873 t end
22874 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22875 : end
22876 _ACEOF
22877 # If some macros were called several times there might be several times
22878 # the same #defines, which is useless. Nevertheless, we may not want to
22879 # sort them, since we want the *last* AC-DEFINE to be honored.
22880 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22881 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22882 rm -f confdef2sed.sed
22884 # This sed command replaces #undef with comments. This is necessary, for
22885 # example, in the case of _POSIX_SOURCE, which is predefined and required
22886 # on some systems where configure will not decide to define it.
22887 cat >>conftest.undefs <<\_ACEOF
22888 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22889 _ACEOF
22891 # Break up conftest.defines because some shells have a limit on the size
22892 # of here documents, and old seds have small limits too (100 cmds).
22893 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22894 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22895 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22896 echo ' :' >>$CONFIG_STATUS
22897 rm -f conftest.tail
22898 while grep . conftest.defines >/dev/null
22900 # Write a limited-size here document to $tmp/defines.sed.
22901 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22902 # Speed up: don't consider the non `#define' lines.
22903 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22904 # Work around the forget-to-reset-the-flag bug.
22905 echo 't clr' >>$CONFIG_STATUS
22906 echo ': clr' >>$CONFIG_STATUS
22907 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22908 echo 'CEOF
22909 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22910 rm -f $tmp/in
22911 mv $tmp/out $tmp/in
22912 ' >>$CONFIG_STATUS
22913 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22914 rm -f conftest.defines
22915 mv conftest.tail conftest.defines
22916 done
22917 rm -f conftest.defines
22918 echo ' fi # grep' >>$CONFIG_STATUS
22919 echo >>$CONFIG_STATUS
22921 # Break up conftest.undefs because some shells have a limit on the size
22922 # of here documents, and old seds have small limits too (100 cmds).
22923 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22924 rm -f conftest.tail
22925 while grep . conftest.undefs >/dev/null
22927 # Write a limited-size here document to $tmp/undefs.sed.
22928 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22929 # Speed up: don't consider the non `#undef'
22930 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22931 # Work around the forget-to-reset-the-flag bug.
22932 echo 't clr' >>$CONFIG_STATUS
22933 echo ': clr' >>$CONFIG_STATUS
22934 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22935 echo 'CEOF
22936 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22937 rm -f $tmp/in
22938 mv $tmp/out $tmp/in
22939 ' >>$CONFIG_STATUS
22940 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22941 rm -f conftest.undefs
22942 mv conftest.tail conftest.undefs
22943 done
22944 rm -f conftest.undefs
22946 cat >>$CONFIG_STATUS <<\_ACEOF
22947 # Let's still pretend it is `configure' which instantiates (i.e., don't
22948 # use $as_me), people would be surprised to read:
22949 # /* config.h. Generated by config.status. */
22950 if test x"$ac_file" = x-; then
22951 echo "/* Generated by configure. */" >$tmp/config.h
22952 else
22953 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22955 cat $tmp/in >>$tmp/config.h
22956 rm -f $tmp/in
22957 if test x"$ac_file" != x-; then
22958 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22959 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22960 echo "$as_me: $ac_file is unchanged" >&6;}
22961 else
22962 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22964 X"$ac_file" : 'X\(//\)[^/]' \| \
22965 X"$ac_file" : 'X\(//\)$' \| \
22966 X"$ac_file" : 'X\(/\)' \| \
22967 . : '\(.\)' 2>/dev/null ||
22968 echo X"$ac_file" |
22969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22971 /^X\(\/\/\)$/{ s//\1/; q; }
22972 /^X\(\/\).*/{ s//\1/; q; }
22973 s/.*/./; q'`
22974 { if $as_mkdir_p; then
22975 mkdir -p "$ac_dir"
22976 else
22977 as_dir="$ac_dir"
22978 as_dirs=
22979 while test ! -d "$as_dir"; do
22980 as_dirs="$as_dir $as_dirs"
22981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22983 X"$as_dir" : 'X\(//\)[^/]' \| \
22984 X"$as_dir" : 'X\(//\)$' \| \
22985 X"$as_dir" : 'X\(/\)' \| \
22986 . : '\(.\)' 2>/dev/null ||
22987 echo X"$as_dir" |
22988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22990 /^X\(\/\/\)$/{ s//\1/; q; }
22991 /^X\(\/\).*/{ s//\1/; q; }
22992 s/.*/./; q'`
22993 done
22994 test ! -n "$as_dirs" || mkdir $as_dirs
22995 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22997 { (exit 1); exit 1; }; }; }
22999 rm -f $ac_file
23000 mv $tmp/config.h $ac_file
23002 else
23003 cat $tmp/config.h
23004 rm -f $tmp/config.h
23006 # Compute $ac_file's index in $config_headers.
23007 _am_stamp_count=1
23008 for _am_header in $config_headers :; do
23009 case $_am_header in
23010 $ac_file | $ac_file:* )
23011 break ;;
23013 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23014 esac
23015 done
23016 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23017 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018 X$ac_file : 'X\(//\)[^/]' \| \
23019 X$ac_file : 'X\(//\)$' \| \
23020 X$ac_file : 'X\(/\)' \| \
23021 . : '\(.\)' 2>/dev/null ||
23022 echo X$ac_file |
23023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23025 /^X\(\/\/\)$/{ s//\1/; q; }
23026 /^X\(\/\).*/{ s//\1/; q; }
23027 s/.*/./; q'`/stamp-h$_am_stamp_count
23028 done
23029 _ACEOF
23030 cat >>$CONFIG_STATUS <<\_ACEOF
23033 # CONFIG_COMMANDS section.
23035 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23036 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23037 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23038 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23039 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23040 X"$ac_dest" : 'X\(//\)[^/]' \| \
23041 X"$ac_dest" : 'X\(//\)$' \| \
23042 X"$ac_dest" : 'X\(/\)' \| \
23043 . : '\(.\)' 2>/dev/null ||
23044 echo X"$ac_dest" |
23045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23047 /^X\(\/\/\)$/{ s//\1/; q; }
23048 /^X\(\/\).*/{ s//\1/; q; }
23049 s/.*/./; q'`
23050 { if $as_mkdir_p; then
23051 mkdir -p "$ac_dir"
23052 else
23053 as_dir="$ac_dir"
23054 as_dirs=
23055 while test ! -d "$as_dir"; do
23056 as_dirs="$as_dir $as_dirs"
23057 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23059 X"$as_dir" : 'X\(//\)[^/]' \| \
23060 X"$as_dir" : 'X\(//\)$' \| \
23061 X"$as_dir" : 'X\(/\)' \| \
23062 . : '\(.\)' 2>/dev/null ||
23063 echo X"$as_dir" |
23064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23066 /^X\(\/\/\)$/{ s//\1/; q; }
23067 /^X\(\/\).*/{ s//\1/; q; }
23068 s/.*/./; q'`
23069 done
23070 test ! -n "$as_dirs" || mkdir $as_dirs
23071 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23072 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23073 { (exit 1); exit 1; }; }; }
23075 ac_builddir=.
23077 if test "$ac_dir" != .; then
23078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23079 # A "../" for each directory in $ac_dir_suffix.
23080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23081 else
23082 ac_dir_suffix= ac_top_builddir=
23085 case $srcdir in
23086 .) # No --srcdir option. We are building in place.
23087 ac_srcdir=.
23088 if test -z "$ac_top_builddir"; then
23089 ac_top_srcdir=.
23090 else
23091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23092 fi ;;
23093 [\\/]* | ?:[\\/]* ) # Absolute path.
23094 ac_srcdir=$srcdir$ac_dir_suffix;
23095 ac_top_srcdir=$srcdir ;;
23096 *) # Relative path.
23097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23099 esac
23101 # Do not use `cd foo && pwd` to compute absolute paths, because
23102 # the directories may not exist.
23103 case `pwd` in
23104 .) ac_abs_builddir="$ac_dir";;
23106 case "$ac_dir" in
23107 .) ac_abs_builddir=`pwd`;;
23108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23110 esac;;
23111 esac
23112 case $ac_abs_builddir in
23113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23115 case ${ac_top_builddir}. in
23116 .) ac_abs_top_builddir=$ac_abs_builddir;;
23117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23119 esac;;
23120 esac
23121 case $ac_abs_builddir in
23122 .) ac_abs_srcdir=$ac_srcdir;;
23124 case $ac_srcdir in
23125 .) ac_abs_srcdir=$ac_abs_builddir;;
23126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23128 esac;;
23129 esac
23130 case $ac_abs_builddir in
23131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23133 case $ac_top_srcdir in
23134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23137 esac;;
23138 esac
23141 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23142 echo "$as_me: executing $ac_dest commands" >&6;}
23143 case $ac_dest in
23144 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23145 # Strip MF so we end up with the name of the file.
23146 mf=`echo "$mf" | sed -e 's/:.*$//'`
23147 # Check whether this is an Automake generated Makefile or not.
23148 # We used to match only the files named `Makefile.in', but
23149 # some people rename them; so instead we look at the file content.
23150 # Grep'ing the first line is not enough: some people post-process
23151 # each Makefile.in and add a new line on top of each file to say so.
23152 # So let's grep whole file.
23153 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23154 dirpart=`(dirname "$mf") 2>/dev/null ||
23155 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23156 X"$mf" : 'X\(//\)[^/]' \| \
23157 X"$mf" : 'X\(//\)$' \| \
23158 X"$mf" : 'X\(/\)' \| \
23159 . : '\(.\)' 2>/dev/null ||
23160 echo X"$mf" |
23161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23163 /^X\(\/\/\)$/{ s//\1/; q; }
23164 /^X\(\/\).*/{ s//\1/; q; }
23165 s/.*/./; q'`
23166 else
23167 continue
23169 # Extract the definition of DEPDIR, am__include, and am__quote
23170 # from the Makefile without running `make'.
23171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23172 test -z "$DEPDIR" && continue
23173 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23174 test -z "am__include" && continue
23175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23176 # When using ansi2knr, U may be empty or an underscore; expand it
23177 U=`sed -n 's/^U = //p' < "$mf"`
23178 # Find all dependency output files, they are included files with
23179 # $(DEPDIR) in their names. We invoke sed twice because it is the
23180 # simplest approach to changing $(DEPDIR) to its actual value in the
23181 # expansion.
23182 for file in `sed -n "
23183 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23184 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23185 # Make sure the directory exists.
23186 test -f "$dirpart/$file" && continue
23187 fdir=`(dirname "$file") 2>/dev/null ||
23188 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23189 X"$file" : 'X\(//\)[^/]' \| \
23190 X"$file" : 'X\(//\)$' \| \
23191 X"$file" : 'X\(/\)' \| \
23192 . : '\(.\)' 2>/dev/null ||
23193 echo X"$file" |
23194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23196 /^X\(\/\/\)$/{ s//\1/; q; }
23197 /^X\(\/\).*/{ s//\1/; q; }
23198 s/.*/./; q'`
23199 { if $as_mkdir_p; then
23200 mkdir -p $dirpart/$fdir
23201 else
23202 as_dir=$dirpart/$fdir
23203 as_dirs=
23204 while test ! -d "$as_dir"; do
23205 as_dirs="$as_dir $as_dirs"
23206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23208 X"$as_dir" : 'X\(//\)[^/]' \| \
23209 X"$as_dir" : 'X\(//\)$' \| \
23210 X"$as_dir" : 'X\(/\)' \| \
23211 . : '\(.\)' 2>/dev/null ||
23212 echo X"$as_dir" |
23213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23215 /^X\(\/\/\)$/{ s//\1/; q; }
23216 /^X\(\/\).*/{ s//\1/; q; }
23217 s/.*/./; q'`
23218 done
23219 test ! -n "$as_dirs" || mkdir $as_dirs
23220 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23221 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23222 { (exit 1); exit 1; }; }; }
23224 # echo "creating $dirpart/$file"
23225 echo '# dummy' > "$dirpart/$file"
23226 done
23227 done
23229 libtool )
23231 # See if we are running on zsh, and set the options which allow our
23232 # commands through without removal of \ escapes.
23233 if test -n "${ZSH_VERSION+set}" ; then
23234 setopt NO_GLOB_SUBST
23237 cfgfile="${ofile}T"
23238 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23239 $RM "$cfgfile"
23241 cat <<_LT_EOF >> "$cfgfile"
23242 #! $SHELL
23244 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23245 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
23246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23247 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23249 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23250 # 2006, 2007 Free Software Foundation, Inc.
23252 # This file is part of GNU Libtool:
23253 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
23255 # This program is free software; you can redistribute it and/or modify
23256 # it under the terms of the GNU General Public License as published by
23257 # the Free Software Foundation; either version 2 of the License, or
23258 # (at your option) any later version.
23260 # This program is distributed in the hope that it will be useful, but
23261 # WITHOUT ANY WARRANTY; without even the implied warranty of
23262 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23263 # General Public License for more details.
23265 # You should have received a copy of the GNU General Public License
23266 # along with this program; if not, a copy can be downloaded from
23267 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
23268 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23269 # MA 02110-1301, USA.
23271 # As a special exception to the GNU General Public License, if you
23272 # distribute this file as part of a program that contains a
23273 # configuration script generated by Autoconf, you may include it under
23274 # the same distribution terms that you use for the rest of that program.
23277 # The names of the tagged configurations supported by this script.
23278 available_tags=""
23280 # ### BEGIN LIBTOOL CONFIG
23282 # Whether or not to build shared libraries.
23283 build_libtool_libs=$enable_shared
23285 # Which release of libtool.m4 was used?
23286 macro_version=$macro_version
23287 macro_revision=$macro_revision
23289 # Whether or not to build static libraries.
23290 build_old_libs=$enable_static
23292 # What type of objects to build.
23293 pic_mode=$pic_mode
23295 # Whether or not to optimize for fast installation.
23296 fast_install=$enable_fast_install
23298 # The host system.
23299 host_alias=$host_alias
23300 host=$host
23301 host_os=$host_os
23303 # The build system.
23304 build_alias=$build_alias
23305 build=$build
23306 build_os=$build_os
23308 # A sed program that does not truncate output.
23309 SED=$lt_SED
23311 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23312 Xsed="\$SED -e 1s/^X//"
23314 # A grep program that handles long lines.
23315 GREP=$lt_GREP
23317 # An ERE matcher.
23318 EGREP=$lt_EGREP
23320 # A literal string matcher.
23321 FGREP=$lt_FGREP
23323 # A BSD- or MS-compatible name lister.
23324 NM=$lt_NM
23326 # Whether we need soft or hard links.
23327 LN_S=$lt_LN_S
23329 # What is the maximum length of a command?
23330 max_cmd_len=$max_cmd_len
23332 # Object file suffix (normally "o").
23333 objext=$ac_objext
23335 # Executable file suffix (normally "").
23336 exeext=$exeext
23338 # whether the shell understands "unset".
23339 lt_unset=$lt_unset
23341 # turn spaces into newlines.
23342 SP2NL=$lt_lt_SP2NL
23344 # turn newlines into spaces.
23345 NL2SP=$lt_lt_NL2SP
23347 # How to create reloadable object files.
23348 reload_flag=$lt_reload_flag
23349 reload_cmds=$lt_reload_cmds
23351 # Method to check whether dependent libraries are shared objects.
23352 deplibs_check_method=$lt_deplibs_check_method
23354 # Command to use when deplibs_check_method == "file_magic".
23355 file_magic_cmd=$lt_file_magic_cmd
23357 # The archiver.
23358 AR=$lt_AR
23359 AR_FLAGS=$lt_AR_FLAGS
23361 # A symbol stripping program.
23362 STRIP=$lt_STRIP
23364 # Commands used to install an old-style archive.
23365 RANLIB=$lt_RANLIB
23366 old_postinstall_cmds=$lt_old_postinstall_cmds
23367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23369 # A C compiler.
23370 LTCC=$lt_CC
23372 # LTCC compiler flags.
23373 LTCFLAGS=$lt_CFLAGS
23375 # Take the output of nm and produce a listing of raw symbols and C names.
23376 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23378 # Transform the output of nm in a proper C declaration.
23379 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23381 # Transform the output of nm in a C name address pair.
23382 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23384 # The name of the directory that contains temporary libtool files.
23385 objdir=$objdir
23387 # Shell to use when invoking shell scripts.
23388 SHELL=$lt_SHELL
23390 # An echo program that does not interpret backslashes.
23391 ECHO=$lt_ECHO
23393 # Used to examine libraries when file_magic_cmd begins with "file".
23394 MAGIC_CMD=$MAGIC_CMD
23396 # Must we lock files when doing compilation?
23397 need_locks=$lt_need_locks
23399 # Old archive suffix (normally "a").
23400 libext=$libext
23402 # Shared library suffix (normally ".so").
23403 shrext_cmds=$lt_shrext_cmds
23405 # The commands to extract the exported symbol list from a shared archive.
23406 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23408 # Variables whose values should be saved in libtool wrapper scripts and
23409 # restored at link time.
23410 variables_saved_for_relink=$lt_variables_saved_for_relink
23412 # Do we need the "lib" prefix for modules?
23413 need_lib_prefix=$need_lib_prefix
23415 # Do we need a version for libraries?
23416 need_version=$need_version
23418 # Library versioning type.
23419 version_type=$version_type
23421 # Shared library runtime path variable.
23422 runpath_var=$runpath_var
23424 # Shared library path variable.
23425 shlibpath_var=$shlibpath_var
23427 # Is shlibpath searched before the hard-coded library search path?
23428 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23430 # Format of library name prefix.
23431 libname_spec=$lt_libname_spec
23433 # List of archive names. First name is the real one, the rest are links.
23434 # The last name is the one that the linker finds with -lNAME
23435 library_names_spec=$lt_library_names_spec
23437 # The coded name of the library, if different from the real name.
23438 soname_spec=$lt_soname_spec
23440 # Command to use after installation of a shared archive.
23441 postinstall_cmds=$lt_postinstall_cmds
23443 # Command to use after uninstallation of a shared archive.
23444 postuninstall_cmds=$lt_postuninstall_cmds
23446 # Commands used to finish a libtool library installation in a directory.
23447 finish_cmds=$lt_finish_cmds
23449 # As "finish_cmds", except a single script fragment to be evaled but
23450 # not shown.
23451 finish_eval=$lt_finish_eval
23453 # Whether we should hardcode library paths into libraries.
23454 hardcode_into_libs=$hardcode_into_libs
23456 # Compile-time system search path for libraries.
23457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23459 # Run-time system search path for libraries.
23460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23462 # Whether dlopen is supported.
23463 dlopen_support=$enable_dlopen
23465 # Whether dlopen of programs is supported.
23466 dlopen_self=$enable_dlopen_self
23468 # Whether dlopen of statically linked programs is supported.
23469 dlopen_self_static=$enable_dlopen_self_static
23471 # Commands to strip libraries.
23472 old_striplib=$lt_old_striplib
23473 striplib=$lt_striplib
23476 # The linker used to build libraries.
23477 LD=$lt_LD
23479 # Commands used to build an old-style archive.
23480 old_archive_cmds=$lt_old_archive_cmds
23482 # A language specific compiler.
23483 CC=$lt_compiler
23485 # Is the compiler the GNU compiler?
23486 with_gcc=$GCC
23488 # Compiler flag to turn off builtin functions.
23489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23491 # How to pass a linker flag through the compiler.
23492 wl=$lt_lt_prog_compiler_wl
23494 # Additional compiler flags for building library objects.
23495 pic_flag=$lt_lt_prog_compiler_pic
23497 # Compiler flag to prevent dynamic linking.
23498 link_static_flag=$lt_lt_prog_compiler_static
23500 # Does compiler simultaneously support -c and -o options?
23501 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23503 # Whether or not to add -lc for building shared libraries.
23504 build_libtool_need_lc=$archive_cmds_need_lc
23506 # Whether or not to disallow shared libs when runtime libs are static.
23507 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23509 # Compiler flag to allow reflexive dlopens.
23510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23512 # Compiler flag to generate shared objects directly from archives.
23513 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23515 # Whether the compiler copes with passing no objects directly.
23516 compiler_needs_object=$lt_compiler_needs_object
23518 # Create an old-style archive from a shared archive.
23519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23521 # Create a temporary old-style archive to link instead of a shared archive.
23522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23524 # Commands used to build a shared archive.
23525 archive_cmds=$lt_archive_cmds
23526 archive_expsym_cmds=$lt_archive_expsym_cmds
23528 # Commands used to build a loadable module if different from building
23529 # a shared archive.
23530 module_cmds=$lt_module_cmds
23531 module_expsym_cmds=$lt_module_expsym_cmds
23533 # Whether we are building with GNU ld or not.
23534 with_gnu_ld=$lt_with_gnu_ld
23536 # Flag that allows shared libraries with undefined symbols to be built.
23537 allow_undefined_flag=$lt_allow_undefined_flag
23539 # Flag that enforces no undefined symbols.
23540 no_undefined_flag=$lt_no_undefined_flag
23542 # Flag to hardcode \$libdir into a binary during linking.
23543 # This must work even if \$libdir does not exist
23544 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23546 # If ld is used when linking, flag to hardcode \$libdir into a binary
23547 # during linking. This must work even if \$libdir does not exist.
23548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23550 # Whether we need a single "-rpath" flag with a separated argument.
23551 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23553 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23554 # DIR into the resulting binary.
23555 hardcode_direct=$hardcode_direct
23557 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23558 # DIR into the resulting binary and the resulting library dependency is
23559 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23560 # library is relocated.
23561 hardcode_direct_absolute=$hardcode_direct_absolute
23563 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23564 # into the resulting binary.
23565 hardcode_minus_L=$hardcode_minus_L
23567 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23568 # into the resulting binary.
23569 hardcode_shlibpath_var=$hardcode_shlibpath_var
23571 # Set to "yes" if building a shared library automatically hardcodes DIR
23572 # into the library and all subsequent libraries and executables linked
23573 # against it.
23574 hardcode_automatic=$hardcode_automatic
23576 # Set to yes if linker adds runtime paths of dependent libraries
23577 # to runtime path list.
23578 inherit_rpath=$inherit_rpath
23580 # Whether libtool must link a program against all its dependency libraries.
23581 link_all_deplibs=$link_all_deplibs
23583 # Fix the shell variable \$srcfile for the compiler.
23584 fix_srcfile_path=$lt_fix_srcfile_path
23586 # Set to "yes" if exported symbols are required.
23587 always_export_symbols=$always_export_symbols
23589 # The commands to list exported symbols.
23590 export_symbols_cmds=$lt_export_symbols_cmds
23592 # Symbols that should not be listed in the preloaded symbols.
23593 exclude_expsyms=$lt_exclude_expsyms
23595 # Symbols that must always be exported.
23596 include_expsyms=$lt_include_expsyms
23598 # Commands necessary for linking programs (against libraries) with templates.
23599 prelink_cmds=$lt_prelink_cmds
23601 # Specify filename containing input files.
23602 file_list_spec=$lt_file_list_spec
23604 # How to hardcode a shared library path into an executable.
23605 hardcode_action=$hardcode_action
23607 # ### END LIBTOOL CONFIG
23609 _LT_EOF
23611 case $host_os in
23612 aix3*)
23613 cat <<\_LT_EOF >> "$cfgfile"
23614 # AIX sometimes has problems with the GCC collect2 program. For some
23615 # reason, if we set the COLLECT_NAMES environment variable, the problems
23616 # vanish in a puff of smoke.
23617 if test "X${COLLECT_NAMES+set}" != Xset; then
23618 COLLECT_NAMES=
23619 export COLLECT_NAMES
23621 _LT_EOF
23623 esac
23626 ltmain="$ac_aux_dir/ltmain.sh"
23629 # We use sed instead of cat because bash on DJGPP gets confused if
23630 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23631 # text mode, it properly converts lines to CR/LF. This bash problem
23632 # is reportedly fixed, but why not run on old versions too?
23633 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23634 || (rm -f "$cfgfile"; exit 1)
23636 case $xsi_shell in
23637 yes)
23638 cat << \_LT_EOF >> "$cfgfile"
23639 # func_dirname file append nondir_replacement
23640 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23641 # otherwise set result to NONDIR_REPLACEMENT.
23642 func_dirname ()
23644 case ${1} in
23645 */*) func_dirname_result="${1%/*}${2}" ;;
23646 * ) func_dirname_result="${3}" ;;
23647 esac
23650 # func_basename file
23651 func_basename ()
23653 func_basename_result="${1##*/}"
23656 # func_stripname prefix suffix name
23657 # strip PREFIX and SUFFIX off of NAME.
23658 # PREFIX and SUFFIX must not contain globbing or regex special
23659 # characters, hashes, percent signs, but SUFFIX may contain a leading
23660 # dot (in which case that matches only a dot).
23661 func_stripname ()
23663 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23664 # positional parameters, so assign one to ordinary parameter first.
23665 func_stripname_result=${3}
23666 func_stripname_result=${func_stripname_result#"${1}"}
23667 func_stripname_result=${func_stripname_result%"${2}"}
23670 # func_opt_split
23671 func_opt_split ()
23673 func_opt_split_opt=${1%%=*}
23674 func_opt_split_arg=${1#*=}
23677 # func_lo2o object
23678 func_lo2o ()
23680 case ${1} in
23681 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23682 *) func_lo2o_result=${1} ;;
23683 esac
23685 _LT_EOF
23687 *) # Bourne compatible functions.
23688 cat << \_LT_EOF >> "$cfgfile"
23689 # func_dirname file append nondir_replacement
23690 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23691 # otherwise set result to NONDIR_REPLACEMENT.
23692 func_dirname ()
23694 # Extract subdirectory from the argument.
23695 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23696 if test "X$func_dirname_result" = "X${1}"; then
23697 func_dirname_result="${3}"
23698 else
23699 func_dirname_result="$func_dirname_result${2}"
23703 # func_basename file
23704 func_basename ()
23706 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23709 # func_stripname prefix suffix name
23710 # strip PREFIX and SUFFIX off of NAME.
23711 # PREFIX and SUFFIX must not contain globbing or regex special
23712 # characters, hashes, percent signs, but SUFFIX may contain a leading
23713 # dot (in which case that matches only a dot).
23714 # func_strip_suffix prefix name
23715 func_stripname ()
23717 case ${2} in
23718 .*) func_stripname_result=`$ECHO "X${3}" \
23719 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23720 *) func_stripname_result=`$ECHO "X${3}" \
23721 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23722 esac
23725 # sed scripts:
23726 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23727 my_sed_long_arg='1s/^-[^=]*=//'
23729 # func_opt_split
23730 func_opt_split ()
23732 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23733 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23736 # func_lo2o object
23737 func_lo2o ()
23739 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23741 _LT_EOF
23742 esac
23744 case $lt_shell_append in
23745 yes)
23746 cat << \_LT_EOF >> "$cfgfile"
23748 # func_append var value
23749 # Append VALUE to the end of shell variable VAR.
23750 func_append ()
23752 eval "$1+=\$2"
23754 _LT_EOF
23757 cat << \_LT_EOF >> "$cfgfile"
23759 # func_append var value
23760 # Append VALUE to the end of shell variable VAR.
23761 func_append ()
23763 eval "$1=\$$1\$2"
23765 _LT_EOF
23767 esac
23770 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23771 || (rm -f "$cfgfile"; exit 1)
23773 mv -f "$cfgfile" "$ofile" ||
23774 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23775 chmod +x "$ofile"
23778 default-1 )
23779 for ac_file in $CONFIG_FILES; do
23780 # Support "outfile[:infile[:infile...]]"
23781 case "$ac_file" in
23782 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23783 esac
23784 # PO directories have a Makefile.in generated from Makefile.in.in.
23785 case "$ac_file" in */Makefile.in)
23786 # Adjust a relative srcdir.
23787 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23788 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23789 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23790 # In autoconf-2.13 it is called $ac_given_srcdir.
23791 # In autoconf-2.50 it is called $srcdir.
23792 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23793 case "$ac_given_srcdir" in
23794 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23795 /*) top_srcdir="$ac_given_srcdir" ;;
23796 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23797 esac
23798 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23799 rm -f "$ac_dir/POTFILES"
23800 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23801 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23802 POMAKEFILEDEPS="POTFILES.in"
23803 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
23804 # on $ac_dir but don't depend on user-specified configuration
23805 # parameters.
23806 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23807 # The LINGUAS file contains the set of available languages.
23808 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23809 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23811 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23812 # Hide the ALL_LINGUAS assigment from automake.
23813 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23814 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23815 else
23816 # The set of available languages was given in configure.in.
23817 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23819 case "$ac_given_srcdir" in
23820 .) srcdirpre= ;;
23821 *) srcdirpre='$(srcdir)/' ;;
23822 esac
23823 POFILES=
23824 GMOFILES=
23825 UPDATEPOFILES=
23826 DUMMYPOFILES=
23827 for lang in $ALL_LINGUAS; do
23828 POFILES="$POFILES $srcdirpre$lang.po"
23829 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23830 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23831 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23832 done
23833 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23834 # environment variable.
23835 INST_LINGUAS=
23836 if test -n "$ALL_LINGUAS"; then
23837 for presentlang in $ALL_LINGUAS; do
23838 useit=no
23839 if test "%UNSET%" != "$LINGUAS"; then
23840 desiredlanguages="$LINGUAS"
23841 else
23842 desiredlanguages="$ALL_LINGUAS"
23844 for desiredlang in $desiredlanguages; do
23845 # Use the presentlang catalog if desiredlang is
23846 # a. equal to presentlang, or
23847 # b. a variant of presentlang (because in this case,
23848 # presentlang can be used as a fallback for messages
23849 # which are not translated in the desiredlang catalog).
23850 case "$desiredlang" in
23851 "$presentlang"*) useit=yes;;
23852 esac
23853 done
23854 if test $useit = yes; then
23855 INST_LINGUAS="$INST_LINGUAS $presentlang"
23857 done
23859 CATALOGS=
23860 if test -n "$INST_LINGUAS"; then
23861 for lang in $INST_LINGUAS; do
23862 CATALOGS="$CATALOGS $lang.gmo"
23863 done
23865 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23866 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"
23867 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23868 if test -f "$f"; then
23869 case "$f" in
23870 *.orig | *.bak | *~) ;;
23871 *) cat "$f" >> "$ac_dir/Makefile" ;;
23872 esac
23874 done
23877 esac
23878 done ;;
23879 bfd_stdint.h )
23880 if test "$GCC" = yes; then
23881 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23882 else
23883 echo "/* generated for $CC */" > tmp-stdint.h
23886 sed 's/^ *//' >> tmp-stdint.h <<EOF
23888 #ifndef GCC_GENERATED_STDINT_H
23889 #define GCC_GENERATED_STDINT_H 1
23891 #include <sys/types.h>
23894 if test "$acx_cv_header_stdint" != stdint.h; then
23895 echo "#include <stddef.h>" >> tmp-stdint.h
23897 if test "$acx_cv_header_stdint" != stddef.h; then
23898 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23901 sed 's/^ *//' >> tmp-stdint.h <<EOF
23902 /* glibc uses these symbols as guards to prevent redefinitions. */
23903 #ifdef __int8_t_defined
23904 #define _INT8_T
23905 #define _INT16_T
23906 #define _INT32_T
23907 #endif
23908 #ifdef __uint32_t_defined
23909 #define _UINT32_T
23910 #endif
23914 # ----------------- done header, emit basic int types -------------
23915 if test "$acx_cv_header_stdint" = stddef.h; then
23916 sed 's/^ *//' >> tmp-stdint.h <<EOF
23918 #ifndef _UINT8_T
23919 #define _UINT8_T
23920 #ifndef __uint8_t_defined
23921 #define __uint8_t_defined
23922 typedef unsigned $acx_cv_type_int8_t uint8_t;
23923 #endif
23924 #endif
23926 #ifndef _UINT16_T
23927 #define _UINT16_T
23928 #ifndef __uint16_t_defined
23929 #define __uint16_t_defined
23930 typedef unsigned $acx_cv_type_int16_t uint16_t;
23931 #endif
23932 #endif
23934 #ifndef _UINT32_T
23935 #define _UINT32_T
23936 #ifndef __uint32_t_defined
23937 #define __uint32_t_defined
23938 typedef unsigned $acx_cv_type_int32_t uint32_t;
23939 #endif
23940 #endif
23942 #ifndef _INT8_T
23943 #define _INT8_T
23944 #ifndef __int8_t_defined
23945 #define __int8_t_defined
23946 typedef $acx_cv_type_int8_t int8_t;
23947 #endif
23948 #endif
23950 #ifndef _INT16_T
23951 #define _INT16_T
23952 #ifndef __int16_t_defined
23953 #define __int16_t_defined
23954 typedef $acx_cv_type_int16_t int16_t;
23955 #endif
23956 #endif
23958 #ifndef _INT32_T
23959 #define _INT32_T
23960 #ifndef __int32_t_defined
23961 #define __int32_t_defined
23962 typedef $acx_cv_type_int32_t int32_t;
23963 #endif
23964 #endif
23966 elif test "$ac_cv_type_u_int32_t" = yes; then
23967 sed 's/^ *//' >> tmp-stdint.h <<EOF
23969 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23970 #ifndef _INT8_T
23971 #define _INT8_T
23972 #endif
23973 #ifndef _INT16_T
23974 #define _INT16_T
23975 #endif
23976 #ifndef _INT32_T
23977 #define _INT32_T
23978 #endif
23980 #ifndef _UINT8_T
23981 #define _UINT8_T
23982 #ifndef __uint8_t_defined
23983 #define __uint8_t_defined
23984 typedef u_int8_t uint8_t;
23985 #endif
23986 #endif
23988 #ifndef _UINT16_T
23989 #define _UINT16_T
23990 #ifndef __uint16_t_defined
23991 #define __uint16_t_defined
23992 typedef u_int16_t uint16_t;
23993 #endif
23994 #endif
23996 #ifndef _UINT32_T
23997 #define _UINT32_T
23998 #ifndef __uint32_t_defined
23999 #define __uint32_t_defined
24000 typedef u_int32_t uint32_t;
24001 #endif
24002 #endif
24004 else
24005 sed 's/^ *//' >> tmp-stdint.h <<EOF
24007 /* Some systems have guard macros to prevent redefinitions, define them. */
24008 #ifndef _INT8_T
24009 #define _INT8_T
24010 #endif
24011 #ifndef _INT16_T
24012 #define _INT16_T
24013 #endif
24014 #ifndef _INT32_T
24015 #define _INT32_T
24016 #endif
24017 #ifndef _UINT8_T
24018 #define _UINT8_T
24019 #endif
24020 #ifndef _UINT16_T
24021 #define _UINT16_T
24022 #endif
24023 #ifndef _UINT32_T
24024 #define _UINT32_T
24025 #endif
24029 # ------------- done basic int types, emit int64_t types ------------
24030 if test "$ac_cv_type_uint64_t" = yes; then
24031 sed 's/^ *//' >> tmp-stdint.h <<EOF
24033 /* system headers have good uint64_t and int64_t */
24034 #ifndef _INT64_T
24035 #define _INT64_T
24036 #endif
24037 #ifndef _UINT64_T
24038 #define _UINT64_T
24039 #endif
24041 elif test "$ac_cv_type_u_int64_t" = yes; then
24042 sed 's/^ *//' >> tmp-stdint.h <<EOF
24044 /* system headers have an u_int64_t (and int64_t) */
24045 #ifndef _INT64_T
24046 #define _INT64_T
24047 #endif
24048 #ifndef _UINT64_T
24049 #define _UINT64_T
24050 #ifndef __uint64_t_defined
24051 #define __uint64_t_defined
24052 typedef u_int64_t uint64_t;
24053 #endif
24054 #endif
24056 elif test -n "$acx_cv_type_int64_t"; then
24057 sed 's/^ *//' >> tmp-stdint.h <<EOF
24059 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24060 #ifndef _INT64_T
24061 #define _INT64_T
24062 typedef $acx_cv_type_int64_t int64_t;
24063 #endif
24064 #ifndef _UINT64_T
24065 #define _UINT64_T
24066 #ifndef __uint64_t_defined
24067 #define __uint64_t_defined
24068 typedef unsigned $acx_cv_type_int64_t uint64_t;
24069 #endif
24070 #endif
24072 else
24073 sed 's/^ *//' >> tmp-stdint.h <<EOF
24075 /* some common heuristics for int64_t, using compiler-specific tests */
24076 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24077 #ifndef _INT64_T
24078 #define _INT64_T
24079 #ifndef __int64_t_defined
24080 typedef long long int64_t;
24081 #endif
24082 #endif
24083 #ifndef _UINT64_T
24084 #define _UINT64_T
24085 typedef unsigned long long uint64_t;
24086 #endif
24088 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24089 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24090 does not implement __extension__. But that compiler doesn't define
24091 __GNUC_MINOR__. */
24092 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24093 # define __extension__
24094 # endif
24096 # ifndef _INT64_T
24097 # define _INT64_T
24098 __extension__ typedef long long int64_t;
24099 # endif
24100 # ifndef _UINT64_T
24101 # define _UINT64_T
24102 __extension__ typedef unsigned long long uint64_t;
24103 # endif
24105 #elif !defined __STRICT_ANSI__
24106 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24108 # ifndef _INT64_T
24109 # define _INT64_T
24110 typedef __int64 int64_t;
24111 # endif
24112 # ifndef _UINT64_T
24113 # define _UINT64_T
24114 typedef unsigned __int64 uint64_t;
24115 # endif
24116 # endif /* compiler */
24118 #endif /* ANSI version */
24122 # ------------- done int64_t types, emit intptr types ------------
24123 if test "$ac_cv_type_uintptr_t" != yes; then
24124 sed 's/^ *//' >> tmp-stdint.h <<EOF
24126 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24127 #ifndef __uintptr_t_defined
24128 typedef u$acx_cv_type_intptr_t uintptr_t;
24129 #endif
24130 #ifndef __intptr_t_defined
24131 typedef $acx_cv_type_intptr_t intptr_t;
24132 #endif
24136 # ------------- done intptr types, emit int_least types ------------
24137 if test "$ac_cv_type_int_least32_t" != yes; then
24138 sed 's/^ *//' >> tmp-stdint.h <<EOF
24140 /* Define int_least types */
24141 typedef int8_t int_least8_t;
24142 typedef int16_t int_least16_t;
24143 typedef int32_t int_least32_t;
24144 #ifdef _INT64_T
24145 typedef int64_t int_least64_t;
24146 #endif
24148 typedef uint8_t uint_least8_t;
24149 typedef uint16_t uint_least16_t;
24150 typedef uint32_t uint_least32_t;
24151 #ifdef _UINT64_T
24152 typedef uint64_t uint_least64_t;
24153 #endif
24157 # ------------- done intptr types, emit int_fast types ------------
24158 if test "$ac_cv_type_int_fast32_t" != yes; then
24159 sed 's/^ *//' >> tmp-stdint.h <<EOF
24161 /* Define int_fast types. short is often slow */
24162 typedef int8_t int_fast8_t;
24163 typedef int int_fast16_t;
24164 typedef int32_t int_fast32_t;
24165 #ifdef _INT64_T
24166 typedef int64_t int_fast64_t;
24167 #endif
24169 typedef uint8_t uint_fast8_t;
24170 typedef unsigned int uint_fast16_t;
24171 typedef uint32_t uint_fast32_t;
24172 #ifdef _UINT64_T
24173 typedef uint64_t uint_fast64_t;
24174 #endif
24178 if test "$ac_cv_type_uintmax_t" != yes; then
24179 sed 's/^ *//' >> tmp-stdint.h <<EOF
24181 /* Define intmax based on what we found */
24182 #ifdef _INT64_T
24183 typedef int64_t intmax_t;
24184 #else
24185 typedef long intmax_t;
24186 #endif
24187 #ifdef _UINT64_T
24188 typedef uint64_t uintmax_t;
24189 #else
24190 typedef unsigned long uintmax_t;
24191 #endif
24195 sed 's/^ *//' >> tmp-stdint.h <<EOF
24197 #endif /* GCC_GENERATED_STDINT_H */
24200 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
24201 rm -f tmp-stdint.h
24202 else
24203 mv -f tmp-stdint.h bfd_stdint.h
24207 default )
24208 case "$srcdir" in
24209 .) srcdirpre= ;;
24210 *) srcdirpre='$(srcdir)/' ;;
24211 esac
24212 POFILES=
24213 GMOFILES=
24214 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
24215 if test $lang != dummy; then
24216 POFILES="$POFILES $srcdirpre$lang.po"
24217 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24219 done
24220 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
24221 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
24222 -e "s,@POFILES@,$POFILES," \
24223 -e "s,@GMOFILES@,$GMOFILES," \
24224 po/Makefile.in > po/Makefile ;;
24225 esac
24226 done
24227 _ACEOF
24229 cat >>$CONFIG_STATUS <<\_ACEOF
24231 { (exit 0); exit 0; }
24232 _ACEOF
24233 chmod +x $CONFIG_STATUS
24234 ac_clean_files=$ac_clean_files_save
24237 # configure is writing to config.log, and then calls config.status.
24238 # config.status does its own redirection, appending to config.log.
24239 # Unfortunately, on DOS this fails, as config.log is still kept open
24240 # by configure, so config.status won't be able to write to it; its
24241 # output is simply discarded. So we exec the FD to /dev/null,
24242 # effectively closing config.log, so it can be properly (re)opened and
24243 # appended to by config.status. When coming back to configure, we
24244 # need to make the FD available again.
24245 if test "$no_create" != yes; then
24246 ac_cs_success=:
24247 ac_config_status_args=
24248 test "$silent" = yes &&
24249 ac_config_status_args="$ac_config_status_args --quiet"
24250 exec 5>/dev/null
24251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24252 exec 5>>config.log
24253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24254 # would make configure fail if this is the last instruction.
24255 $ac_cs_success || { (exit 1); exit 1; }