bfd/
[deliverable/binutils-gdb.git] / bfd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
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','`
252 ;;
253 esac
254
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
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274 $*
275 _LT_EOF
276 exit 0
277 fi
278
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
282
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
292 fi
293 done
294 fi
295
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
299 :
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'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
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
316 fi
317 done
318 IFS="$lt_save_ifs"
319
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
342 :
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=:
360
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
365 fi
366 prev="$cmd"
367 done
368
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
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
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"
388 fi
389
390
391
392
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`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
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}
410
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}
415
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
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"
460
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_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
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
516 case $ac_option in
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
552
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
747
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
790 *)
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 ;;
797
798 esac
799 done
800
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821 do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874 else
875 ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922
923 #
924 # Report the --help message.
925 #
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930 \`configure' configures this package to adapt to many kinds of systems.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950 _ACEOF
951
952 cat <<_ACEOF
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979 _ACEOF
980
981 cat <<\_ACEOF
982
983 Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
987
988 System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992 _ACEOF
993 fi
994
995 if test -n "$ac_init_help"; then
996
997 cat <<\_ACEOF
998
999 Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=no]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-secureplt Default to creating read-only plt entries
1015 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1016 --enable-werror treat compile warnings as errors
1017 --enable-build-warnings enable build-time compiler warnings
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
1020 --enable-install-libbfd controls installation of libbfd and related headers
1021 --disable-nls do not use Native Language Support
1022
1023 Optional Packages:
1024 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1025 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1026 --with-pic try to use only PIC/non-PIC objects [default=use
1027 both]
1028 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1029 --with-mmap try using mmap for BFD input files if available
1030 --with-separate-debug-dir=DIR
1031 Look for global separate debug info in DIR
1032 [default=LIBDIR/debug]
1033 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1034 Binutils"
1035 --with-bugurl=URL Direct users to URL to report a bug
1036
1037 Some influential environment variables:
1038 CC C compiler command
1039 CFLAGS C compiler flags
1040 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1041 nonstandard directory <lib dir>
1042 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043 headers in a nonstandard directory <include dir>
1044 CPP C preprocessor
1045
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1048
1049 _ACEOF
1050 fi
1051
1052 if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1054 ac_popdir=`pwd`
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1057 ac_builddir=.
1058
1059 if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 else
1064 ac_dir_suffix= ac_top_builddir=
1065 fi
1066
1067 case $srcdir in
1068 .) # No --srcdir option. We are building in place.
1069 ac_srcdir=.
1070 if test -z "$ac_top_builddir"; then
1071 ac_top_srcdir=.
1072 else
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 fi ;;
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1078 *) # Relative path.
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 esac
1082
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1085 case `pwd` in
1086 .) ac_abs_builddir="$ac_dir";;
1087 *)
1088 case "$ac_dir" in
1089 .) ac_abs_builddir=`pwd`;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *)
1097 case ${ac_top_builddir}. in
1098 .) ac_abs_top_builddir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1105 *)
1106 case $ac_srcdir in
1107 .) ac_abs_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110 esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *)
1115 case $ac_top_srcdir in
1116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119 esac;;
1120 esac
1121
1122 cd $ac_dir
1123 # Check for guested configure; otherwise get Cygnus style configure.
1124 if test -f $ac_srcdir/configure.gnu; then
1125 echo
1126 $SHELL $ac_srcdir/configure.gnu --help=recursive
1127 elif test -f $ac_srcdir/configure; then
1128 echo
1129 $SHELL $ac_srcdir/configure --help=recursive
1130 elif test -f $ac_srcdir/configure.ac ||
1131 test -f $ac_srcdir/configure.in; then
1132 echo
1133 $ac_configure --help
1134 else
1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136 fi
1137 cd "$ac_popdir"
1138 done
1139 fi
1140
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1143 cat <<\_ACEOF
1144
1145 Copyright (C) 2003 Free Software Foundation, Inc.
1146 This configure script is free software; the Free Software Foundation
1147 gives unlimited permission to copy, distribute and modify it.
1148 _ACEOF
1149 exit 0
1150 fi
1151 exec 5>config.log
1152 cat >&5 <<_ACEOF
1153 This file contains any messages produced by compilers while
1154 running configure, to aid debugging if configure makes a mistake.
1155
1156 It was created by $as_me, which was
1157 generated by GNU Autoconf 2.59. Invocation command line was
1158
1159 $ $0 $@
1160
1161 _ACEOF
1162 {
1163 cat <<_ASUNAME
1164 ## --------- ##
1165 ## Platform. ##
1166 ## --------- ##
1167
1168 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1169 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1170 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1171 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1172 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173
1174 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1175 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1176
1177 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1178 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1179 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1180 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1181 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1182 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1183 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1184
1185 _ASUNAME
1186
1187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1188 for as_dir in $PATH
1189 do
1190 IFS=$as_save_IFS
1191 test -z "$as_dir" && as_dir=.
1192 echo "PATH: $as_dir"
1193 done
1194
1195 } >&5
1196
1197 cat >&5 <<_ACEOF
1198
1199
1200 ## ----------- ##
1201 ## Core tests. ##
1202 ## ----------- ##
1203
1204 _ACEOF
1205
1206
1207 # Keep a trace of the command line.
1208 # Strip out --no-create and --no-recursion so they do not pile up.
1209 # Strip out --silent because we don't want to record it for future runs.
1210 # Also quote any args containing shell meta-characters.
1211 # Make two passes to allow for proper duplicate-argument suppression.
1212 ac_configure_args=
1213 ac_configure_args0=
1214 ac_configure_args1=
1215 ac_sep=
1216 ac_must_keep_next=false
1217 for ac_pass in 1 2
1218 do
1219 for ac_arg
1220 do
1221 case $ac_arg in
1222 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 continue ;;
1226 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228 esac
1229 case $ac_pass in
1230 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231 2)
1232 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1233 if test $ac_must_keep_next = true; then
1234 ac_must_keep_next=false # Got value, back to normal.
1235 else
1236 case $ac_arg in
1237 *=* | --config-cache | -C | -disable-* | --disable-* \
1238 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1239 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1240 | -with-* | --with-* | -without-* | --without-* | --x)
1241 case "$ac_configure_args0 " in
1242 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243 esac
1244 ;;
1245 -* ) ac_must_keep_next=true ;;
1246 esac
1247 fi
1248 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1249 # Get rid of the leading space.
1250 ac_sep=" "
1251 ;;
1252 esac
1253 done
1254 done
1255 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1256 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257
1258 # When interrupted or exit'd, cleanup temporary files, and complete
1259 # config.log. We remove comments because anyway the quotes in there
1260 # would cause problems or look ugly.
1261 # WARNING: Be sure not to use single quotes in there, as some shells,
1262 # such as our DU 5.0 friend, will then `close' the trap.
1263 trap 'exit_status=$?
1264 # Save into config.log some information that might help in debugging.
1265 {
1266 echo
1267
1268 cat <<\_ASBOX
1269 ## ---------------- ##
1270 ## Cache variables. ##
1271 ## ---------------- ##
1272 _ASBOX
1273 echo
1274 # The following way of writing the cache mishandles newlines in values,
1275 {
1276 (set) 2>&1 |
1277 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278 *ac_space=\ *)
1279 sed -n \
1280 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1282 ;;
1283 *)
1284 sed -n \
1285 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 ;;
1287 esac;
1288 }
1289 echo
1290
1291 cat <<\_ASBOX
1292 ## ----------------- ##
1293 ## Output variables. ##
1294 ## ----------------- ##
1295 _ASBOX
1296 echo
1297 for ac_var in $ac_subst_vars
1298 do
1299 eval ac_val=$`echo $ac_var`
1300 echo "$ac_var='"'"'$ac_val'"'"'"
1301 done | sort
1302 echo
1303
1304 if test -n "$ac_subst_files"; then
1305 cat <<\_ASBOX
1306 ## ------------- ##
1307 ## Output files. ##
1308 ## ------------- ##
1309 _ASBOX
1310 echo
1311 for ac_var in $ac_subst_files
1312 do
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1315 done | sort
1316 echo
1317 fi
1318
1319 if test -s confdefs.h; then
1320 cat <<\_ASBOX
1321 ## ----------- ##
1322 ## confdefs.h. ##
1323 ## ----------- ##
1324 _ASBOX
1325 echo
1326 sed "/^$/d" confdefs.h | sort
1327 echo
1328 fi
1329 test "$ac_signal" != 0 &&
1330 echo "$as_me: caught signal $ac_signal"
1331 echo "$as_me: exit $exit_status"
1332 } >&5
1333 rm -f core *.core &&
1334 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335 exit $exit_status
1336 ' 0
1337 for ac_signal in 1 2 13 15; do
1338 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1339 done
1340 ac_signal=0
1341
1342 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1343 rm -rf conftest* confdefs.h
1344 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345 echo >confdefs.h
1346
1347 # Predefined preprocessor variables.
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_NAME "$PACKAGE_NAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_STRING "$PACKAGE_STRING"
1366 _ACEOF
1367
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1371 _ACEOF
1372
1373
1374 # Let the site file select an alternate cache file if it wants to.
1375 # Prefer explicitly selected file to automatically selected ones.
1376 if test -z "$CONFIG_SITE"; then
1377 if test "x$prefix" != xNONE; then
1378 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379 else
1380 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381 fi
1382 fi
1383 for ac_site_file in $CONFIG_SITE; do
1384 if test -r "$ac_site_file"; then
1385 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1386 echo "$as_me: loading site script $ac_site_file" >&6;}
1387 sed 's/^/| /' "$ac_site_file" >&5
1388 . "$ac_site_file"
1389 fi
1390 done
1391
1392 if test -r "$cache_file"; then
1393 # Some versions of bash will fail to source /dev/null (special
1394 # files actually), so we avoid doing that.
1395 if test -f "$cache_file"; then
1396 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1397 echo "$as_me: loading cache $cache_file" >&6;}
1398 case $cache_file in
1399 [\\/]* | ?:[\\/]* ) . $cache_file;;
1400 *) . ./$cache_file;;
1401 esac
1402 fi
1403 else
1404 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1405 echo "$as_me: creating cache $cache_file" >&6;}
1406 >$cache_file
1407 fi
1408
1409 # Check that the precious variables saved in the cache have kept the same
1410 # value.
1411 ac_cache_corrupted=false
1412 for ac_var in `(set) 2>&1 |
1413 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1415 eval ac_new_set=\$ac_env_${ac_var}_set
1416 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1417 eval ac_new_val="\$ac_env_${ac_var}_value"
1418 case $ac_old_set,$ac_new_set in
1419 set,)
1420 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1421 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1422 ac_cache_corrupted=: ;;
1423 ,set)
1424 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1425 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1426 ac_cache_corrupted=: ;;
1427 ,);;
1428 *)
1429 if test "x$ac_old_val" != "x$ac_new_val"; then
1430 # differences in whitespace do not lead to failure.
1431 ac_old_val_w=`echo x $ac_old_val`
1432 ac_new_val_w=`echo x $ac_new_val`
1433 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1434 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1435 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1436 ac_cache_corrupted=:
1437 else
1438 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1439 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1440 eval $ac_var=\$ac_old_val
1441 fi
1442 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1443 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1444 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1445 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1446 fi;;
1447 esac
1448 # Pass precious variables to config.status.
1449 if test "$ac_new_set" = set; then
1450 case $ac_new_val in
1451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1452 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1453 *) ac_arg=$ac_var=$ac_new_val ;;
1454 esac
1455 case " $ac_configure_args " in
1456 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1457 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1458 esac
1459 fi
1460 done
1461 if $ac_cache_corrupted; then
1462 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1463 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1464 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1465 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1466 { (exit 1); exit 1; }; }
1467 fi
1468
1469 ac_ext=c
1470 ac_cpp='$CPP $CPPFLAGS'
1471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495 ac_aux_dir=
1496 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1497 if test -f $ac_dir/install-sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install-sh -c"
1500 break
1501 elif test -f $ac_dir/install.sh; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/install.sh -c"
1504 break
1505 elif test -f $ac_dir/shtool; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/shtool install -c"
1508 break
1509 fi
1510 done
1511 if test -z "$ac_aux_dir"; then
1512 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514 { (exit 1); exit 1; }; }
1515 fi
1516 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1517 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1518 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1519
1520 # Make sure we can run config.sub.
1521 $ac_config_sub sun4 >/dev/null 2>&1 ||
1522 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1525
1526 echo "$as_me:$LINENO: checking build system type" >&5
1527 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528 if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531 ac_cv_build_alias=$build_alias
1532 test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias=`$ac_config_guess`
1534 test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1542
1543 fi
1544 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545 echo "${ECHO_T}$ac_cv_build" >&6
1546 build=$ac_cv_build
1547 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552 echo "$as_me:$LINENO: checking host system type" >&5
1553 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554 if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557 ac_cv_host_alias=$host_alias
1558 test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias=$ac_cv_build_alias
1560 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565 fi
1566 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567 echo "${ECHO_T}$ac_cv_host" >&6
1568 host=$ac_cv_host
1569 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574 echo "$as_me:$LINENO: checking target system type" >&5
1575 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576 if test "${ac_cv_target+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 ac_cv_target_alias=$target_alias
1580 test "x$ac_cv_target_alias" = "x" &&
1581 ac_cv_target_alias=$ac_cv_host_alias
1582 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587 fi
1588 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589 echo "${ECHO_T}$ac_cv_target" >&6
1590 target=$ac_cv_target
1591 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596 # The aliases save the names the user supplied, while $host etc.
1597 # will get canonicalized.
1598 test -n "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1600 NONENONEs,x,x, &&
1601 program_prefix=${target_alias}-
1602 ac_ext=c
1603 ac_cpp='$CPP $CPPFLAGS'
1604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1607 if test -n "$ac_tool_prefix"; then
1608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 break 2
1628 fi
1629 done
1630 done
1631
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$ac_cv_prog_CC"; then
1645 ac_ct_CC=$CC
1646 # Extract the first word of "gcc", so it can be a program name with args.
1647 set dummy gcc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_ac_ct_CC="gcc"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 break 2
1666 fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1676 else
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681 CC=$ac_ct_CC
1682 else
1683 CC="$ac_cv_prog_CC"
1684 fi
1685
1686 if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1689 set dummy ${ac_tool_prefix}cc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="${ac_tool_prefix}cc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 CC=$ac_cv_prog_CC
1715 if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 fi
1724 if test -z "$ac_cv_prog_CC"; then
1725 ac_ct_CC=$CC
1726 # Extract the first word of "cc", so it can be a program name with args.
1727 set dummy cc; ac_word=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733 if test -n "$ac_ct_CC"; then
1734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735 else
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 for as_dir in $PATH
1738 do
1739 IFS=$as_save_IFS
1740 test -z "$as_dir" && as_dir=.
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_ac_ct_CC="cc"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 break 2
1746 fi
1747 done
1748 done
1749
1750 fi
1751 fi
1752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753 if test -n "$ac_ct_CC"; then
1754 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755 echo "${ECHO_T}$ac_ct_CC" >&6
1756 else
1757 echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1759 fi
1760
1761 CC=$ac_ct_CC
1762 else
1763 CC="$ac_cv_prog_CC"
1764 fi
1765
1766 fi
1767 if test -z "$CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1777 else
1778 ac_prog_rejected=no
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1787 ac_prog_rejected=yes
1788 continue
1789 fi
1790 ac_cv_prog_CC="cc"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1793 fi
1794 done
1795 done
1796
1797 if test $ac_prog_rejected = yes; then
1798 # We found a bogon in the path, so make sure we never use it.
1799 set dummy $ac_cv_prog_CC
1800 shift
1801 if test $# != 0; then
1802 # We chose a different compiler from the bogus one.
1803 # However, it has the same basename, so the bogon will be chosen
1804 # first if we set CC to just the basename; use the full file name.
1805 shift
1806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807 fi
1808 fi
1809 fi
1810 fi
1811 CC=$ac_cv_prog_CC
1812 if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6
1815 else
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820 fi
1821 if test -z "$CC"; then
1822 if test -n "$ac_tool_prefix"; then
1823 for ac_prog in cl
1824 do
1825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846 done
1847 done
1848
1849 fi
1850 fi
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1855 else
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860 test -n "$CC" && break
1861 done
1862 fi
1863 if test -z "$CC"; then
1864 ac_ct_CC=$CC
1865 for ac_prog in cl
1866 do
1867 # Extract the first word of "$ac_prog", so it can be a program name with args.
1868 set dummy $ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1887 fi
1888 done
1889 done
1890
1891 fi
1892 fi
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1900 fi
1901
1902 test -n "$ac_ct_CC" && break
1903 done
1904
1905 CC=$ac_ct_CC
1906 fi
1907
1908 fi
1909
1910
1911 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&2;}
1915 { (exit 1); exit 1; }; }
1916
1917 # Provide some information about the compiler.
1918 echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920 ac_compiler=`set X $ac_compile; echo $2`
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1936
1937 cat >conftest.$ac_ext <<_ACEOF
1938 /* confdefs.h. */
1939 _ACEOF
1940 cat confdefs.h >>conftest.$ac_ext
1941 cat >>conftest.$ac_ext <<_ACEOF
1942 /* end confdefs.h. */
1943
1944 int
1945 main ()
1946 {
1947
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1956 # of exeext.
1957 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967 # resort.
1968
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971 ac_cv_exeext=
1972 # b.out is created by i960 compilers.
1973 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1974 do
1975 test -f "$ac_file" || continue
1976 case $ac_file in
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1978 ;;
1979 conftest.$ac_ext )
1980 # This is the source file.
1981 ;;
1982 [ab].out )
1983 # We found the default executable, but exeext='' is most
1984 # certainly right.
1985 break;;
1986 *.* )
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1991 export ac_cv_exeext
1992 break;;
1993 * )
1994 break;;
1995 esac
1996 done
1997 else
1998 echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2000
2001 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002 See \`config.log' for more details." >&5
2003 echo "$as_me: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&2;}
2005 { (exit 77); exit 77; }; }
2006 fi
2007
2008 ac_exeext=$ac_cv_exeext
2009 echo "$as_me:$LINENO: result: $ac_file" >&5
2010 echo "${ECHO_T}$ac_file" >&6
2011
2012 # Check the compiler produces executables we can run. If not, either
2013 # the compiler is broken, or we cross compile.
2014 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017 # If not cross compiling, check that we can run a simple program.
2018 if test "$cross_compiling" != yes; then
2019 if { ac_try='./$ac_file'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2025 cross_compiling=no
2026 else
2027 if test "$cross_compiling" = maybe; then
2028 cross_compiling=yes
2029 else
2030 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2031 If you meant to cross compile, use \`--host'.
2032 See \`config.log' for more details." >&5
2033 echo "$as_me: error: cannot run C compiled programs.
2034 If you meant to cross compile, use \`--host'.
2035 See \`config.log' for more details." >&2;}
2036 { (exit 1); exit 1; }; }
2037 fi
2038 fi
2039 fi
2040 echo "$as_me:$LINENO: result: yes" >&5
2041 echo "${ECHO_T}yes" >&6
2042
2043 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2044 ac_clean_files=$ac_clean_files_save
2045 # Check the compiler produces executables we can run. If not, either
2046 # the compiler is broken, or we cross compile.
2047 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2048 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2049 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2050 echo "${ECHO_T}$cross_compiling" >&6
2051
2052 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2053 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2055 (eval $ac_link) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2060 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2061 # work properly (i.e., refer to `conftest.exe'), while it won't with
2062 # `rm'.
2063 for ac_file in conftest.exe conftest conftest.*; do
2064 test -f "$ac_file" || continue
2065 case $ac_file in
2066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068 export ac_cv_exeext
2069 break;;
2070 * ) break;;
2071 esac
2072 done
2073 else
2074 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2077 See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2079 fi
2080
2081 rm -f conftest$ac_cv_exeext
2082 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2083 echo "${ECHO_T}$ac_cv_exeext" >&6
2084
2085 rm -f conftest.$ac_ext
2086 EXEEXT=$ac_cv_exeext
2087 ac_exeext=$EXEEXT
2088 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2089 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2090 if test "${ac_cv_objext+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 cat >conftest.$ac_ext <<_ACEOF
2094 /* confdefs.h. */
2095 _ACEOF
2096 cat confdefs.h >>conftest.$ac_ext
2097 cat >>conftest.$ac_ext <<_ACEOF
2098 /* end confdefs.h. */
2099
2100 int
2101 main ()
2102 {
2103
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 rm -f conftest.o conftest.obj
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; then
2114 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2115 case $ac_file in
2116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2118 break;;
2119 esac
2120 done
2121 else
2122 echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2124
2125 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2128 See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2130 fi
2131
2132 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2133 fi
2134 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2135 echo "${ECHO_T}$ac_cv_objext" >&6
2136 OBJEXT=$ac_cv_objext
2137 ac_objext=$OBJEXT
2138 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2139 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2140 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h. */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2149
2150 int
2151 main ()
2152 {
2153 #ifndef __GNUC__
2154 choke me
2155 #endif
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2164 ac_status=$?
2165 grep -v '^ *+' conftest.er1 >conftest.err
2166 rm -f conftest.er1
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 ac_compiler_gnu=yes
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_compiler_gnu=no
2188 fi
2189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2190 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2191
2192 fi
2193 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2195 GCC=`test $ac_compiler_gnu = yes && echo yes`
2196 ac_test_CFLAGS=${CFLAGS+set}
2197 ac_save_CFLAGS=$CFLAGS
2198 CFLAGS="-g"
2199 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2200 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2201 if test "${ac_cv_prog_cc_g+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h. */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2210
2211 int
2212 main ()
2213 {
2214
2215 ;
2216 return 0;
2217 }
2218 _ACEOF
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 ac_cv_prog_cc_g=yes
2241 else
2242 echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.$ac_ext >&5
2244
2245 ac_cv_prog_cc_g=no
2246 fi
2247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2248 fi
2249 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2251 if test "$ac_test_CFLAGS" = set; then
2252 CFLAGS=$ac_save_CFLAGS
2253 elif test $ac_cv_prog_cc_g = yes; then
2254 if test "$GCC" = yes; then
2255 CFLAGS="-g -O2"
2256 else
2257 CFLAGS="-g"
2258 fi
2259 else
2260 if test "$GCC" = yes; then
2261 CFLAGS="-O2"
2262 else
2263 CFLAGS=
2264 fi
2265 fi
2266 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2267 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2268 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271 ac_cv_prog_cc_stdc=no
2272 ac_save_CC=$CC
2273 cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h. */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2279 #include <stdarg.h>
2280 #include <stdio.h>
2281 #include <sys/types.h>
2282 #include <sys/stat.h>
2283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2284 struct buf { int x; };
2285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2286 static char *e (p, i)
2287 char **p;
2288 int i;
2289 {
2290 return p[i];
2291 }
2292 static char *f (char * (*g) (char **, int), char **p, ...)
2293 {
2294 char *s;
2295 va_list v;
2296 va_start (v,p);
2297 s = g (p, va_arg (v,int));
2298 va_end (v);
2299 return s;
2300 }
2301
2302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2303 function prototypes and stuff, but not '\xHH' hex character constants.
2304 These don't provoke an error unfortunately, instead are silently treated
2305 as 'x'. The following induces an error, until -std1 is added to get
2306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2307 array size at least. It's necessary to write '\x00'==0 to get something
2308 that's true only with -std1. */
2309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2310
2311 int test (int i, double x);
2312 struct s1 {int (*f) (int a);};
2313 struct s2 {int (*f) (double a);};
2314 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2315 int argc;
2316 char **argv;
2317 int
2318 main ()
2319 {
2320 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2321 ;
2322 return 0;
2323 }
2324 _ACEOF
2325 # Don't try gcc -ansi; that turns off useful extensions and
2326 # breaks some systems' header files.
2327 # AIX -qlanglvl=ansi
2328 # Ultrix and OSF/1 -std1
2329 # HP-UX 10.20 and later -Ae
2330 # HP-UX older versions -Aa -D_HPUX_SOURCE
2331 # SVR4 -Xc -D__EXTENSIONS__
2332 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2333 do
2334 CC="$ac_save_CC $ac_arg"
2335 rm -f conftest.$ac_objext
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 (eval $ac_compile) 2>conftest.er1
2338 ac_status=$?
2339 grep -v '^ *+' conftest.er1 >conftest.err
2340 rm -f conftest.er1
2341 cat conftest.err >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); } &&
2344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; } &&
2350 { ac_try='test -s conftest.$ac_objext'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; }; then
2356 ac_cv_prog_cc_stdc=$ac_arg
2357 break
2358 else
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 fi
2363 rm -f conftest.err conftest.$ac_objext
2364 done
2365 rm -f conftest.$ac_ext conftest.$ac_objext
2366 CC=$ac_save_CC
2367
2368 fi
2369
2370 case "x$ac_cv_prog_cc_stdc" in
2371 x|xno)
2372 echo "$as_me:$LINENO: result: none needed" >&5
2373 echo "${ECHO_T}none needed" >&6 ;;
2374 *)
2375 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2376 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2377 CC="$CC $ac_cv_prog_cc_stdc" ;;
2378 esac
2379
2380 # Some people use a C++ compiler to compile C. Since we use `exit',
2381 # in C++ we need to declare it. In case someone uses the same compiler
2382 # for both compiling C and C++ we need to have the C++ compiler decide
2383 # the declaration of exit, since it's the most demanding environment.
2384 cat >conftest.$ac_ext <<_ACEOF
2385 #ifndef __cplusplus
2386 choke me
2387 #endif
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 for ac_declaration in \
2411 '' \
2412 'extern "C" void std::exit (int) throw (); using std::exit;' \
2413 'extern "C" void std::exit (int); using std::exit;' \
2414 'extern "C" void exit (int) throw ();' \
2415 'extern "C" void exit (int);' \
2416 'void exit (int);'
2417 do
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h. */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2424 $ac_declaration
2425 #include <stdlib.h>
2426 int
2427 main ()
2428 {
2429 exit (42);
2430 ;
2431 return 0;
2432 }
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2437 ac_status=$?
2438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; } &&
2449 { ac_try='test -s conftest.$ac_objext'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2455 :
2456 else
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 continue
2461 fi
2462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 cat >conftest.$ac_ext <<_ACEOF
2464 /* confdefs.h. */
2465 _ACEOF
2466 cat confdefs.h >>conftest.$ac_ext
2467 cat >>conftest.$ac_ext <<_ACEOF
2468 /* end confdefs.h. */
2469 $ac_declaration
2470 int
2471 main ()
2472 {
2473 exit (42);
2474 ;
2475 return 0;
2476 }
2477 _ACEOF
2478 rm -f conftest.$ac_objext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480 (eval $ac_compile) 2>conftest.er1
2481 ac_status=$?
2482 grep -v '^ *+' conftest.er1 >conftest.err
2483 rm -f conftest.er1
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } &&
2487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 (eval $ac_try) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 break
2500 else
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2503
2504 fi
2505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506 done
2507 rm -f conftest*
2508 if test -n "$ac_declaration"; then
2509 echo '#ifdef __cplusplus' >>confdefs.h
2510 echo $ac_declaration >>confdefs.h
2511 echo '#endif' >>confdefs.h
2512 fi
2513
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 fi
2519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520 ac_ext=c
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525
2526
2527 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2528 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2529 if test "${ac_cv_search_strerror+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532 ac_func_search_save_LIBS=$LIBS
2533 ac_cv_search_strerror=no
2534 cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h. */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2540
2541 /* Override any gcc2 internal prototype to avoid an error. */
2542 #ifdef __cplusplus
2543 extern "C"
2544 #endif
2545 /* We use char because int might match the return type of a gcc2
2546 builtin and then its argument prototype would still apply. */
2547 char strerror ();
2548 int
2549 main ()
2550 {
2551 strerror ();
2552 ;
2553 return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext conftest$ac_exeext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2558 (eval $ac_link) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest$ac_exeext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_search_strerror="none required"
2578 else
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 fi
2583 rm -f conftest.err conftest.$ac_objext \
2584 conftest$ac_exeext conftest.$ac_ext
2585 if test "$ac_cv_search_strerror" = no; then
2586 for ac_lib in cposix; do
2587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2588 cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h. */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2594
2595 /* Override any gcc2 internal prototype to avoid an error. */
2596 #ifdef __cplusplus
2597 extern "C"
2598 #endif
2599 /* We use char because int might match the return type of a gcc2
2600 builtin and then its argument prototype would still apply. */
2601 char strerror ();
2602 int
2603 main ()
2604 {
2605 strerror ();
2606 ;
2607 return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext conftest$ac_exeext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2612 (eval $ac_link) 2>conftest.er1
2613 ac_status=$?
2614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest$ac_exeext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_cv_search_strerror="-l$ac_lib"
2632 break
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 fi
2638 rm -f conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2640 done
2641 fi
2642 LIBS=$ac_func_search_save_LIBS
2643 fi
2644 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2645 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2646 if test "$ac_cv_search_strerror" != no; then
2647 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2648
2649 fi
2650
2651
2652 am__api_version="1.9"
2653 # Find a good install program. We prefer a C program (faster),
2654 # so one script is as good as another. But avoid the broken or
2655 # incompatible versions:
2656 # SysV /etc/install, /usr/sbin/install
2657 # SunOS /usr/etc/install
2658 # IRIX /sbin/install
2659 # AIX /bin/install
2660 # AmigaOS /C/install, which installs bootblocks on floppy discs
2661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2664 # OS/2's system install, which has a completely different semantic
2665 # ./install, which can be erroneously created by make from ./install.sh.
2666 # Reject install programs that cannot install multiple files.
2667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2669 if test -z "$INSTALL"; then
2670 if test "${ac_cv_path_install+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 # Account for people who put trailing slashes in PATH elements.
2679 case $as_dir/ in
2680 ./ | .// | /cC/* | \
2681 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2682 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2683 /usr/ucb/* ) ;;
2684 *)
2685 # OSF1 and SCO ODT 3.0 have their own names for install.
2686 # Don't use installbsd from OSF since it installs stuff as root
2687 # by default.
2688 for ac_prog in ginstall scoinst install; do
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2691 if test $ac_prog = install &&
2692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2693 # AIX install. It has an incompatible calling convention.
2694 :
2695 elif test $ac_prog = install &&
2696 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697 # program-specific install script used by HP pwplus--don't use.
2698 :
2699 else
2700 rm -rf conftest.one conftest.two conftest.dir
2701 echo one > conftest.one
2702 echo two > conftest.two
2703 mkdir conftest.dir
2704 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2705 test -s conftest.one && test -s conftest.two &&
2706 test -s conftest.dir/conftest.one &&
2707 test -s conftest.dir/conftest.two
2708 then
2709 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2710 break 3
2711 fi
2712 fi
2713 fi
2714 done
2715 done
2716 ;;
2717 esac
2718 done
2719
2720 rm -rf conftest.one conftest.two conftest.dir
2721
2722 fi
2723 if test "${ac_cv_path_install+set}" = set; then
2724 INSTALL=$ac_cv_path_install
2725 else
2726 # As a last resort, use the slow shell script. Don't cache a
2727 # value for INSTALL within a source directory, because that will
2728 # break other packages using the cache if that directory is
2729 # removed, or if the value is a relative name.
2730 INSTALL=$ac_install_sh
2731 fi
2732 fi
2733 echo "$as_me:$LINENO: result: $INSTALL" >&5
2734 echo "${ECHO_T}$INSTALL" >&6
2735
2736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737 # It thinks the first close brace ends the variable substitution.
2738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2739
2740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2741
2742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2743
2744 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2745 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2746 # Just in case
2747 sleep 1
2748 echo timestamp > conftest.file
2749 # Do `set' in a subshell so we don't clobber the current shell's
2750 # arguments. Must try -L first in case configure is actually a
2751 # symlink; some systems play weird games with the mod time of symlinks
2752 # (eg FreeBSD returns the mod time of the symlink's containing
2753 # directory).
2754 if (
2755 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2756 if test "$*" = "X"; then
2757 # -L didn't work.
2758 set X `ls -t $srcdir/configure conftest.file`
2759 fi
2760 rm -f conftest.file
2761 if test "$*" != "X $srcdir/configure conftest.file" \
2762 && test "$*" != "X conftest.file $srcdir/configure"; then
2763
2764 # If neither matched, then we have a broken ls. This can happen
2765 # if, for instance, CONFIG_SHELL is bash and it inherits a
2766 # broken ls alias from the environment. This has actually
2767 # happened. Such a system could not be considered "sane".
2768 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2769 alias in your environment" >&5
2770 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2771 alias in your environment" >&2;}
2772 { (exit 1); exit 1; }; }
2773 fi
2774
2775 test "$2" = conftest.file
2776 )
2777 then
2778 # Ok.
2779 :
2780 else
2781 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2782 Check your system clock" >&5
2783 echo "$as_me: error: newly created file is older than distributed files!
2784 Check your system clock" >&2;}
2785 { (exit 1); exit 1; }; }
2786 fi
2787 echo "$as_me:$LINENO: result: yes" >&5
2788 echo "${ECHO_T}yes" >&6
2789 test "$program_prefix" != NONE &&
2790 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2791 # Use a double $ so make ignores it.
2792 test "$program_suffix" != NONE &&
2793 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2794 # Double any \ or $. echo might interpret backslashes.
2795 # By default was `s,x,x', remove it if useless.
2796 cat <<\_ACEOF >conftest.sed
2797 s/[\\$]/&&/g;s/;s,x,x,$//
2798 _ACEOF
2799 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2800 rm conftest.sed
2801
2802 # expand $ac_aux_dir to an absolute path
2803 am_aux_dir=`cd $ac_aux_dir && pwd`
2804
2805 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2806 # Use eval to expand $SHELL
2807 if eval "$MISSING --run true"; then
2808 am_missing_run="$MISSING --run "
2809 else
2810 am_missing_run=
2811 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2812 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2813 fi
2814
2815 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2816 # We used to keeping the `.' as first argument, in order to
2817 # allow $(mkdir_p) to be used without argument. As in
2818 # $(mkdir_p) $(somedir)
2819 # where $(somedir) is conditionally defined. However this is wrong
2820 # for two reasons:
2821 # 1. if the package is installed by a user who cannot write `.'
2822 # make install will fail,
2823 # 2. the above comment should most certainly read
2824 # $(mkdir_p) $(DESTDIR)$(somedir)
2825 # so it does not work when $(somedir) is undefined and
2826 # $(DESTDIR) is not.
2827 # To support the latter case, we have to write
2828 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2829 # so the `.' trick is pointless.
2830 mkdir_p='mkdir -p --'
2831 else
2832 # On NextStep and OpenStep, the `mkdir' command does not
2833 # recognize any option. It will interpret all options as
2834 # directories to create, and then abort because `.' already
2835 # exists.
2836 for d in ./-p ./--version;
2837 do
2838 test -d $d && rmdir $d
2839 done
2840 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2841 if test -f "$ac_aux_dir/mkinstalldirs"; then
2842 mkdir_p='$(mkinstalldirs)'
2843 else
2844 mkdir_p='$(install_sh) -d'
2845 fi
2846 fi
2847
2848 for ac_prog in gawk mawk nawk awk
2849 do
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_AWK+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857 if test -n "$AWK"; then
2858 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_prog_AWK="$ac_prog"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871 done
2872 done
2873
2874 fi
2875 fi
2876 AWK=$ac_cv_prog_AWK
2877 if test -n "$AWK"; then
2878 echo "$as_me:$LINENO: result: $AWK" >&5
2879 echo "${ECHO_T}$AWK" >&6
2880 else
2881 echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883 fi
2884
2885 test -n "$AWK" && break
2886 done
2887
2888 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2889 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2890 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2891 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894 cat >conftest.make <<\_ACEOF
2895 all:
2896 @echo 'ac_maketemp="$(MAKE)"'
2897 _ACEOF
2898 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2899 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2900 if test -n "$ac_maketemp"; then
2901 eval ac_cv_prog_make_${ac_make}_set=yes
2902 else
2903 eval ac_cv_prog_make_${ac_make}_set=no
2904 fi
2905 rm -f conftest.make
2906 fi
2907 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2908 echo "$as_me:$LINENO: result: yes" >&5
2909 echo "${ECHO_T}yes" >&6
2910 SET_MAKE=
2911 else
2912 echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6
2914 SET_MAKE="MAKE=${MAKE-make}"
2915 fi
2916
2917 rm -rf .tst 2>/dev/null
2918 mkdir .tst 2>/dev/null
2919 if test -d .tst; then
2920 am__leading_dot=.
2921 else
2922 am__leading_dot=_
2923 fi
2924 rmdir .tst 2>/dev/null
2925
2926 DEPDIR="${am__leading_dot}deps"
2927
2928 ac_config_commands="$ac_config_commands depfiles"
2929
2930
2931 am_make=${MAKE-make}
2932 cat > confinc << 'END'
2933 am__doit:
2934 @echo done
2935 .PHONY: am__doit
2936 END
2937 # If we don't find an include directive, just comment out the code.
2938 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2939 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2940 am__include="#"
2941 am__quote=
2942 _am_result=none
2943 # First try GNU make style include.
2944 echo "include confinc" > confmf
2945 # We grep out `Entering directory' and `Leaving directory'
2946 # messages which can occur if `w' ends up in MAKEFLAGS.
2947 # In particular we don't look at `^make:' because GNU make might
2948 # be invoked under some other name (usually "gmake"), in which
2949 # case it prints its new name instead of `make'.
2950 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2951 am__include=include
2952 am__quote=
2953 _am_result=GNU
2954 fi
2955 # Now try BSD make style include.
2956 if test "$am__include" = "#"; then
2957 echo '.include "confinc"' > confmf
2958 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2959 am__include=.include
2960 am__quote="\""
2961 _am_result=BSD
2962 fi
2963 fi
2964
2965
2966 echo "$as_me:$LINENO: result: $_am_result" >&5
2967 echo "${ECHO_T}$_am_result" >&6
2968 rm -f confinc confmf
2969
2970 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2971 if test "${enable_dependency_tracking+set}" = set; then
2972 enableval="$enable_dependency_tracking"
2973
2974 fi;
2975 if test "x$enable_dependency_tracking" != xno; then
2976 am_depcomp="$ac_aux_dir/depcomp"
2977 AMDEPBACKSLASH='\'
2978 fi
2979
2980
2981 if test "x$enable_dependency_tracking" != xno; then
2982 AMDEP_TRUE=
2983 AMDEP_FALSE='#'
2984 else
2985 AMDEP_TRUE='#'
2986 AMDEP_FALSE=
2987 fi
2988
2989
2990
2991 # test to see if srcdir already configured
2992 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2993 test -f $srcdir/config.status; then
2994 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2995 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2996 { (exit 1); exit 1; }; }
2997 fi
2998
2999 # test whether we have cygpath
3000 if test -z "$CYGPATH_W"; then
3001 if (cygpath --version) >/dev/null 2>/dev/null; then
3002 CYGPATH_W='cygpath -w'
3003 else
3004 CYGPATH_W=echo
3005 fi
3006 fi
3007
3008
3009 # Define the identity of the package.
3010 PACKAGE=bfd
3011 VERSION=2.18.50
3012
3013
3014 cat >>confdefs.h <<_ACEOF
3015 #define PACKAGE "$PACKAGE"
3016 _ACEOF
3017
3018
3019 cat >>confdefs.h <<_ACEOF
3020 #define VERSION "$VERSION"
3021 _ACEOF
3022
3023 # Some tools Automake needs.
3024
3025 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3026
3027
3028 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3029
3030
3031 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3032
3033
3034 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3035
3036
3037 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3038
3039 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3040
3041 # Installed binaries are usually stripped using `strip' when the user
3042 # run `make install-strip'. However `strip' might not be the right
3043 # tool to use in cross-compilation environments, therefore Automake
3044 # will honor the `STRIP' environment variable to overrule this program.
3045 if test "$cross_compiling" != no; then
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}strip; ac_word=$2
3049 echo "$as_me:$LINENO: checking for $ac_word" >&5
3050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3051 if test "${ac_cv_prog_STRIP+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054 if test -n "$STRIP"; then
3055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068 done
3069 done
3070
3071 fi
3072 fi
3073 STRIP=$ac_cv_prog_STRIP
3074 if test -n "$STRIP"; then
3075 echo "$as_me:$LINENO: result: $STRIP" >&5
3076 echo "${ECHO_T}$STRIP" >&6
3077 else
3078 echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6
3080 fi
3081
3082 fi
3083 if test -z "$ac_cv_prog_STRIP"; then
3084 ac_ct_STRIP=$STRIP
3085 # Extract the first word of "strip", so it can be a program name with args.
3086 set dummy strip; ac_word=$2
3087 echo "$as_me:$LINENO: checking for $ac_word" >&5
3088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092 if test -n "$ac_ct_STRIP"; then
3093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_ac_ct_STRIP="strip"
3103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106 done
3107 done
3108
3109 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3110 fi
3111 fi
3112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3113 if test -n "$ac_ct_STRIP"; then
3114 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3115 echo "${ECHO_T}$ac_ct_STRIP" >&6
3116 else
3117 echo "$as_me:$LINENO: result: no" >&5
3118 echo "${ECHO_T}no" >&6
3119 fi
3120
3121 STRIP=$ac_ct_STRIP
3122 else
3123 STRIP="$ac_cv_prog_STRIP"
3124 fi
3125
3126 fi
3127 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3128
3129 # We need awk for the "check" target. The system "awk" is bad on
3130 # some platforms.
3131 # Always define AMTAR for backward compatibility.
3132
3133 AMTAR=${AMTAR-"${am_missing_run}tar"}
3134
3135 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3136
3137
3138
3139
3140 depcc="$CC" am_compiler_list=
3141
3142 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3143 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3144 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3148 # We make a subdir and do the tests there. Otherwise we can end up
3149 # making bogus files that we don't know about and never remove. For
3150 # instance it was reported that on HP-UX the gcc test will end up
3151 # making a dummy file named `D' -- because `-MD' means `put the output
3152 # in D'.
3153 mkdir conftest.dir
3154 # Copy depcomp to subdir because otherwise we won't find it if we're
3155 # using a relative directory.
3156 cp "$am_depcomp" conftest.dir
3157 cd conftest.dir
3158 # We will build objects and dependencies in a subdirectory because
3159 # it helps to detect inapplicable dependency modes. For instance
3160 # both Tru64's cc and ICC support -MD to output dependencies as a
3161 # side effect of compilation, but ICC will put the dependencies in
3162 # the current directory while Tru64 will put them in the object
3163 # directory.
3164 mkdir sub
3165
3166 am_cv_CC_dependencies_compiler_type=none
3167 if test "$am_compiler_list" = ""; then
3168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3169 fi
3170 for depmode in $am_compiler_list; do
3171 # Setup a source with many dependencies, because some compilers
3172 # like to wrap large dependency lists on column 80 (with \), and
3173 # we should not choose a depcomp mode which is confused by this.
3174 #
3175 # We need to recreate these files for each test, as the compiler may
3176 # overwrite some of them when testing with obscure command lines.
3177 # This happens at least with the AIX C compiler.
3178 : > sub/conftest.c
3179 for i in 1 2 3 4 5 6; do
3180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3181 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3182 # Solaris 8's {/usr,}/bin/sh.
3183 touch sub/conftst$i.h
3184 done
3185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3186
3187 case $depmode in
3188 nosideeffect)
3189 # after this tag, mechanisms are not by side-effect, so they'll
3190 # only be used when explicitly requested
3191 if test "x$enable_dependency_tracking" = xyes; then
3192 continue
3193 else
3194 break
3195 fi
3196 ;;
3197 none) break ;;
3198 esac
3199 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3200 # mode. It turns out that the SunPro C++ compiler does not properly
3201 # handle `-M -o', and we need to detect this.
3202 if depmode=$depmode \
3203 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3205 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3206 >/dev/null 2>conftest.err &&
3207 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3208 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3209 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3210 # icc doesn't choke on unknown options, it will just issue warnings
3211 # or remarks (even with -Werror). So we grep stderr for any message
3212 # that says an option was ignored or not supported.
3213 # When given -MP, icc 7.0 and 7.1 complain thusly:
3214 # icc: Command line warning: ignoring option '-M'; no argument required
3215 # The diagnosis changed in icc 8.0:
3216 # icc: Command line remark: option '-MP' not supported
3217 if (grep 'ignoring option' conftest.err ||
3218 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3219 am_cv_CC_dependencies_compiler_type=$depmode
3220 break
3221 fi
3222 fi
3223 done
3224
3225 cd ..
3226 rm -rf conftest.dir
3227 else
3228 am_cv_CC_dependencies_compiler_type=none
3229 fi
3230
3231 fi
3232 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3233 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3234 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3235
3236
3237
3238 if
3239 test "x$enable_dependency_tracking" != xno \
3240 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3241 am__fastdepCC_TRUE=
3242 am__fastdepCC_FALSE='#'
3243 else
3244 am__fastdepCC_TRUE='#'
3245 am__fastdepCC_FALSE=
3246 fi
3247
3248
3249
3250
3251 if test -n "$ac_tool_prefix"; then
3252 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}ar; ac_word=$2
3254 echo "$as_me:$LINENO: checking for $ac_word" >&5
3255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3256 if test "${ac_cv_prog_AR+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 if test -n "$AR"; then
3260 ac_cv_prog_AR="$AR" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_AR="${ac_tool_prefix}ar"
3270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 break 2
3272 fi
3273 done
3274 done
3275
3276 fi
3277 fi
3278 AR=$ac_cv_prog_AR
3279 if test -n "$AR"; then
3280 echo "$as_me:$LINENO: result: $AR" >&5
3281 echo "${ECHO_T}$AR" >&6
3282 else
3283 echo "$as_me:$LINENO: result: no" >&5
3284 echo "${ECHO_T}no" >&6
3285 fi
3286
3287 fi
3288 if test -z "$ac_cv_prog_AR"; then
3289 ac_ct_AR=$AR
3290 # Extract the first word of "ar", so it can be a program name with args.
3291 set dummy ar; ac_word=$2
3292 echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 if test -n "$ac_ct_AR"; then
3298 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_ac_ct_AR="ar"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313
3314 fi
3315 fi
3316 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3317 if test -n "$ac_ct_AR"; then
3318 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3319 echo "${ECHO_T}$ac_ct_AR" >&6
3320 else
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323 fi
3324
3325 AR=$ac_ct_AR
3326 else
3327 AR="$ac_cv_prog_AR"
3328 fi
3329
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_RANLIB+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338 if test -n "$RANLIB"; then
3339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352 done
3353 done
3354
3355 fi
3356 fi
3357 RANLIB=$ac_cv_prog_RANLIB
3358 if test -n "$RANLIB"; then
3359 echo "$as_me:$LINENO: result: $RANLIB" >&5
3360 echo "${ECHO_T}$RANLIB" >&6
3361 else
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3364 fi
3365
3366 fi
3367 if test -z "$ac_cv_prog_RANLIB"; then
3368 ac_ct_RANLIB=$RANLIB
3369 # Extract the first word of "ranlib", so it can be a program name with args.
3370 set dummy ranlib; ac_word=$2
3371 echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 if test -n "$ac_ct_RANLIB"; then
3377 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_ac_ct_RANLIB="ranlib"
3387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
3389 fi
3390 done
3391 done
3392
3393 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3394 fi
3395 fi
3396 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3397 if test -n "$ac_ct_RANLIB"; then
3398 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3399 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3400 else
3401 echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3403 fi
3404
3405 RANLIB=$ac_ct_RANLIB
3406 else
3407 RANLIB="$ac_cv_prog_RANLIB"
3408 fi
3409
3410
3411 # Check whether --enable-shared or --disable-shared was given.
3412 if test "${enable_shared+set}" = set; then
3413 enableval="$enable_shared"
3414 p=${PACKAGE-default}
3415 case $enableval in
3416 yes) enable_shared=yes ;;
3417 no) enable_shared=no ;;
3418 *)
3419 enable_shared=no
3420 # Look at the argument we got. We use all the common list separators.
3421 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3422 for pkg in $enableval; do
3423 IFS="$lt_save_ifs"
3424 if test "X$pkg" = "X$p"; then
3425 enable_shared=yes
3426 fi
3427 done
3428 IFS="$lt_save_ifs"
3429 ;;
3430 esac
3431 else
3432 enable_shared=no
3433 fi;
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443 ac_ext=c
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 if test -n "$ac_tool_prefix"; then
3449 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3450 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3451 echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_prog_CC+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470 done
3471 done
3472
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477 echo "$as_me:$LINENO: result: $CC" >&5
3478 echo "${ECHO_T}$CC" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3482 fi
3483
3484 fi
3485 if test -z "$ac_cv_prog_CC"; then
3486 ac_ct_CC=$CC
3487 # Extract the first word of "gcc", so it can be a program name with args.
3488 set dummy gcc; ac_word=$2
3489 echo "$as_me:$LINENO: checking for $ac_word" >&5
3490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3491 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 if test -n "$ac_ct_CC"; then
3495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_ac_ct_CC="gcc"
3505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3507 fi
3508 done
3509 done
3510
3511 fi
3512 fi
3513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3514 if test -n "$ac_ct_CC"; then
3515 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3516 echo "${ECHO_T}$ac_ct_CC" >&6
3517 else
3518 echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3520 fi
3521
3522 CC=$ac_ct_CC
3523 else
3524 CC="$ac_cv_prog_CC"
3525 fi
3526
3527 if test -z "$CC"; then
3528 if test -n "$ac_tool_prefix"; then
3529 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3530 set dummy ${ac_tool_prefix}cc; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_prog_CC+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_CC="${ac_tool_prefix}cc"
3547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552
3553 fi
3554 fi
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557 echo "$as_me:$LINENO: result: $CC" >&5
3558 echo "${ECHO_T}$CC" >&6
3559 else
3560 echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3562 fi
3563
3564 fi
3565 if test -z "$ac_cv_prog_CC"; then
3566 ac_ct_CC=$CC
3567 # Extract the first word of "cc", so it can be a program name with args.
3568 set dummy cc; ac_word=$2
3569 echo "$as_me:$LINENO: checking for $ac_word" >&5
3570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 if test -n "$ac_ct_CC"; then
3575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3584 ac_cv_prog_ac_ct_CC="cc"
3585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588 done
3589 done
3590
3591 fi
3592 fi
3593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3594 if test -n "$ac_ct_CC"; then
3595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3596 echo "${ECHO_T}$ac_ct_CC" >&6
3597 else
3598 echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3600 fi
3601
3602 CC=$ac_ct_CC
3603 else
3604 CC="$ac_cv_prog_CC"
3605 fi
3606
3607 fi
3608 if test -z "$CC"; then
3609 # Extract the first word of "cc", so it can be a program name with args.
3610 set dummy cc; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_prog_CC+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 if test -n "$CC"; then
3617 ac_cv_prog_CC="$CC" # Let the user override the test.
3618 else
3619 ac_prog_rejected=no
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3628 ac_prog_rejected=yes
3629 continue
3630 fi
3631 ac_cv_prog_CC="cc"
3632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3634 fi
3635 done
3636 done
3637
3638 if test $ac_prog_rejected = yes; then
3639 # We found a bogon in the path, so make sure we never use it.
3640 set dummy $ac_cv_prog_CC
3641 shift
3642 if test $# != 0; then
3643 # We chose a different compiler from the bogus one.
3644 # However, it has the same basename, so the bogon will be chosen
3645 # first if we set CC to just the basename; use the full file name.
3646 shift
3647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3648 fi
3649 fi
3650 fi
3651 fi
3652 CC=$ac_cv_prog_CC
3653 if test -n "$CC"; then
3654 echo "$as_me:$LINENO: result: $CC" >&5
3655 echo "${ECHO_T}$CC" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6
3659 fi
3660
3661 fi
3662 if test -z "$CC"; then
3663 if test -n "$ac_tool_prefix"; then
3664 for ac_prog in cl
3665 do
3666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_prog_CC+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 if test -n "$CC"; then
3674 ac_cv_prog_CC="$CC" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687 done
3688 done
3689
3690 fi
3691 fi
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 echo "$as_me:$LINENO: result: $CC" >&5
3695 echo "${ECHO_T}$CC" >&6
3696 else
3697 echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6
3699 fi
3700
3701 test -n "$CC" && break
3702 done
3703 fi
3704 if test -z "$CC"; then
3705 ac_ct_CC=$CC
3706 for ac_prog in cl
3707 do
3708 # Extract the first word of "$ac_prog", so it can be a program name with args.
3709 set dummy $ac_prog; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715 if test -n "$ac_ct_CC"; then
3716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3717 else
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 ac_cv_prog_ac_ct_CC="$ac_prog"
3726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 break 2
3728 fi
3729 done
3730 done
3731
3732 fi
3733 fi
3734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3735 if test -n "$ac_ct_CC"; then
3736 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3737 echo "${ECHO_T}$ac_ct_CC" >&6
3738 else
3739 echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6
3741 fi
3742
3743 test -n "$ac_ct_CC" && break
3744 done
3745
3746 CC=$ac_ct_CC
3747 fi
3748
3749 fi
3750
3751
3752 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." >&5
3754 echo "$as_me: error: no acceptable C compiler found in \$PATH
3755 See \`config.log' for more details." >&2;}
3756 { (exit 1); exit 1; }; }
3757
3758 # Provide some information about the compiler.
3759 echo "$as_me:$LINENO:" \
3760 "checking for C compiler version" >&5
3761 ac_compiler=`set X $ac_compile; echo $2`
3762 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3763 (eval $ac_compiler --version </dev/null >&5) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }
3767 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3768 (eval $ac_compiler -v </dev/null >&5) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }
3772 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3773 (eval $ac_compiler -V </dev/null >&5) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }
3777
3778 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3779 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3780 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h. */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3789
3790 int
3791 main ()
3792 {
3793 #ifndef __GNUC__
3794 choke me
3795 #endif
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; } &&
3816 { ac_try='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_compiler_gnu=yes
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 ac_compiler_gnu=no
3828 fi
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831
3832 fi
3833 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3834 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3835 GCC=`test $ac_compiler_gnu = yes && echo yes`
3836 ac_test_CFLAGS=${CFLAGS+set}
3837 ac_save_CFLAGS=$CFLAGS
3838 CFLAGS="-g"
3839 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3840 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3841 if test "${ac_cv_prog_cc_g+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h. */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850
3851 int
3852 main ()
3853 {
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_prog_cc_g=yes
3881 else
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 ac_cv_prog_cc_g=no
3886 fi
3887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888 fi
3889 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3890 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3891 if test "$ac_test_CFLAGS" = set; then
3892 CFLAGS=$ac_save_CFLAGS
3893 elif test $ac_cv_prog_cc_g = yes; then
3894 if test "$GCC" = yes; then
3895 CFLAGS="-g -O2"
3896 else
3897 CFLAGS="-g"
3898 fi
3899 else
3900 if test "$GCC" = yes; then
3901 CFLAGS="-O2"
3902 else
3903 CFLAGS=
3904 fi
3905 fi
3906 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3907 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3908 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911 ac_cv_prog_cc_stdc=no
3912 ac_save_CC=$CC
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 #include <stdarg.h>
3920 #include <stdio.h>
3921 #include <sys/types.h>
3922 #include <sys/stat.h>
3923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3924 struct buf { int x; };
3925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926 static char *e (p, i)
3927 char **p;
3928 int i;
3929 {
3930 return p[i];
3931 }
3932 static char *f (char * (*g) (char **, int), char **p, ...)
3933 {
3934 char *s;
3935 va_list v;
3936 va_start (v,p);
3937 s = g (p, va_arg (v,int));
3938 va_end (v);
3939 return s;
3940 }
3941
3942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3943 function prototypes and stuff, but not '\xHH' hex character constants.
3944 These don't provoke an error unfortunately, instead are silently treated
3945 as 'x'. The following induces an error, until -std1 is added to get
3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3947 array size at least. It's necessary to write '\x00'==0 to get something
3948 that's true only with -std1. */
3949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3950
3951 int test (int i, double x);
3952 struct s1 {int (*f) (int a);};
3953 struct s2 {int (*f) (double a);};
3954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3955 int argc;
3956 char **argv;
3957 int
3958 main ()
3959 {
3960 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3961 ;
3962 return 0;
3963 }
3964 _ACEOF
3965 # Don't try gcc -ansi; that turns off useful extensions and
3966 # breaks some systems' header files.
3967 # AIX -qlanglvl=ansi
3968 # Ultrix and OSF/1 -std1
3969 # HP-UX 10.20 and later -Ae
3970 # HP-UX older versions -Aa -D_HPUX_SOURCE
3971 # SVR4 -Xc -D__EXTENSIONS__
3972 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3973 do
3974 CC="$ac_save_CC $ac_arg"
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_prog_cc_stdc=$ac_arg
3997 break
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002 fi
4003 rm -f conftest.err conftest.$ac_objext
4004 done
4005 rm -f conftest.$ac_ext conftest.$ac_objext
4006 CC=$ac_save_CC
4007
4008 fi
4009
4010 case "x$ac_cv_prog_cc_stdc" in
4011 x|xno)
4012 echo "$as_me:$LINENO: result: none needed" >&5
4013 echo "${ECHO_T}none needed" >&6 ;;
4014 *)
4015 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4016 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4017 CC="$CC $ac_cv_prog_cc_stdc" ;;
4018 esac
4019
4020 # Some people use a C++ compiler to compile C. Since we use `exit',
4021 # in C++ we need to declare it. In case someone uses the same compiler
4022 # for both compiling C and C++ we need to have the C++ compiler decide
4023 # the declaration of exit, since it's the most demanding environment.
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #ifndef __cplusplus
4026 choke me
4027 #endif
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>conftest.er1
4032 ac_status=$?
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; } &&
4044 { ac_try='test -s conftest.$ac_objext'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 (eval $ac_try) 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 for ac_declaration in \
4051 '' \
4052 'extern "C" void std::exit (int) throw (); using std::exit;' \
4053 'extern "C" void std::exit (int); using std::exit;' \
4054 'extern "C" void exit (int) throw ();' \
4055 'extern "C" void exit (int);' \
4056 'void exit (int);'
4057 do
4058 cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 $ac_declaration
4065 #include <stdlib.h>
4066 int
4067 main ()
4068 {
4069 exit (42);
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 :
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100 continue
4101 fi
4102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 $ac_declaration
4110 int
4111 main ()
4112 {
4113 exit (42);
4114 ;
4115 return 0;
4116 }
4117 _ACEOF
4118 rm -f conftest.$ac_objext
4119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4120 (eval $ac_compile) 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 (eval $ac_try) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 break
4140 else
4141 echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4143
4144 fi
4145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146 done
4147 rm -f conftest*
4148 if test -n "$ac_declaration"; then
4149 echo '#ifdef __cplusplus' >>confdefs.h
4150 echo $ac_declaration >>confdefs.h
4151 echo '#endif' >>confdefs.h
4152 fi
4153
4154 else
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4157
4158 fi
4159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166
4167 cat >>confdefs.h <<\_ACEOF
4168 #define _GNU_SOURCE 1
4169 _ACEOF
4170
4171
4172
4173
4174
4175 macro_version='2.1a'
4176 macro_revision='1.2435'
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189 ltmain="$ac_aux_dir/ltmain.sh"
4190
4191 # Set options
4192
4193 enable_dlopen=no
4194
4195
4196 enable_win32_dll=no
4197
4198
4199
4200 # Check whether --enable-static or --disable-static was given.
4201 if test "${enable_static+set}" = set; then
4202 enableval="$enable_static"
4203 p=${PACKAGE-default}
4204 case $enableval in
4205 yes) enable_static=yes ;;
4206 no) enable_static=no ;;
4207 *)
4208 enable_static=no
4209 # Look at the argument we got. We use all the common list separators.
4210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4211 for pkg in $enableval; do
4212 IFS="$lt_save_ifs"
4213 if test "X$pkg" = "X$p"; then
4214 enable_static=yes
4215 fi
4216 done
4217 IFS="$lt_save_ifs"
4218 ;;
4219 esac
4220 else
4221 enable_static=yes
4222 fi;
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232 # Check whether --with-pic or --without-pic was given.
4233 if test "${with_pic+set}" = set; then
4234 withval="$with_pic"
4235 pic_mode="$withval"
4236 else
4237 pic_mode=default
4238 fi;
4239
4240 test -z "$pic_mode" && pic_mode=default
4241
4242
4243
4244
4245
4246
4247
4248 # Check whether --enable-fast-install or --disable-fast-install was given.
4249 if test "${enable_fast_install+set}" = set; then
4250 enableval="$enable_fast_install"
4251 p=${PACKAGE-default}
4252 case $enableval in
4253 yes) enable_fast_install=yes ;;
4254 no) enable_fast_install=no ;;
4255 *)
4256 enable_fast_install=no
4257 # Look at the argument we got. We use all the common list separators.
4258 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4259 for pkg in $enableval; do
4260 IFS="$lt_save_ifs"
4261 if test "X$pkg" = "X$p"; then
4262 enable_fast_install=yes
4263 fi
4264 done
4265 IFS="$lt_save_ifs"
4266 ;;
4267 esac
4268 else
4269 enable_fast_install=yes
4270 fi;
4271
4272
4273
4274
4275
4276
4277
4278
4279 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4280 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4281 if test "${lt_cv_path_SED+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284 # Loop through the user's path and test for sed and gsed.
4285 # Then use that list of sed's as ones to test for truncation.
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for lt_ac_prog in sed gsed; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4294 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4295 fi
4296 done
4297 done
4298 done
4299 IFS=$as_save_IFS
4300 lt_ac_max=0
4301 lt_ac_count=0
4302 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4303 # along with /bin/sed that truncates output.
4304 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4305 test ! -f $lt_ac_sed && continue
4306 cat /dev/null > conftest.in
4307 lt_ac_count=0
4308 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4309 # Check for GNU sed and select it if it is found.
4310 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4311 lt_cv_path_SED=$lt_ac_sed
4312 break
4313 fi
4314 while true; do
4315 cat conftest.in conftest.in >conftest.tmp
4316 mv conftest.tmp conftest.in
4317 cp conftest.in conftest.nl
4318 echo >>conftest.nl
4319 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4320 cmp -s conftest.out conftest.nl || break
4321 # 10000 chars as input seems more than enough
4322 test $lt_ac_count -gt 10 && break
4323 lt_ac_count=`expr $lt_ac_count + 1`
4324 if test $lt_ac_count -gt $lt_ac_max; then
4325 lt_ac_max=$lt_ac_count
4326 lt_cv_path_SED=$lt_ac_sed
4327 fi
4328 done
4329 done
4330
4331 fi
4332
4333 SED=$lt_cv_path_SED
4334
4335 echo "$as_me:$LINENO: result: $SED" >&5
4336 echo "${ECHO_T}$SED" >&6
4337
4338 test -z "$SED" && SED=sed
4339 Xsed="$SED -e 1s/^X//"
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351 echo "$as_me:$LINENO: checking for egrep" >&5
4352 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4353 if test "${ac_cv_prog_egrep+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4357 then ac_cv_prog_egrep='grep -E'
4358 else ac_cv_prog_egrep='egrep'
4359 fi
4360 fi
4361 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4362 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4363 EGREP=$ac_cv_prog_egrep
4364
4365
4366 echo "$as_me:$LINENO: checking for fgrep" >&5
4367 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4368 if test "${ac_cv_prog_fgrep+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4372 then ac_cv_prog_fgrep='grep -F'
4373 else ac_cv_prog_fgrep='fgrep'
4374 fi
4375 fi
4376 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4377 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4378 FGREP=$ac_cv_prog_fgrep
4379
4380
4381 test -z "$GREP" && GREP=grep
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4402 if test "${with_gnu_ld+set}" = set; then
4403 withval="$with_gnu_ld"
4404 test "$withval" = no || with_gnu_ld=yes
4405 else
4406 with_gnu_ld=no
4407 fi;
4408 ac_prog=ld
4409 if test "$GCC" = yes; then
4410 # Check if gcc -print-prog-name=ld gives a path.
4411 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4412 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4413 case $host in
4414 *-*-mingw*)
4415 # gcc leaves a trailing carriage return which upsets mingw
4416 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4417 *)
4418 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4419 esac
4420 case $ac_prog in
4421 # Accept absolute paths.
4422 [\\/]* | ?:[\\/]*)
4423 re_direlt='/[^/][^/]*/\.\./'
4424 # Canonicalize the pathname of ld
4425 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4426 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4427 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4428 done
4429 test -z "$LD" && LD="$ac_prog"
4430 ;;
4431 "")
4432 # If it fails, then pretend we aren't using GCC.
4433 ac_prog=ld
4434 ;;
4435 *)
4436 # If it is relative, then search for the first ld in PATH.
4437 with_gnu_ld=unknown
4438 ;;
4439 esac
4440 elif test "$with_gnu_ld" = yes; then
4441 echo "$as_me:$LINENO: checking for GNU ld" >&5
4442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4443 else
4444 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4446 fi
4447 if test "${lt_cv_path_LD+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450 if test -z "$LD"; then
4451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4452 for ac_dir in $PATH; do
4453 IFS="$lt_save_ifs"
4454 test -z "$ac_dir" && ac_dir=.
4455 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4456 lt_cv_path_LD="$ac_dir/$ac_prog"
4457 # Check to see if the program is GNU ld. I'd rather use --version,
4458 # but apparently some variants of GNU ld only accept -v.
4459 # Break only if it was the GNU/non-GNU ld that we prefer.
4460 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4461 *GNU* | *'with BFD'*)
4462 test "$with_gnu_ld" != no && break
4463 ;;
4464 *)
4465 test "$with_gnu_ld" != yes && break
4466 ;;
4467 esac
4468 fi
4469 done
4470 IFS="$lt_save_ifs"
4471 else
4472 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4473 fi
4474 fi
4475
4476 LD="$lt_cv_path_LD"
4477 if test -n "$LD"; then
4478 echo "$as_me:$LINENO: result: $LD" >&5
4479 echo "${ECHO_T}$LD" >&6
4480 else
4481 echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4483 fi
4484 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4485 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4486 { (exit 1); exit 1; }; }
4487 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4488 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4489 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4493 case `$LD -v 2>&1 </dev/null` in
4494 *GNU* | *'with BFD'*)
4495 lt_cv_prog_gnu_ld=yes
4496 ;;
4497 *)
4498 lt_cv_prog_gnu_ld=no
4499 ;;
4500 esac
4501 fi
4502 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4503 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4504 with_gnu_ld=$lt_cv_prog_gnu_ld
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4516 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4517 if test "${lt_cv_path_NM+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 if test -n "$NM"; then
4521 # Let the user override the test.
4522 lt_cv_path_NM="$NM"
4523 else
4524 lt_nm_to_check="${ac_tool_prefix}nm"
4525 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4526 lt_nm_to_check="$lt_nm_to_check nm"
4527 fi
4528 for lt_tmp_nm in $lt_nm_to_check; do
4529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4530 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4531 IFS="$lt_save_ifs"
4532 test -z "$ac_dir" && ac_dir=.
4533 tmp_nm="$ac_dir/$lt_tmp_nm"
4534 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4535 # Check to see if the nm accepts a BSD-compat flag.
4536 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4537 # nm: unknown option "B" ignored
4538 # Tru64's nm complains that /dev/null is an invalid object file
4539 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4540 */dev/null* | *'Invalid file or object type'*)
4541 lt_cv_path_NM="$tmp_nm -B"
4542 break
4543 ;;
4544 *)
4545 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4546 */dev/null*)
4547 lt_cv_path_NM="$tmp_nm -p"
4548 break
4549 ;;
4550 *)
4551 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4552 continue # so that we can try to find one that supports BSD flags
4553 ;;
4554 esac
4555 ;;
4556 esac
4557 fi
4558 done
4559 IFS="$lt_save_ifs"
4560 done
4561 : ${lt_cv_path_NM=no}
4562 fi
4563 fi
4564 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4565 echo "${ECHO_T}$lt_cv_path_NM" >&6
4566 if test "$lt_cv_path_NM" != "no"; then
4567 NM="$lt_cv_path_NM"
4568 else
4569 # Didn't find any BSD compatible name lister, look for dumpbin.
4570 if test -n "$ac_tool_prefix"; then
4571 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4572 do
4573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4575 echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4577 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580 if test -n "$DUMPBIN"; then
4581 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4593 fi
4594 done
4595 done
4596
4597 fi
4598 fi
4599 DUMPBIN=$ac_cv_prog_DUMPBIN
4600 if test -n "$DUMPBIN"; then
4601 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4602 echo "${ECHO_T}$DUMPBIN" >&6
4603 else
4604 echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6
4606 fi
4607
4608 test -n "$DUMPBIN" && break
4609 done
4610 fi
4611 if test -z "$DUMPBIN"; then
4612 ac_ct_DUMPBIN=$DUMPBIN
4613 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4614 do
4615 # Extract the first word of "$ac_prog", so it can be a program name with args.
4616 set dummy $ac_prog; ac_word=$2
4617 echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4619 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622 if test -n "$ac_ct_DUMPBIN"; then
4623 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636 done
4637 done
4638
4639 fi
4640 fi
4641 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4642 if test -n "$ac_ct_DUMPBIN"; then
4643 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4644 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4645 else
4646 echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4648 fi
4649
4650 test -n "$ac_ct_DUMPBIN" && break
4651 done
4652 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4653
4654 DUMPBIN=$ac_ct_DUMPBIN
4655 fi
4656
4657
4658 if test "$DUMPBIN" != ":"; then
4659 NM="$DUMPBIN"
4660 fi
4661 fi
4662 test -z "$NM" && NM=nm
4663
4664
4665
4666
4667
4668
4669 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4670 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4671 if test "${lt_cv_nm_interface+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 lt_cv_nm_interface="BSD nm"
4675 echo "int some_variable = 0;" > conftest.$ac_ext
4676 (eval echo "\"\$as_me:4676: $ac_compile\"" >&5)
4677 (eval "$ac_compile" 2>conftest.err)
4678 cat conftest.err >&5
4679 (eval echo "\"\$as_me:4679: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4680 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4681 cat conftest.err >&5
4682 (eval echo "\"\$as_me:4682: output\"" >&5)
4683 cat conftest.out >&5
4684 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4685 lt_cv_nm_interface="MS dumpbin"
4686 fi
4687 rm -f conftest*
4688 fi
4689 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4690 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4691
4692 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4693 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4694 LN_S=$as_ln_s
4695 if test "$LN_S" = "ln -s"; then
4696 echo "$as_me:$LINENO: result: yes" >&5
4697 echo "${ECHO_T}yes" >&6
4698 else
4699 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4700 echo "${ECHO_T}no, using $LN_S" >&6
4701 fi
4702
4703 # find the maximum length of command line arguments
4704 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4705 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4706 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 i=0
4710 teststring="ABCD"
4711
4712 case $build_os in
4713 msdosdjgpp*)
4714 # On DJGPP, this test can blow up pretty badly due to problems in libc
4715 # (any single argument exceeding 2000 bytes causes a buffer overrun
4716 # during glob expansion). Even if it were fixed, the result of this
4717 # check would be larger than it should be.
4718 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4719 ;;
4720
4721 gnu*)
4722 # Under GNU Hurd, this test is not required because there is
4723 # no limit to the length of command line arguments.
4724 # Libtool will interpret -1 as no limit whatsoever
4725 lt_cv_sys_max_cmd_len=-1;
4726 ;;
4727
4728 cygwin* | mingw*)
4729 # On Win9x/ME, this test blows up -- it succeeds, but takes
4730 # about 5 minutes as the teststring grows exponentially.
4731 # Worse, since 9x/ME are not pre-emptively multitasking,
4732 # you end up with a "frozen" computer, even though with patience
4733 # the test eventually succeeds (with a max line length of 256k).
4734 # Instead, let's just punt: use the minimum linelength reported by
4735 # all of the supported platforms: 8192 (on NT/2K/XP).
4736 lt_cv_sys_max_cmd_len=8192;
4737 ;;
4738
4739 amigaos*)
4740 # On AmigaOS with pdksh, this test takes hours, literally.
4741 # So we just punt and use a minimum line length of 8192.
4742 lt_cv_sys_max_cmd_len=8192;
4743 ;;
4744
4745 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4746 # This has been around since 386BSD, at least. Likely further.
4747 if test -x /sbin/sysctl; then
4748 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4749 elif test -x /usr/sbin/sysctl; then
4750 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4751 else
4752 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4753 fi
4754 # And add a safety zone
4755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4757 ;;
4758
4759 interix*)
4760 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4761 lt_cv_sys_max_cmd_len=196608
4762 ;;
4763
4764 osf*)
4765 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4766 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4767 # nice to cause kernel panics so lets avoid the loop below.
4768 # First set a reasonable default.
4769 lt_cv_sys_max_cmd_len=16384
4770 #
4771 if test -x /sbin/sysconfig; then
4772 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4773 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4774 esac
4775 fi
4776 ;;
4777 sco3.2v5*)
4778 lt_cv_sys_max_cmd_len=102400
4779 ;;
4780 sysv5* | sco5v6* | sysv4.2uw2*)
4781 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4782 if test -n "$kargmax"; then
4783 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4784 else
4785 lt_cv_sys_max_cmd_len=32768
4786 fi
4787 ;;
4788 *)
4789 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4790 if test -n $lt_cv_sys_max_cmd_len; then
4791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4793 else
4794 # Make teststring a little bigger before we do anything with it.
4795 # a 1K string should be a reasonable start.
4796 for i in 1 2 3 4 5 6 7 8 ; do
4797 teststring=$teststring$teststring
4798 done
4799 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4800 # If test is not a shell built-in, we'll probably end up computing a
4801 # maximum length that is only half of the actual maximum length, but
4802 # we can't tell.
4803 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4804 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4805 test $i != 17 # 1/2 MB should be enough
4806 do
4807 i=`expr $i + 1`
4808 teststring=$teststring$teststring
4809 done
4810 # Only check the string length outside the loop.
4811 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4812 teststring=
4813 # Add a significant safety factor because C++ compilers can tack on
4814 # massive amounts of additional arguments before passing them to the
4815 # linker. It appears as though 1/2 is a usable value.
4816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4817 fi
4818 ;;
4819 esac
4820
4821 fi
4822
4823 if test -n $lt_cv_sys_max_cmd_len ; then
4824 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4825 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4826 else
4827 echo "$as_me:$LINENO: result: none" >&5
4828 echo "${ECHO_T}none" >&6
4829 fi
4830 max_cmd_len=$lt_cv_sys_max_cmd_len
4831
4832
4833
4834
4835
4836
4837
4838 : ${CP="cp -f"}
4839 : ${MV="mv -f"}
4840 : ${RM="rm -f"}
4841
4842 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4843 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4844 # Try some XSI features
4845 xsi_shell=no
4846 ( _lt_dummy="a/b/c"
4847 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4848 = c,a/b,, ) >/dev/null 2>&1 \
4849 && xsi_shell=yes
4850 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4851 echo "${ECHO_T}$xsi_shell" >&6
4852
4853
4854 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4855 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4856 lt_shell_append=no
4857 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4858 >/dev/null 2>&1 \
4859 && lt_shell_append=yes
4860 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4861 echo "${ECHO_T}$lt_shell_append" >&6
4862
4863
4864 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4865 lt_unset=unset
4866 else
4867 lt_unset=false
4868 fi
4869
4870
4871
4872
4873
4874 # test EBCDIC or ASCII
4875 case `echo X|tr X '\101'` in
4876 A) # ASCII based system
4877 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4878 lt_SP2NL='tr \040 \012'
4879 lt_NL2SP='tr \015\012 \040\040'
4880 ;;
4881 *) # EBCDIC based system
4882 lt_SP2NL='tr \100 \n'
4883 lt_NL2SP='tr \r\n \100\100'
4884 ;;
4885 esac
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4896 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4897 if test "${lt_cv_ld_reload_flag+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900 lt_cv_ld_reload_flag='-r'
4901 fi
4902 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4903 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4904 reload_flag=$lt_cv_ld_reload_flag
4905 case $reload_flag in
4906 "" | " "*) ;;
4907 *) reload_flag=" $reload_flag" ;;
4908 esac
4909 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4910 case $host_os in
4911 darwin*)
4912 if test "$GCC" = yes; then
4913 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4914 else
4915 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4916 fi
4917 ;;
4918 esac
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4930 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4931 if test "${lt_cv_deplibs_check_method+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 lt_cv_file_magic_cmd='$MAGIC_CMD'
4935 lt_cv_file_magic_test_file=
4936 lt_cv_deplibs_check_method='unknown'
4937 # Need to set the preceding variable on all platforms that support
4938 # interlibrary dependencies.
4939 # 'none' -- dependencies not supported.
4940 # `unknown' -- same as none, but documents that we really don't know.
4941 # 'pass_all' -- all dependencies passed with no checks.
4942 # 'test_compile' -- check by making test program.
4943 # 'file_magic [[regex]]' -- check by looking for files in library path
4944 # which responds to the $file_magic_cmd with a given extended regex.
4945 # If you have `file' or equivalent on your system and you're not sure
4946 # whether `pass_all' will *always* work, you probably want this one.
4947
4948 case $host_os in
4949 aix[4-9]*)
4950 lt_cv_deplibs_check_method=pass_all
4951 ;;
4952
4953 beos*)
4954 lt_cv_deplibs_check_method=pass_all
4955 ;;
4956
4957 bsdi[45]*)
4958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4959 lt_cv_file_magic_cmd='/usr/bin/file -L'
4960 lt_cv_file_magic_test_file=/shlib/libc.so
4961 ;;
4962
4963 cygwin*)
4964 # func_win32_libid is a shell function defined in ltmain.sh
4965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4966 lt_cv_file_magic_cmd='func_win32_libid'
4967 ;;
4968
4969 mingw* | pw32*)
4970 # Base MSYS/MinGW do not provide the 'file' command needed by
4971 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4972 # unless we find 'file', for example because we are cross-compiling.
4973 if ( file / ) >/dev/null 2>&1; then
4974 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4975 lt_cv_file_magic_cmd='func_win32_libid'
4976 else
4977 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4978 lt_cv_file_magic_cmd='$OBJDUMP -f'
4979 fi
4980 ;;
4981
4982 darwin* | rhapsody*)
4983 lt_cv_deplibs_check_method=pass_all
4984 ;;
4985
4986 freebsd* | dragonfly*)
4987 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4988 case $host_cpu in
4989 i*86 )
4990 # Not sure whether the presence of OpenBSD here was a mistake.
4991 # Let's accept both of them until this is cleared up.
4992 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4993 lt_cv_file_magic_cmd=/usr/bin/file
4994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4995 ;;
4996 esac
4997 else
4998 lt_cv_deplibs_check_method=pass_all
4999 fi
5000 ;;
5001
5002 gnu*)
5003 lt_cv_deplibs_check_method=pass_all
5004 ;;
5005
5006 hpux10.20* | hpux11*)
5007 lt_cv_file_magic_cmd=/usr/bin/file
5008 case $host_cpu in
5009 ia64*)
5010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5011 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5012 ;;
5013 hppa*64*)
5014 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]'
5015 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5016 ;;
5017 *)
5018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5019 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5020 ;;
5021 esac
5022 ;;
5023
5024 interix[3-9]*)
5025 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5027 ;;
5028
5029 irix5* | irix6* | nonstopux*)
5030 case $LD in
5031 *-32|*"-32 ") libmagic=32-bit;;
5032 *-n32|*"-n32 ") libmagic=N32;;
5033 *-64|*"-64 ") libmagic=64-bit;;
5034 *) libmagic=never-match;;
5035 esac
5036 lt_cv_deplibs_check_method=pass_all
5037 ;;
5038
5039 # This must be Linux ELF.
5040 linux* | k*bsd*-gnu)
5041 lt_cv_deplibs_check_method=pass_all
5042 ;;
5043
5044 netbsd*)
5045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5047 else
5048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5049 fi
5050 ;;
5051
5052 newos6*)
5053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5054 lt_cv_file_magic_cmd=/usr/bin/file
5055 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5056 ;;
5057
5058 *nto* | *qnx*)
5059 lt_cv_deplibs_check_method=pass_all
5060 ;;
5061
5062 openbsd*)
5063 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5065 else
5066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5067 fi
5068 ;;
5069
5070 osf3* | osf4* | osf5*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073
5074 rdos*)
5075 lt_cv_deplibs_check_method=pass_all
5076 ;;
5077
5078 solaris*)
5079 lt_cv_deplibs_check_method=pass_all
5080 ;;
5081
5082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
5085
5086 sysv4 | sysv4.3*)
5087 case $host_vendor in
5088 motorola)
5089 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]'
5090 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5091 ;;
5092 ncr)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095 sequent)
5096 lt_cv_file_magic_cmd='/bin/file'
5097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5098 ;;
5099 sni)
5100 lt_cv_file_magic_cmd='/bin/file'
5101 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5102 lt_cv_file_magic_test_file=/lib/libc.so
5103 ;;
5104 siemens)
5105 lt_cv_deplibs_check_method=pass_all
5106 ;;
5107 pc)
5108 lt_cv_deplibs_check_method=pass_all
5109 ;;
5110 esac
5111 ;;
5112
5113 tpf*)
5114 lt_cv_deplibs_check_method=pass_all
5115 ;;
5116 esac
5117
5118 fi
5119 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5120 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5121 file_magic_cmd=$lt_cv_file_magic_cmd
5122 deplibs_check_method=$lt_cv_deplibs_check_method
5123 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136 if test -n "$ac_tool_prefix"; then
5137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5138 set dummy ${ac_tool_prefix}ar; ac_word=$2
5139 echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5141 if test "${ac_cv_prog_AR+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144 if test -n "$AR"; then
5145 ac_cv_prog_AR="$AR" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_AR="${ac_tool_prefix}ar"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158 done
5159 done
5160
5161 fi
5162 fi
5163 AR=$ac_cv_prog_AR
5164 if test -n "$AR"; then
5165 echo "$as_me:$LINENO: result: $AR" >&5
5166 echo "${ECHO_T}$AR" >&6
5167 else
5168 echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6
5170 fi
5171
5172 fi
5173 if test -z "$ac_cv_prog_AR"; then
5174 ac_ct_AR=$AR
5175 # Extract the first word of "ar", so it can be a program name with args.
5176 set dummy ar; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 if test -n "$ac_ct_AR"; then
5183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_AR="ar"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196 done
5197 done
5198
5199 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5200 fi
5201 fi
5202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5203 if test -n "$ac_ct_AR"; then
5204 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5205 echo "${ECHO_T}$ac_ct_AR" >&6
5206 else
5207 echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6
5209 fi
5210
5211 AR=$ac_ct_AR
5212 else
5213 AR="$ac_cv_prog_AR"
5214 fi
5215
5216 test -z "$AR" && AR=ar
5217 test -z "$AR_FLAGS" && AR_FLAGS=cru
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229 if test -n "$ac_tool_prefix"; then
5230 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5231 set dummy ${ac_tool_prefix}strip; ac_word=$2
5232 echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234 if test "${ac_cv_prog_STRIP+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237 if test -n "$STRIP"; then
5238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251 done
5252 done
5253
5254 fi
5255 fi
5256 STRIP=$ac_cv_prog_STRIP
5257 if test -n "$STRIP"; then
5258 echo "$as_me:$LINENO: result: $STRIP" >&5
5259 echo "${ECHO_T}$STRIP" >&6
5260 else
5261 echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6
5263 fi
5264
5265 fi
5266 if test -z "$ac_cv_prog_STRIP"; then
5267 ac_ct_STRIP=$STRIP
5268 # Extract the first word of "strip", so it can be a program name with args.
5269 set dummy strip; ac_word=$2
5270 echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5272 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 if test -n "$ac_ct_STRIP"; then
5276 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_ac_ct_STRIP="strip"
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289 done
5290 done
5291
5292 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5293 fi
5294 fi
5295 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5296 if test -n "$ac_ct_STRIP"; then
5297 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5298 echo "${ECHO_T}$ac_ct_STRIP" >&6
5299 else
5300 echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5302 fi
5303
5304 STRIP=$ac_ct_STRIP
5305 else
5306 STRIP="$ac_cv_prog_STRIP"
5307 fi
5308
5309 test -z "$STRIP" && STRIP=:
5310
5311
5312
5313
5314
5315
5316 if test -n "$ac_tool_prefix"; then
5317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5319 echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321 if test "${ac_cv_prog_RANLIB+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 if test -n "$RANLIB"; then
5325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5337 fi
5338 done
5339 done
5340
5341 fi
5342 fi
5343 RANLIB=$ac_cv_prog_RANLIB
5344 if test -n "$RANLIB"; then
5345 echo "$as_me:$LINENO: result: $RANLIB" >&5
5346 echo "${ECHO_T}$RANLIB" >&6
5347 else
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5350 fi
5351
5352 fi
5353 if test -z "$ac_cv_prog_RANLIB"; then
5354 ac_ct_RANLIB=$RANLIB
5355 # Extract the first word of "ranlib", so it can be a program name with args.
5356 set dummy ranlib; ac_word=$2
5357 echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 if test -n "$ac_ct_RANLIB"; then
5363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_ac_ct_RANLIB="ranlib"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376 done
5377 done
5378
5379 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5380 fi
5381 fi
5382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5383 if test -n "$ac_ct_RANLIB"; then
5384 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5385 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6
5389 fi
5390
5391 RANLIB=$ac_ct_RANLIB
5392 else
5393 RANLIB="$ac_cv_prog_RANLIB"
5394 fi
5395
5396 test -z "$RANLIB" && RANLIB=:
5397
5398
5399
5400
5401
5402
5403 # Determine commands to create old-style static archives.
5404 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5405 old_postinstall_cmds='chmod 644 $oldlib'
5406 old_postuninstall_cmds=
5407
5408 if test -n "$RANLIB"; then
5409 case $host_os in
5410 openbsd*)
5411 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5412 ;;
5413 *)
5414 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5415 ;;
5416 esac
5417 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5418 fi
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453 # If no C compiler was specified, use CC.
5454 LTCC=${LTCC-"$CC"}
5455
5456 # If no C compiler flags were specified, use CFLAGS.
5457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5458
5459 # Allow CC to be a program name with arguments.
5460 compiler=$CC
5461
5462
5463 # Check for command to grab the raw symbol name followed by C symbol from nm.
5464 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5465 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5466 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469
5470 # These are sane defaults that work on at least a few old systems.
5471 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5472
5473 # Character class describing NM global symbol codes.
5474 symcode='[BCDEGRST]'
5475
5476 # Regexp to match symbols that can be accessed directly from C.
5477 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5478
5479 # Define system-specific variables.
5480 case $host_os in
5481 aix*)
5482 symcode='[BCDT]'
5483 ;;
5484 cygwin* | mingw* | pw32*)
5485 symcode='[ABCDGISTW]'
5486 ;;
5487 hpux*)
5488 if test "$host_cpu" = ia64; then
5489 symcode='[ABCDEGRST]'
5490 fi
5491 ;;
5492 irix* | nonstopux*)
5493 symcode='[BCDEGRST]'
5494 ;;
5495 osf*)
5496 symcode='[BCDEGQRST]'
5497 ;;
5498 solaris*)
5499 symcode='[BDRT]'
5500 ;;
5501 sco3.2v5*)
5502 symcode='[DT]'
5503 ;;
5504 sysv4.2uw2*)
5505 symcode='[DT]'
5506 ;;
5507 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5508 symcode='[ABDT]'
5509 ;;
5510 sysv4)
5511 symcode='[DFNSTU]'
5512 ;;
5513 esac
5514
5515 # If we're using GNU nm, then use its standard symbol codes.
5516 case `$NM -V 2>&1` in
5517 *GNU* | *'with BFD'*)
5518 symcode='[ABCDGIRSTW]' ;;
5519 esac
5520
5521 # Transform an extracted symbol line into a proper C declaration.
5522 # Some systems (esp. on ia64) link data and code symbols differently,
5523 # so use this general approach.
5524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5525
5526 # Transform an extracted symbol line into symbol name and symbol address
5527 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5528
5529 # Handle CRLF in mingw tool chain
5530 opt_cr=
5531 case $build_os in
5532 mingw*)
5533 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5534 ;;
5535 esac
5536
5537 # Try without a prefix underscore, then with it.
5538 for ac_symprfx in "" "_"; do
5539
5540 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5541 symxfrm="\\1 $ac_symprfx\\2 \\2"
5542
5543 # Write the raw and C identifiers.
5544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5545 # Fake it for dumpbin and say T for any non-static function
5546 # and D for any global variable.
5547 # Also find C++ and __fastcall symbols from MSVC++,
5548 # which start with @ or ?.
5549 lt_cv_sys_global_symbol_pipe="$AWK '"\
5550 " {last_section=section; section=\$ 3};"\
5551 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5552 " \$ 0!~/External *\|/{next};"\
5553 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5554 " {if(hide[section]) next};"\
5555 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5556 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5557 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5558 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5559 " ' prfx=^$ac_symprfx"
5560 else
5561 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5562 fi
5563
5564 # Check to see that the pipe works correctly.
5565 pipe_works=no
5566
5567 rm -f conftest*
5568 cat > conftest.$ac_ext <<_LT_EOF
5569 #ifdef __cplusplus
5570 extern "C" {
5571 #endif
5572 char nm_test_var;
5573 void nm_test_func(void);
5574 void nm_test_func(void){}
5575 #ifdef __cplusplus
5576 }
5577 #endif
5578 int main(){nm_test_var='a';nm_test_func();return(0);}
5579 _LT_EOF
5580
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; then
5586 # Now try to grab the symbols.
5587 nlist=conftest.nm
5588 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5589 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && test -s "$nlist"; then
5593 # Try sorting and uniquifying the output.
5594 if sort "$nlist" | uniq > "$nlist"T; then
5595 mv -f "$nlist"T "$nlist"
5596 else
5597 rm -f "$nlist"T
5598 fi
5599
5600 # Make sure that we snagged all the symbols we need.
5601 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5602 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5603 cat <<_LT_EOF > conftest.$ac_ext
5604 #ifdef __cplusplus
5605 extern "C" {
5606 #endif
5607
5608 _LT_EOF
5609 # Now generate the symbol file.
5610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5611
5612 cat <<_LT_EOF >> conftest.$ac_ext
5613
5614 /* The mapping between symbol names and symbols. */
5615 const struct {
5616 const char *name;
5617 void *address;
5618 }
5619 lt__PROGRAM__LTX_preloaded_symbols[] =
5620 {
5621 { "@PROGRAM@", (void *) 0 },
5622 _LT_EOF
5623 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5624 cat <<\_LT_EOF >> conftest.$ac_ext
5625 {0, (void *) 0}
5626 };
5627
5628 /* This works around a problem in FreeBSD linker */
5629 #ifdef FREEBSD_WORKAROUND
5630 static const void *lt_preloaded_setup() {
5631 return lt__PROGRAM__LTX_preloaded_symbols;
5632 }
5633 #endif
5634
5635 #ifdef __cplusplus
5636 }
5637 #endif
5638 _LT_EOF
5639 # Now try linking the two files.
5640 mv conftest.$ac_objext conftstm.$ac_objext
5641 lt_save_LIBS="$LIBS"
5642 lt_save_CFLAGS="$CFLAGS"
5643 LIBS="conftstm.$ac_objext"
5644 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5646 (eval $ac_link) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5650 pipe_works=yes
5651 fi
5652 LIBS="$lt_save_LIBS"
5653 CFLAGS="$lt_save_CFLAGS"
5654 else
5655 echo "cannot find nm_test_func in $nlist" >&5
5656 fi
5657 else
5658 echo "cannot find nm_test_var in $nlist" >&5
5659 fi
5660 else
5661 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5662 fi
5663 else
5664 echo "$progname: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5666 fi
5667 rm -f conftest* conftst*
5668
5669 # Do not use the global_symbol_pipe unless it works.
5670 if test "$pipe_works" = yes; then
5671 break
5672 else
5673 lt_cv_sys_global_symbol_pipe=
5674 fi
5675 done
5676
5677 fi
5678
5679 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5680 lt_cv_sys_global_symbol_to_cdecl=
5681 fi
5682 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5683 echo "$as_me:$LINENO: result: failed" >&5
5684 echo "${ECHO_T}failed" >&6
5685 else
5686 echo "$as_me:$LINENO: result: ok" >&5
5687 echo "${ECHO_T}ok" >&6
5688 fi
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5707 if test "${enable_libtool_lock+set}" = set; then
5708 enableval="$enable_libtool_lock"
5709
5710 fi;
5711 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5712
5713 # Some flags need to be propagated to the compiler or linker for good
5714 # libtool support.
5715 case $host in
5716 ia64-*-hpux*)
5717 # Find out which ABI we are using.
5718 echo 'int i;' > conftest.$ac_ext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; then
5724 case `/usr/bin/file conftest.$ac_objext` in
5725 *ELF-32*)
5726 HPUX_IA64_MODE="32"
5727 ;;
5728 *ELF-64*)
5729 HPUX_IA64_MODE="64"
5730 ;;
5731 esac
5732 fi
5733 rm -rf conftest*
5734 ;;
5735 *-*-irix6*)
5736 # Find out which ABI we are using.
5737 echo '#line 5737 "configure"' > conftest.$ac_ext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739 (eval $ac_compile) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; then
5743 if test "$lt_cv_prog_gnu_ld" = yes; then
5744 case `/usr/bin/file conftest.$ac_objext` in
5745 *32-bit*)
5746 LD="${LD-ld} -melf32bsmip"
5747 ;;
5748 *N32*)
5749 LD="${LD-ld} -melf32bmipn32"
5750 ;;
5751 *64-bit*)
5752 LD="${LD-ld} -melf64bmip"
5753 ;;
5754 esac
5755 else
5756 case `/usr/bin/file conftest.$ac_objext` in
5757 *32-bit*)
5758 LD="${LD-ld} -32"
5759 ;;
5760 *N32*)
5761 LD="${LD-ld} -n32"
5762 ;;
5763 *64-bit*)
5764 LD="${LD-ld} -64"
5765 ;;
5766 esac
5767 fi
5768 fi
5769 rm -rf conftest*
5770 ;;
5771
5772 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5773 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5774 # Find out which ABI we are using.
5775 echo 'int i;' > conftest.$ac_ext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; then
5781 case `/usr/bin/file conftest.o` in
5782 *32-bit*)
5783 case $host in
5784 x86_64-*kfreebsd*-gnu)
5785 LD="${LD-ld} -m elf_i386_fbsd"
5786 ;;
5787 x86_64-*linux*)
5788 LD="${LD-ld} -m elf_i386"
5789 ;;
5790 ppc64-*linux*|powerpc64-*linux*)
5791 LD="${LD-ld} -m elf32ppclinux"
5792 ;;
5793 s390x-*linux*)
5794 LD="${LD-ld} -m elf_s390"
5795 ;;
5796 sparc64-*linux*)
5797 LD="${LD-ld} -m elf32_sparc"
5798 ;;
5799 esac
5800 ;;
5801 *64-bit*)
5802 case $host in
5803 x86_64-*kfreebsd*-gnu)
5804 LD="${LD-ld} -m elf_x86_64_fbsd"
5805 ;;
5806 x86_64-*linux*)
5807 LD="${LD-ld} -m elf_x86_64"
5808 ;;
5809 ppc*-*linux*|powerpc*-*linux*)
5810 LD="${LD-ld} -m elf64ppc"
5811 ;;
5812 s390*-*linux*|s390*-*tpf*)
5813 LD="${LD-ld} -m elf64_s390"
5814 ;;
5815 sparc*-*linux*)
5816 LD="${LD-ld} -m elf64_sparc"
5817 ;;
5818 esac
5819 ;;
5820 esac
5821 fi
5822 rm -rf conftest*
5823 ;;
5824
5825 *-*-sco3.2v5*)
5826 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5827 SAVE_CFLAGS="$CFLAGS"
5828 CFLAGS="$CFLAGS -belf"
5829 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5830 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5831 if test "${lt_cv_cc_needs_belf+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 ac_ext=c
5835 ac_cpp='$CPP $CPPFLAGS'
5836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846
5847 int
5848 main ()
5849 {
5850
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 rm -f conftest.$ac_objext conftest$ac_exeext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5857 (eval $ac_link) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest$ac_exeext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 lt_cv_cc_needs_belf=yes
5877 else
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881 lt_cv_cc_needs_belf=no
5882 fi
5883 rm -f conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5885 ac_ext=c
5886 ac_cpp='$CPP $CPPFLAGS'
5887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890
5891 fi
5892 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5893 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5894 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5895 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5896 CFLAGS="$SAVE_CFLAGS"
5897 fi
5898 ;;
5899 sparc*-*solaris*)
5900 # Find out which ABI we are using.
5901 echo 'int i;' > conftest.$ac_ext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903 (eval $ac_compile) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; then
5907 case `/usr/bin/file conftest.o` in
5908 *64-bit*)
5909 case $lt_cv_prog_gnu_ld in
5910 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5911 *) LD="${LD-ld} -64" ;;
5912 esac
5913 ;;
5914 esac
5915 fi
5916 rm -rf conftest*
5917 ;;
5918 esac
5919
5920 need_locks="$enable_libtool_lock"
5921
5922 ac_ext=c
5923 ac_cpp='$CPP $CPPFLAGS'
5924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5928 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5929 # On Suns, sometimes $CPP names a directory.
5930 if test -n "$CPP" && test -d "$CPP"; then
5931 CPP=
5932 fi
5933 if test -z "$CPP"; then
5934 if test "${ac_cv_prog_CPP+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937 # Double quotes because CPP needs to be expanded
5938 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5939 do
5940 ac_preproc_ok=false
5941 for ac_c_preproc_warn_flag in '' yes
5942 do
5943 # Use a header file that comes with gcc, so configuring glibc
5944 # with a fresh cross-compiler works.
5945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5946 # <limits.h> exists even on freestanding compilers.
5947 # On the NeXT, cc -E runs the code through the compiler's parser,
5948 # not just through cpp. "Syntax error" is here to catch this case.
5949 cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h. */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5955 #ifdef __STDC__
5956 # include <limits.h>
5957 #else
5958 # include <assert.h>
5959 #endif
5960 Syntax error
5961 _ACEOF
5962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } >/dev/null; then
5970 if test -s conftest.err; then
5971 ac_cpp_err=$ac_c_preproc_warn_flag
5972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5973 else
5974 ac_cpp_err=
5975 fi
5976 else
5977 ac_cpp_err=yes
5978 fi
5979 if test -z "$ac_cpp_err"; then
5980 :
5981 else
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5984
5985 # Broken: fails on valid input.
5986 continue
5987 fi
5988 rm -f conftest.err conftest.$ac_ext
5989
5990 # OK, works on sane cases. Now check whether non-existent headers
5991 # can be detected and how.
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #include <ac_nonexistent.h>
5999 _ACEOF
6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } >/dev/null; then
6008 if test -s conftest.err; then
6009 ac_cpp_err=$ac_c_preproc_warn_flag
6010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6011 else
6012 ac_cpp_err=
6013 fi
6014 else
6015 ac_cpp_err=yes
6016 fi
6017 if test -z "$ac_cpp_err"; then
6018 # Broken: success on invalid input.
6019 continue
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 # Passes both tests.
6025 ac_preproc_ok=:
6026 break
6027 fi
6028 rm -f conftest.err conftest.$ac_ext
6029
6030 done
6031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6032 rm -f conftest.err conftest.$ac_ext
6033 if $ac_preproc_ok; then
6034 break
6035 fi
6036
6037 done
6038 ac_cv_prog_CPP=$CPP
6039
6040 fi
6041 CPP=$ac_cv_prog_CPP
6042 else
6043 ac_cv_prog_CPP=$CPP
6044 fi
6045 echo "$as_me:$LINENO: result: $CPP" >&5
6046 echo "${ECHO_T}$CPP" >&6
6047 ac_preproc_ok=false
6048 for ac_c_preproc_warn_flag in '' yes
6049 do
6050 # Use a header file that comes with gcc, so configuring glibc
6051 # with a fresh cross-compiler works.
6052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6053 # <limits.h> exists even on freestanding compilers.
6054 # On the NeXT, cc -E runs the code through the compiler's parser,
6055 # not just through cpp. "Syntax error" is here to catch this case.
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #ifdef __STDC__
6063 # include <limits.h>
6064 #else
6065 # include <assert.h>
6066 #endif
6067 Syntax error
6068 _ACEOF
6069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } >/dev/null; then
6077 if test -s conftest.err; then
6078 ac_cpp_err=$ac_c_preproc_warn_flag
6079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6080 else
6081 ac_cpp_err=
6082 fi
6083 else
6084 ac_cpp_err=yes
6085 fi
6086 if test -z "$ac_cpp_err"; then
6087 :
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 # Broken: fails on valid input.
6093 continue
6094 fi
6095 rm -f conftest.err conftest.$ac_ext
6096
6097 # OK, works on sane cases. Now check whether non-existent headers
6098 # can be detected and how.
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <ac_nonexistent.h>
6106 _ACEOF
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } >/dev/null; then
6115 if test -s conftest.err; then
6116 ac_cpp_err=$ac_c_preproc_warn_flag
6117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6118 else
6119 ac_cpp_err=
6120 fi
6121 else
6122 ac_cpp_err=yes
6123 fi
6124 if test -z "$ac_cpp_err"; then
6125 # Broken: success on invalid input.
6126 continue
6127 else
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6130
6131 # Passes both tests.
6132 ac_preproc_ok=:
6133 break
6134 fi
6135 rm -f conftest.err conftest.$ac_ext
6136
6137 done
6138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6139 rm -f conftest.err conftest.$ac_ext
6140 if $ac_preproc_ok; then
6141 :
6142 else
6143 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6144 See \`config.log' for more details." >&5
6145 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6146 See \`config.log' for more details." >&2;}
6147 { (exit 1); exit 1; }; }
6148 fi
6149
6150 ac_ext=c
6151 ac_cpp='$CPP $CPPFLAGS'
6152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
6156
6157 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6158 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6159 if test "${ac_cv_header_stdc+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 #include <stdlib.h>
6169 #include <stdarg.h>
6170 #include <string.h>
6171 #include <float.h>
6172
6173 int
6174 main ()
6175 {
6176
6177 ;
6178 return 0;
6179 }
6180 _ACEOF
6181 rm -f conftest.$ac_objext
6182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6183 (eval $ac_compile) 2>conftest.er1
6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try='test -s conftest.$ac_objext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_header_stdc=yes
6203 else
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 ac_cv_header_stdc=no
6208 fi
6209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6210
6211 if test $ac_cv_header_stdc = yes; then
6212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 #include <string.h>
6220
6221 _ACEOF
6222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6223 $EGREP "memchr" >/dev/null 2>&1; then
6224 :
6225 else
6226 ac_cv_header_stdc=no
6227 fi
6228 rm -f conftest*
6229
6230 fi
6231
6232 if test $ac_cv_header_stdc = yes; then
6233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #include <stdlib.h>
6241
6242 _ACEOF
6243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6244 $EGREP "free" >/dev/null 2>&1; then
6245 :
6246 else
6247 ac_cv_header_stdc=no
6248 fi
6249 rm -f conftest*
6250
6251 fi
6252
6253 if test $ac_cv_header_stdc = yes; then
6254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6255 if test "$cross_compiling" = yes; then
6256 :
6257 else
6258 cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h. */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6264 #include <ctype.h>
6265 #if ((' ' & 0x0FF) == 0x020)
6266 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6267 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6268 #else
6269 # define ISLOWER(c) \
6270 (('a' <= (c) && (c) <= 'i') \
6271 || ('j' <= (c) && (c) <= 'r') \
6272 || ('s' <= (c) && (c) <= 'z'))
6273 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6274 #endif
6275
6276 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6277 int
6278 main ()
6279 {
6280 int i;
6281 for (i = 0; i < 256; i++)
6282 if (XOR (islower (i), ISLOWER (i))
6283 || toupper (i) != TOUPPER (i))
6284 exit(2);
6285 exit (0);
6286 }
6287 _ACEOF
6288 rm -f conftest$ac_exeext
6289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6290 (eval $ac_link) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 :
6300 else
6301 echo "$as_me: program exited with status $ac_status" >&5
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 ( exit $ac_status )
6306 ac_cv_header_stdc=no
6307 fi
6308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6309 fi
6310 fi
6311 fi
6312 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6313 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6314 if test $ac_cv_header_stdc = yes; then
6315
6316 cat >>confdefs.h <<\_ACEOF
6317 #define STDC_HEADERS 1
6318 _ACEOF
6319
6320 fi
6321
6322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6333 inttypes.h stdint.h unistd.h
6334 do
6335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6336 echo "$as_me:$LINENO: checking for $ac_header" >&5
6337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6348
6349 #include <$ac_header>
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353 (eval $ac_compile) 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 (eval $ac_try) 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest.$ac_objext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 (eval $ac_try) 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6372 eval "$as_ac_Header=yes"
6373 else
6374 echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6376
6377 eval "$as_ac_Header=no"
6378 fi
6379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380 fi
6381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6386 _ACEOF
6387
6388 fi
6389
6390 done
6391
6392
6393
6394 for ac_header in dlfcn.h
6395 do
6396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6397 echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 $ac_includes_default
6409
6410 #include <$ac_header>
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414 (eval $ac_compile) 2>conftest.er1
6415 ac_status=$?
6416 grep -v '^ *+' conftest.er1 >conftest.err
6417 rm -f conftest.er1
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 eval "$as_ac_Header=yes"
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 eval "$as_ac_Header=no"
6439 fi
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441 fi
6442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6445 cat >>confdefs.h <<_ACEOF
6446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6447 _ACEOF
6448
6449 fi
6450
6451 done
6452
6453
6454
6455 # This can be used to rebuild libtool when needed
6456 LIBTOOL_DEPS="$ltmain"
6457
6458 # Always use our own libtool.
6459 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485 test -z "$LN_S" && LN_S="ln -s"
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 if test -n "${ZSH_VERSION+set}" ; then
6501 setopt NO_GLOB_SUBST
6502 fi
6503
6504 echo "$as_me:$LINENO: checking for objdir" >&5
6505 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6506 if test "${lt_cv_objdir+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 rm -f .libs 2>/dev/null
6510 mkdir .libs 2>/dev/null
6511 if test -d .libs; then
6512 lt_cv_objdir=.libs
6513 else
6514 # MS-DOS does not allow filenames that begin with a dot.
6515 lt_cv_objdir=_libs
6516 fi
6517 rmdir .libs 2>/dev/null
6518 fi
6519 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6520 echo "${ECHO_T}$lt_cv_objdir" >&6
6521 objdir=$lt_cv_objdir
6522
6523
6524
6525
6526
6527 cat >>confdefs.h <<_ACEOF
6528 #define LT_OBJDIR "$lt_cv_objdir/"
6529 _ACEOF
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547 case $host_os in
6548 aix3*)
6549 # AIX sometimes has problems with the GCC collect2 program. For some
6550 # reason, if we set the COLLECT_NAMES environment variable, the problems
6551 # vanish in a puff of smoke.
6552 if test "X${COLLECT_NAMES+set}" != Xset; then
6553 COLLECT_NAMES=
6554 export COLLECT_NAMES
6555 fi
6556 ;;
6557 esac
6558
6559 # Sed substitution that helps us do robust quoting. It backslashifies
6560 # metacharacters that are still active within double-quoted strings.
6561 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6562
6563 # Same as above, but do not quote variable references.
6564 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6565
6566 # Sed substitution to delay expansion of an escaped shell variable in a
6567 # double_quote_subst'ed string.
6568 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6569
6570 # Sed substitution to delay expansion of an escaped single quote.
6571 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6572
6573 # Sed substitution to avoid accidental globbing in evaled expressions
6574 no_glob_subst='s/\*/\\\*/g'
6575
6576 # Global variables:
6577 ofile=libtool
6578 can_build_shared=yes
6579
6580 # All known linkers require a `.a' archive for static linking (except MSVC,
6581 # which needs '.lib').
6582 libext=a
6583
6584 with_gnu_ld="$lt_cv_prog_gnu_ld"
6585
6586 old_CC="$CC"
6587 old_CFLAGS="$CFLAGS"
6588
6589 # Set sane defaults for various variables
6590 test -z "$CC" && CC=cc
6591 test -z "$LTCC" && LTCC=$CC
6592 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6593 test -z "$LD" && LD=ld
6594 test -z "$ac_objext" && ac_objext=o
6595
6596 for cc_temp in $compiler""; do
6597 case $cc_temp in
6598 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6599 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6600 \-*) ;;
6601 *) break;;
6602 esac
6603 done
6604 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6605
6606
6607 # Only perform the check for file, if the check method requires it
6608 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6609 case $deplibs_check_method in
6610 file_magic*)
6611 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6612 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6613 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6614 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617 case $MAGIC_CMD in
6618 [\\/*] | ?:[\\/]*)
6619 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6620 ;;
6621 *)
6622 lt_save_MAGIC_CMD="$MAGIC_CMD"
6623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6624 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6625 for ac_dir in $ac_dummy; do
6626 IFS="$lt_save_ifs"
6627 test -z "$ac_dir" && ac_dir=.
6628 if test -f $ac_dir/${ac_tool_prefix}file; then
6629 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6630 if test -n "$file_magic_test_file"; then
6631 case $deplibs_check_method in
6632 "file_magic "*)
6633 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6635 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6636 $EGREP "$file_magic_regex" > /dev/null; then
6637 :
6638 else
6639 cat <<_LT_EOF 1>&2
6640
6641 *** Warning: the command libtool uses to detect shared libraries,
6642 *** $file_magic_cmd, produces output that libtool cannot recognize.
6643 *** The result is that libtool may fail to recognize shared libraries
6644 *** as such. This will affect the creation of libtool libraries that
6645 *** depend on shared libraries, but programs linked with such libtool
6646 *** libraries will work regardless of this problem. Nevertheless, you
6647 *** may want to report the problem to your system manager and/or to
6648 *** bug-libtool@gnu.org
6649
6650 _LT_EOF
6651 fi ;;
6652 esac
6653 fi
6654 break
6655 fi
6656 done
6657 IFS="$lt_save_ifs"
6658 MAGIC_CMD="$lt_save_MAGIC_CMD"
6659 ;;
6660 esac
6661 fi
6662
6663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6664 if test -n "$MAGIC_CMD"; then
6665 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6666 echo "${ECHO_T}$MAGIC_CMD" >&6
6667 else
6668 echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6
6670 fi
6671
6672
6673
6674
6675
6676 if test -z "$lt_cv_path_MAGIC_CMD"; then
6677 if test -n "$ac_tool_prefix"; then
6678 echo "$as_me:$LINENO: checking for file" >&5
6679 echo $ECHO_N "checking for file... $ECHO_C" >&6
6680 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 case $MAGIC_CMD in
6684 [\\/*] | ?:[\\/]*)
6685 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6686 ;;
6687 *)
6688 lt_save_MAGIC_CMD="$MAGIC_CMD"
6689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6690 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6691 for ac_dir in $ac_dummy; do
6692 IFS="$lt_save_ifs"
6693 test -z "$ac_dir" && ac_dir=.
6694 if test -f $ac_dir/file; then
6695 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6696 if test -n "$file_magic_test_file"; then
6697 case $deplibs_check_method in
6698 "file_magic "*)
6699 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6701 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6702 $EGREP "$file_magic_regex" > /dev/null; then
6703 :
6704 else
6705 cat <<_LT_EOF 1>&2
6706
6707 *** Warning: the command libtool uses to detect shared libraries,
6708 *** $file_magic_cmd, produces output that libtool cannot recognize.
6709 *** The result is that libtool may fail to recognize shared libraries
6710 *** as such. This will affect the creation of libtool libraries that
6711 *** depend on shared libraries, but programs linked with such libtool
6712 *** libraries will work regardless of this problem. Nevertheless, you
6713 *** may want to report the problem to your system manager and/or to
6714 *** bug-libtool@gnu.org
6715
6716 _LT_EOF
6717 fi ;;
6718 esac
6719 fi
6720 break
6721 fi
6722 done
6723 IFS="$lt_save_ifs"
6724 MAGIC_CMD="$lt_save_MAGIC_CMD"
6725 ;;
6726 esac
6727 fi
6728
6729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6730 if test -n "$MAGIC_CMD"; then
6731 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6732 echo "${ECHO_T}$MAGIC_CMD" >&6
6733 else
6734 echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6
6736 fi
6737
6738
6739 else
6740 MAGIC_CMD=:
6741 fi
6742 fi
6743
6744 fi
6745 ;;
6746 esac
6747
6748 # Use C for the default configuration in the libtool script
6749
6750 lt_save_CC="$CC"
6751 ac_ext=c
6752 ac_cpp='$CPP $CPPFLAGS'
6753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6756
6757
6758 # Source file extension for C test sources.
6759 ac_ext=c
6760
6761 # Object file extension for compiled C test sources.
6762 objext=o
6763 objext=$objext
6764
6765 # Code to be used in simple compile tests
6766 lt_simple_compile_test_code="int some_variable = 0;"
6767
6768 # Code to be used in simple link tests
6769 lt_simple_link_test_code='int main(){return(0);}'
6770
6771
6772
6773
6774
6775
6776
6777 # If no C compiler was specified, use CC.
6778 LTCC=${LTCC-"$CC"}
6779
6780 # If no C compiler flags were specified, use CFLAGS.
6781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6782
6783 # Allow CC to be a program name with arguments.
6784 compiler=$CC
6785
6786 # Save the default compiler, since it gets overwritten when the other
6787 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6788 compiler_DEFAULT=$CC
6789
6790 # save warnings/boilerplate of simple test code
6791 ac_outfile=conftest.$ac_objext
6792 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6793 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6794 _lt_compiler_boilerplate=`cat conftest.err`
6795 $RM conftest*
6796
6797 ac_outfile=conftest.$ac_objext
6798 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6799 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6800 _lt_linker_boilerplate=`cat conftest.err`
6801 $RM conftest*
6802
6803
6804 ## CAVEAT EMPTOR:
6805 ## There is no encapsulation within the following macros, do not change
6806 ## the running order or otherwise move them around unless you know exactly
6807 ## what you are doing...
6808 if test -n "$compiler"; then
6809
6810 lt_prog_compiler_no_builtin_flag=
6811
6812 if test "$GCC" = yes; then
6813 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6814
6815 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6816 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6817 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 lt_cv_prog_compiler_rtti_exceptions=no
6821 ac_outfile=conftest.$ac_objext
6822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6823 lt_compiler_flag="-fno-rtti -fno-exceptions"
6824 # Insert the option either (1) after the last *FLAGS variable, or
6825 # (2) before a word containing "conftest.", or (3) at the end.
6826 # Note that $ac_compile itself does not contain backslashes and begins
6827 # with a dollar sign (not a hyphen), so the echo should work correctly.
6828 # The option is referenced via a variable to avoid confusing sed.
6829 lt_compile=`echo "$ac_compile" | $SED \
6830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6832 -e 's:$: $lt_compiler_flag:'`
6833 (eval echo "\"\$as_me:6833: $lt_compile\"" >&5)
6834 (eval "$lt_compile" 2>conftest.err)
6835 ac_status=$?
6836 cat conftest.err >&5
6837 echo "$as_me:6837: \$? = $ac_status" >&5
6838 if (exit $ac_status) && test -s "$ac_outfile"; then
6839 # The compiler can only warn and ignore the option if not recognized
6840 # So say no if there are warnings other than the usual output.
6841 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6844 lt_cv_prog_compiler_rtti_exceptions=yes
6845 fi
6846 fi
6847 $RM conftest*
6848
6849 fi
6850 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6851 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6852
6853 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6854 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6855 else
6856 :
6857 fi
6858
6859 fi
6860
6861
6862
6863
6864
6865
6866 lt_prog_compiler_wl=
6867 lt_prog_compiler_pic=
6868 lt_prog_compiler_static=
6869
6870 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6871 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6872
6873 if test "$GCC" = yes; then
6874 lt_prog_compiler_wl='-Wl,'
6875 lt_prog_compiler_static='-static'
6876
6877 case $host_os in
6878 aix*)
6879 # All AIX code is PIC.
6880 if test "$host_cpu" = ia64; then
6881 # AIX 5 now supports IA64 processor
6882 lt_prog_compiler_static='-Bstatic'
6883 fi
6884 ;;
6885
6886 amigaos*)
6887 if test "$host_cpu" = m68k; then
6888 # FIXME: we need at least 68020 code to build shared libraries, but
6889 # adding the `-m68020' flag to GCC prevents building anything better,
6890 # like `-m68040'.
6891 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6892 fi
6893 ;;
6894
6895 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6896 # PIC is the default for these OSes.
6897 ;;
6898
6899 mingw* | cygwin* | pw32* | os2*)
6900 # This hack is so that the source file can tell whether it is being
6901 # built for inclusion in a dll (and should export symbols for example).
6902 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6903 # (--disable-auto-import) libraries
6904 lt_prog_compiler_pic='-DDLL_EXPORT'
6905 ;;
6906
6907 darwin* | rhapsody*)
6908 # PIC is the default on this platform
6909 # Common symbols not allowed in MH_DYLIB files
6910 lt_prog_compiler_pic='-fno-common'
6911 ;;
6912
6913 hpux*)
6914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6915 # not for PA HP-UX.
6916 case $host_cpu in
6917 hppa*64*|ia64*)
6918 # +Z the default
6919 ;;
6920 *)
6921 lt_prog_compiler_pic='-fPIC'
6922 ;;
6923 esac
6924 ;;
6925
6926 interix[3-9]*)
6927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6928 # Instead, we relocate shared libraries at runtime.
6929 ;;
6930
6931 msdosdjgpp*)
6932 # Just because we use GCC doesn't mean we suddenly get shared libraries
6933 # on systems that don't support them.
6934 lt_prog_compiler_can_build_shared=no
6935 enable_shared=no
6936 ;;
6937
6938 *nto* | *qnx*)
6939 # QNX uses GNU C++, but need to define -shared option too, otherwise
6940 # it will coredump.
6941 lt_prog_compiler_pic='-fPIC -shared'
6942 ;;
6943
6944 sysv4*MP*)
6945 if test -d /usr/nec; then
6946 lt_prog_compiler_pic=-Kconform_pic
6947 fi
6948 ;;
6949
6950 *)
6951 lt_prog_compiler_pic='-fPIC'
6952 ;;
6953 esac
6954 else
6955 # PORTME Check for flag to pass linker flags through the system compiler.
6956 case $host_os in
6957 aix*)
6958 lt_prog_compiler_wl='-Wl,'
6959 if test "$host_cpu" = ia64; then
6960 # AIX 5 now supports IA64 processor
6961 lt_prog_compiler_static='-Bstatic'
6962 else
6963 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6964 fi
6965 ;;
6966 darwin*)
6967 # PIC is the default on this platform
6968 # Common symbols not allowed in MH_DYLIB files
6969 case $cc_basename in
6970 xlc*)
6971 lt_prog_compiler_pic='-qnocommon'
6972 lt_prog_compiler_wl='-Wl,'
6973 ;;
6974 esac
6975 ;;
6976
6977 mingw* | cygwin* | pw32* | os2*)
6978 # This hack is so that the source file can tell whether it is being
6979 # built for inclusion in a dll (and should export symbols for example).
6980 lt_prog_compiler_pic='-DDLL_EXPORT'
6981 ;;
6982
6983 hpux9* | hpux10* | hpux11*)
6984 lt_prog_compiler_wl='-Wl,'
6985 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6986 # not for PA HP-UX.
6987 case $host_cpu in
6988 hppa*64*|ia64*)
6989 # +Z the default
6990 ;;
6991 *)
6992 lt_prog_compiler_pic='+Z'
6993 ;;
6994 esac
6995 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6996 lt_prog_compiler_static='${wl}-a ${wl}archive'
6997 ;;
6998
6999 irix5* | irix6* | nonstopux*)
7000 lt_prog_compiler_wl='-Wl,'
7001 # PIC (with -KPIC) is the default.
7002 lt_prog_compiler_static='-non_shared'
7003 ;;
7004
7005 linux* | k*bsd*-gnu)
7006 case $cc_basename in
7007 icc* | ecc*)
7008 lt_prog_compiler_wl='-Wl,'
7009 lt_prog_compiler_pic='-KPIC'
7010 lt_prog_compiler_static='-static'
7011 ;;
7012 pgcc* | pgf77* | pgf90* | pgf95*)
7013 # Portland Group compilers (*not* the Pentium gcc compiler,
7014 # which looks to be a dead project)
7015 lt_prog_compiler_wl='-Wl,'
7016 lt_prog_compiler_pic='-fpic'
7017 lt_prog_compiler_static='-Bstatic'
7018 ;;
7019 ccc*)
7020 lt_prog_compiler_wl='-Wl,'
7021 # All Alpha code is PIC.
7022 lt_prog_compiler_static='-non_shared'
7023 ;;
7024 *)
7025 case `$CC -V 2>&1 | sed 5q` in
7026 *Sun\ C*)
7027 # Sun C 5.9
7028 lt_prog_compiler_pic='-KPIC'
7029 lt_prog_compiler_static='-Bstatic'
7030 lt_prog_compiler_wl='-Wl,'
7031 ;;
7032 *Sun\ F*)
7033 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7034 lt_prog_compiler_pic='-KPIC'
7035 lt_prog_compiler_static='-Bstatic'
7036 lt_prog_compiler_wl=''
7037 ;;
7038 esac
7039 ;;
7040 esac
7041 ;;
7042
7043 newsos6)
7044 lt_prog_compiler_pic='-KPIC'
7045 lt_prog_compiler_static='-Bstatic'
7046 ;;
7047
7048 *nto* | *qnx*)
7049 # QNX uses GNU C++, but need to define -shared option too, otherwise
7050 # it will coredump.
7051 lt_prog_compiler_pic='-fPIC -shared'
7052 ;;
7053
7054 osf3* | osf4* | osf5*)
7055 lt_prog_compiler_wl='-Wl,'
7056 # All OSF/1 code is PIC.
7057 lt_prog_compiler_static='-non_shared'
7058 ;;
7059
7060 rdos*)
7061 lt_prog_compiler_static='-non_shared'
7062 ;;
7063
7064 solaris*)
7065 lt_prog_compiler_pic='-KPIC'
7066 lt_prog_compiler_static='-Bstatic'
7067 case $cc_basename in
7068 f77* | f90* | f95*)
7069 lt_prog_compiler_wl='-Qoption ld ';;
7070 *)
7071 lt_prog_compiler_wl='-Wl,';;
7072 esac
7073 ;;
7074
7075 sunos4*)
7076 lt_prog_compiler_wl='-Qoption ld '
7077 lt_prog_compiler_pic='-PIC'
7078 lt_prog_compiler_static='-Bstatic'
7079 ;;
7080
7081 sysv4 | sysv4.2uw2* | sysv4.3*)
7082 lt_prog_compiler_wl='-Wl,'
7083 lt_prog_compiler_pic='-KPIC'
7084 lt_prog_compiler_static='-Bstatic'
7085 ;;
7086
7087 sysv4*MP*)
7088 if test -d /usr/nec ;then
7089 lt_prog_compiler_pic='-Kconform_pic'
7090 lt_prog_compiler_static='-Bstatic'
7091 fi
7092 ;;
7093
7094 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7095 lt_prog_compiler_wl='-Wl,'
7096 lt_prog_compiler_pic='-KPIC'
7097 lt_prog_compiler_static='-Bstatic'
7098 ;;
7099
7100 unicos*)
7101 lt_prog_compiler_wl='-Wl,'
7102 lt_prog_compiler_can_build_shared=no
7103 ;;
7104
7105 uts4*)
7106 lt_prog_compiler_pic='-pic'
7107 lt_prog_compiler_static='-Bstatic'
7108 ;;
7109
7110 *)
7111 lt_prog_compiler_can_build_shared=no
7112 ;;
7113 esac
7114 fi
7115
7116 case $host_os in
7117 # For platforms which do not support PIC, -DPIC is meaningless:
7118 *djgpp*)
7119 lt_prog_compiler_pic=
7120 ;;
7121 *)
7122 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7123 ;;
7124 esac
7125 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7126 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7127
7128
7129
7130
7131
7132
7133 #
7134 # Check to make sure the PIC flag actually works.
7135 #
7136 if test -n "$lt_prog_compiler_pic"; then
7137 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7138 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7139 if test "${lt_prog_compiler_pic_works+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 lt_prog_compiler_pic_works=no
7143 ac_outfile=conftest.$ac_objext
7144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7145 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7146 # Insert the option either (1) after the last *FLAGS variable, or
7147 # (2) before a word containing "conftest.", or (3) at the end.
7148 # Note that $ac_compile itself does not contain backslashes and begins
7149 # with a dollar sign (not a hyphen), so the echo should work correctly.
7150 # The option is referenced via a variable to avoid confusing sed.
7151 lt_compile=`echo "$ac_compile" | $SED \
7152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7154 -e 's:$: $lt_compiler_flag:'`
7155 (eval echo "\"\$as_me:7155: $lt_compile\"" >&5)
7156 (eval "$lt_compile" 2>conftest.err)
7157 ac_status=$?
7158 cat conftest.err >&5
7159 echo "$as_me:7159: \$? = $ac_status" >&5
7160 if (exit $ac_status) && test -s "$ac_outfile"; then
7161 # The compiler can only warn and ignore the option if not recognized
7162 # So say no if there are warnings other than the usual output.
7163 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7165 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7166 lt_prog_compiler_pic_works=yes
7167 fi
7168 fi
7169 $RM conftest*
7170
7171 fi
7172 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7173 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7174
7175 if test x"$lt_prog_compiler_pic_works" = xyes; then
7176 case $lt_prog_compiler_pic in
7177 "" | " "*) ;;
7178 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7179 esac
7180 else
7181 lt_prog_compiler_pic=
7182 lt_prog_compiler_can_build_shared=no
7183 fi
7184
7185 fi
7186
7187
7188
7189
7190
7191
7192 #
7193 # Check to make sure the static flag actually works.
7194 #
7195 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7196 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7197 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7198 if test "${lt_prog_compiler_static_works+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201 lt_prog_compiler_static_works=no
7202 save_LDFLAGS="$LDFLAGS"
7203 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7204 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7206 # The linker can only warn and ignore the option if not recognized
7207 # So say no if there are warnings
7208 if test -s conftest.err; then
7209 # Append any errors to the config.log.
7210 cat conftest.err 1>&5
7211 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7213 if diff conftest.exp conftest.er2 >/dev/null; then
7214 lt_prog_compiler_static_works=yes
7215 fi
7216 else
7217 lt_prog_compiler_static_works=yes
7218 fi
7219 fi
7220 $RM conftest*
7221 LDFLAGS="$save_LDFLAGS"
7222
7223 fi
7224 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7225 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7226
7227 if test x"$lt_prog_compiler_static_works" = xyes; then
7228 :
7229 else
7230 lt_prog_compiler_static=
7231 fi
7232
7233
7234
7235
7236
7237
7238
7239 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7240 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7241 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 lt_cv_prog_compiler_c_o=no
7245 $RM -r conftest 2>/dev/null
7246 mkdir conftest
7247 cd conftest
7248 mkdir out
7249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7250
7251 lt_compiler_flag="-o out/conftest2.$ac_objext"
7252 # Insert the option either (1) after the last *FLAGS variable, or
7253 # (2) before a word containing "conftest.", or (3) at the end.
7254 # Note that $ac_compile itself does not contain backslashes and begins
7255 # with a dollar sign (not a hyphen), so the echo should work correctly.
7256 lt_compile=`echo "$ac_compile" | $SED \
7257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7259 -e 's:$: $lt_compiler_flag:'`
7260 (eval echo "\"\$as_me:7260: $lt_compile\"" >&5)
7261 (eval "$lt_compile" 2>out/conftest.err)
7262 ac_status=$?
7263 cat out/conftest.err >&5
7264 echo "$as_me:7264: \$? = $ac_status" >&5
7265 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7266 then
7267 # The compiler can only warn and ignore the option if not recognized
7268 # So say no if there are warnings
7269 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7270 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7271 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7272 lt_cv_prog_compiler_c_o=yes
7273 fi
7274 fi
7275 chmod u+w . 2>&5
7276 $RM conftest*
7277 # SGI C++ compiler will create directory out/ii_files/ for
7278 # template instantiation
7279 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7280 $RM out/* && rmdir out
7281 cd ..
7282 $RM -r conftest
7283 $RM conftest*
7284
7285 fi
7286 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7287 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7288
7289
7290
7291
7292
7293
7294 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7295 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7296 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 lt_cv_prog_compiler_c_o=no
7300 $RM -r conftest 2>/dev/null
7301 mkdir conftest
7302 cd conftest
7303 mkdir out
7304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7305
7306 lt_compiler_flag="-o out/conftest2.$ac_objext"
7307 # Insert the option either (1) after the last *FLAGS variable, or
7308 # (2) before a word containing "conftest.", or (3) at the end.
7309 # Note that $ac_compile itself does not contain backslashes and begins
7310 # with a dollar sign (not a hyphen), so the echo should work correctly.
7311 lt_compile=`echo "$ac_compile" | $SED \
7312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7314 -e 's:$: $lt_compiler_flag:'`
7315 (eval echo "\"\$as_me:7315: $lt_compile\"" >&5)
7316 (eval "$lt_compile" 2>out/conftest.err)
7317 ac_status=$?
7318 cat out/conftest.err >&5
7319 echo "$as_me:7319: \$? = $ac_status" >&5
7320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7321 then
7322 # The compiler can only warn and ignore the option if not recognized
7323 # So say no if there are warnings
7324 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7327 lt_cv_prog_compiler_c_o=yes
7328 fi
7329 fi
7330 chmod u+w . 2>&5
7331 $RM conftest*
7332 # SGI C++ compiler will create directory out/ii_files/ for
7333 # template instantiation
7334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7335 $RM out/* && rmdir out
7336 cd ..
7337 $RM -r conftest
7338 $RM conftest*
7339
7340 fi
7341 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7342 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7343
7344
7345
7346
7347 hard_links="nottested"
7348 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7349 # do not overwrite the value of need_locks provided by the user
7350 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7351 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7352 hard_links=yes
7353 $RM conftest*
7354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7355 touch conftest.a
7356 ln conftest.a conftest.b 2>&5 || hard_links=no
7357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7358 echo "$as_me:$LINENO: result: $hard_links" >&5
7359 echo "${ECHO_T}$hard_links" >&6
7360 if test "$hard_links" = no; then
7361 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7362 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7363 need_locks=warn
7364 fi
7365 else
7366 need_locks=no
7367 fi
7368
7369
7370
7371
7372
7373
7374 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7375 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7376
7377 runpath_var=
7378 allow_undefined_flag=
7379 always_export_symbols=no
7380 archive_cmds=
7381 archive_expsym_cmds=
7382 compiler_needs_object=no
7383 enable_shared_with_static_runtimes=no
7384 export_dynamic_flag_spec=
7385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7386 hardcode_automatic=no
7387 hardcode_direct=no
7388 hardcode_direct_absolute=no
7389 hardcode_libdir_flag_spec=
7390 hardcode_libdir_flag_spec_ld=
7391 hardcode_libdir_separator=
7392 hardcode_minus_L=no
7393 hardcode_shlibpath_var=unsupported
7394 inherit_rpath=no
7395 link_all_deplibs=unknown
7396 module_cmds=
7397 module_expsym_cmds=
7398 old_archive_from_new_cmds=
7399 old_archive_from_expsyms_cmds=
7400 thread_safe_flag_spec=
7401 whole_archive_flag_spec=
7402 # include_expsyms should be a list of space-separated symbols to be *always*
7403 # included in the symbol list
7404 include_expsyms=
7405 # exclude_expsyms can be an extended regexp of symbols to exclude
7406 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7407 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7408 # as well as any symbol that contains `d'.
7409 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7410 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7411 # platforms (ab)use it in PIC code, but their linkers get confused if
7412 # the symbol is explicitly referenced. Since portable code cannot
7413 # rely on this symbol name, it's probably fine to never include it in
7414 # preloaded symbol tables.
7415 extract_expsyms_cmds=
7416
7417 case $host_os in
7418 cygwin* | mingw* | pw32*)
7419 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7420 # When not using gcc, we currently assume that we are using
7421 # Microsoft Visual C++.
7422 if test "$GCC" != yes; then
7423 with_gnu_ld=no
7424 fi
7425 ;;
7426 interix*)
7427 # we just hope/assume this is gcc and not c89 (= MSVC++)
7428 with_gnu_ld=yes
7429 ;;
7430 openbsd*)
7431 with_gnu_ld=no
7432 ;;
7433 esac
7434
7435 ld_shlibs=yes
7436 if test "$with_gnu_ld" = yes; then
7437 # If archive_cmds runs LD, not CC, wlarc should be empty
7438 wlarc='${wl}'
7439
7440 # Set some defaults for GNU ld with shared library support. These
7441 # are reset later if shared libraries are not supported. Putting them
7442 # here allows them to be overridden if necessary.
7443 runpath_var=LD_RUN_PATH
7444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7445 export_dynamic_flag_spec='${wl}--export-dynamic'
7446 # ancient GNU ld didn't support --whole-archive et. al.
7447 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7448 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7449 else
7450 whole_archive_flag_spec=
7451 fi
7452 supports_anon_versioning=no
7453 case `$LD -v 2>&1` in
7454 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7455 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7456 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7457 *\ 2.11.*) ;; # other 2.11 versions
7458 *) supports_anon_versioning=yes ;;
7459 esac
7460
7461 # See if GNU ld supports shared libraries.
7462 case $host_os in
7463 aix[3-9]*)
7464 # On AIX/PPC, the GNU linker is very broken
7465 if test "$host_cpu" != ia64; then
7466 ld_shlibs=no
7467 cat <<_LT_EOF 1>&2
7468
7469 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7470 *** to be unable to reliably create shared libraries on AIX.
7471 *** Therefore, libtool is disabling shared libraries support. If you
7472 *** really care for shared libraries, you may want to modify your PATH
7473 *** so that a non-GNU linker is found, and then restart.
7474
7475 _LT_EOF
7476 fi
7477 ;;
7478
7479 amigaos*)
7480 if test "$host_cpu" = m68k; then
7481 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)'
7482 hardcode_libdir_flag_spec='-L$libdir'
7483 hardcode_minus_L=yes
7484 fi
7485
7486 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7487 # that the semantics of dynamic libraries on AmigaOS, at least up
7488 # to version 4, is to share data among multiple programs linked
7489 # with the same dynamic library. Since this doesn't match the
7490 # behavior of shared libraries on other platforms, we can't use
7491 # them.
7492 ld_shlibs=no
7493 ;;
7494
7495 beos*)
7496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7497 allow_undefined_flag=unsupported
7498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7499 # support --undefined. This deserves some investigation. FIXME
7500 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7501 else
7502 ld_shlibs=no
7503 fi
7504 ;;
7505
7506 cygwin* | mingw* | pw32*)
7507 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7508 # as there is no search path for DLLs.
7509 hardcode_libdir_flag_spec='-L$libdir'
7510 allow_undefined_flag=unsupported
7511 always_export_symbols=no
7512 enable_shared_with_static_runtimes=yes
7513 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7514
7515 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7517 # If the export-symbols file already is a .def file (1st line
7518 # is EXPORTS), use it as is; otherwise, prepend...
7519 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7520 cp $export_symbols $output_objdir/$soname.def;
7521 else
7522 echo EXPORTS > $output_objdir/$soname.def;
7523 cat $export_symbols >> $output_objdir/$soname.def;
7524 fi~
7525 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7526 else
7527 ld_shlibs=no
7528 fi
7529 ;;
7530
7531 interix[3-9]*)
7532 hardcode_direct=no
7533 hardcode_shlibpath_var=no
7534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7535 export_dynamic_flag_spec='${wl}-E'
7536 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7537 # Instead, shared libraries are loaded at an image base (0x10000000 by
7538 # default) and relocated if they conflict, which is a slow very memory
7539 # consuming and fragmenting process. To avoid this, we pick a random,
7540 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7541 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7543 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'
7544 ;;
7545
7546 gnu* | linux* | tpf* | k*bsd*-gnu)
7547 tmp_diet=no
7548 if test "$host_os" = linux-dietlibc; then
7549 case $cc_basename in
7550 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7551 esac
7552 fi
7553 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7554 && test "$tmp_diet" = no
7555 then
7556 tmp_addflag=
7557 case $cc_basename,$host_cpu in
7558 pgcc*) # Portland Group C compiler
7559 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7560 tmp_addflag=' $pic_flag'
7561 ;;
7562 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7563 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'
7564 tmp_addflag=' $pic_flag -Mnomain' ;;
7565 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7566 tmp_addflag=' -i_dynamic' ;;
7567 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7568 tmp_addflag=' -i_dynamic -nofor_main' ;;
7569 ifc* | ifort*) # Intel Fortran compiler
7570 tmp_addflag=' -nofor_main' ;;
7571 esac
7572 case `$CC -V 2>&1 | sed 5q` in
7573 *Sun\ C*) # Sun C 5.9
7574 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'
7575 compiler_needs_object=yes
7576 tmp_sharedflag='-G' ;;
7577 *Sun\ F*) # Sun Fortran 8.3
7578 tmp_sharedflag='-G' ;;
7579 *)
7580 tmp_sharedflag='-shared' ;;
7581 esac
7582 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7583
7584 if test "x$supports_anon_versioning" = xyes; then
7585 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7587 echo "local: *; };" >> $output_objdir/$libname.ver~
7588 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7589 fi
7590 else
7591 ld_shlibs=no
7592 fi
7593 ;;
7594
7595 netbsd*)
7596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7597 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7598 wlarc=
7599 else
7600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7601 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7602 fi
7603 ;;
7604
7605 solaris*)
7606 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7607 ld_shlibs=no
7608 cat <<_LT_EOF 1>&2
7609
7610 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7611 *** create shared libraries on Solaris systems. Therefore, libtool
7612 *** is disabling shared libraries support. We urge you to upgrade GNU
7613 *** binutils to release 2.9.1 or newer. Another option is to modify
7614 *** your PATH or compiler configuration so that the native linker is
7615 *** used, and then restart.
7616
7617 _LT_EOF
7618 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7620 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7621 else
7622 ld_shlibs=no
7623 fi
7624 ;;
7625
7626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7627 case `$LD -v 2>&1` in
7628 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7629 ld_shlibs=no
7630 cat <<_LT_EOF 1>&2
7631
7632 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7633 *** reliably create shared libraries on SCO systems. Therefore, libtool
7634 *** is disabling shared libraries support. We urge you to upgrade GNU
7635 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7636 *** your PATH or compiler configuration so that the native linker is
7637 *** used, and then restart.
7638
7639 _LT_EOF
7640 ;;
7641 *)
7642 # For security reasons, it is highly recommended that you always
7643 # use absolute paths for naming shared libraries, and exclude the
7644 # DT_RUNPATH tag from executables and libraries. But doing so
7645 # requires that you compile everything twice, which is a pain.
7646 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7650 else
7651 ld_shlibs=no
7652 fi
7653 ;;
7654 esac
7655 ;;
7656
7657 sunos4*)
7658 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7659 wlarc=
7660 hardcode_direct=yes
7661 hardcode_shlibpath_var=no
7662 ;;
7663
7664 *)
7665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7668 else
7669 ld_shlibs=no
7670 fi
7671 ;;
7672 esac
7673
7674 if test "$ld_shlibs" = no; then
7675 runpath_var=
7676 hardcode_libdir_flag_spec=
7677 export_dynamic_flag_spec=
7678 whole_archive_flag_spec=
7679 fi
7680 else
7681 # PORTME fill in a description of your system's linker (not GNU ld)
7682 case $host_os in
7683 aix3*)
7684 allow_undefined_flag=unsupported
7685 always_export_symbols=yes
7686 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'
7687 # Note: this linker hardcodes the directories in LIBPATH if there
7688 # are no directories specified by -L.
7689 hardcode_minus_L=yes
7690 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7691 # Neither direct hardcoding nor static linking is supported with a
7692 # broken collect2.
7693 hardcode_direct=unsupported
7694 fi
7695 ;;
7696
7697 aix[4-9]*)
7698 if test "$host_cpu" = ia64; then
7699 # On IA64, the linker does run time linking by default, so we don't
7700 # have to do anything special.
7701 aix_use_runtimelinking=no
7702 exp_sym_flag='-Bexport'
7703 no_entry_flag=""
7704 else
7705 # If we're using GNU nm, then we don't want the "-C" option.
7706 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7707 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7708 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'
7709 else
7710 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'
7711 fi
7712 aix_use_runtimelinking=no
7713
7714 # Test if we are trying to use run time linking or normal
7715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7716 # need to do runtime linking.
7717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7718 for ld_flag in $LDFLAGS; do
7719 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7720 aix_use_runtimelinking=yes
7721 break
7722 fi
7723 done
7724 ;;
7725 esac
7726
7727 exp_sym_flag='-bexport'
7728 no_entry_flag='-bnoentry'
7729 fi
7730
7731 # When large executables or shared objects are built, AIX ld can
7732 # have problems creating the table of contents. If linking a library
7733 # or program results in "error TOC overflow" add -mminimal-toc to
7734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7736
7737 archive_cmds=''
7738 hardcode_direct=yes
7739 hardcode_direct_absolute=yes
7740 hardcode_libdir_separator=':'
7741 link_all_deplibs=yes
7742 file_list_spec='${wl}-f,'
7743
7744 if test "$GCC" = yes; then
7745 case $host_os in aix4.[012]|aix4.[012].*)
7746 # We only want to do this on AIX 4.2 and lower, the check
7747 # below for broken collect2 doesn't work under 4.3+
7748 collect2name=`${CC} -print-prog-name=collect2`
7749 if test -f "$collect2name" &&
7750 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7751 then
7752 # We have reworked collect2
7753 :
7754 else
7755 # We have old collect2
7756 hardcode_direct=unsupported
7757 # It fails to find uninstalled libraries when the uninstalled
7758 # path is not listed in the libpath. Setting hardcode_minus_L
7759 # to unsupported forces relinking
7760 hardcode_minus_L=yes
7761 hardcode_libdir_flag_spec='-L$libdir'
7762 hardcode_libdir_separator=
7763 fi
7764 ;;
7765 esac
7766 shared_flag='-shared'
7767 if test "$aix_use_runtimelinking" = yes; then
7768 shared_flag="$shared_flag "'${wl}-G'
7769 fi
7770 else
7771 # not using gcc
7772 if test "$host_cpu" = ia64; then
7773 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7774 # chokes on -Wl,-G. The following line is correct:
7775 shared_flag='-G'
7776 else
7777 if test "$aix_use_runtimelinking" = yes; then
7778 shared_flag='${wl}-G'
7779 else
7780 shared_flag='${wl}-bM:SRE'
7781 fi
7782 fi
7783 fi
7784
7785 # It seems that -bexpall does not export symbols beginning with
7786 # underscore (_), so it is better to generate a list of symbols to export.
7787 always_export_symbols=yes
7788 if test "$aix_use_runtimelinking" = yes; then
7789 # Warning - without using the other runtime loading flags (-brtl),
7790 # -berok will link without error, but may produce a broken library.
7791 allow_undefined_flag='-berok'
7792 # Determine the default libpath from the value encoded in an
7793 # empty executable.
7794 cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h. */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800
7801 int
7802 main ()
7803 {
7804
7805 ;
7806 return 0;
7807 }
7808 _ACEOF
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811 (eval $ac_link) 2>conftest.er1
7812 ac_status=$?
7813 grep -v '^ *+' conftest.er1 >conftest.err
7814 rm -f conftest.er1
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 (eval $ac_try) 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; } &&
7824 { ac_try='test -s conftest$ac_exeext'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830
7831 lt_aix_libpath_sed='
7832 /Import File Strings/,/^$/ {
7833 /^0/ {
7834 s/^0 *\(.*\)$/\1/
7835 p
7836 }
7837 }'
7838 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7839 # Check for a 64-bit object if we didn't find anything.
7840 if test -z "$aix_libpath"; then
7841 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7842 fi
7843 else
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7846
7847 fi
7848 rm -f conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7850 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7851
7852 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7853 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"
7854 else
7855 if test "$host_cpu" = ia64; then
7856 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7857 allow_undefined_flag="-z nodefs"
7858 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"
7859 else
7860 # Determine the default libpath from the value encoded in an
7861 # empty executable.
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868
7869 int
7870 main ()
7871 {
7872
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879 (eval $ac_link) 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 (eval $ac_try) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898
7899 lt_aix_libpath_sed='
7900 /Import File Strings/,/^$/ {
7901 /^0/ {
7902 s/^0 *\(.*\)$/\1/
7903 p
7904 }
7905 }'
7906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7907 # Check for a 64-bit object if we didn't find anything.
7908 if test -z "$aix_libpath"; then
7909 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7910 fi
7911 else
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7914
7915 fi
7916 rm -f conftest.err conftest.$ac_objext \
7917 conftest$ac_exeext conftest.$ac_ext
7918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7919
7920 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7921 # Warning - without using the other run time loading flags,
7922 # -berok will link without error, but may produce a broken library.
7923 no_undefined_flag=' ${wl}-bernotok'
7924 allow_undefined_flag=' ${wl}-berok'
7925 # Exported symbols can be pulled into shared objects from archives
7926 whole_archive_flag_spec='$convenience'
7927 archive_cmds_need_lc=yes
7928 # This is similar to how AIX traditionally builds its shared libraries.
7929 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'
7930 fi
7931 fi
7932 ;;
7933
7934 amigaos*)
7935 if test "$host_cpu" = m68k; then
7936 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)'
7937 hardcode_libdir_flag_spec='-L$libdir'
7938 hardcode_minus_L=yes
7939 fi
7940 # see comment about different semantics on the GNU ld section
7941 ld_shlibs=no
7942 ;;
7943
7944 bsdi[45]*)
7945 export_dynamic_flag_spec=-rdynamic
7946 ;;
7947
7948 cygwin* | mingw* | pw32*)
7949 # When not using gcc, we currently assume that we are using
7950 # Microsoft Visual C++.
7951 # hardcode_libdir_flag_spec is actually meaningless, as there is
7952 # no search path for DLLs.
7953 hardcode_libdir_flag_spec=' '
7954 allow_undefined_flag=unsupported
7955 # Tell ltmain to make .lib files, not .a files.
7956 libext=lib
7957 # Tell ltmain to make .dll files, not .so files.
7958 shrext_cmds=".dll"
7959 # FIXME: Setting linknames here is a bad hack.
7960 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7961 # The linker will automatically build a .lib file if we build a DLL.
7962 old_archive_from_new_cmds='true'
7963 # FIXME: Should let the user specify the lib program.
7964 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7965 fix_srcfile_path='`cygpath -w "$srcfile"`'
7966 enable_shared_with_static_runtimes=yes
7967 ;;
7968
7969 darwin* | rhapsody*)
7970 case $host_os in
7971 rhapsody* | darwin1.[012])
7972 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7973 ;;
7974 *) # Darwin 1.3 on
7975 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7976 10.[012])
7977 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7978 ;;
7979 10.*)
7980 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7981 ;;
7982 esac
7983 ;;
7984 esac
7985 archive_cmds_need_lc=no
7986 hardcode_direct=no
7987 hardcode_automatic=yes
7988 hardcode_shlibpath_var=unsupported
7989 whole_archive_flag_spec=''
7990 link_all_deplibs=yes
7991 if test "$GCC" = yes ; then
7992 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 lt_cv_apple_cc_single_mod=no
7996 if test -z "${LT_MULTI_MODULE}"; then
7997 # By default we will add the -single_module flag. You can override
7998 # by either setting the environment variable LT_MULTI_MODULE
7999 # non-empty at configure time, or by adding -multi-module to the
8000 # link flags.
8001 echo "int foo(void){return 1;}" > conftest.c
8002 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8003 -dynamiclib ${wl}-single_module conftest.c
8004 if test -f libconftest.dylib; then
8005 lt_cv_apple_cc_single_mod=yes
8006 rm libconftest.dylib
8007 fi
8008 rm conftest.$ac_ext
8009 fi
8010 fi
8011
8012 output_verbose_link_cmd=echo
8013 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8014 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8015 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}'
8016 else
8017 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8018 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}'
8019 fi
8020 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8021 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}'
8022 else
8023 case $cc_basename in
8024 xlc*)
8025 output_verbose_link_cmd=echo
8026 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8027 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8028 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8029 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}'
8030 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8031 ;;
8032 *)
8033 ld_shlibs=no
8034 ;;
8035 esac
8036 fi
8037 ;;
8038
8039 dgux*)
8040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8041 hardcode_libdir_flag_spec='-L$libdir'
8042 hardcode_shlibpath_var=no
8043 ;;
8044
8045 freebsd1*)
8046 ld_shlibs=no
8047 ;;
8048
8049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8050 # support. Future versions do this automatically, but an explicit c++rt0.o
8051 # does not break anything, and helps significantly (at the cost of a little
8052 # extra space).
8053 freebsd2.2*)
8054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8055 hardcode_libdir_flag_spec='-R$libdir'
8056 hardcode_direct=yes
8057 hardcode_shlibpath_var=no
8058 ;;
8059
8060 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8061 freebsd2*)
8062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8063 hardcode_direct=yes
8064 hardcode_minus_L=yes
8065 hardcode_shlibpath_var=no
8066 ;;
8067
8068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8069 freebsd* | dragonfly*)
8070 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8071 hardcode_libdir_flag_spec='-R$libdir'
8072 hardcode_direct=yes
8073 hardcode_shlibpath_var=no
8074 ;;
8075
8076 hpux9*)
8077 if test "$GCC" = yes; then
8078 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'
8079 else
8080 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'
8081 fi
8082 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8083 hardcode_libdir_separator=:
8084 hardcode_direct=yes
8085
8086 # hardcode_minus_L: Not really in the search PATH,
8087 # but as the default location of the library.
8088 hardcode_minus_L=yes
8089 export_dynamic_flag_spec='${wl}-E'
8090 ;;
8091
8092 hpux10*)
8093 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8094 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8095 else
8096 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8097 fi
8098 if test "$with_gnu_ld" = no; then
8099 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8100 hardcode_libdir_flag_spec_ld='+b $libdir'
8101 hardcode_libdir_separator=:
8102 hardcode_direct=yes
8103 hardcode_direct_absolute=yes
8104 export_dynamic_flag_spec='${wl}-E'
8105 # hardcode_minus_L: Not really in the search PATH,
8106 # but as the default location of the library.
8107 hardcode_minus_L=yes
8108 fi
8109 ;;
8110
8111 hpux11*)
8112 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8113 case $host_cpu in
8114 hppa*64*)
8115 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8116 ;;
8117 ia64*)
8118 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8119 ;;
8120 *)
8121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8122 ;;
8123 esac
8124 else
8125 case $host_cpu in
8126 hppa*64*)
8127 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8128 ;;
8129 ia64*)
8130 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8131 ;;
8132 *)
8133 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8134 ;;
8135 esac
8136 fi
8137 if test "$with_gnu_ld" = no; then
8138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8139 hardcode_libdir_separator=:
8140
8141 case $host_cpu in
8142 hppa*64*|ia64*)
8143 hardcode_direct=no
8144 hardcode_shlibpath_var=no
8145 ;;
8146 *)
8147 hardcode_direct=yes
8148 hardcode_direct_absolute=yes
8149 export_dynamic_flag_spec='${wl}-E'
8150
8151 # hardcode_minus_L: Not really in the search PATH,
8152 # but as the default location of the library.
8153 hardcode_minus_L=yes
8154 ;;
8155 esac
8156 fi
8157 ;;
8158
8159 irix5* | irix6* | nonstopux*)
8160 if test "$GCC" = yes; then
8161 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'
8162 # Try to use the -exported_symbol ld option, if it does not
8163 # work, assume that -exports_file does not work either and
8164 # implicitly export all symbols.
8165 save_LDFLAGS="$LDFLAGS"
8166 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8167 cat >conftest.$ac_ext <<_ACEOF
8168 int foo(void) {}
8169 _ACEOF
8170 rm -f conftest.$ac_objext conftest$ac_exeext
8171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8172 (eval $ac_link) 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } &&
8179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest$ac_exeext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8192
8193 else
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 fi
8198 rm -f conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200 LDFLAGS="$save_LDFLAGS"
8201 else
8202 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'
8203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8204 fi
8205 archive_cmds_need_lc='no'
8206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8207 hardcode_libdir_separator=:
8208 inherit_rpath=yes
8209 link_all_deplibs=yes
8210 ;;
8211
8212 netbsd*)
8213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8215 else
8216 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8217 fi
8218 hardcode_libdir_flag_spec='-R$libdir'
8219 hardcode_direct=yes
8220 hardcode_shlibpath_var=no
8221 ;;
8222
8223 newsos6)
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_direct=yes
8226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8227 hardcode_libdir_separator=:
8228 hardcode_shlibpath_var=no
8229 ;;
8230
8231 *nto* | *qnx*)
8232 ;;
8233
8234 openbsd*)
8235 hardcode_direct=yes
8236 hardcode_shlibpath_var=no
8237 hardcode_direct_absolute=yes
8238 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8239 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8240 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8242 export_dynamic_flag_spec='${wl}-E'
8243 else
8244 case $host_os in
8245 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8247 hardcode_libdir_flag_spec='-R$libdir'
8248 ;;
8249 *)
8250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8252 ;;
8253 esac
8254 fi
8255 ;;
8256
8257 os2*)
8258 hardcode_libdir_flag_spec='-L$libdir'
8259 hardcode_minus_L=yes
8260 allow_undefined_flag=unsupported
8261 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'
8262 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8263 ;;
8264
8265 osf3*)
8266 if test "$GCC" = yes; then
8267 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8268 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'
8269 else
8270 allow_undefined_flag=' -expect_unresolved \*'
8271 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8272 fi
8273 archive_cmds_need_lc='no'
8274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8275 hardcode_libdir_separator=:
8276 ;;
8277
8278 osf4* | osf5*) # as osf3* with the addition of -msym flag
8279 if test "$GCC" = yes; then
8280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8281 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'
8282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8283 else
8284 allow_undefined_flag=' -expect_unresolved \*'
8285 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'
8286 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~
8287 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8288
8289 # Both c and cxx compiler support -rpath directly
8290 hardcode_libdir_flag_spec='-rpath $libdir'
8291 fi
8292 archive_cmds_need_lc='no'
8293 hardcode_libdir_separator=:
8294 ;;
8295
8296 solaris*)
8297 no_undefined_flag=' -z defs'
8298 if test "$GCC" = yes; then
8299 wlarc='${wl}'
8300 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8302 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8303 else
8304 case `$CC -V 2>&1` in
8305 *"Compilers 5.0"*)
8306 wlarc=''
8307 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8309 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8310 ;;
8311 *)
8312 wlarc='${wl}'
8313 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8315 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8316 ;;
8317 esac
8318 fi
8319 hardcode_libdir_flag_spec='-R$libdir'
8320 hardcode_shlibpath_var=no
8321 case $host_os in
8322 solaris2.[0-5] | solaris2.[0-5].*) ;;
8323 *)
8324 # The compiler driver will combine and reorder linker options,
8325 # but understands `-z linker_flag'. GCC discards it without `$wl',
8326 # but is careful enough not to reorder.
8327 # Supported since Solaris 2.6 (maybe 2.5.1?)
8328 if test "$GCC" = yes; then
8329 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8330 else
8331 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8332 fi
8333 ;;
8334 esac
8335 link_all_deplibs=yes
8336 ;;
8337
8338 sunos4*)
8339 if test "x$host_vendor" = xsequent; then
8340 # Use $CC to link under sequent, because it throws in some extra .o
8341 # files that make .init and .fini sections work.
8342 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8343 else
8344 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8345 fi
8346 hardcode_libdir_flag_spec='-L$libdir'
8347 hardcode_direct=yes
8348 hardcode_minus_L=yes
8349 hardcode_shlibpath_var=no
8350 ;;
8351
8352 sysv4)
8353 case $host_vendor in
8354 sni)
8355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356 hardcode_direct=yes # is this really true???
8357 ;;
8358 siemens)
8359 ## LD is ld it makes a PLAMLIB
8360 ## CC just makes a GrossModule.
8361 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8362 reload_cmds='$CC -r -o $output$reload_objs'
8363 hardcode_direct=no
8364 ;;
8365 motorola)
8366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8368 ;;
8369 esac
8370 runpath_var='LD_RUN_PATH'
8371 hardcode_shlibpath_var=no
8372 ;;
8373
8374 sysv4.3*)
8375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8376 hardcode_shlibpath_var=no
8377 export_dynamic_flag_spec='-Bexport'
8378 ;;
8379
8380 sysv4*MP*)
8381 if test -d /usr/nec; then
8382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8383 hardcode_shlibpath_var=no
8384 runpath_var=LD_RUN_PATH
8385 hardcode_runpath_var=yes
8386 ld_shlibs=yes
8387 fi
8388 ;;
8389
8390 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8391 no_undefined_flag='${wl}-z,text'
8392 archive_cmds_need_lc=no
8393 hardcode_shlibpath_var=no
8394 runpath_var='LD_RUN_PATH'
8395
8396 if test "$GCC" = yes; then
8397 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8399 else
8400 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8402 fi
8403 ;;
8404
8405 sysv5* | sco3.2v5* | sco5v6*)
8406 # Note: We can NOT use -z defs as we might desire, because we do not
8407 # link with -lc, and that would cause any symbols used from libc to
8408 # always be unresolved, which means just about no library would
8409 # ever link correctly. If we're not using GNU ld we use -z text
8410 # though, which does catch some bad symbols but isn't as heavy-handed
8411 # as -z defs.
8412 no_undefined_flag='${wl}-z,text'
8413 allow_undefined_flag='${wl}-z,nodefs'
8414 archive_cmds_need_lc=no
8415 hardcode_shlibpath_var=no
8416 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8417 hardcode_libdir_separator=':'
8418 link_all_deplibs=yes
8419 export_dynamic_flag_spec='${wl}-Bexport'
8420 runpath_var='LD_RUN_PATH'
8421
8422 if test "$GCC" = yes; then
8423 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425 else
8426 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8428 fi
8429 ;;
8430
8431 uts4*)
8432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_libdir_flag_spec='-L$libdir'
8434 hardcode_shlibpath_var=no
8435 ;;
8436
8437 *)
8438 ld_shlibs=no
8439 ;;
8440 esac
8441
8442 if test x$host_vendor = xsni; then
8443 case $host in
8444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8445 export_dynamic_flag_spec='${wl}-Blargedynsym'
8446 ;;
8447 esac
8448 fi
8449 fi
8450
8451 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8452 echo "${ECHO_T}$ld_shlibs" >&6
8453 test "$ld_shlibs" = no && can_build_shared=no
8454
8455 with_gnu_ld=$with_gnu_ld
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471 #
8472 # Do we need to explicitly link libc?
8473 #
8474 case "x$archive_cmds_need_lc" in
8475 x|xyes)
8476 # Assume -lc should be added
8477 archive_cmds_need_lc=yes
8478
8479 if test "$enable_shared" = yes && test "$GCC" = yes; then
8480 case $archive_cmds in
8481 *'~'*)
8482 # FIXME: we may have to deal with multi-command sequences.
8483 ;;
8484 '$CC '*)
8485 # Test whether the compiler implicitly links with -lc since on some
8486 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8487 # to ld, don't add -lc before -lgcc.
8488 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8489 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8490 $RM conftest*
8491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492
8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } 2>conftest.err; then
8498 soname=conftest
8499 lib=conftest
8500 libobjs=conftest.$ac_objext
8501 deplibs=
8502 wl=$lt_prog_compiler_wl
8503 pic_flag=$lt_prog_compiler_pic
8504 compiler_flags=-v
8505 linker_flags=-v
8506 verstring=
8507 output_objdir=.
8508 libname=conftest
8509 lt_save_allow_undefined_flag=$allow_undefined_flag
8510 allow_undefined_flag=
8511 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8512 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }
8516 then
8517 archive_cmds_need_lc=no
8518 else
8519 archive_cmds_need_lc=yes
8520 fi
8521 allow_undefined_flag=$lt_save_allow_undefined_flag
8522 else
8523 cat conftest.err 1>&5
8524 fi
8525 $RM conftest*
8526 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8527 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8528 ;;
8529 esac
8530 fi
8531 ;;
8532 esac
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8691 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8692 withGCC=$GCC
8693 if test "$withGCC" = yes; then
8694 case $host_os in
8695 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8696 *) lt_awk_arg="/^libraries:/" ;;
8697 esac
8698 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8699 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8700 # if the path contains ";" then we assume it to be the separator
8701 # otherwise default to the standard path separator (i.e. ":") - it is
8702 # assumed that no part of a normal pathname contains ";" but that should
8703 # okay in the real world where ";" in dirpaths is itself problematic.
8704 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8705 else
8706 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8707 fi
8708 # Ok, now we have the path, separated by spaces, we can step through it
8709 # and add multilib dir if necessary.
8710 lt_tmp_lt_search_path_spec=
8711 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8712 for lt_sys_path in $lt_search_path_spec; do
8713 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8714 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8715 else
8716 test -d "$lt_sys_path" && \
8717 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8718 fi
8719 done
8720 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8721 BEGIN {RS=" "; FS="/|\n";} {
8722 lt_foo="";
8723 lt_count=0;
8724 for (lt_i = NF; lt_i > 0; lt_i--) {
8725 if ($lt_i != "" && $lt_i != ".") {
8726 if ($lt_i == "..") {
8727 lt_count++;
8728 } else {
8729 if (lt_count == 0) {
8730 lt_foo="/" $lt_i lt_foo;
8731 } else {
8732 lt_count--;
8733 }
8734 }
8735 }
8736 }
8737 if (lt_foo != "") { lt_freq[lt_foo]++; }
8738 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8739 }'`
8740 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8741 else
8742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8743 fi
8744 library_names_spec=
8745 libname_spec='lib$name'
8746 soname_spec=
8747 shrext_cmds=".so"
8748 postinstall_cmds=
8749 postuninstall_cmds=
8750 finish_cmds=
8751 finish_eval=
8752 shlibpath_var=
8753 shlibpath_overrides_runpath=unknown
8754 version_type=none
8755 dynamic_linker="$host_os ld.so"
8756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757 need_lib_prefix=unknown
8758 hardcode_into_libs=no
8759
8760 # when you set need_version to no, make sure it does not cause -set_version
8761 # flags to be left without arguments
8762 need_version=unknown
8763
8764 case $host_os in
8765 aix3*)
8766 version_type=linux
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8768 shlibpath_var=LIBPATH
8769
8770 # AIX 3 has no versioning support, so we append a major version to the name.
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 ;;
8773
8774 aix[4-9]*)
8775 version_type=linux
8776 need_lib_prefix=no
8777 need_version=no
8778 hardcode_into_libs=yes
8779 if test "$host_cpu" = ia64; then
8780 # AIX 5 supports IA64
8781 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 else
8784 # With GCC up to 2.95.x, collect2 would create an import file
8785 # for dependence libraries. The import file would start with
8786 # the line `#! .'. This would cause the generated library to
8787 # depend on `.', always an invalid library. This was fixed in
8788 # development snapshots of GCC prior to 3.0.
8789 case $host_os in
8790 aix4 | aix4.[01] | aix4.[01].*)
8791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8792 echo ' yes '
8793 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8794 :
8795 else
8796 can_build_shared=no
8797 fi
8798 ;;
8799 esac
8800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8801 # soname into executable. Probably we can add versioning support to
8802 # collect2, so additional links can be useful in future.
8803 if test "$aix_use_runtimelinking" = yes; then
8804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8805 # instead of lib<name>.a to let people know that these are not
8806 # typical AIX shared libraries.
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808 else
8809 # We preserve .a as extension for shared libraries through AIX4.2
8810 # and later when we are not doing run time linking.
8811 library_names_spec='${libname}${release}.a $libname.a'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 fi
8814 shlibpath_var=LIBPATH
8815 fi
8816 ;;
8817
8818 amigaos*)
8819 if test "$host_cpu" = m68k; then
8820 library_names_spec='$libname.ixlibrary $libname.a'
8821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8822 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'
8823 else
8824 dynamic_linker=no
8825 fi
8826 ;;
8827
8828 beos*)
8829 library_names_spec='${libname}${shared_ext}'
8830 dynamic_linker="$host_os ld.so"
8831 shlibpath_var=LIBRARY_PATH
8832 ;;
8833
8834 bsdi[45]*)
8835 version_type=linux
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8843 # the default ld.so.conf also contains /usr/contrib/lib and
8844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8845 # libtool to hard-code these into programs
8846 ;;
8847
8848 cygwin* | mingw* | pw32*)
8849 version_type=windows
8850 shrext_cmds=".dll"
8851 need_version=no
8852 need_lib_prefix=no
8853
8854 case $withGCC,$host_os in
8855 yes,cygwin* | yes,mingw* | yes,pw32*)
8856 library_names_spec='$libname.dll.a'
8857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8858 postinstall_cmds='base_file=`basename \${file}`~
8859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8860 dldir=$destdir/`dirname \$dlpath`~
8861 test -d \$dldir || mkdir -p \$dldir~
8862 $install_prog $dir/$dlname \$dldir/$dlname~
8863 chmod a+x \$dldir/$dlname~
8864 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8865 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8866 fi'
8867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8868 dlpath=$dir/\$dldll~
8869 $RM \$dlpath'
8870 shlibpath_overrides_runpath=yes
8871
8872 case $host_os in
8873 cygwin*)
8874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8877 ;;
8878 mingw*)
8879 # MinGW DLLs use traditional 'lib' prefix
8880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8882 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8883 # It is most probably a Windows format PATH printed by
8884 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8885 # path with ; separators, and with drive letters. We can handle the
8886 # drive letters (cygwin fileutils understands them), so leave them,
8887 # especially as we might pass files found there to a mingw objdump,
8888 # which wouldn't understand a cygwinified path. Ahh.
8889 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8890 else
8891 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8892 fi
8893 ;;
8894 pw32*)
8895 # pw32 DLLs use 'pw' prefix rather than 'lib'
8896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897 ;;
8898 esac
8899 ;;
8900
8901 *)
8902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8903 ;;
8904 esac
8905 dynamic_linker='Win32 ld.exe'
8906 # FIXME: first we should search . and the directory the executable is in
8907 shlibpath_var=PATH
8908 ;;
8909
8910 darwin* | rhapsody*)
8911 dynamic_linker="$host_os dyld"
8912 version_type=darwin
8913 need_lib_prefix=no
8914 need_version=no
8915 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8916 soname_spec='${libname}${release}${major}$shared_ext'
8917 shlibpath_overrides_runpath=yes
8918 shlibpath_var=DYLD_LIBRARY_PATH
8919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8920
8921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8923 ;;
8924
8925 dgux*)
8926 version_type=linux
8927 need_lib_prefix=no
8928 need_version=no
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 ;;
8933
8934 freebsd1*)
8935 dynamic_linker=no
8936 ;;
8937
8938 freebsd* | dragonfly*)
8939 # DragonFly does not have aout. When/if they implement a new
8940 # versioning mechanism, adjust this.
8941 if test -x /usr/bin/objformat; then
8942 objformat=`/usr/bin/objformat`
8943 else
8944 case $host_os in
8945 freebsd[123]*) objformat=aout ;;
8946 *) objformat=elf ;;
8947 esac
8948 fi
8949 version_type=freebsd-$objformat
8950 case $version_type in
8951 freebsd-elf*)
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8953 need_version=no
8954 need_lib_prefix=no
8955 ;;
8956 freebsd-*)
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8958 need_version=yes
8959 ;;
8960 esac
8961 shlibpath_var=LD_LIBRARY_PATH
8962 case $host_os in
8963 freebsd2*)
8964 shlibpath_overrides_runpath=yes
8965 ;;
8966 freebsd3.[01]* | freebsdelf3.[01]*)
8967 shlibpath_overrides_runpath=yes
8968 hardcode_into_libs=yes
8969 ;;
8970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8972 shlibpath_overrides_runpath=no
8973 hardcode_into_libs=yes
8974 ;;
8975 *) # from 4.6 on, and DragonFly
8976 shlibpath_overrides_runpath=yes
8977 hardcode_into_libs=yes
8978 ;;
8979 esac
8980 ;;
8981
8982 gnu*)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 hardcode_into_libs=yes
8990 ;;
8991
8992 hpux9* | hpux10* | hpux11*)
8993 # Give a soname corresponding to the major version so that dld.sl refuses to
8994 # link against other versions.
8995 version_type=sunos
8996 need_lib_prefix=no
8997 need_version=no
8998 case $host_cpu in
8999 ia64*)
9000 shrext_cmds='.so'
9001 hardcode_into_libs=yes
9002 dynamic_linker="$host_os dld.so"
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 if test "X$HPUX_IA64_MODE" = X32; then
9008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9009 else
9010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9011 fi
9012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9013 ;;
9014 hppa*64*)
9015 shrext_cmds='.sl'
9016 hardcode_into_libs=yes
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9024 ;;
9025 *)
9026 shrext_cmds='.sl'
9027 dynamic_linker="$host_os dld.sl"
9028 shlibpath_var=SHLIB_PATH
9029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 ;;
9033 esac
9034 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9035 postinstall_cmds='chmod 555 $lib'
9036 ;;
9037
9038 interix[3-9]*)
9039 version_type=linux
9040 need_lib_prefix=no
9041 need_version=no
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=no
9047 hardcode_into_libs=yes
9048 ;;
9049
9050 irix5* | irix6* | nonstopux*)
9051 case $host_os in
9052 nonstopux*) version_type=nonstopux ;;
9053 *)
9054 if test "$lt_cv_prog_gnu_ld" = yes; then
9055 version_type=linux
9056 else
9057 version_type=irix
9058 fi ;;
9059 esac
9060 need_lib_prefix=no
9061 need_version=no
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 case $host_os in
9065 irix5* | nonstopux*)
9066 libsuff= shlibsuff=
9067 ;;
9068 *)
9069 case $LD in # libtool.m4 will add one of these switches to LD
9070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9071 libsuff= shlibsuff= libmagic=32-bit;;
9072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9073 libsuff=32 shlibsuff=N32 libmagic=N32;;
9074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9076 *) libsuff= shlibsuff= libmagic=never-match;;
9077 esac
9078 ;;
9079 esac
9080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9081 shlibpath_overrides_runpath=no
9082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9084 hardcode_into_libs=yes
9085 ;;
9086
9087 # No shared lib support for Linux oldld, aout, or coff.
9088 linux*oldld* | linux*aout* | linux*coff*)
9089 dynamic_linker=no
9090 ;;
9091
9092 # This must be Linux ELF.
9093 linux* | k*bsd*-gnu)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=no
9102 # Some binutils ld are patched to set DT_RUNPATH
9103 save_LDFLAGS=$LDFLAGS
9104 save_libdir=$libdir
9105 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9106 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9107 cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h. */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113
9114 int
9115 main ()
9116 {
9117
9118 ;
9119 return 0;
9120 }
9121 _ACEOF
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9124 (eval $ac_link) 2>conftest.er1
9125 ac_status=$?
9126 grep -v '^ *+' conftest.er1 >conftest.err
9127 rm -f conftest.er1
9128 cat conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; } &&
9137 { ac_try='test -s conftest$ac_exeext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9144 shlibpath_overrides_runpath=yes
9145 fi
9146
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9150
9151 fi
9152 rm -f conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LDFLAGS=$save_LDFLAGS
9155 libdir=$save_libdir
9156
9157 # This implies no fast_install, which is unacceptable.
9158 # Some rework will be needed to allow for fast_install
9159 # before this can be enabled.
9160 hardcode_into_libs=yes
9161
9162 # Append ld.so.conf contents to the search path
9163 if test -f /etc/ld.so.conf; then
9164 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9166 fi
9167
9168 # We used to test for /lib/ld.so.1 and disable shared libraries on
9169 # powerpc, because MkLinux only supported shared libraries with the
9170 # GNU dynamic linker. Since this was broken with cross compilers,
9171 # most powerpc-linux boxes support dynamic linking these days and
9172 # people can always --disable-shared, the test was removed, and we
9173 # assume the GNU/Linux dynamic linker is in use.
9174 dynamic_linker='GNU/Linux ld.so'
9175 ;;
9176
9177 netbsd*)
9178 version_type=sunos
9179 need_lib_prefix=no
9180 need_version=no
9181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9184 dynamic_linker='NetBSD (a.out) ld.so'
9185 else
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 dynamic_linker='NetBSD ld.elf_so'
9189 fi
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=yes
9192 hardcode_into_libs=yes
9193 ;;
9194
9195 newsos6)
9196 version_type=linux
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=yes
9200 ;;
9201
9202 *nto* | *qnx*)
9203 version_type=qnx
9204 need_lib_prefix=no
9205 need_version=no
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=no
9210 hardcode_into_libs=yes
9211 dynamic_linker='ldqnx.so'
9212 ;;
9213
9214 openbsd*)
9215 version_type=sunos
9216 sys_lib_dlsearch_path_spec="/usr/lib"
9217 need_lib_prefix=no
9218 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9219 case $host_os in
9220 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9221 *) need_version=no ;;
9222 esac
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9227 case $host_os in
9228 openbsd2.[89] | openbsd2.[89].*)
9229 shlibpath_overrides_runpath=no
9230 ;;
9231 *)
9232 shlibpath_overrides_runpath=yes
9233 ;;
9234 esac
9235 else
9236 shlibpath_overrides_runpath=yes
9237 fi
9238 ;;
9239
9240 os2*)
9241 libname_spec='$name'
9242 shrext_cmds=".dll"
9243 need_lib_prefix=no
9244 library_names_spec='$libname${shared_ext} $libname.a'
9245 dynamic_linker='OS/2 ld.exe'
9246 shlibpath_var=LIBPATH
9247 ;;
9248
9249 osf3* | osf4* | osf5*)
9250 version_type=osf
9251 need_lib_prefix=no
9252 need_version=no
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9258 ;;
9259
9260 rdos*)
9261 dynamic_linker=no
9262 ;;
9263
9264 solaris*)
9265 version_type=linux
9266 need_lib_prefix=no
9267 need_version=no
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 shlibpath_overrides_runpath=yes
9272 hardcode_into_libs=yes
9273 # ldd complains unless libraries are executable
9274 postinstall_cmds='chmod +x $lib'
9275 ;;
9276
9277 sunos4*)
9278 version_type=sunos
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 shlibpath_overrides_runpath=yes
9283 if test "$with_gnu_ld" = yes; then
9284 need_lib_prefix=no
9285 fi
9286 need_version=yes
9287 ;;
9288
9289 sysv4 | sysv4.3*)
9290 version_type=linux
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292 soname_spec='${libname}${release}${shared_ext}$major'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 case $host_vendor in
9295 sni)
9296 shlibpath_overrides_runpath=no
9297 need_lib_prefix=no
9298 runpath_var=LD_RUN_PATH
9299 ;;
9300 siemens)
9301 need_lib_prefix=no
9302 ;;
9303 motorola)
9304 need_lib_prefix=no
9305 need_version=no
9306 shlibpath_overrides_runpath=no
9307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9308 ;;
9309 esac
9310 ;;
9311
9312 sysv4*MP*)
9313 if test -d /usr/nec ;then
9314 version_type=linux
9315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9316 soname_spec='$libname${shared_ext}.$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 fi
9319 ;;
9320
9321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9322 version_type=freebsd-elf
9323 need_lib_prefix=no
9324 need_version=no
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=yes
9329 hardcode_into_libs=yes
9330 if test "$with_gnu_ld" = yes; then
9331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9332 else
9333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9334 case $host_os in
9335 sco3.2v5*)
9336 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9337 ;;
9338 esac
9339 fi
9340 sys_lib_dlsearch_path_spec='/usr/lib'
9341 ;;
9342
9343 tpf*)
9344 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9345 version_type=linux
9346 need_lib_prefix=no
9347 need_version=no
9348 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 shlibpath_overrides_runpath=no
9351 hardcode_into_libs=yes
9352 ;;
9353
9354 uts4*)
9355 version_type=linux
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 ;;
9360
9361 *)
9362 dynamic_linker=no
9363 ;;
9364 esac
9365 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9366 echo "${ECHO_T}$dynamic_linker" >&6
9367 test "$dynamic_linker" = no && can_build_shared=no
9368
9369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9370 if test "$GCC" = yes; then
9371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9372 fi
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9461 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9462 hardcode_action=
9463 if test -n "$hardcode_libdir_flag_spec" ||
9464 test -n "$runpath_var" ||
9465 test "X$hardcode_automatic" = "Xyes" ; then
9466
9467 # We can hardcode non-existent directories.
9468 if test "$hardcode_direct" != no &&
9469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9470 # have to relink, otherwise we might link with an installed library
9471 # when we should be linking with a yet-to-be-installed one
9472 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9473 test "$hardcode_minus_L" != no; then
9474 # Linking always hardcodes the temporary library directory.
9475 hardcode_action=relink
9476 else
9477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9478 hardcode_action=immediate
9479 fi
9480 else
9481 # We cannot hardcode anything, or else we can only hardcode existing
9482 # directories.
9483 hardcode_action=unsupported
9484 fi
9485 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9486 echo "${ECHO_T}$hardcode_action" >&6
9487
9488 if test "$hardcode_action" = relink ||
9489 test "$inherit_rpath" = yes; then
9490 # Fast installation is not supported
9491 enable_fast_install=no
9492 elif test "$shlibpath_overrides_runpath" = yes ||
9493 test "$enable_shared" = no; then
9494 # Fast installation is not necessary
9495 enable_fast_install=needless
9496 fi
9497
9498
9499
9500
9501
9502
9503 if test "x$enable_dlopen" != xyes; then
9504 enable_dlopen=unknown
9505 enable_dlopen_self=unknown
9506 enable_dlopen_self_static=unknown
9507 else
9508 lt_cv_dlopen=no
9509 lt_cv_dlopen_libs=
9510
9511 case $host_os in
9512 beos*)
9513 lt_cv_dlopen="load_add_on"
9514 lt_cv_dlopen_libs=
9515 lt_cv_dlopen_self=yes
9516 ;;
9517
9518 mingw* | pw32*)
9519 lt_cv_dlopen="LoadLibrary"
9520 lt_cv_dlopen_libs=
9521 ;;
9522
9523 cygwin*)
9524 lt_cv_dlopen="dlopen"
9525 lt_cv_dlopen_libs=
9526 ;;
9527
9528 darwin*)
9529 # if libdl is installed we need to link against it
9530 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9531 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9532 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 ac_check_lib_save_LIBS=$LIBS
9536 LIBS="-ldl $LIBS"
9537 cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h. */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543
9544 /* Override any gcc2 internal prototype to avoid an error. */
9545 #ifdef __cplusplus
9546 extern "C"
9547 #endif
9548 /* We use char because int might match the return type of a gcc2
9549 builtin and then its argument prototype would still apply. */
9550 char dlopen ();
9551 int
9552 main ()
9553 {
9554 dlopen ();
9555 ;
9556 return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 ac_cv_lib_dl_dlopen=yes
9581 else
9582 echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9584
9585 ac_cv_lib_dl_dlopen=no
9586 fi
9587 rm -f conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 LIBS=$ac_check_lib_save_LIBS
9590 fi
9591 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9592 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9593 if test $ac_cv_lib_dl_dlopen = yes; then
9594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9595 else
9596
9597 lt_cv_dlopen="dyld"
9598 lt_cv_dlopen_libs=
9599 lt_cv_dlopen_self=yes
9600
9601 fi
9602
9603 ;;
9604
9605 *)
9606 echo "$as_me:$LINENO: checking for shl_load" >&5
9607 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9608 if test "${ac_cv_func_shl_load+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h. */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9619 #define shl_load innocuous_shl_load
9620
9621 /* System header to define __stub macros and hopefully few prototypes,
9622 which can conflict with char shl_load (); below.
9623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624 <limits.h> exists even on freestanding compilers. */
9625
9626 #ifdef __STDC__
9627 # include <limits.h>
9628 #else
9629 # include <assert.h>
9630 #endif
9631
9632 #undef shl_load
9633
9634 /* Override any gcc2 internal prototype to avoid an error. */
9635 #ifdef __cplusplus
9636 extern "C"
9637 {
9638 #endif
9639 /* We use char because int might match the return type of a gcc2
9640 builtin and then its argument prototype would still apply. */
9641 char shl_load ();
9642 /* The GNU C library defines this for functions which it implements
9643 to always fail with ENOSYS. Some functions are actually named
9644 something starting with __ and the normal name is an alias. */
9645 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9646 choke me
9647 #else
9648 char (*f) () = shl_load;
9649 #endif
9650 #ifdef __cplusplus
9651 }
9652 #endif
9653
9654 int
9655 main ()
9656 {
9657 return f != shl_load;
9658 ;
9659 return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>conftest.er1
9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
9671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try='test -s conftest$ac_exeext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_func_shl_load=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688 ac_cv_func_shl_load=no
9689 fi
9690 rm -f conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692 fi
9693 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9694 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9695 if test $ac_cv_func_shl_load = yes; then
9696 lt_cv_dlopen="shl_load"
9697 else
9698 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9699 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9700 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 ac_check_lib_save_LIBS=$LIBS
9704 LIBS="-ldld $LIBS"
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h. */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711
9712 /* Override any gcc2 internal prototype to avoid an error. */
9713 #ifdef __cplusplus
9714 extern "C"
9715 #endif
9716 /* We use char because int might match the return type of a gcc2
9717 builtin and then its argument prototype would still apply. */
9718 char shl_load ();
9719 int
9720 main ()
9721 {
9722 shl_load ();
9723 ;
9724 return 0;
9725 }
9726 _ACEOF
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729 (eval $ac_link) 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } &&
9736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; } &&
9742 { ac_try='test -s conftest$ac_exeext'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748 ac_cv_lib_dld_shl_load=yes
9749 else
9750 echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9752
9753 ac_cv_lib_dld_shl_load=no
9754 fi
9755 rm -f conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 LIBS=$ac_check_lib_save_LIBS
9758 fi
9759 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9760 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9761 if test $ac_cv_lib_dld_shl_load = yes; then
9762 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9763 else
9764 echo "$as_me:$LINENO: checking for dlopen" >&5
9765 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9766 if test "${ac_cv_func_dlopen+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769 cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h. */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9777 #define dlopen innocuous_dlopen
9778
9779 /* System header to define __stub macros and hopefully few prototypes,
9780 which can conflict with char dlopen (); below.
9781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9782 <limits.h> exists even on freestanding compilers. */
9783
9784 #ifdef __STDC__
9785 # include <limits.h>
9786 #else
9787 # include <assert.h>
9788 #endif
9789
9790 #undef dlopen
9791
9792 /* Override any gcc2 internal prototype to avoid an error. */
9793 #ifdef __cplusplus
9794 extern "C"
9795 {
9796 #endif
9797 /* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9799 char dlopen ();
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9804 choke me
9805 #else
9806 char (*f) () = dlopen;
9807 #endif
9808 #ifdef __cplusplus
9809 }
9810 #endif
9811
9812 int
9813 main ()
9814 {
9815 return f != dlopen;
9816 ;
9817 return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822 (eval $ac_link) 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_func_dlopen=yes
9842 else
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846 ac_cv_func_dlopen=no
9847 fi
9848 rm -f conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850 fi
9851 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9852 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9853 if test $ac_cv_func_dlopen = yes; then
9854 lt_cv_dlopen="dlopen"
9855 else
9856 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9857 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9858 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 ac_check_lib_save_LIBS=$LIBS
9862 LIBS="-ldl $LIBS"
9863 cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h. */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9869
9870 /* Override any gcc2 internal prototype to avoid an error. */
9871 #ifdef __cplusplus
9872 extern "C"
9873 #endif
9874 /* We use char because int might match the return type of a gcc2
9875 builtin and then its argument prototype would still apply. */
9876 char dlopen ();
9877 int
9878 main ()
9879 {
9880 dlopen ();
9881 ;
9882 return 0;
9883 }
9884 _ACEOF
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887 (eval $ac_link) 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 (eval $ac_try) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest$ac_exeext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_cv_lib_dl_dlopen=yes
9907 else
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 ac_cv_lib_dl_dlopen=no
9912 fi
9913 rm -f conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext conftest.$ac_ext
9915 LIBS=$ac_check_lib_save_LIBS
9916 fi
9917 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9918 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9919 if test $ac_cv_lib_dl_dlopen = yes; then
9920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9921 else
9922 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9923 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9924 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927 ac_check_lib_save_LIBS=$LIBS
9928 LIBS="-lsvld $LIBS"
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h. */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935
9936 /* Override any gcc2 internal prototype to avoid an error. */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 /* We use char because int might match the return type of a gcc2
9941 builtin and then its argument prototype would still apply. */
9942 char dlopen ();
9943 int
9944 main ()
9945 {
9946 dlopen ();
9947 ;
9948 return 0;
9949 }
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9953 (eval $ac_link) 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 ac_cv_lib_svld_dlopen=yes
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977 ac_cv_lib_svld_dlopen=no
9978 fi
9979 rm -f conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 LIBS=$ac_check_lib_save_LIBS
9982 fi
9983 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9984 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9985 if test $ac_cv_lib_svld_dlopen = yes; then
9986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9987 else
9988 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9989 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9990 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993 ac_check_lib_save_LIBS=$LIBS
9994 LIBS="-ldld $LIBS"
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001
10002 /* Override any gcc2 internal prototype to avoid an error. */
10003 #ifdef __cplusplus
10004 extern "C"
10005 #endif
10006 /* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
10008 char dld_link ();
10009 int
10010 main ()
10011 {
10012 dld_link ();
10013 ;
10014 return 0;
10015 }
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 ac_cv_lib_dld_dld_link=yes
10039 else
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043 ac_cv_lib_dld_dld_link=no
10044 fi
10045 rm -f conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10048 fi
10049 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10050 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10051 if test $ac_cv_lib_dld_dld_link = yes; then
10052 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10053 fi
10054
10055
10056 fi
10057
10058
10059 fi
10060
10061
10062 fi
10063
10064
10065 fi
10066
10067
10068 fi
10069
10070 ;;
10071 esac
10072
10073 if test "x$lt_cv_dlopen" != xno; then
10074 enable_dlopen=yes
10075 else
10076 enable_dlopen=no
10077 fi
10078
10079 case $lt_cv_dlopen in
10080 dlopen)
10081 save_CPPFLAGS="$CPPFLAGS"
10082 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10083
10084 save_LDFLAGS="$LDFLAGS"
10085 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10086
10087 save_LIBS="$LIBS"
10088 LIBS="$lt_cv_dlopen_libs $LIBS"
10089
10090 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10091 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10092 if test "${lt_cv_dlopen_self+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095 if test "$cross_compiling" = yes; then :
10096 lt_cv_dlopen_self=cross
10097 else
10098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10099 lt_status=$lt_dlunknown
10100 cat > conftest.$ac_ext <<_LT_EOF
10101 #line 10101 "configure"
10102 #include "confdefs.h"
10103
10104 #if HAVE_DLFCN_H
10105 #include <dlfcn.h>
10106 #endif
10107
10108 #include <stdio.h>
10109
10110 #ifdef RTLD_GLOBAL
10111 # define LT_DLGLOBAL RTLD_GLOBAL
10112 #else
10113 # ifdef DL_GLOBAL
10114 # define LT_DLGLOBAL DL_GLOBAL
10115 # else
10116 # define LT_DLGLOBAL 0
10117 # endif
10118 #endif
10119
10120 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10121 find out it does not work in some platform. */
10122 #ifndef LT_DLLAZY_OR_NOW
10123 # ifdef RTLD_LAZY
10124 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10125 # else
10126 # ifdef DL_LAZY
10127 # define LT_DLLAZY_OR_NOW DL_LAZY
10128 # else
10129 # ifdef RTLD_NOW
10130 # define LT_DLLAZY_OR_NOW RTLD_NOW
10131 # else
10132 # ifdef DL_NOW
10133 # define LT_DLLAZY_OR_NOW DL_NOW
10134 # else
10135 # define LT_DLLAZY_OR_NOW 0
10136 # endif
10137 # endif
10138 # endif
10139 # endif
10140 #endif
10141
10142 #ifdef __cplusplus
10143 extern "C" void exit (int);
10144 #endif
10145
10146 void fnord() { int i=42;}
10147 int main ()
10148 {
10149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10150 int status = $lt_dlunknown;
10151
10152 if (self)
10153 {
10154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10155 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10156 /* dlclose (self); */
10157 }
10158 else
10159 puts (dlerror ());
10160
10161 exit (status);
10162 }
10163 _LT_EOF
10164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10165 (eval $ac_link) 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10169 (./conftest; exit; ) >&5 2>/dev/null
10170 lt_status=$?
10171 case x$lt_status in
10172 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10173 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10174 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10175 esac
10176 else :
10177 # compilation failed
10178 lt_cv_dlopen_self=no
10179 fi
10180 fi
10181 rm -fr conftest*
10182
10183
10184 fi
10185 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10186 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10187
10188 if test "x$lt_cv_dlopen_self" = xyes; then
10189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10190 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10191 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10192 if test "${lt_cv_dlopen_self_static+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195 if test "$cross_compiling" = yes; then :
10196 lt_cv_dlopen_self_static=cross
10197 else
10198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10199 lt_status=$lt_dlunknown
10200 cat > conftest.$ac_ext <<_LT_EOF
10201 #line 10201 "configure"
10202 #include "confdefs.h"
10203
10204 #if HAVE_DLFCN_H
10205 #include <dlfcn.h>
10206 #endif
10207
10208 #include <stdio.h>
10209
10210 #ifdef RTLD_GLOBAL
10211 # define LT_DLGLOBAL RTLD_GLOBAL
10212 #else
10213 # ifdef DL_GLOBAL
10214 # define LT_DLGLOBAL DL_GLOBAL
10215 # else
10216 # define LT_DLGLOBAL 0
10217 # endif
10218 #endif
10219
10220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10221 find out it does not work in some platform. */
10222 #ifndef LT_DLLAZY_OR_NOW
10223 # ifdef RTLD_LAZY
10224 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10225 # else
10226 # ifdef DL_LAZY
10227 # define LT_DLLAZY_OR_NOW DL_LAZY
10228 # else
10229 # ifdef RTLD_NOW
10230 # define LT_DLLAZY_OR_NOW RTLD_NOW
10231 # else
10232 # ifdef DL_NOW
10233 # define LT_DLLAZY_OR_NOW DL_NOW
10234 # else
10235 # define LT_DLLAZY_OR_NOW 0
10236 # endif
10237 # endif
10238 # endif
10239 # endif
10240 #endif
10241
10242 #ifdef __cplusplus
10243 extern "C" void exit (int);
10244 #endif
10245
10246 void fnord() { int i=42;}
10247 int main ()
10248 {
10249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10250 int status = $lt_dlunknown;
10251
10252 if (self)
10253 {
10254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10256 /* dlclose (self); */
10257 }
10258 else
10259 puts (dlerror ());
10260
10261 exit (status);
10262 }
10263 _LT_EOF
10264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10265 (eval $ac_link) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10269 (./conftest; exit; ) >&5 2>/dev/null
10270 lt_status=$?
10271 case x$lt_status in
10272 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10273 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10274 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10275 esac
10276 else :
10277 # compilation failed
10278 lt_cv_dlopen_self_static=no
10279 fi
10280 fi
10281 rm -fr conftest*
10282
10283
10284 fi
10285 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10286 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10287 fi
10288
10289 CPPFLAGS="$save_CPPFLAGS"
10290 LDFLAGS="$save_LDFLAGS"
10291 LIBS="$save_LIBS"
10292 ;;
10293 esac
10294
10295 case $lt_cv_dlopen_self in
10296 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10297 *) enable_dlopen_self=unknown ;;
10298 esac
10299
10300 case $lt_cv_dlopen_self_static in
10301 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10302 *) enable_dlopen_self_static=unknown ;;
10303 esac
10304 fi
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322 striplib=
10323 old_striplib=
10324 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10325 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10326 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10327 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10328 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10329 echo "$as_me:$LINENO: result: yes" >&5
10330 echo "${ECHO_T}yes" >&6
10331 else
10332 # FIXME - insert some real tests, host_os isn't really good enough
10333 case $host_os in
10334 darwin*)
10335 if test -n "$STRIP" ; then
10336 striplib="$STRIP -x"
10337 old_striplib="$STRIP -S"
10338 echo "$as_me:$LINENO: result: yes" >&5
10339 echo "${ECHO_T}yes" >&6
10340 else
10341 echo "$as_me:$LINENO: result: no" >&5
10342 echo "${ECHO_T}no" >&6
10343 fi
10344 ;;
10345 *)
10346 echo "$as_me:$LINENO: result: no" >&5
10347 echo "${ECHO_T}no" >&6
10348 ;;
10349 esac
10350 fi
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363 # Report which library types will actually be built
10364 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10365 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10366 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10367 echo "${ECHO_T}$can_build_shared" >&6
10368
10369 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10370 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10371 test "$can_build_shared" = "no" && enable_shared=no
10372
10373 # On AIX, shared libraries and static libraries use the same namespace, and
10374 # are all built from PIC.
10375 case $host_os in
10376 aix3*)
10377 test "$enable_shared" = yes && enable_static=no
10378 if test -n "$RANLIB"; then
10379 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10380 postinstall_cmds='$RANLIB $lib'
10381 fi
10382 ;;
10383
10384 aix[4-9]*)
10385 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10386 test "$enable_shared" = yes && enable_static=no
10387 fi
10388 ;;
10389 esac
10390 echo "$as_me:$LINENO: result: $enable_shared" >&5
10391 echo "${ECHO_T}$enable_shared" >&6
10392
10393 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10394 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10395 # Make sure either enable_shared or enable_static is yes.
10396 test "$enable_shared" = yes || enable_static=yes
10397 echo "$as_me:$LINENO: result: $enable_static" >&5
10398 echo "${ECHO_T}$enable_static" >&6
10399
10400
10401
10402
10403 fi
10404 ac_ext=c
10405 ac_cpp='$CPP $CPPFLAGS'
10406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10409
10410 CC="$lt_save_CC"
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424 ac_config_commands="$ac_config_commands libtool"
10425
10426
10427
10428
10429 # Only expand once:
10430
10431
10432
10433 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10434 if test "${enable_64_bit_bfd+set}" = set; then
10435 enableval="$enable_64_bit_bfd"
10436 case "${enableval}" in
10437 yes) want64=true ;;
10438 no) want64=false ;;
10439 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10440 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10441 { (exit 1); exit 1; }; } ;;
10442 esac
10443 else
10444 want64=false
10445 fi;
10446 # Check whether --enable-targets or --disable-targets was given.
10447 if test "${enable_targets+set}" = set; then
10448 enableval="$enable_targets"
10449 case "${enableval}" in
10450 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10451 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10452 { (exit 1); exit 1; }; }
10453 ;;
10454 no) enable_targets= ;;
10455 *) enable_targets=$enableval ;;
10456 esac
10457 fi;
10458 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10459 if test "${enable_commonbfdlib+set}" = set; then
10460 enableval="$enable_commonbfdlib"
10461 case "${enableval}" in
10462 yes) commonbfdlib=true ;;
10463 no) commonbfdlib=false ;;
10464 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10465 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10466 { (exit 1); exit 1; }; } ;;
10467 esac
10468 fi;
10469
10470 # Check whether --with-mmap or --without-mmap was given.
10471 if test "${with_mmap+set}" = set; then
10472 withval="$with_mmap"
10473 case "${withval}" in
10474 yes) want_mmap=true ;;
10475 no) want_mmap=false ;;
10476 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10477 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10478 { (exit 1); exit 1; }; } ;;
10479 esac
10480 else
10481 want_mmap=false
10482 fi;
10483 # Check whether --enable-secureplt or --disable-secureplt was given.
10484 if test "${enable_secureplt+set}" = set; then
10485 enableval="$enable_secureplt"
10486 case "${enableval}" in
10487 yes) use_secureplt=true ;;
10488 no) use_secureplt=false ;;
10489 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10490 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10491 { (exit 1); exit 1; }; } ;;
10492 esac
10493 else
10494 use_secureplt=false
10495 fi; if test $use_secureplt = true; then
10496
10497 cat >>confdefs.h <<\_ACEOF
10498 #define USE_SECUREPLT 1
10499 _ACEOF
10500
10501 fi
10502
10503 DEBUGDIR=${libdir}/debug
10504
10505 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10506 if test "${with_separate_debug_dir+set}" = set; then
10507 withval="$with_separate_debug_dir"
10508 DEBUGDIR="${withval}"
10509 fi;
10510
10511
10512 # Check to see if we should allow the generation of
10513 # symbols with the ELF standard's STT_COMMON type.
10514 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10515 if test "${enable_elf_stt_common+set}" = set; then
10516 enableval="$enable_elf_stt_common"
10517 case "${enableval}" in
10518 yes) want_elf_stt_common=true ;;
10519 no) want_elf_stt_common=false ;;
10520 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10521 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10522 { (exit 1); exit 1; }; } ;;
10523 esac
10524 else
10525 # We have to choose a default behaviour. For native builds we could
10526 # test whether the loader supports the STT_COMMON type, but that would
10527 # mean that built binaries could not be exported to older systems where
10528 # the loader does not support it. So by default we always choose to
10529 # disable this feature.
10530 want_elf_stt_common=false
10531 fi; if test $want_elf_stt_common = true; then
10532
10533 cat >>confdefs.h <<\_ACEOF
10534 #define USE_STT_COMMON 1
10535 _ACEOF
10536
10537 fi
10538
10539
10540
10541 # Check whether --with-pkgversion or --without-pkgversion was given.
10542 if test "${with_pkgversion+set}" = set; then
10543 withval="$with_pkgversion"
10544 case "$withval" in
10545 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10546 echo "$as_me: error: package version not specified" >&2;}
10547 { (exit 1); exit 1; }; } ;;
10548 no) PKGVERSION= ;;
10549 *) PKGVERSION="($withval) " ;;
10550 esac
10551 else
10552 PKGVERSION="(GNU Binutils) "
10553
10554 fi;
10555
10556
10557
10558
10559 # Check whether --with-bugurl or --without-bugurl was given.
10560 if test "${with_bugurl+set}" = set; then
10561 withval="$with_bugurl"
10562 case "$withval" in
10563 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10564 echo "$as_me: error: bug URL not specified" >&2;}
10565 { (exit 1); exit 1; }; } ;;
10566 no) BUGURL=
10567 ;;
10568 *) BUGURL="$withval"
10569 ;;
10570 esac
10571 else
10572 BUGURL="http://www.sourceware.org/bugzilla/"
10573
10574 fi;
10575 case ${BUGURL} in
10576 "")
10577 REPORT_BUGS_TO=
10578 REPORT_BUGS_TEXI=
10579 ;;
10580 *)
10581 REPORT_BUGS_TO="<$BUGURL>"
10582 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10583 ;;
10584 esac;
10585
10586
10587
10588
10589
10590 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10591
10592 # Check whether --enable-werror or --disable-werror was given.
10593 if test "${enable_werror+set}" = set; then
10594 enableval="$enable_werror"
10595 case "${enableval}" in
10596 yes | y) ERROR_ON_WARNING="yes" ;;
10597 no | n) ERROR_ON_WARNING="no" ;;
10598 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10599 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10600 { (exit 1); exit 1; }; } ;;
10601 esac
10602 fi;
10603
10604 # Enable -Wno-format by default when using gcc on mingw
10605 case "${host}" in
10606 *-*-mingw32*)
10607 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10608 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10609 fi
10610 ;;
10611 *) ;;
10612 esac
10613
10614 # Enable -Werror by default when using gcc
10615 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10616 ERROR_ON_WARNING=yes
10617 fi
10618
10619 NO_WERROR=
10620 if test "${ERROR_ON_WARNING}" = yes ; then
10621 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10622 NO_WERROR="-Wno-error"
10623 fi
10624
10625 if test "${GCC}" = yes ; then
10626 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10627 fi
10628
10629 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10630 if test "${enable_build_warnings+set}" = set; then
10631 enableval="$enable_build_warnings"
10632 case "${enableval}" in
10633 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10634 no) if test "${GCC}" = yes ; then
10635 WARN_CFLAGS="-w"
10636 fi;;
10637 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10638 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10639 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10640 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10641 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10642 esac
10643 fi;
10644
10645 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10646 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10647 fi
10648
10649
10650
10651
10652
10653 ac_config_headers="$ac_config_headers config.h:config.in"
10654
10655
10656 if test -z "$target" ; then
10657 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10658 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10659 { (exit 1); exit 1; }; }
10660 fi
10661
10662 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10663 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10664 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10665 if test "${enable_maintainer_mode+set}" = set; then
10666 enableval="$enable_maintainer_mode"
10667 USE_MAINTAINER_MODE=$enableval
10668 else
10669 USE_MAINTAINER_MODE=no
10670 fi;
10671 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10672 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10673
10674
10675 if test $USE_MAINTAINER_MODE = yes; then
10676 MAINTAINER_MODE_TRUE=
10677 MAINTAINER_MODE_FALSE='#'
10678 else
10679 MAINTAINER_MODE_TRUE='#'
10680 MAINTAINER_MODE_FALSE=
10681 fi
10682
10683 MAINT=$MAINTAINER_MODE_TRUE
10684
10685
10686
10687
10688 if false; then
10689 GENINSRC_NEVER_TRUE=
10690 GENINSRC_NEVER_FALSE='#'
10691 else
10692 GENINSRC_NEVER_TRUE='#'
10693 GENINSRC_NEVER_FALSE=
10694 fi
10695
10696 case ${build_alias} in
10697 "") build_noncanonical=${build} ;;
10698 *) build_noncanonical=${build_alias} ;;
10699 esac
10700
10701 case ${host_alias} in
10702 "") host_noncanonical=${build_noncanonical} ;;
10703 *) host_noncanonical=${host_alias} ;;
10704 esac
10705
10706 case ${target_alias} in
10707 "") target_noncanonical=${host_noncanonical} ;;
10708 *) target_noncanonical=${target_alias} ;;
10709 esac
10710
10711 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10712 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10713 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10714 if test "${enable_install_libbfd+set}" = set; then
10715 enableval="$enable_install_libbfd"
10716 install_libbfd_p=$enableval
10717 else
10718 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10719 install_libbfd_p=yes
10720 else
10721 install_libbfd_p=no
10722 fi
10723 fi;
10724 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10725 echo "${ECHO_T}$install_libbfd_p" >&6
10726
10727
10728 if test $install_libbfd_p = yes; then
10729 INSTALL_LIBBFD_TRUE=
10730 INSTALL_LIBBFD_FALSE='#'
10731 else
10732 INSTALL_LIBBFD_TRUE='#'
10733 INSTALL_LIBBFD_FALSE=
10734 fi
10735
10736 # Need _noncanonical variables for this.
10737
10738
10739
10740
10741 # libbfd.a is a host library containing target dependent code
10742 bfdlibdir='$(libdir)'
10743 bfdincludedir='$(includedir)'
10744 if test "${host}" != "${target}"; then
10745 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10746 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10747 fi
10748
10749
10750
10751
10752
10753
10754 host64=false
10755 target64=false
10756 bfd_default_target_size=32
10757
10758 # host stuff:
10759
10760 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
10761 # If we haven't got the data from the intl directory,
10762 # assume NLS is disabled.
10763 USE_NLS=no
10764 LIBINTL=
10765 LIBINTL_DEP=
10766 INCINTL=
10767 XGETTEXT=
10768 GMSGFMT=
10769 POSUB=
10770
10771 if test -f ../intl/config.intl; then
10772 . ../intl/config.intl
10773 fi
10774 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10775 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10776 if test x"$USE_NLS" != xyes; then
10777 echo "$as_me:$LINENO: result: no" >&5
10778 echo "${ECHO_T}no" >&6
10779 else
10780 echo "$as_me:$LINENO: result: yes" >&5
10781 echo "${ECHO_T}yes" >&6
10782
10783 cat >>confdefs.h <<\_ACEOF
10784 #define ENABLE_NLS 1
10785 _ACEOF
10786
10787
10788 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10789 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10790 # Look for .po and .gmo files in the source directory.
10791 CATALOGS=
10792 XLINGUAS=
10793 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10794 # If there aren't any .gmo files the shell will give us the
10795 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10796 # weeded out.
10797 case "$cat" in *\**)
10798 continue;;
10799 esac
10800 # The quadruple backslash is collapsed to a double backslash
10801 # by the backticks, then collapsed again by the double quotes,
10802 # leaving us with one backslash in the sed expression (right
10803 # before the dot that mustn't act as a wildcard).
10804 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10805 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10806 # The user is allowed to set LINGUAS to a list of languages to
10807 # install catalogs for. If it's empty that means "all of them."
10808 if test "x$LINGUAS" = x; then
10809 CATALOGS="$CATALOGS $cat"
10810 XLINGUAS="$XLINGUAS $lang"
10811 else
10812 case "$LINGUAS" in *$lang*)
10813 CATALOGS="$CATALOGS $cat"
10814 XLINGUAS="$XLINGUAS $lang"
10815 ;;
10816 esac
10817 fi
10818 done
10819 LINGUAS="$XLINGUAS"
10820 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10821 echo "${ECHO_T}$LINGUAS" >&6
10822
10823
10824 DATADIRNAME=share
10825
10826 INSTOBJEXT=.mo
10827
10828 GENCAT=gencat
10829
10830 CATOBJEXT=.gmo
10831
10832 fi
10833
10834 MKINSTALLDIRS=
10835 if test -n "$ac_aux_dir"; then
10836 case "$ac_aux_dir" in
10837 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10838 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10839 esac
10840 fi
10841 if test -z "$MKINSTALLDIRS"; then
10842 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10843 fi
10844
10845
10846
10847 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10848 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10849 # Check whether --enable-nls or --disable-nls was given.
10850 if test "${enable_nls+set}" = set; then
10851 enableval="$enable_nls"
10852 USE_NLS=$enableval
10853 else
10854 USE_NLS=yes
10855 fi;
10856 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10857 echo "${ECHO_T}$USE_NLS" >&6
10858
10859
10860
10861
10862
10863
10864 # Prepare PATH_SEPARATOR.
10865 # The user is always right.
10866 if test "${PATH_SEPARATOR+set}" != set; then
10867 echo "#! /bin/sh" >conf$$.sh
10868 echo "exit 0" >>conf$$.sh
10869 chmod +x conf$$.sh
10870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10871 PATH_SEPARATOR=';'
10872 else
10873 PATH_SEPARATOR=:
10874 fi
10875 rm -f conf$$.sh
10876 fi
10877
10878 # Find out how to test for executable files. Don't use a zero-byte file,
10879 # as systems may use methods other than mode bits to determine executability.
10880 cat >conf$$.file <<_ASEOF
10881 #! /bin/sh
10882 exit 0
10883 _ASEOF
10884 chmod +x conf$$.file
10885 if test -x conf$$.file >/dev/null 2>&1; then
10886 ac_executable_p="test -x"
10887 else
10888 ac_executable_p="test -f"
10889 fi
10890 rm -f conf$$.file
10891
10892 # Extract the first word of "msgfmt", so it can be a program name with args.
10893 set dummy msgfmt; ac_word=$2
10894 echo "$as_me:$LINENO: checking for $ac_word" >&5
10895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10896 if test "${ac_cv_path_MSGFMT+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899 case "$MSGFMT" in
10900 [\\/]* | ?:[\\/]*)
10901 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10902 ;;
10903 *)
10904 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10905 for ac_dir in $PATH; do
10906 IFS="$ac_save_IFS"
10907 test -z "$ac_dir" && ac_dir=.
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10910 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10911 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10912 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10913 break 2
10914 fi
10915 fi
10916 done
10917 done
10918 IFS="$ac_save_IFS"
10919 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10920 ;;
10921 esac
10922 fi
10923 MSGFMT="$ac_cv_path_MSGFMT"
10924 if test "$MSGFMT" != ":"; then
10925 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10926 echo "${ECHO_T}$MSGFMT" >&6
10927 else
10928 echo "$as_me:$LINENO: result: no" >&5
10929 echo "${ECHO_T}no" >&6
10930 fi
10931
10932 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10933 set dummy gmsgfmt; ac_word=$2
10934 echo "$as_me:$LINENO: checking for $ac_word" >&5
10935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10936 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 case $GMSGFMT in
10940 [\\/]* | ?:[\\/]*)
10941 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10942 ;;
10943 *)
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10946 do
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10951 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10954 fi
10955 done
10956 done
10957
10958 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10959 ;;
10960 esac
10961 fi
10962 GMSGFMT=$ac_cv_path_GMSGFMT
10963
10964 if test -n "$GMSGFMT"; then
10965 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10966 echo "${ECHO_T}$GMSGFMT" >&6
10967 else
10968 echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6
10970 fi
10971
10972
10973
10974 # Prepare PATH_SEPARATOR.
10975 # The user is always right.
10976 if test "${PATH_SEPARATOR+set}" != set; then
10977 echo "#! /bin/sh" >conf$$.sh
10978 echo "exit 0" >>conf$$.sh
10979 chmod +x conf$$.sh
10980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10981 PATH_SEPARATOR=';'
10982 else
10983 PATH_SEPARATOR=:
10984 fi
10985 rm -f conf$$.sh
10986 fi
10987
10988 # Find out how to test for executable files. Don't use a zero-byte file,
10989 # as systems may use methods other than mode bits to determine executability.
10990 cat >conf$$.file <<_ASEOF
10991 #! /bin/sh
10992 exit 0
10993 _ASEOF
10994 chmod +x conf$$.file
10995 if test -x conf$$.file >/dev/null 2>&1; then
10996 ac_executable_p="test -x"
10997 else
10998 ac_executable_p="test -f"
10999 fi
11000 rm -f conf$$.file
11001
11002 # Extract the first word of "xgettext", so it can be a program name with args.
11003 set dummy xgettext; ac_word=$2
11004 echo "$as_me:$LINENO: checking for $ac_word" >&5
11005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11006 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009 case "$XGETTEXT" in
11010 [\\/]* | ?:[\\/]*)
11011 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11012 ;;
11013 *)
11014 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11015 for ac_dir in $PATH; do
11016 IFS="$ac_save_IFS"
11017 test -z "$ac_dir" && ac_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11020 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11021 (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
11022 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11023 break 2
11024 fi
11025 fi
11026 done
11027 done
11028 IFS="$ac_save_IFS"
11029 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11030 ;;
11031 esac
11032 fi
11033 XGETTEXT="$ac_cv_path_XGETTEXT"
11034 if test "$XGETTEXT" != ":"; then
11035 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11036 echo "${ECHO_T}$XGETTEXT" >&6
11037 else
11038 echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6
11040 fi
11041
11042 rm -f messages.po
11043
11044
11045 # Prepare PATH_SEPARATOR.
11046 # The user is always right.
11047 if test "${PATH_SEPARATOR+set}" != set; then
11048 echo "#! /bin/sh" >conf$$.sh
11049 echo "exit 0" >>conf$$.sh
11050 chmod +x conf$$.sh
11051 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11052 PATH_SEPARATOR=';'
11053 else
11054 PATH_SEPARATOR=:
11055 fi
11056 rm -f conf$$.sh
11057 fi
11058
11059 # Find out how to test for executable files. Don't use a zero-byte file,
11060 # as systems may use methods other than mode bits to determine executability.
11061 cat >conf$$.file <<_ASEOF
11062 #! /bin/sh
11063 exit 0
11064 _ASEOF
11065 chmod +x conf$$.file
11066 if test -x conf$$.file >/dev/null 2>&1; then
11067 ac_executable_p="test -x"
11068 else
11069 ac_executable_p="test -f"
11070 fi
11071 rm -f conf$$.file
11072
11073 # Extract the first word of "msgmerge", so it can be a program name with args.
11074 set dummy msgmerge; ac_word=$2
11075 echo "$as_me:$LINENO: checking for $ac_word" >&5
11076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11077 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080 case "$MSGMERGE" in
11081 [\\/]* | ?:[\\/]*)
11082 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11083 ;;
11084 *)
11085 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11086 for ac_dir in $PATH; do
11087 IFS="$ac_save_IFS"
11088 test -z "$ac_dir" && ac_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11091 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11092 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11093 break 2
11094 fi
11095 fi
11096 done
11097 done
11098 IFS="$ac_save_IFS"
11099 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11100 ;;
11101 esac
11102 fi
11103 MSGMERGE="$ac_cv_path_MSGMERGE"
11104 if test "$MSGMERGE" != ":"; then
11105 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11106 echo "${ECHO_T}$MSGMERGE" >&6
11107 else
11108 echo "$as_me:$LINENO: result: no" >&5
11109 echo "${ECHO_T}no" >&6
11110 fi
11111
11112
11113 if test "$GMSGFMT" != ":"; then
11114 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11115 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11116 : ;
11117 else
11118 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11119 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11120 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11121 GMSGFMT=":"
11122 fi
11123 fi
11124
11125 if test "$XGETTEXT" != ":"; then
11126 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11127 (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
11128 : ;
11129 else
11130 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11131 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11132 XGETTEXT=":"
11133 fi
11134 rm -f messages.po
11135 fi
11136
11137 ac_config_commands="$ac_config_commands default-1"
11138
11139
11140
11141 # Permit host specific settings.
11142 . ${srcdir}/configure.host
11143
11144
11145 # Find a good install program. We prefer a C program (faster),
11146 # so one script is as good as another. But avoid the broken or
11147 # incompatible versions:
11148 # SysV /etc/install, /usr/sbin/install
11149 # SunOS /usr/etc/install
11150 # IRIX /sbin/install
11151 # AIX /bin/install
11152 # AmigaOS /C/install, which installs bootblocks on floppy discs
11153 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11154 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11155 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11156 # OS/2's system install, which has a completely different semantic
11157 # ./install, which can be erroneously created by make from ./install.sh.
11158 # Reject install programs that cannot install multiple files.
11159 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11160 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11161 if test -z "$INSTALL"; then
11162 if test "${ac_cv_path_install+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166 for as_dir in $PATH
11167 do
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
11170 # Account for people who put trailing slashes in PATH elements.
11171 case $as_dir/ in
11172 ./ | .// | /cC/* | \
11173 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11174 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11175 /usr/ucb/* ) ;;
11176 *)
11177 # OSF1 and SCO ODT 3.0 have their own names for install.
11178 # Don't use installbsd from OSF since it installs stuff as root
11179 # by default.
11180 for ac_prog in ginstall scoinst install; do
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11183 if test $ac_prog = install &&
11184 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11185 # AIX install. It has an incompatible calling convention.
11186 :
11187 elif test $ac_prog = install &&
11188 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11189 # program-specific install script used by HP pwplus--don't use.
11190 :
11191 else
11192 rm -rf conftest.one conftest.two conftest.dir
11193 echo one > conftest.one
11194 echo two > conftest.two
11195 mkdir conftest.dir
11196 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11197 test -s conftest.one && test -s conftest.two &&
11198 test -s conftest.dir/conftest.one &&
11199 test -s conftest.dir/conftest.two
11200 then
11201 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11202 break 3
11203 fi
11204 fi
11205 fi
11206 done
11207 done
11208 ;;
11209 esac
11210 done
11211
11212 rm -rf conftest.one conftest.two conftest.dir
11213
11214 fi
11215 if test "${ac_cv_path_install+set}" = set; then
11216 INSTALL=$ac_cv_path_install
11217 else
11218 # As a last resort, use the slow shell script. Don't cache a
11219 # value for INSTALL within a source directory, because that will
11220 # break other packages using the cache if that directory is
11221 # removed, or if the value is a relative name.
11222 INSTALL=$ac_install_sh
11223 fi
11224 fi
11225 echo "$as_me:$LINENO: result: $INSTALL" >&5
11226 echo "${ECHO_T}$INSTALL" >&6
11227
11228 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11229 # It thinks the first close brace ends the variable substitution.
11230 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11231
11232 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11233
11234 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11235
11236
11237 BFD_HOST_64BIT_LONG=0
11238 BFD_HOST_64BIT_LONG_LONG=0
11239 BFD_HOST_64_BIT_DEFINED=0
11240 BFD_HOST_64_BIT=
11241 BFD_HOST_U_64_BIT=
11242 BFD_HOSTPTR_T="unsigned long"
11243
11244 echo "$as_me:$LINENO: checking for long long" >&5
11245 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11246 if test "${ac_cv_type_long_long+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 $ac_includes_default
11256 int
11257 main ()
11258 {
11259 if ((long long *) 0)
11260 return 0;
11261 if (sizeof (long long))
11262 return 0;
11263 ;
11264 return 0;
11265 }
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269 (eval $ac_compile) 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; } &&
11282 { ac_try='test -s conftest.$ac_objext'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_cv_type_long_long=yes
11289 else
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11292
11293 ac_cv_type_long_long=no
11294 fi
11295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11296 fi
11297 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11298 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11299
11300 echo "$as_me:$LINENO: checking size of long long" >&5
11301 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11302 if test "${ac_cv_sizeof_long_long+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305 if test "$ac_cv_type_long_long" = yes; then
11306 # The cast to unsigned long works around a bug in the HP C Compiler
11307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11309 # This bug is HP SR number 8606223364.
11310 if test "$cross_compiling" = yes; then
11311 # Depending upon the size, compute the lo and hi bounds.
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h. */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 $ac_includes_default
11319 int
11320 main ()
11321 {
11322 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11323 test_array [0] = 0
11324
11325 ;
11326 return 0;
11327 }
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try='test -s conftest.$ac_objext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 ac_lo=0 ac_mid=0
11351 while :; do
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 $ac_includes_default
11359 int
11360 main ()
11361 {
11362 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11363 test_array [0] = 0
11364
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 rm -f conftest.$ac_objext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11371 (eval $ac_compile) 2>conftest.er1
11372 ac_status=$?
11373 grep -v '^ *+' conftest.er1 >conftest.err
11374 rm -f conftest.er1
11375 cat conftest.err >&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; } &&
11384 { ac_try='test -s conftest.$ac_objext'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 ac_hi=$ac_mid; break
11391 else
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11394
11395 ac_lo=`expr $ac_mid + 1`
11396 if test $ac_lo -le $ac_mid; then
11397 ac_lo= ac_hi=
11398 break
11399 fi
11400 ac_mid=`expr 2 '*' $ac_mid + 1`
11401 fi
11402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11403 done
11404 else
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11407
11408 cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h. */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11414 $ac_includes_default
11415 int
11416 main ()
11417 {
11418 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11419 test_array [0] = 0
11420
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 rm -f conftest.$ac_objext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11427 (eval $ac_compile) 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try='test -s conftest.$ac_objext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_hi=-1 ac_mid=-1
11447 while :; do
11448 cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h. */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 $ac_includes_default
11455 int
11456 main ()
11457 {
11458 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11459 test_array [0] = 0
11460
11461 ;
11462 return 0;
11463 }
11464 _ACEOF
11465 rm -f conftest.$ac_objext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11467 (eval $ac_compile) 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest.$ac_objext'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 ac_lo=$ac_mid; break
11487 else
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11490
11491 ac_hi=`expr '(' $ac_mid ')' - 1`
11492 if test $ac_mid -le $ac_hi; then
11493 ac_lo= ac_hi=
11494 break
11495 fi
11496 ac_mid=`expr 2 '*' $ac_mid`
11497 fi
11498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11499 done
11500 else
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504 ac_lo= ac_hi=
11505 fi
11506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11507 fi
11508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11509 # Binary search between lo and hi bounds.
11510 while test "x$ac_lo" != "x$ac_hi"; do
11511 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h. */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 $ac_includes_default
11519 int
11520 main ()
11521 {
11522 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11523 test_array [0] = 0
11524
11525 ;
11526 return 0;
11527 }
11528 _ACEOF
11529 rm -f conftest.$ac_objext
11530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11531 (eval $ac_compile) 2>conftest.er1
11532 ac_status=$?
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
11538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest.$ac_objext'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; }; then
11550 ac_hi=$ac_mid
11551 else
11552 echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11554
11555 ac_lo=`expr '(' $ac_mid ')' + 1`
11556 fi
11557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11558 done
11559 case $ac_lo in
11560 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11561 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11562 See \`config.log' for more details." >&5
11563 echo "$as_me: error: cannot compute sizeof (long long), 77
11564 See \`config.log' for more details." >&2;}
11565 { (exit 1); exit 1; }; } ;;
11566 esac
11567 else
11568 if test "$cross_compiling" = yes; then
11569 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11570 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11571 { (exit 1); exit 1; }; }
11572 else
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 $ac_includes_default
11580 long longval () { return (long) (sizeof (long long)); }
11581 unsigned long ulongval () { return (long) (sizeof (long long)); }
11582 #include <stdio.h>
11583 #include <stdlib.h>
11584 int
11585 main ()
11586 {
11587
11588 FILE *f = fopen ("conftest.val", "w");
11589 if (! f)
11590 exit (1);
11591 if (((long) (sizeof (long long))) < 0)
11592 {
11593 long i = longval ();
11594 if (i != ((long) (sizeof (long long))))
11595 exit (1);
11596 fprintf (f, "%ld\n", i);
11597 }
11598 else
11599 {
11600 unsigned long i = ulongval ();
11601 if (i != ((long) (sizeof (long long))))
11602 exit (1);
11603 fprintf (f, "%lu\n", i);
11604 }
11605 exit (ferror (f) || fclose (f) != 0);
11606
11607 ;
11608 return 0;
11609 }
11610 _ACEOF
11611 rm -f conftest$ac_exeext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613 (eval $ac_link) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_sizeof_long_long=`cat conftest.val`
11623 else
11624 echo "$as_me: program exited with status $ac_status" >&5
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 ( exit $ac_status )
11629 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11630 See \`config.log' for more details." >&5
11631 echo "$as_me: error: cannot compute sizeof (long long), 77
11632 See \`config.log' for more details." >&2;}
11633 { (exit 1); exit 1; }; }
11634 fi
11635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11636 fi
11637 fi
11638 rm -f conftest.val
11639 else
11640 ac_cv_sizeof_long_long=0
11641 fi
11642 fi
11643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11644 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11645 cat >>confdefs.h <<_ACEOF
11646 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11647 _ACEOF
11648
11649
11650 echo "$as_me:$LINENO: checking for void *" >&5
11651 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11652 if test "${ac_cv_type_void_p+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655 cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h. */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 $ac_includes_default
11662 int
11663 main ()
11664 {
11665 if ((void * *) 0)
11666 return 0;
11667 if (sizeof (void *))
11668 return 0;
11669 ;
11670 return 0;
11671 }
11672 _ACEOF
11673 rm -f conftest.$ac_objext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675 (eval $ac_compile) 2>conftest.er1
11676 ac_status=$?
11677 grep -v '^ *+' conftest.er1 >conftest.err
11678 rm -f conftest.er1
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest.$ac_objext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 ac_cv_type_void_p=yes
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 ac_cv_type_void_p=no
11700 fi
11701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11702 fi
11703 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11704 echo "${ECHO_T}$ac_cv_type_void_p" >&6
11705
11706 echo "$as_me:$LINENO: checking size of void *" >&5
11707 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11708 if test "${ac_cv_sizeof_void_p+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711 if test "$ac_cv_type_void_p" = yes; then
11712 # The cast to unsigned long works around a bug in the HP C Compiler
11713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11715 # This bug is HP SR number 8606223364.
11716 if test "$cross_compiling" = yes; then
11717 # Depending upon the size, compute the lo and hi bounds.
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h. */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 $ac_includes_default
11725 int
11726 main ()
11727 {
11728 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11729 test_array [0] = 0
11730
11731 ;
11732 return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737 (eval $ac_compile) 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11747 ac_status=$?
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; } &&
11750 { ac_try='test -s conftest.$ac_objext'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }; then
11756 ac_lo=0 ac_mid=0
11757 while :; do
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h. */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 $ac_includes_default
11765 int
11766 main ()
11767 {
11768 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11769 test_array [0] = 0
11770
11771 ;
11772 return 0;
11773 }
11774 _ACEOF
11775 rm -f conftest.$ac_objext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11777 (eval $ac_compile) 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; } &&
11790 { ac_try='test -s conftest.$ac_objext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 ac_hi=$ac_mid; break
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 ac_lo=`expr $ac_mid + 1`
11802 if test $ac_lo -le $ac_mid; then
11803 ac_lo= ac_hi=
11804 break
11805 fi
11806 ac_mid=`expr 2 '*' $ac_mid + 1`
11807 fi
11808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11809 done
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 $ac_includes_default
11821 int
11822 main ()
11823 {
11824 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11825 test_array [0] = 0
11826
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 rm -f conftest.$ac_objext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11833 (eval $ac_compile) 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try='test -s conftest.$ac_objext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_hi=-1 ac_mid=-1
11853 while :; do
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 $ac_includes_default
11861 int
11862 main ()
11863 {
11864 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11865 test_array [0] = 0
11866
11867 ;
11868 return 0;
11869 }
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873 (eval $ac_compile) 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; } &&
11886 { ac_try='test -s conftest.$ac_objext'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 ac_lo=$ac_mid; break
11893 else
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897 ac_hi=`expr '(' $ac_mid ')' - 1`
11898 if test $ac_mid -le $ac_hi; then
11899 ac_lo= ac_hi=
11900 break
11901 fi
11902 ac_mid=`expr 2 '*' $ac_mid`
11903 fi
11904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11905 done
11906 else
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 ac_lo= ac_hi=
11911 fi
11912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11913 fi
11914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11915 # Binary search between lo and hi bounds.
11916 while test "x$ac_lo" != "x$ac_hi"; do
11917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11918 cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h. */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 $ac_includes_default
11925 int
11926 main ()
11927 {
11928 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11929 test_array [0] = 0
11930
11931 ;
11932 return 0;
11933 }
11934 _ACEOF
11935 rm -f conftest.$ac_objext
11936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11937 (eval $ac_compile) 2>conftest.er1
11938 ac_status=$?
11939 grep -v '^ *+' conftest.er1 >conftest.err
11940 rm -f conftest.er1
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
11944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest.$ac_objext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_hi=$ac_mid
11957 else
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11960
11961 ac_lo=`expr '(' $ac_mid ')' + 1`
11962 fi
11963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11964 done
11965 case $ac_lo in
11966 ?*) ac_cv_sizeof_void_p=$ac_lo;;
11967 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
11968 See \`config.log' for more details." >&5
11969 echo "$as_me: error: cannot compute sizeof (void *), 77
11970 See \`config.log' for more details." >&2;}
11971 { (exit 1); exit 1; }; } ;;
11972 esac
11973 else
11974 if test "$cross_compiling" = yes; then
11975 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11976 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11977 { (exit 1); exit 1; }; }
11978 else
11979 cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h. */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 $ac_includes_default
11986 long longval () { return (long) (sizeof (void *)); }
11987 unsigned long ulongval () { return (long) (sizeof (void *)); }
11988 #include <stdio.h>
11989 #include <stdlib.h>
11990 int
11991 main ()
11992 {
11993
11994 FILE *f = fopen ("conftest.val", "w");
11995 if (! f)
11996 exit (1);
11997 if (((long) (sizeof (void *))) < 0)
11998 {
11999 long i = longval ();
12000 if (i != ((long) (sizeof (void *))))
12001 exit (1);
12002 fprintf (f, "%ld\n", i);
12003 }
12004 else
12005 {
12006 unsigned long i = ulongval ();
12007 if (i != ((long) (sizeof (void *))))
12008 exit (1);
12009 fprintf (f, "%lu\n", i);
12010 }
12011 exit (ferror (f) || fclose (f) != 0);
12012
12013 ;
12014 return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_sizeof_void_p=`cat conftest.val`
12029 else
12030 echo "$as_me: program exited with status $ac_status" >&5
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 ( exit $ac_status )
12035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12036 See \`config.log' for more details." >&5
12037 echo "$as_me: error: cannot compute sizeof (void *), 77
12038 See \`config.log' for more details." >&2;}
12039 { (exit 1); exit 1; }; }
12040 fi
12041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12042 fi
12043 fi
12044 rm -f conftest.val
12045 else
12046 ac_cv_sizeof_void_p=0
12047 fi
12048 fi
12049 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12050 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12051 cat >>confdefs.h <<_ACEOF
12052 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12053 _ACEOF
12054
12055
12056 echo "$as_me:$LINENO: checking for long" >&5
12057 echo $ECHO_N "checking for long... $ECHO_C" >&6
12058 if test "${ac_cv_type_long+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061 cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h. */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 $ac_includes_default
12068 int
12069 main ()
12070 {
12071 if ((long *) 0)
12072 return 0;
12073 if (sizeof (long))
12074 return 0;
12075 ;
12076 return 0;
12077 }
12078 _ACEOF
12079 rm -f conftest.$ac_objext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12081 (eval $ac_compile) 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12100 ac_cv_type_long=yes
12101 else
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12104
12105 ac_cv_type_long=no
12106 fi
12107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12108 fi
12109 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12110 echo "${ECHO_T}$ac_cv_type_long" >&6
12111
12112 echo "$as_me:$LINENO: checking size of long" >&5
12113 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12114 if test "${ac_cv_sizeof_long+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117 if test "$ac_cv_type_long" = yes; then
12118 # The cast to unsigned long works around a bug in the HP C Compiler
12119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12121 # This bug is HP SR number 8606223364.
12122 if test "$cross_compiling" = yes; then
12123 # Depending upon the size, compute the lo and hi bounds.
12124 cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h. */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130 $ac_includes_default
12131 int
12132 main ()
12133 {
12134 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12135 test_array [0] = 0
12136
12137 ;
12138 return 0;
12139 }
12140 _ACEOF
12141 rm -f conftest.$ac_objext
12142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12143 (eval $ac_compile) 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest.$ac_objext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 ac_lo=0 ac_mid=0
12163 while :; do
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 $ac_includes_default
12171 int
12172 main ()
12173 {
12174 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12175 test_array [0] = 0
12176
12177 ;
12178 return 0;
12179 }
12180 _ACEOF
12181 rm -f conftest.$ac_objext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
12190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_hi=$ac_mid; break
12203 else
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12206
12207 ac_lo=`expr $ac_mid + 1`
12208 if test $ac_lo -le $ac_mid; then
12209 ac_lo= ac_hi=
12210 break
12211 fi
12212 ac_mid=`expr 2 '*' $ac_mid + 1`
12213 fi
12214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215 done
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12219
12220 cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h. */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 $ac_includes_default
12227 int
12228 main ()
12229 {
12230 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12231 test_array [0] = 0
12232
12233 ;
12234 return 0;
12235 }
12236 _ACEOF
12237 rm -f conftest.$ac_objext
12238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12239 (eval $ac_compile) 2>conftest.er1
12240 ac_status=$?
12241 grep -v '^ *+' conftest.er1 >conftest.err
12242 rm -f conftest.er1
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
12246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12249 ac_status=$?
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; } &&
12252 { ac_try='test -s conftest.$ac_objext'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; }; then
12258 ac_hi=-1 ac_mid=-1
12259 while :; do
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h. */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 $ac_includes_default
12267 int
12268 main ()
12269 {
12270 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12271 test_array [0] = 0
12272
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try='test -s conftest.$ac_objext'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; }; then
12298 ac_lo=$ac_mid; break
12299 else
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12302
12303 ac_hi=`expr '(' $ac_mid ')' - 1`
12304 if test $ac_mid -le $ac_hi; then
12305 ac_lo= ac_hi=
12306 break
12307 fi
12308 ac_mid=`expr 2 '*' $ac_mid`
12309 fi
12310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12311 done
12312 else
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12315
12316 ac_lo= ac_hi=
12317 fi
12318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12319 fi
12320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12321 # Binary search between lo and hi bounds.
12322 while test "x$ac_lo" != "x$ac_hi"; do
12323 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12324 cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h. */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 $ac_includes_default
12331 int
12332 main ()
12333 {
12334 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12335 test_array [0] = 0
12336
12337 ;
12338 return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343 (eval $ac_compile) 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest.$ac_objext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_hi=$ac_mid
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 ac_lo=`expr '(' $ac_mid ')' + 1`
12368 fi
12369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12370 done
12371 case $ac_lo in
12372 ?*) ac_cv_sizeof_long=$ac_lo;;
12373 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12374 See \`config.log' for more details." >&5
12375 echo "$as_me: error: cannot compute sizeof (long), 77
12376 See \`config.log' for more details." >&2;}
12377 { (exit 1); exit 1; }; } ;;
12378 esac
12379 else
12380 if test "$cross_compiling" = yes; then
12381 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12382 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12383 { (exit 1); exit 1; }; }
12384 else
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h. */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 $ac_includes_default
12392 long longval () { return (long) (sizeof (long)); }
12393 unsigned long ulongval () { return (long) (sizeof (long)); }
12394 #include <stdio.h>
12395 #include <stdlib.h>
12396 int
12397 main ()
12398 {
12399
12400 FILE *f = fopen ("conftest.val", "w");
12401 if (! f)
12402 exit (1);
12403 if (((long) (sizeof (long))) < 0)
12404 {
12405 long i = longval ();
12406 if (i != ((long) (sizeof (long))))
12407 exit (1);
12408 fprintf (f, "%ld\n", i);
12409 }
12410 else
12411 {
12412 unsigned long i = ulongval ();
12413 if (i != ((long) (sizeof (long))))
12414 exit (1);
12415 fprintf (f, "%lu\n", i);
12416 }
12417 exit (ferror (f) || fclose (f) != 0);
12418
12419 ;
12420 return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest$ac_exeext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12425 (eval $ac_link) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 ac_cv_sizeof_long=`cat conftest.val`
12435 else
12436 echo "$as_me: program exited with status $ac_status" >&5
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440 ( exit $ac_status )
12441 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12442 See \`config.log' for more details." >&5
12443 echo "$as_me: error: cannot compute sizeof (long), 77
12444 See \`config.log' for more details." >&2;}
12445 { (exit 1); exit 1; }; }
12446 fi
12447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12448 fi
12449 fi
12450 rm -f conftest.val
12451 else
12452 ac_cv_sizeof_long=0
12453 fi
12454 fi
12455 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12456 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12457 cat >>confdefs.h <<_ACEOF
12458 #define SIZEOF_LONG $ac_cv_sizeof_long
12459 _ACEOF
12460
12461
12462
12463 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12464 host64=true
12465 fi
12466
12467 if test "x${ac_cv_sizeof_long}" = "x8"; then
12468 BFD_HOST_64BIT_LONG=1
12469 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12470 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12471 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12472 BFD_HOST_64BIT_LONG_LONG=1
12473 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12474 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12475 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12476 BFD_HOSTPTR_T="unsigned long long"
12477 fi
12478 fi
12479
12480 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12481 BFD_HOST_64_BIT_DEFINED=1
12482 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12483 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12484 fi
12485
12486
12487
12488
12489
12490
12491
12492
12493 # Put a plausible default for CC_FOR_BUILD in Makefile.
12494 if test -z "$CC_FOR_BUILD"; then
12495 if test "x$cross_compiling" = "xno"; then
12496 CC_FOR_BUILD='$(CC)'
12497 else
12498 CC_FOR_BUILD=gcc
12499 fi
12500 fi
12501
12502 # Also set EXEEXT_FOR_BUILD.
12503 if test "x$cross_compiling" = "xno"; then
12504 EXEEXT_FOR_BUILD='$(EXEEXT)'
12505 else
12506 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12507 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12508 if test "${bfd_cv_build_exeext+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511 rm -f conftest*
12512 echo 'int main () { return 0; }' > conftest.c
12513 bfd_cv_build_exeext=
12514 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12515 for file in conftest.*; do
12516 case $file in
12517 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12518 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12519 esac
12520 done
12521 rm -f conftest*
12522 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12523 fi
12524 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12525 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12526 EXEEXT_FOR_BUILD=""
12527 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12528 fi
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12539 do
12540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12542 echo "$as_me:$LINENO: checking for $ac_header" >&5
12543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 fi
12547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12549 else
12550 # Is the header compilable?
12551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 $ac_includes_default
12560 #include <$ac_header>
12561 _ACEOF
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564 (eval $ac_compile) 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } &&
12577 { ac_try='test -s conftest.$ac_objext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 ac_header_compiler=yes
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12587
12588 ac_header_compiler=no
12589 fi
12590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12592 echo "${ECHO_T}$ac_header_compiler" >&6
12593
12594 # Is the header present?
12595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 #include <$ac_header>
12604 _ACEOF
12605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } >/dev/null; then
12613 if test -s conftest.err; then
12614 ac_cpp_err=$ac_c_preproc_warn_flag
12615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12616 else
12617 ac_cpp_err=
12618 fi
12619 else
12620 ac_cpp_err=yes
12621 fi
12622 if test -z "$ac_cpp_err"; then
12623 ac_header_preproc=yes
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12627
12628 ac_header_preproc=no
12629 fi
12630 rm -f conftest.err conftest.$ac_ext
12631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12632 echo "${ECHO_T}$ac_header_preproc" >&6
12633
12634 # So? What about this header?
12635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12636 yes:no: )
12637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12641 ac_header_preproc=yes
12642 ;;
12643 no:yes:* )
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12656 (
12657 cat <<\_ASBOX
12658 ## ------------------------------------------ ##
12659 ## Report this to the AC_PACKAGE_NAME lists. ##
12660 ## ------------------------------------------ ##
12661 _ASBOX
12662 ) |
12663 sed "s/^/$as_me: WARNING: /" >&2
12664 ;;
12665 esac
12666 echo "$as_me:$LINENO: checking for $ac_header" >&5
12667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12671 eval "$as_ac_Header=\$ac_header_preproc"
12672 fi
12673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12675
12676 fi
12677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12678 cat >>confdefs.h <<_ACEOF
12679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12680 _ACEOF
12681
12682 fi
12683
12684 done
12685
12686
12687
12688
12689 for ac_header in fcntl.h sys/file.h sys/time.h
12690 do
12691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12693 echo "$as_me:$LINENO: checking for $ac_header" >&5
12694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 fi
12698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12700 else
12701 # Is the header compilable?
12702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12704 cat >conftest.$ac_ext <<_ACEOF
12705 /* confdefs.h. */
12706 _ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12710 $ac_includes_default
12711 #include <$ac_header>
12712 _ACEOF
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715 (eval $ac_compile) 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } &&
12728 { ac_try='test -s conftest.$ac_objext'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 ac_header_compiler=yes
12735 else
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739 ac_header_compiler=no
12740 fi
12741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12743 echo "${ECHO_T}$ac_header_compiler" >&6
12744
12745 # Is the header present?
12746 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h. */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 #include <$ac_header>
12755 _ACEOF
12756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } >/dev/null; then
12764 if test -s conftest.err; then
12765 ac_cpp_err=$ac_c_preproc_warn_flag
12766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12767 else
12768 ac_cpp_err=
12769 fi
12770 else
12771 ac_cpp_err=yes
12772 fi
12773 if test -z "$ac_cpp_err"; then
12774 ac_header_preproc=yes
12775 else
12776 echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12778
12779 ac_header_preproc=no
12780 fi
12781 rm -f conftest.err conftest.$ac_ext
12782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12783 echo "${ECHO_T}$ac_header_preproc" >&6
12784
12785 # So? What about this header?
12786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12787 yes:no: )
12788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12792 ac_header_preproc=yes
12793 ;;
12794 no:yes:* )
12795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12807 (
12808 cat <<\_ASBOX
12809 ## ------------------------------------------ ##
12810 ## Report this to the AC_PACKAGE_NAME lists. ##
12811 ## ------------------------------------------ ##
12812 _ASBOX
12813 ) |
12814 sed "s/^/$as_me: WARNING: /" >&2
12815 ;;
12816 esac
12817 echo "$as_me:$LINENO: checking for $ac_header" >&5
12818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822 eval "$as_ac_Header=\$ac_header_preproc"
12823 fi
12824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12826
12827 fi
12828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12829 cat >>confdefs.h <<_ACEOF
12830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12831 _ACEOF
12832
12833 fi
12834
12835 done
12836
12837
12838
12839 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12840
12841 acx_cv_header_stdint=stddef.h
12842 acx_cv_header_stdint_kind="(already complete)"
12843 for i in stdint.h $inttype_headers; do
12844 unset ac_cv_type_uintptr_t
12845 unset ac_cv_type_uintmax_t
12846 unset ac_cv_type_int_least32_t
12847 unset ac_cv_type_int_fast32_t
12848 unset ac_cv_type_uint64_t
12849 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12850 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12851 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12852 if test "${ac_cv_type_uintmax_t+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855 cat >conftest.$ac_ext <<_ACEOF
12856 /* confdefs.h. */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861 #include <sys/types.h>
12862 #include <$i>
12863
12864 int
12865 main ()
12866 {
12867 if ((uintmax_t *) 0)
12868 return 0;
12869 if (sizeof (uintmax_t))
12870 return 0;
12871 ;
12872 return 0;
12873 }
12874 _ACEOF
12875 rm -f conftest.$ac_objext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877 (eval $ac_compile) 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_type_uintmax_t=yes
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 ac_cv_type_uintmax_t=no
12902 fi
12903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904 fi
12905 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12906 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12907 if test $ac_cv_type_uintmax_t = yes; then
12908 acx_cv_header_stdint=$i
12909 else
12910 continue
12911 fi
12912
12913 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12914 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12915 if test "${ac_cv_type_uintptr_t+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918 cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h. */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12924 #include <sys/types.h>
12925 #include <$i>
12926
12927 int
12928 main ()
12929 {
12930 if ((uintptr_t *) 0)
12931 return 0;
12932 if (sizeof (uintptr_t))
12933 return 0;
12934 ;
12935 return 0;
12936 }
12937 _ACEOF
12938 rm -f conftest.$ac_objext
12939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12940 (eval $ac_compile) 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } &&
12947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; } &&
12953 { ac_try='test -s conftest.$ac_objext'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12959 ac_cv_type_uintptr_t=yes
12960 else
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964 ac_cv_type_uintptr_t=no
12965 fi
12966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12967 fi
12968 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12969 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12970 if test $ac_cv_type_uintptr_t = yes; then
12971 :
12972 else
12973 acx_cv_header_stdint_kind="(mostly complete)"
12974 fi
12975
12976 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12977 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12978 if test "${ac_cv_type_int_least32_t+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 cat >conftest.$ac_ext <<_ACEOF
12982 /* confdefs.h. */
12983 _ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12987 #include <sys/types.h>
12988 #include <$i>
12989
12990 int
12991 main ()
12992 {
12993 if ((int_least32_t *) 0)
12994 return 0;
12995 if (sizeof (int_least32_t))
12996 return 0;
12997 ;
12998 return 0;
12999 }
13000 _ACEOF
13001 rm -f conftest.$ac_objext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13003 (eval $ac_compile) 2>conftest.er1
13004 ac_status=$?
13005 grep -v '^ *+' conftest.er1 >conftest.err
13006 rm -f conftest.er1
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
13010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest.$ac_objext'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13019 ac_status=$?
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13022 ac_cv_type_int_least32_t=yes
13023 else
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13026
13027 ac_cv_type_int_least32_t=no
13028 fi
13029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13030 fi
13031 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13032 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13033 if test $ac_cv_type_int_least32_t = yes; then
13034 :
13035 else
13036 acx_cv_header_stdint_kind="(mostly complete)"
13037 fi
13038
13039 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13040 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13041 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044 cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h. */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 #include <sys/types.h>
13051 #include <$i>
13052
13053 int
13054 main ()
13055 {
13056 if ((int_fast32_t *) 0)
13057 return 0;
13058 if (sizeof (int_fast32_t))
13059 return 0;
13060 ;
13061 return 0;
13062 }
13063 _ACEOF
13064 rm -f conftest.$ac_objext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13066 (eval $ac_compile) 2>conftest.er1
13067 ac_status=$?
13068 grep -v '^ *+' conftest.er1 >conftest.err
13069 rm -f conftest.er1
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest.$ac_objext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_cv_type_int_fast32_t=yes
13086 else
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090 ac_cv_type_int_fast32_t=no
13091 fi
13092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13093 fi
13094 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13095 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13096 if test $ac_cv_type_int_fast32_t = yes; then
13097 :
13098 else
13099 acx_cv_header_stdint_kind="(mostly complete)"
13100 fi
13101
13102 echo "$as_me:$LINENO: checking for uint64_t" >&5
13103 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13104 if test "${ac_cv_type_uint64_t+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 #include <sys/types.h>
13114 #include <$i>
13115
13116 int
13117 main ()
13118 {
13119 if ((uint64_t *) 0)
13120 return 0;
13121 if (sizeof (uint64_t))
13122 return 0;
13123 ;
13124 return 0;
13125 }
13126 _ACEOF
13127 rm -f conftest.$ac_objext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13129 (eval $ac_compile) 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest.$ac_objext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_type_uint64_t=yes
13149 else
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153 ac_cv_type_uint64_t=no
13154 fi
13155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13156 fi
13157 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13158 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13159 if test $ac_cv_type_uint64_t = yes; then
13160 :
13161 else
13162 acx_cv_header_stdint_kind="(lacks uint64_t)"
13163 fi
13164
13165 break
13166 done
13167 if test "$acx_cv_header_stdint" = stddef.h; then
13168 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13169 for i in stdint.h $inttype_headers; do
13170 unset ac_cv_type_uintptr_t
13171 unset ac_cv_type_uint32_t
13172 unset ac_cv_type_uint64_t
13173 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13174 echo "$as_me:$LINENO: checking for uint32_t" >&5
13175 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13176 if test "${ac_cv_type_uint32_t+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13179 cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h. */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 #include <sys/types.h>
13186 #include <$i>
13187
13188 int
13189 main ()
13190 {
13191 if ((uint32_t *) 0)
13192 return 0;
13193 if (sizeof (uint32_t))
13194 return 0;
13195 ;
13196 return 0;
13197 }
13198 _ACEOF
13199 rm -f conftest.$ac_objext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201 (eval $ac_compile) 2>conftest.er1
13202 ac_status=$?
13203 grep -v '^ *+' conftest.er1 >conftest.err
13204 rm -f conftest.er1
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } &&
13214 { ac_try='test -s conftest.$ac_objext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_type_uint32_t=yes
13221 else
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 ac_cv_type_uint32_t=no
13226 fi
13227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13228 fi
13229 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13230 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13231 if test $ac_cv_type_uint32_t = yes; then
13232 acx_cv_header_stdint=$i
13233 else
13234 continue
13235 fi
13236
13237 echo "$as_me:$LINENO: checking for uint64_t" >&5
13238 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13239 if test "${ac_cv_type_uint64_t+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h. */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 #include <sys/types.h>
13249 #include <$i>
13250
13251 int
13252 main ()
13253 {
13254 if ((uint64_t *) 0)
13255 return 0;
13256 if (sizeof (uint64_t))
13257 return 0;
13258 ;
13259 return 0;
13260 }
13261 _ACEOF
13262 rm -f conftest.$ac_objext
13263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13264 (eval $ac_compile) 2>conftest.er1
13265 ac_status=$?
13266 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13274 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; } &&
13277 { ac_try='test -s conftest.$ac_objext'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; }; then
13283 ac_cv_type_uint64_t=yes
13284 else
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13287
13288 ac_cv_type_uint64_t=no
13289 fi
13290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13291 fi
13292 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13293 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13294
13295 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13296 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13297 if test "${ac_cv_type_uintptr_t+set}" = set; then
13298 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 else
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h. */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13306 #include <sys/types.h>
13307 #include <$i>
13308
13309 int
13310 main ()
13311 {
13312 if ((uintptr_t *) 0)
13313 return 0;
13314 if (sizeof (uintptr_t))
13315 return 0;
13316 ;
13317 return 0;
13318 }
13319 _ACEOF
13320 rm -f conftest.$ac_objext
13321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13322 (eval $ac_compile) 2>conftest.er1
13323 ac_status=$?
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; } &&
13335 { ac_try='test -s conftest.$ac_objext'
13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; }; then
13341 ac_cv_type_uintptr_t=yes
13342 else
13343 echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13345
13346 ac_cv_type_uintptr_t=no
13347 fi
13348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13349 fi
13350 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13351 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13352
13353 break
13354 done
13355 fi
13356 if test "$acx_cv_header_stdint" = stddef.h; then
13357 acx_cv_header_stdint_kind="(u_intXX_t style)"
13358 for i in sys/types.h $inttype_headers; do
13359 unset ac_cv_type_u_int32_t
13360 unset ac_cv_type_u_int64_t
13361 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13362 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13363 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13364 if test "${ac_cv_type_u_int32_t+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367 cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h. */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 #include <sys/types.h>
13374 #include <$i>
13375
13376 int
13377 main ()
13378 {
13379 if ((u_int32_t *) 0)
13380 return 0;
13381 if (sizeof (u_int32_t))
13382 return 0;
13383 ;
13384 return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13389 (eval $ac_compile) 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest.$ac_objext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_type_u_int32_t=yes
13409 else
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413 ac_cv_type_u_int32_t=no
13414 fi
13415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13416 fi
13417 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13418 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13419 if test $ac_cv_type_u_int32_t = yes; then
13420 acx_cv_header_stdint=$i
13421 else
13422 continue
13423 fi
13424
13425 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13426 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13427 if test "${ac_cv_type_u_int64_t+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430 cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h. */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 #include <sys/types.h>
13437 #include <$i>
13438
13439 int
13440 main ()
13441 {
13442 if ((u_int64_t *) 0)
13443 return 0;
13444 if (sizeof (u_int64_t))
13445 return 0;
13446 ;
13447 return 0;
13448 }
13449 _ACEOF
13450 rm -f conftest.$ac_objext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452 (eval $ac_compile) 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; } &&
13465 { ac_try='test -s conftest.$ac_objext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_cv_type_u_int64_t=yes
13472 else
13473 echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476 ac_cv_type_u_int64_t=no
13477 fi
13478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13479 fi
13480 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13481 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13482
13483 break
13484 done
13485 fi
13486 if test "$acx_cv_header_stdint" = stddef.h; then
13487 acx_cv_header_stdint_kind="(using manual detection)"
13488 fi
13489
13490 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13491 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13492 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13493 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13494 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13495
13496 # ----------------- Summarize what we found so far
13497
13498 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13499 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13500
13501 case `$as_basename bfd_stdint.h ||
13502 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13503 Xbfd_stdint.h : 'X\(//\)$' \| \
13504 Xbfd_stdint.h : 'X\(/\)$' \| \
13505 . : '\(.\)' 2>/dev/null ||
13506 echo X/bfd_stdint.h |
13507 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13508 /^X\/\(\/\/\)$/{ s//\1/; q; }
13509 /^X\/\(\/\).*/{ s//\1/; q; }
13510 s/.*/./; q'` in
13511 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13512 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13513 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13514 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13515 *) ;;
13516 esac
13517
13518 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13519 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13520
13521 # ----------------- done included file, check C basic types --------
13522
13523 # Lacking an uintptr_t? Test size of void *
13524 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13525 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13526 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13527 if test "${ac_cv_type_void_p+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 else
13530 cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h. */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13536 $ac_includes_default
13537 int
13538 main ()
13539 {
13540 if ((void * *) 0)
13541 return 0;
13542 if (sizeof (void *))
13543 return 0;
13544 ;
13545 return 0;
13546 }
13547 _ACEOF
13548 rm -f conftest.$ac_objext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550 (eval $ac_compile) 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
13557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest.$ac_objext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 ac_cv_type_void_p=yes
13570 else
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13573
13574 ac_cv_type_void_p=no
13575 fi
13576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13577 fi
13578 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13579 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13580
13581 echo "$as_me:$LINENO: checking size of void *" >&5
13582 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13583 if test "${ac_cv_sizeof_void_p+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 if test "$ac_cv_type_void_p" = yes; then
13587 # The cast to unsigned long works around a bug in the HP C Compiler
13588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13590 # This bug is HP SR number 8606223364.
13591 if test "$cross_compiling" = yes; then
13592 # Depending upon the size, compute the lo and hi bounds.
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 $ac_includes_default
13600 int
13601 main ()
13602 {
13603 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13604 test_array [0] = 0
13605
13606 ;
13607 return 0;
13608 }
13609 _ACEOF
13610 rm -f conftest.$ac_objext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13612 (eval $ac_compile) 2>conftest.er1
13613 ac_status=$?
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } &&
13625 { ac_try='test -s conftest.$ac_objext'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 ac_lo=0 ac_mid=0
13632 while :; do
13633 cat >conftest.$ac_ext <<_ACEOF
13634 /* confdefs.h. */
13635 _ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13639 $ac_includes_default
13640 int
13641 main ()
13642 {
13643 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13644 test_array [0] = 0
13645
13646 ;
13647 return 0;
13648 }
13649 _ACEOF
13650 rm -f conftest.$ac_objext
13651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13652 (eval $ac_compile) 2>conftest.er1
13653 ac_status=$?
13654 grep -v '^ *+' conftest.er1 >conftest.err
13655 rm -f conftest.er1
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; } &&
13665 { ac_try='test -s conftest.$ac_objext'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 ac_hi=$ac_mid; break
13672 else
13673 echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 ac_lo=`expr $ac_mid + 1`
13677 if test $ac_lo -le $ac_mid; then
13678 ac_lo= ac_hi=
13679 break
13680 fi
13681 ac_mid=`expr 2 '*' $ac_mid + 1`
13682 fi
13683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684 done
13685 else
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h. */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 $ac_includes_default
13696 int
13697 main ()
13698 {
13699 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13700 test_array [0] = 0
13701
13702 ;
13703 return 0;
13704 }
13705 _ACEOF
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708 (eval $ac_compile) 2>conftest.er1
13709 ac_status=$?
13710 grep -v '^ *+' conftest.er1 >conftest.err
13711 rm -f conftest.er1
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 ac_hi=-1 ac_mid=-1
13728 while :; do
13729 cat >conftest.$ac_ext <<_ACEOF
13730 /* confdefs.h. */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13735 $ac_includes_default
13736 int
13737 main ()
13738 {
13739 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13740 test_array [0] = 0
13741
13742 ;
13743 return 0;
13744 }
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748 (eval $ac_compile) 2>conftest.er1
13749 ac_status=$?
13750 grep -v '^ *+' conftest.er1 >conftest.err
13751 rm -f conftest.er1
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_lo=$ac_mid; break
13768 else
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772 ac_hi=`expr '(' $ac_mid ')' - 1`
13773 if test $ac_mid -le $ac_hi; then
13774 ac_lo= ac_hi=
13775 break
13776 fi
13777 ac_mid=`expr 2 '*' $ac_mid`
13778 fi
13779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13780 done
13781 else
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785 ac_lo= ac_hi=
13786 fi
13787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13788 fi
13789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13790 # Binary search between lo and hi bounds.
13791 while test "x$ac_lo" != "x$ac_hi"; do
13792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13793 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 $ac_includes_default
13800 int
13801 main ()
13802 {
13803 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13804 test_array [0] = 0
13805
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 rm -f conftest.$ac_objext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13812 (eval $ac_compile) 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest.$ac_objext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_hi=$ac_mid
13832 else
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13835
13836 ac_lo=`expr '(' $ac_mid ')' + 1`
13837 fi
13838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13839 done
13840 case $ac_lo in
13841 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13842 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13843 See \`config.log' for more details." >&5
13844 echo "$as_me: error: cannot compute sizeof (void *), 77
13845 See \`config.log' for more details." >&2;}
13846 { (exit 1); exit 1; }; } ;;
13847 esac
13848 else
13849 if test "$cross_compiling" = yes; then
13850 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13851 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13852 { (exit 1); exit 1; }; }
13853 else
13854 cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h. */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 $ac_includes_default
13861 long longval () { return (long) (sizeof (void *)); }
13862 unsigned long ulongval () { return (long) (sizeof (void *)); }
13863 #include <stdio.h>
13864 #include <stdlib.h>
13865 int
13866 main ()
13867 {
13868
13869 FILE *f = fopen ("conftest.val", "w");
13870 if (! f)
13871 exit (1);
13872 if (((long) (sizeof (void *))) < 0)
13873 {
13874 long i = longval ();
13875 if (i != ((long) (sizeof (void *))))
13876 exit (1);
13877 fprintf (f, "%ld\n", i);
13878 }
13879 else
13880 {
13881 unsigned long i = ulongval ();
13882 if (i != ((long) (sizeof (void *))))
13883 exit (1);
13884 fprintf (f, "%lu\n", i);
13885 }
13886 exit (ferror (f) || fclose (f) != 0);
13887
13888 ;
13889 return 0;
13890 }
13891 _ACEOF
13892 rm -f conftest$ac_exeext
13893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13894 (eval $ac_link) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 ac_cv_sizeof_void_p=`cat conftest.val`
13904 else
13905 echo "$as_me: program exited with status $ac_status" >&5
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909 ( exit $ac_status )
13910 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13911 See \`config.log' for more details." >&5
13912 echo "$as_me: error: cannot compute sizeof (void *), 77
13913 See \`config.log' for more details." >&2;}
13914 { (exit 1); exit 1; }; }
13915 fi
13916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13917 fi
13918 fi
13919 rm -f conftest.val
13920 else
13921 ac_cv_sizeof_void_p=0
13922 fi
13923 fi
13924 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13925 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13926 cat >>confdefs.h <<_ACEOF
13927 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13928 _ACEOF
13929
13930 ;;
13931 esac
13932
13933 # Lacking an uint64_t? Test size of long
13934 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13935 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13936 echo $ECHO_N "checking for long... $ECHO_C" >&6
13937 if test "${ac_cv_type_long+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940 cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h. */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 $ac_includes_default
13947 int
13948 main ()
13949 {
13950 if ((long *) 0)
13951 return 0;
13952 if (sizeof (long))
13953 return 0;
13954 ;
13955 return 0;
13956 }
13957 _ACEOF
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>conftest.er1
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
13973 { ac_try='test -s conftest.$ac_objext'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 ac_cv_type_long=yes
13980 else
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13983
13984 ac_cv_type_long=no
13985 fi
13986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13987 fi
13988 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13989 echo "${ECHO_T}$ac_cv_type_long" >&6
13990
13991 echo "$as_me:$LINENO: checking size of long" >&5
13992 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13993 if test "${ac_cv_sizeof_long+set}" = set; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 else
13996 if test "$ac_cv_type_long" = yes; then
13997 # The cast to unsigned long works around a bug in the HP C Compiler
13998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14000 # This bug is HP SR number 8606223364.
14001 if test "$cross_compiling" = yes; then
14002 # Depending upon the size, compute the lo and hi bounds.
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 $ac_includes_default
14010 int
14011 main ()
14012 {
14013 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14014 test_array [0] = 0
14015
14016 ;
14017 return 0;
14018 }
14019 _ACEOF
14020 rm -f conftest.$ac_objext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14022 (eval $ac_compile) 2>conftest.er1
14023 ac_status=$?
14024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest.$ac_objext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_lo=0 ac_mid=0
14042 while :; do
14043 cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h. */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 $ac_includes_default
14050 int
14051 main ()
14052 {
14053 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14054 test_array [0] = 0
14055
14056 ;
14057 return 0;
14058 }
14059 _ACEOF
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062 (eval $ac_compile) 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest.$ac_objext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 ac_hi=$ac_mid; break
14082 else
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_lo=`expr $ac_mid + 1`
14087 if test $ac_lo -le $ac_mid; then
14088 ac_lo= ac_hi=
14089 break
14090 fi
14091 ac_mid=`expr 2 '*' $ac_mid + 1`
14092 fi
14093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14094 done
14095 else
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14098
14099 cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h. */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 $ac_includes_default
14106 int
14107 main ()
14108 {
14109 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14110 test_array [0] = 0
14111
14112 ;
14113 return 0;
14114 }
14115 _ACEOF
14116 rm -f conftest.$ac_objext
14117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14118 (eval $ac_compile) 2>conftest.er1
14119 ac_status=$?
14120 grep -v '^ *+' conftest.er1 >conftest.err
14121 rm -f conftest.er1
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_hi=-1 ac_mid=-1
14138 while :; do
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 $ac_includes_default
14146 int
14147 main ()
14148 {
14149 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14150 test_array [0] = 0
14151
14152 ;
14153 return 0;
14154 }
14155 _ACEOF
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest.$ac_objext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_lo=$ac_mid; break
14178 else
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 ac_hi=`expr '(' $ac_mid ')' - 1`
14183 if test $ac_mid -le $ac_hi; then
14184 ac_lo= ac_hi=
14185 break
14186 fi
14187 ac_mid=`expr 2 '*' $ac_mid`
14188 fi
14189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14190 done
14191 else
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195 ac_lo= ac_hi=
14196 fi
14197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14198 fi
14199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14200 # Binary search between lo and hi bounds.
14201 while test "x$ac_lo" != "x$ac_hi"; do
14202 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14203 cat >conftest.$ac_ext <<_ACEOF
14204 /* confdefs.h. */
14205 _ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14209 $ac_includes_default
14210 int
14211 main ()
14212 {
14213 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14214 test_array [0] = 0
14215
14216 ;
14217 return 0;
14218 }
14219 _ACEOF
14220 rm -f conftest.$ac_objext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14222 (eval $ac_compile) 2>conftest.er1
14223 ac_status=$?
14224 grep -v '^ *+' conftest.er1 >conftest.err
14225 rm -f conftest.er1
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest.$ac_objext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_hi=$ac_mid
14242 else
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246 ac_lo=`expr '(' $ac_mid ')' + 1`
14247 fi
14248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14249 done
14250 case $ac_lo in
14251 ?*) ac_cv_sizeof_long=$ac_lo;;
14252 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14253 See \`config.log' for more details." >&5
14254 echo "$as_me: error: cannot compute sizeof (long), 77
14255 See \`config.log' for more details." >&2;}
14256 { (exit 1); exit 1; }; } ;;
14257 esac
14258 else
14259 if test "$cross_compiling" = yes; then
14260 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14261 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
14262 { (exit 1); exit 1; }; }
14263 else
14264 cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h. */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14270 $ac_includes_default
14271 long longval () { return (long) (sizeof (long)); }
14272 unsigned long ulongval () { return (long) (sizeof (long)); }
14273 #include <stdio.h>
14274 #include <stdlib.h>
14275 int
14276 main ()
14277 {
14278
14279 FILE *f = fopen ("conftest.val", "w");
14280 if (! f)
14281 exit (1);
14282 if (((long) (sizeof (long))) < 0)
14283 {
14284 long i = longval ();
14285 if (i != ((long) (sizeof (long))))
14286 exit (1);
14287 fprintf (f, "%ld\n", i);
14288 }
14289 else
14290 {
14291 unsigned long i = ulongval ();
14292 if (i != ((long) (sizeof (long))))
14293 exit (1);
14294 fprintf (f, "%lu\n", i);
14295 }
14296 exit (ferror (f) || fclose (f) != 0);
14297
14298 ;
14299 return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest$ac_exeext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14304 (eval $ac_link) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_cv_sizeof_long=`cat conftest.val`
14314 else
14315 echo "$as_me: program exited with status $ac_status" >&5
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319 ( exit $ac_status )
14320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14321 See \`config.log' for more details." >&5
14322 echo "$as_me: error: cannot compute sizeof (long), 77
14323 See \`config.log' for more details." >&2;}
14324 { (exit 1); exit 1; }; }
14325 fi
14326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14327 fi
14328 fi
14329 rm -f conftest.val
14330 else
14331 ac_cv_sizeof_long=0
14332 fi
14333 fi
14334 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14335 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14336 cat >>confdefs.h <<_ACEOF
14337 #define SIZEOF_LONG $ac_cv_sizeof_long
14338 _ACEOF
14339
14340 ;;
14341 esac
14342
14343 if test $acx_cv_header_stdint = stddef.h; then
14344 # Lacking a good header? Test size of everything and deduce all types.
14345 echo "$as_me:$LINENO: checking for int" >&5
14346 echo $ECHO_N "checking for int... $ECHO_C" >&6
14347 if test "${ac_cv_type_int+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h. */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 $ac_includes_default
14357 int
14358 main ()
14359 {
14360 if ((int *) 0)
14361 return 0;
14362 if (sizeof (int))
14363 return 0;
14364 ;
14365 return 0;
14366 }
14367 _ACEOF
14368 rm -f conftest.$ac_objext
14369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14370 (eval $ac_compile) 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
14377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; } &&
14383 { ac_try='test -s conftest.$ac_objext'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14389 ac_cv_type_int=yes
14390 else
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_cv_type_int=no
14395 fi
14396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14397 fi
14398 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14399 echo "${ECHO_T}$ac_cv_type_int" >&6
14400
14401 echo "$as_me:$LINENO: checking size of int" >&5
14402 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14403 if test "${ac_cv_sizeof_int+set}" = set; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406 if test "$ac_cv_type_int" = yes; then
14407 # The cast to unsigned long works around a bug in the HP C Compiler
14408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14410 # This bug is HP SR number 8606223364.
14411 if test "$cross_compiling" = yes; then
14412 # Depending upon the size, compute the lo and hi bounds.
14413 cat >conftest.$ac_ext <<_ACEOF
14414 /* confdefs.h. */
14415 _ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h. */
14419 $ac_includes_default
14420 int
14421 main ()
14422 {
14423 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14424 test_array [0] = 0
14425
14426 ;
14427 return 0;
14428 }
14429 _ACEOF
14430 rm -f conftest.$ac_objext
14431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14432 (eval $ac_compile) 2>conftest.er1
14433 ac_status=$?
14434 grep -v '^ *+' conftest.er1 >conftest.err
14435 rm -f conftest.er1
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } &&
14439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 ac_lo=0 ac_mid=0
14452 while :; do
14453 cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h. */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 $ac_includes_default
14460 int
14461 main ()
14462 {
14463 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14464 test_array [0] = 0
14465
14466 ;
14467 return 0;
14468 }
14469 _ACEOF
14470 rm -f conftest.$ac_objext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472 (eval $ac_compile) 2>conftest.er1
14473 ac_status=$?
14474 grep -v '^ *+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; } &&
14485 { ac_try='test -s conftest.$ac_objext'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 ac_hi=$ac_mid; break
14492 else
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496 ac_lo=`expr $ac_mid + 1`
14497 if test $ac_lo -le $ac_mid; then
14498 ac_lo= ac_hi=
14499 break
14500 fi
14501 ac_mid=`expr 2 '*' $ac_mid + 1`
14502 fi
14503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14504 done
14505 else
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509 cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h. */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14515 $ac_includes_default
14516 int
14517 main ()
14518 {
14519 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14520 test_array [0] = 0
14521
14522 ;
14523 return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528 (eval $ac_compile) 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try='test -z "$ac_c_werror_flag" || 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=-1 ac_mid=-1
14548 while :; do
14549 cat >conftest.$ac_ext <<_ACEOF
14550 /* confdefs.h. */
14551 _ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14555 $ac_includes_default
14556 int
14557 main ()
14558 {
14559 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14560 test_array [0] = 0
14561
14562 ;
14563 return 0;
14564 }
14565 _ACEOF
14566 rm -f conftest.$ac_objext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568 (eval $ac_compile) 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest.$ac_objext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_lo=$ac_mid; break
14588 else
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 ac_hi=`expr '(' $ac_mid ')' - 1`
14593 if test $ac_mid -le $ac_hi; then
14594 ac_lo= ac_hi=
14595 break
14596 fi
14597 ac_mid=`expr 2 '*' $ac_mid`
14598 fi
14599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14600 done
14601 else
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 ac_lo= ac_hi=
14606 fi
14607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14608 fi
14609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14610 # Binary search between lo and hi bounds.
14611 while test "x$ac_lo" != "x$ac_hi"; do
14612 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14613 cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h. */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 $ac_includes_default
14620 int
14621 main ()
14622 {
14623 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14624 test_array [0] = 0
14625
14626 ;
14627 return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14632 (eval $ac_compile) 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_hi=$ac_mid
14652 else
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 ac_lo=`expr '(' $ac_mid ')' + 1`
14657 fi
14658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659 done
14660 case $ac_lo in
14661 ?*) ac_cv_sizeof_int=$ac_lo;;
14662 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14663 See \`config.log' for more details." >&5
14664 echo "$as_me: error: cannot compute sizeof (int), 77
14665 See \`config.log' for more details." >&2;}
14666 { (exit 1); exit 1; }; } ;;
14667 esac
14668 else
14669 if test "$cross_compiling" = yes; then
14670 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14671 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
14672 { (exit 1); exit 1; }; }
14673 else
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h. */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 $ac_includes_default
14681 long longval () { return (long) (sizeof (int)); }
14682 unsigned long ulongval () { return (long) (sizeof (int)); }
14683 #include <stdio.h>
14684 #include <stdlib.h>
14685 int
14686 main ()
14687 {
14688
14689 FILE *f = fopen ("conftest.val", "w");
14690 if (! f)
14691 exit (1);
14692 if (((long) (sizeof (int))) < 0)
14693 {
14694 long i = longval ();
14695 if (i != ((long) (sizeof (int))))
14696 exit (1);
14697 fprintf (f, "%ld\n", i);
14698 }
14699 else
14700 {
14701 unsigned long i = ulongval ();
14702 if (i != ((long) (sizeof (int))))
14703 exit (1);
14704 fprintf (f, "%lu\n", i);
14705 }
14706 exit (ferror (f) || fclose (f) != 0);
14707
14708 ;
14709 return 0;
14710 }
14711 _ACEOF
14712 rm -f conftest$ac_exeext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14714 (eval $ac_link) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_cv_sizeof_int=`cat conftest.val`
14724 else
14725 echo "$as_me: program exited with status $ac_status" >&5
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729 ( exit $ac_status )
14730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14731 See \`config.log' for more details." >&5
14732 echo "$as_me: error: cannot compute sizeof (int), 77
14733 See \`config.log' for more details." >&2;}
14734 { (exit 1); exit 1; }; }
14735 fi
14736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14737 fi
14738 fi
14739 rm -f conftest.val
14740 else
14741 ac_cv_sizeof_int=0
14742 fi
14743 fi
14744 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14745 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14746 cat >>confdefs.h <<_ACEOF
14747 #define SIZEOF_INT $ac_cv_sizeof_int
14748 _ACEOF
14749
14750
14751 echo "$as_me:$LINENO: checking for short" >&5
14752 echo $ECHO_N "checking for short... $ECHO_C" >&6
14753 if test "${ac_cv_type_short+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 else
14756 cat >conftest.$ac_ext <<_ACEOF
14757 /* confdefs.h. */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 $ac_includes_default
14763 int
14764 main ()
14765 {
14766 if ((short *) 0)
14767 return 0;
14768 if (sizeof (short))
14769 return 0;
14770 ;
14771 return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776 (eval $ac_compile) 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_cv_type_short=yes
14796 else
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14799
14800 ac_cv_type_short=no
14801 fi
14802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14803 fi
14804 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14805 echo "${ECHO_T}$ac_cv_type_short" >&6
14806
14807 echo "$as_me:$LINENO: checking size of short" >&5
14808 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14809 if test "${ac_cv_sizeof_short+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812 if test "$ac_cv_type_short" = yes; then
14813 # The cast to unsigned long works around a bug in the HP C Compiler
14814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14816 # This bug is HP SR number 8606223364.
14817 if test "$cross_compiling" = yes; then
14818 # Depending upon the size, compute the lo and hi bounds.
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h. */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 $ac_includes_default
14826 int
14827 main ()
14828 {
14829 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14830 test_array [0] = 0
14831
14832 ;
14833 return 0;
14834 }
14835 _ACEOF
14836 rm -f conftest.$ac_objext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14838 (eval $ac_compile) 2>conftest.er1
14839 ac_status=$?
14840 grep -v '^ *+' conftest.er1 >conftest.err
14841 rm -f conftest.er1
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } &&
14845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; } &&
14851 { ac_try='test -s conftest.$ac_objext'
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; }; then
14857 ac_lo=0 ac_mid=0
14858 while :; do
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h. */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 $ac_includes_default
14866 int
14867 main ()
14868 {
14869 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14870 test_array [0] = 0
14871
14872 ;
14873 return 0;
14874 }
14875 _ACEOF
14876 rm -f conftest.$ac_objext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14878 (eval $ac_compile) 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; } &&
14891 { ac_try='test -s conftest.$ac_objext'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_hi=$ac_mid; break
14898 else
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 ac_lo=`expr $ac_mid + 1`
14903 if test $ac_lo -le $ac_mid; then
14904 ac_lo= ac_hi=
14905 break
14906 fi
14907 ac_mid=`expr 2 '*' $ac_mid + 1`
14908 fi
14909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14910 done
14911 else
14912 echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915 cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h. */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 $ac_includes_default
14922 int
14923 main ()
14924 {
14925 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14926 test_array [0] = 0
14927
14928 ;
14929 return 0;
14930 }
14931 _ACEOF
14932 rm -f conftest.$ac_objext
14933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14934 (eval $ac_compile) 2>conftest.er1
14935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } &&
14941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; } &&
14947 { ac_try='test -s conftest.$ac_objext'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
14953 ac_hi=-1 ac_mid=-1
14954 while :; do
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h. */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 $ac_includes_default
14962 int
14963 main ()
14964 {
14965 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14966 test_array [0] = 0
14967
14968 ;
14969 return 0;
14970 }
14971 _ACEOF
14972 rm -f conftest.$ac_objext
14973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14974 (eval $ac_compile) 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; } &&
14987 { ac_try='test -s conftest.$ac_objext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993 ac_lo=$ac_mid; break
14994 else
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 ac_hi=`expr '(' $ac_mid ')' - 1`
14999 if test $ac_mid -le $ac_hi; then
15000 ac_lo= ac_hi=
15001 break
15002 fi
15003 ac_mid=`expr 2 '*' $ac_mid`
15004 fi
15005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15006 done
15007 else
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_lo= ac_hi=
15012 fi
15013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15014 fi
15015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15016 # Binary search between lo and hi bounds.
15017 while test "x$ac_lo" != "x$ac_hi"; do
15018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15019 cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h. */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 $ac_includes_default
15026 int
15027 main ()
15028 {
15029 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15030 test_array [0] = 0
15031
15032 ;
15033 return 0;
15034 }
15035 _ACEOF
15036 rm -f conftest.$ac_objext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15038 (eval $ac_compile) 2>conftest.er1
15039 ac_status=$?
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; } &&
15051 { ac_try='test -s conftest.$ac_objext'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 ac_hi=$ac_mid
15058 else
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15061
15062 ac_lo=`expr '(' $ac_mid ')' + 1`
15063 fi
15064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15065 done
15066 case $ac_lo in
15067 ?*) ac_cv_sizeof_short=$ac_lo;;
15068 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15069 See \`config.log' for more details." >&5
15070 echo "$as_me: error: cannot compute sizeof (short), 77
15071 See \`config.log' for more details." >&2;}
15072 { (exit 1); exit 1; }; } ;;
15073 esac
15074 else
15075 if test "$cross_compiling" = yes; then
15076 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15077 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15078 { (exit 1); exit 1; }; }
15079 else
15080 cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h. */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 $ac_includes_default
15087 long longval () { return (long) (sizeof (short)); }
15088 unsigned long ulongval () { return (long) (sizeof (short)); }
15089 #include <stdio.h>
15090 #include <stdlib.h>
15091 int
15092 main ()
15093 {
15094
15095 FILE *f = fopen ("conftest.val", "w");
15096 if (! f)
15097 exit (1);
15098 if (((long) (sizeof (short))) < 0)
15099 {
15100 long i = longval ();
15101 if (i != ((long) (sizeof (short))))
15102 exit (1);
15103 fprintf (f, "%ld\n", i);
15104 }
15105 else
15106 {
15107 unsigned long i = ulongval ();
15108 if (i != ((long) (sizeof (short))))
15109 exit (1);
15110 fprintf (f, "%lu\n", i);
15111 }
15112 exit (ferror (f) || fclose (f) != 0);
15113
15114 ;
15115 return 0;
15116 }
15117 _ACEOF
15118 rm -f conftest$ac_exeext
15119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15120 (eval $ac_link) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 ac_cv_sizeof_short=`cat conftest.val`
15130 else
15131 echo "$as_me: program exited with status $ac_status" >&5
15132 echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15134
15135 ( exit $ac_status )
15136 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15137 See \`config.log' for more details." >&5
15138 echo "$as_me: error: cannot compute sizeof (short), 77
15139 See \`config.log' for more details." >&2;}
15140 { (exit 1); exit 1; }; }
15141 fi
15142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15143 fi
15144 fi
15145 rm -f conftest.val
15146 else
15147 ac_cv_sizeof_short=0
15148 fi
15149 fi
15150 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15151 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15152 cat >>confdefs.h <<_ACEOF
15153 #define SIZEOF_SHORT $ac_cv_sizeof_short
15154 _ACEOF
15155
15156
15157 echo "$as_me:$LINENO: checking for char" >&5
15158 echo $ECHO_N "checking for char... $ECHO_C" >&6
15159 if test "${ac_cv_type_char+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h. */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168 $ac_includes_default
15169 int
15170 main ()
15171 {
15172 if ((char *) 0)
15173 return 0;
15174 if (sizeof (char))
15175 return 0;
15176 ;
15177 return 0;
15178 }
15179 _ACEOF
15180 rm -f conftest.$ac_objext
15181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15182 (eval $ac_compile) 2>conftest.er1
15183 ac_status=$?
15184 grep -v '^ *+' conftest.er1 >conftest.err
15185 rm -f conftest.er1
15186 cat conftest.err >&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } &&
15189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest.$ac_objext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 ac_cv_type_char=yes
15202 else
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206 ac_cv_type_char=no
15207 fi
15208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15209 fi
15210 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15211 echo "${ECHO_T}$ac_cv_type_char" >&6
15212
15213 echo "$as_me:$LINENO: checking size of char" >&5
15214 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15215 if test "${ac_cv_sizeof_char+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218 if test "$ac_cv_type_char" = yes; then
15219 # The cast to unsigned long works around a bug in the HP C Compiler
15220 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15221 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15222 # This bug is HP SR number 8606223364.
15223 if test "$cross_compiling" = yes; then
15224 # Depending upon the size, compute the lo and hi bounds.
15225 cat >conftest.$ac_ext <<_ACEOF
15226 /* confdefs.h. */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 $ac_includes_default
15232 int
15233 main ()
15234 {
15235 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15236 test_array [0] = 0
15237
15238 ;
15239 return 0;
15240 }
15241 _ACEOF
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244 (eval $ac_compile) 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest.$ac_objext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_lo=0 ac_mid=0
15264 while :; do
15265 cat >conftest.$ac_ext <<_ACEOF
15266 /* confdefs.h. */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15271 $ac_includes_default
15272 int
15273 main ()
15274 {
15275 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15276 test_array [0] = 0
15277
15278 ;
15279 return 0;
15280 }
15281 _ACEOF
15282 rm -f conftest.$ac_objext
15283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15284 (eval $ac_compile) 2>conftest.er1
15285 ac_status=$?
15286 grep -v '^ *+' conftest.er1 >conftest.err
15287 rm -f conftest.er1
15288 cat conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; } &&
15297 { ac_try='test -s conftest.$ac_objext'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 ac_hi=$ac_mid; break
15304 else
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308 ac_lo=`expr $ac_mid + 1`
15309 if test $ac_lo -le $ac_mid; then
15310 ac_lo= ac_hi=
15311 break
15312 fi
15313 ac_mid=`expr 2 '*' $ac_mid + 1`
15314 fi
15315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15316 done
15317 else
15318 echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15320
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 $ac_includes_default
15328 int
15329 main ()
15330 {
15331 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15332 test_array [0] = 0
15333
15334 ;
15335 return 0;
15336 }
15337 _ACEOF
15338 rm -f conftest.$ac_objext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>conftest.er1
15341 ac_status=$?
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; } &&
15353 { ac_try='test -s conftest.$ac_objext'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 ac_hi=-1 ac_mid=-1
15360 while :; do
15361 cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h. */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 $ac_includes_default
15368 int
15369 main ()
15370 {
15371 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15372 test_array [0] = 0
15373
15374 ;
15375 return 0;
15376 }
15377 _ACEOF
15378 rm -f conftest.$ac_objext
15379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15380 (eval $ac_compile) 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest.$ac_objext'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_lo=$ac_mid; break
15400 else
15401 echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15403
15404 ac_hi=`expr '(' $ac_mid ')' - 1`
15405 if test $ac_mid -le $ac_hi; then
15406 ac_lo= ac_hi=
15407 break
15408 fi
15409 ac_mid=`expr 2 '*' $ac_mid`
15410 fi
15411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15412 done
15413 else
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416
15417 ac_lo= ac_hi=
15418 fi
15419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15420 fi
15421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15422 # Binary search between lo and hi bounds.
15423 while test "x$ac_lo" != "x$ac_hi"; do
15424 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15425 cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h. */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15431 $ac_includes_default
15432 int
15433 main ()
15434 {
15435 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15436 test_array [0] = 0
15437
15438 ;
15439 return 0;
15440 }
15441 _ACEOF
15442 rm -f conftest.$ac_objext
15443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15444 (eval $ac_compile) 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
15451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_hi=$ac_mid
15464 else
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 ac_lo=`expr '(' $ac_mid ')' + 1`
15469 fi
15470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15471 done
15472 case $ac_lo in
15473 ?*) ac_cv_sizeof_char=$ac_lo;;
15474 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15475 See \`config.log' for more details." >&5
15476 echo "$as_me: error: cannot compute sizeof (char), 77
15477 See \`config.log' for more details." >&2;}
15478 { (exit 1); exit 1; }; } ;;
15479 esac
15480 else
15481 if test "$cross_compiling" = yes; then
15482 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15483 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15484 { (exit 1); exit 1; }; }
15485 else
15486 cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h. */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 $ac_includes_default
15493 long longval () { return (long) (sizeof (char)); }
15494 unsigned long ulongval () { return (long) (sizeof (char)); }
15495 #include <stdio.h>
15496 #include <stdlib.h>
15497 int
15498 main ()
15499 {
15500
15501 FILE *f = fopen ("conftest.val", "w");
15502 if (! f)
15503 exit (1);
15504 if (((long) (sizeof (char))) < 0)
15505 {
15506 long i = longval ();
15507 if (i != ((long) (sizeof (char))))
15508 exit (1);
15509 fprintf (f, "%ld\n", i);
15510 }
15511 else
15512 {
15513 unsigned long i = ulongval ();
15514 if (i != ((long) (sizeof (char))))
15515 exit (1);
15516 fprintf (f, "%lu\n", i);
15517 }
15518 exit (ferror (f) || fclose (f) != 0);
15519
15520 ;
15521 return 0;
15522 }
15523 _ACEOF
15524 rm -f conftest$ac_exeext
15525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15526 (eval $ac_link) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 ac_cv_sizeof_char=`cat conftest.val`
15536 else
15537 echo "$as_me: program exited with status $ac_status" >&5
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15540
15541 ( exit $ac_status )
15542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15543 See \`config.log' for more details." >&5
15544 echo "$as_me: error: cannot compute sizeof (char), 77
15545 See \`config.log' for more details." >&2;}
15546 { (exit 1); exit 1; }; }
15547 fi
15548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15549 fi
15550 fi
15551 rm -f conftest.val
15552 else
15553 ac_cv_sizeof_char=0
15554 fi
15555 fi
15556 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15557 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15558 cat >>confdefs.h <<_ACEOF
15559 #define SIZEOF_CHAR $ac_cv_sizeof_char
15560 _ACEOF
15561
15562
15563
15564 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15565 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15566 case "$ac_cv_sizeof_char" in
15567 1) acx_cv_type_int8_t=char ;;
15568 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15569 echo "$as_me: error: no 8-bit type" >&2;}
15570 { (exit please report a bug); exit please report a bug; }; }
15571 esac
15572 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15573 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15574
15575 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15576 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15577 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15578 2:*) acx_cv_type_int16_t=int ;;
15579 *:2) acx_cv_type_int16_t=short ;;
15580 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15581 echo "$as_me: error: no 16-bit type" >&2;}
15582 { (exit please report a bug); exit please report a bug; }; }
15583 esac
15584 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15585 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15586
15587 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15588 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15589 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15590 4:*) acx_cv_type_int32_t=int ;;
15591 *:4) acx_cv_type_int32_t=long ;;
15592 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15593 echo "$as_me: error: no 32-bit type" >&2;}
15594 { (exit please report a bug); exit please report a bug; }; }
15595 esac
15596 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15597 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15598 fi
15599
15600 # These tests are here to make the output prettier
15601
15602 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15603 case "$ac_cv_sizeof_long" in
15604 8) acx_cv_type_int64_t=long ;;
15605 esac
15606 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15607 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15608 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15609 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15610 fi
15611
15612 # Now we can use the above types
15613
15614 if test "$ac_cv_type_uintptr_t" != yes; then
15615 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15616 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15617 case $ac_cv_sizeof_void_p in
15618 2) acx_cv_type_intptr_t=int16_t ;;
15619 4) acx_cv_type_intptr_t=int32_t ;;
15620 8) acx_cv_type_intptr_t=int64_t ;;
15621 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15622 echo "$as_me: error: no equivalent for intptr_t" >&2;}
15623 { (exit please report a bug); exit please report a bug; }; }
15624 esac
15625 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15626 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15627 fi
15628
15629 # ----------------- done all checks, emit header -------------
15630 ac_config_commands="$ac_config_commands bfd_stdint.h"
15631
15632
15633
15634 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15635 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15636 if test "${ac_cv_header_time+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639 cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h. */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645 #include <sys/types.h>
15646 #include <sys/time.h>
15647 #include <time.h>
15648
15649 int
15650 main ()
15651 {
15652 if ((struct tm *) 0)
15653 return 0;
15654 ;
15655 return 0;
15656 }
15657 _ACEOF
15658 rm -f conftest.$ac_objext
15659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15660 (eval $ac_compile) 2>conftest.er1
15661 ac_status=$?
15662 grep -v '^ *+' conftest.er1 >conftest.err
15663 rm -f conftest.er1
15664 cat conftest.err >&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } &&
15667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest.$ac_objext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_cv_header_time=yes
15680 else
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_cv_header_time=no
15685 fi
15686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15687 fi
15688 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15689 echo "${ECHO_T}$ac_cv_header_time" >&6
15690 if test $ac_cv_header_time = yes; then
15691
15692 cat >>confdefs.h <<\_ACEOF
15693 #define TIME_WITH_SYS_TIME 1
15694 _ACEOF
15695
15696 fi
15697
15698
15699
15700
15701
15702
15703 ac_header_dirent=no
15704 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15705 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15706 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15707 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
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 #include <sys/types.h>
15718 #include <$ac_hdr>
15719
15720 int
15721 main ()
15722 {
15723 if ((DIR *) 0)
15724 return 0;
15725 ;
15726 return 0;
15727 }
15728 _ACEOF
15729 rm -f conftest.$ac_objext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731 (eval $ac_compile) 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -z "$ac_c_werror_flag" || 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 eval "$as_ac_Header=yes"
15751 else
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 eval "$as_ac_Header=no"
15756 fi
15757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758 fi
15759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762 cat >>confdefs.h <<_ACEOF
15763 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15764 _ACEOF
15765
15766 ac_header_dirent=$ac_hdr; break
15767 fi
15768
15769 done
15770 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15771 if test $ac_header_dirent = dirent.h; then
15772 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15773 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15774 if test "${ac_cv_search_opendir+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777 ac_func_search_save_LIBS=$LIBS
15778 ac_cv_search_opendir=no
15779 cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h. */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15785
15786 /* Override any gcc2 internal prototype to avoid an error. */
15787 #ifdef __cplusplus
15788 extern "C"
15789 #endif
15790 /* We use char because int might match the return type of a gcc2
15791 builtin and then its argument prototype would still apply. */
15792 char opendir ();
15793 int
15794 main ()
15795 {
15796 opendir ();
15797 ;
15798 return 0;
15799 }
15800 _ACEOF
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15803 (eval $ac_link) 2>conftest.er1
15804 ac_status=$?
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
15810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest$ac_exeext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_cv_search_opendir="none required"
15823 else
15824 echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15826
15827 fi
15828 rm -f conftest.err conftest.$ac_objext \
15829 conftest$ac_exeext conftest.$ac_ext
15830 if test "$ac_cv_search_opendir" = no; then
15831 for ac_lib in dir; do
15832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15833 cat >conftest.$ac_ext <<_ACEOF
15834 /* confdefs.h. */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839
15840 /* Override any gcc2 internal prototype to avoid an error. */
15841 #ifdef __cplusplus
15842 extern "C"
15843 #endif
15844 /* We use char because int might match the return type of a gcc2
15845 builtin and then its argument prototype would still apply. */
15846 char opendir ();
15847 int
15848 main ()
15849 {
15850 opendir ();
15851 ;
15852 return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>conftest.er1
15858 ac_status=$?
15859 grep -v '^ *+' conftest.er1 >conftest.err
15860 rm -f conftest.er1
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; } &&
15870 { ac_try='test -s conftest$ac_exeext'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 ac_cv_search_opendir="-l$ac_lib"
15877 break
15878 else
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15881
15882 fi
15883 rm -f conftest.err conftest.$ac_objext \
15884 conftest$ac_exeext conftest.$ac_ext
15885 done
15886 fi
15887 LIBS=$ac_func_search_save_LIBS
15888 fi
15889 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15890 echo "${ECHO_T}$ac_cv_search_opendir" >&6
15891 if test "$ac_cv_search_opendir" != no; then
15892 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15893
15894 fi
15895
15896 else
15897 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15899 if test "${ac_cv_search_opendir+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902 ac_func_search_save_LIBS=$LIBS
15903 ac_cv_search_opendir=no
15904 cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h. */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910
15911 /* Override any gcc2 internal prototype to avoid an error. */
15912 #ifdef __cplusplus
15913 extern "C"
15914 #endif
15915 /* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15917 char opendir ();
15918 int
15919 main ()
15920 {
15921 opendir ();
15922 ;
15923 return 0;
15924 }
15925 _ACEOF
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15928 (eval $ac_link) 2>conftest.er1
15929 ac_status=$?
15930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } &&
15935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; } &&
15941 { ac_try='test -s conftest$ac_exeext'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 ac_cv_search_opendir="none required"
15948 else
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952 fi
15953 rm -f conftest.err conftest.$ac_objext \
15954 conftest$ac_exeext conftest.$ac_ext
15955 if test "$ac_cv_search_opendir" = no; then
15956 for ac_lib in x; do
15957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15958 cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h. */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h. */
15964
15965 /* Override any gcc2 internal prototype to avoid an error. */
15966 #ifdef __cplusplus
15967 extern "C"
15968 #endif
15969 /* We use char because int might match the return type of a gcc2
15970 builtin and then its argument prototype would still apply. */
15971 char opendir ();
15972 int
15973 main ()
15974 {
15975 opendir ();
15976 ;
15977 return 0;
15978 }
15979 _ACEOF
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15982 (eval $ac_link) 2>conftest.er1
15983 ac_status=$?
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest$ac_exeext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_cv_search_opendir="-l$ac_lib"
16002 break
16003 else
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007 fi
16008 rm -f conftest.err conftest.$ac_objext \
16009 conftest$ac_exeext conftest.$ac_ext
16010 done
16011 fi
16012 LIBS=$ac_func_search_save_LIBS
16013 fi
16014 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16015 echo "${ECHO_T}$ac_cv_search_opendir" >&6
16016 if test "$ac_cv_search_opendir" != no; then
16017 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16018
16019 fi
16020
16021 fi
16022
16023 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16024 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16025 if test "${gcc_cv_header_string+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h. */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 #include <string.h>
16035 #include <strings.h>
16036 int
16037 main ()
16038 {
16039
16040 ;
16041 return 0;
16042 }
16043 _ACEOF
16044 rm -f conftest.$ac_objext
16045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16046 (eval $ac_compile) 2>conftest.er1
16047 ac_status=$?
16048 grep -v '^ *+' conftest.er1 >conftest.err
16049 rm -f conftest.er1
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } &&
16053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest.$ac_objext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 gcc_cv_header_string=yes
16066 else
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070 gcc_cv_header_string=no
16071 fi
16072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16073 fi
16074 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16075 echo "${ECHO_T}$gcc_cv_header_string" >&6
16076 if test $gcc_cv_header_string = yes; then
16077
16078 cat >>confdefs.h <<\_ACEOF
16079 #define STRING_WITH_STRINGS 1
16080 _ACEOF
16081
16082 fi
16083
16084
16085
16086
16087
16088
16089
16090
16091 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
16092 do
16093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16094 echo "$as_me:$LINENO: checking for $ac_func" >&5
16095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16096 if eval "test \"\${$as_ac_var+set}\" = set"; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 else
16099 cat >conftest.$ac_ext <<_ACEOF
16100 /* confdefs.h. */
16101 _ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16107 #define $ac_func innocuous_$ac_func
16108
16109 /* System header to define __stub macros and hopefully few prototypes,
16110 which can conflict with char $ac_func (); below.
16111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16112 <limits.h> exists even on freestanding compilers. */
16113
16114 #ifdef __STDC__
16115 # include <limits.h>
16116 #else
16117 # include <assert.h>
16118 #endif
16119
16120 #undef $ac_func
16121
16122 /* Override any gcc2 internal prototype to avoid an error. */
16123 #ifdef __cplusplus
16124 extern "C"
16125 {
16126 #endif
16127 /* We use char because int might match the return type of a gcc2
16128 builtin and then its argument prototype would still apply. */
16129 char $ac_func ();
16130 /* The GNU C library defines this for functions which it implements
16131 to always fail with ENOSYS. Some functions are actually named
16132 something starting with __ and the normal name is an alias. */
16133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16134 choke me
16135 #else
16136 char (*f) () = $ac_func;
16137 #endif
16138 #ifdef __cplusplus
16139 }
16140 #endif
16141
16142 int
16143 main ()
16144 {
16145 return f != $ac_func;
16146 ;
16147 return 0;
16148 }
16149 _ACEOF
16150 rm -f conftest.$ac_objext conftest$ac_exeext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16152 (eval $ac_link) 2>conftest.er1
16153 ac_status=$?
16154 grep -v '^ *+' conftest.er1 >conftest.err
16155 rm -f conftest.er1
16156 cat conftest.err >&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } &&
16159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; } &&
16165 { ac_try='test -s conftest$ac_exeext'
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; }; then
16171 eval "$as_ac_var=yes"
16172 else
16173 echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16175
16176 eval "$as_ac_var=no"
16177 fi
16178 rm -f conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16180 fi
16181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16183 if test `eval echo '${'$as_ac_var'}'` = yes; then
16184 cat >>confdefs.h <<_ACEOF
16185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16186 _ACEOF
16187
16188 fi
16189 done
16190
16191
16192 for ac_func in strtoull
16193 do
16194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16195 echo "$as_me:$LINENO: checking for $ac_func" >&5
16196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16197 if eval "test \"\${$as_ac_var+set}\" = set"; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 else
16200 cat >conftest.$ac_ext <<_ACEOF
16201 /* confdefs.h. */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h. */
16206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16208 #define $ac_func innocuous_$ac_func
16209
16210 /* System header to define __stub macros and hopefully few prototypes,
16211 which can conflict with char $ac_func (); below.
16212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16213 <limits.h> exists even on freestanding compilers. */
16214
16215 #ifdef __STDC__
16216 # include <limits.h>
16217 #else
16218 # include <assert.h>
16219 #endif
16220
16221 #undef $ac_func
16222
16223 /* Override any gcc2 internal prototype to avoid an error. */
16224 #ifdef __cplusplus
16225 extern "C"
16226 {
16227 #endif
16228 /* We use char because int might match the return type of a gcc2
16229 builtin and then its argument prototype would still apply. */
16230 char $ac_func ();
16231 /* The GNU C library defines this for functions which it implements
16232 to always fail with ENOSYS. Some functions are actually named
16233 something starting with __ and the normal name is an alias. */
16234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16235 choke me
16236 #else
16237 char (*f) () = $ac_func;
16238 #endif
16239 #ifdef __cplusplus
16240 }
16241 #endif
16242
16243 int
16244 main ()
16245 {
16246 return f != $ac_func;
16247 ;
16248 return 0;
16249 }
16250 _ACEOF
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16253 (eval $ac_link) 2>conftest.er1
16254 ac_status=$?
16255 grep -v '^ *+' conftest.er1 >conftest.err
16256 rm -f conftest.er1
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } &&
16260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest$ac_exeext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 eval "$as_ac_var=yes"
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277 eval "$as_ac_var=no"
16278 fi
16279 rm -f conftest.err conftest.$ac_objext \
16280 conftest$ac_exeext conftest.$ac_ext
16281 fi
16282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16284 if test `eval echo '${'$as_ac_var'}'` = yes; then
16285 cat >>confdefs.h <<_ACEOF
16286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16287 _ACEOF
16288
16289 fi
16290 done
16291
16292
16293 echo "$as_me:$LINENO: checking whether basename is declared" >&5
16294 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16295 if test "${ac_cv_have_decl_basename+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298 cat >conftest.$ac_ext <<_ACEOF
16299 /* confdefs.h. */
16300 _ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 $ac_includes_default
16305 int
16306 main ()
16307 {
16308 #ifndef basename
16309 char *p = (char *) basename;
16310 #endif
16311
16312 ;
16313 return 0;
16314 }
16315 _ACEOF
16316 rm -f conftest.$ac_objext
16317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16318 (eval $ac_compile) 2>conftest.er1
16319 ac_status=$?
16320 grep -v '^ *+' conftest.er1 >conftest.err
16321 rm -f conftest.er1
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } &&
16325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16328 ac_status=$?
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; } &&
16331 { ac_try='test -s conftest.$ac_objext'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ac_cv_have_decl_basename=yes
16338 else
16339 echo "$as_me: failed program was:" >&5
16340 sed 's/^/| /' conftest.$ac_ext >&5
16341
16342 ac_cv_have_decl_basename=no
16343 fi
16344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16345 fi
16346 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16347 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16348 if test $ac_cv_have_decl_basename = yes; then
16349
16350 cat >>confdefs.h <<_ACEOF
16351 #define HAVE_DECL_BASENAME 1
16352 _ACEOF
16353
16354
16355 else
16356 cat >>confdefs.h <<_ACEOF
16357 #define HAVE_DECL_BASENAME 0
16358 _ACEOF
16359
16360
16361 fi
16362
16363
16364 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16365 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16366 if test "${ac_cv_have_decl_ftello+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 else
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h. */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 $ac_includes_default
16376 int
16377 main ()
16378 {
16379 #ifndef ftello
16380 char *p = (char *) ftello;
16381 #endif
16382
16383 ;
16384 return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389 (eval $ac_compile) 2>conftest.er1
16390 ac_status=$?
16391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; }; then
16408 ac_cv_have_decl_ftello=yes
16409 else
16410 echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16412
16413 ac_cv_have_decl_ftello=no
16414 fi
16415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16416 fi
16417 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16418 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16419 if test $ac_cv_have_decl_ftello = yes; then
16420
16421 cat >>confdefs.h <<_ACEOF
16422 #define HAVE_DECL_FTELLO 1
16423 _ACEOF
16424
16425
16426 else
16427 cat >>confdefs.h <<_ACEOF
16428 #define HAVE_DECL_FTELLO 0
16429 _ACEOF
16430
16431
16432 fi
16433
16434
16435 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16436 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16437 if test "${ac_cv_have_decl_ftello64+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440 cat >conftest.$ac_ext <<_ACEOF
16441 /* confdefs.h. */
16442 _ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16446 $ac_includes_default
16447 int
16448 main ()
16449 {
16450 #ifndef ftello64
16451 char *p = (char *) ftello64;
16452 #endif
16453
16454 ;
16455 return 0;
16456 }
16457 _ACEOF
16458 rm -f conftest.$ac_objext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16460 (eval $ac_compile) 2>conftest.er1
16461 ac_status=$?
16462 grep -v '^ *+' conftest.er1 >conftest.err
16463 rm -f conftest.er1
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; } &&
16473 { ac_try='test -s conftest.$ac_objext'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16476 ac_status=$?
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; }; then
16479 ac_cv_have_decl_ftello64=yes
16480 else
16481 echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16483
16484 ac_cv_have_decl_ftello64=no
16485 fi
16486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16487 fi
16488 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16489 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16490 if test $ac_cv_have_decl_ftello64 = yes; then
16491
16492 cat >>confdefs.h <<_ACEOF
16493 #define HAVE_DECL_FTELLO64 1
16494 _ACEOF
16495
16496
16497 else
16498 cat >>confdefs.h <<_ACEOF
16499 #define HAVE_DECL_FTELLO64 0
16500 _ACEOF
16501
16502
16503 fi
16504
16505
16506 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16507 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16508 if test "${ac_cv_have_decl_fseeko+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511 cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h. */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 $ac_includes_default
16518 int
16519 main ()
16520 {
16521 #ifndef fseeko
16522 char *p = (char *) fseeko;
16523 #endif
16524
16525 ;
16526 return 0;
16527 }
16528 _ACEOF
16529 rm -f conftest.$ac_objext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16531 (eval $ac_compile) 2>conftest.er1
16532 ac_status=$?
16533 grep -v '^ *+' conftest.er1 >conftest.err
16534 rm -f conftest.er1
16535 cat conftest.err >&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ac_cv_have_decl_fseeko=yes
16551 else
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16554
16555 ac_cv_have_decl_fseeko=no
16556 fi
16557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16558 fi
16559 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16560 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16561 if test $ac_cv_have_decl_fseeko = yes; then
16562
16563 cat >>confdefs.h <<_ACEOF
16564 #define HAVE_DECL_FSEEKO 1
16565 _ACEOF
16566
16567
16568 else
16569 cat >>confdefs.h <<_ACEOF
16570 #define HAVE_DECL_FSEEKO 0
16571 _ACEOF
16572
16573
16574 fi
16575
16576
16577 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16578 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16579 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 else
16582 cat >conftest.$ac_ext <<_ACEOF
16583 /* confdefs.h. */
16584 _ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h. */
16588 $ac_includes_default
16589 int
16590 main ()
16591 {
16592 #ifndef fseeko64
16593 char *p = (char *) fseeko64;
16594 #endif
16595
16596 ;
16597 return 0;
16598 }
16599 _ACEOF
16600 rm -f conftest.$ac_objext
16601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16602 (eval $ac_compile) 2>conftest.er1
16603 ac_status=$?
16604 grep -v '^ *+' conftest.er1 >conftest.err
16605 rm -f conftest.er1
16606 cat conftest.err >&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } &&
16609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest.$ac_objext'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621 ac_cv_have_decl_fseeko64=yes
16622 else
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16625
16626 ac_cv_have_decl_fseeko64=no
16627 fi
16628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16629 fi
16630 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16631 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16632 if test $ac_cv_have_decl_fseeko64 = yes; then
16633
16634 cat >>confdefs.h <<_ACEOF
16635 #define HAVE_DECL_FSEEKO64 1
16636 _ACEOF
16637
16638
16639 else
16640 cat >>confdefs.h <<_ACEOF
16641 #define HAVE_DECL_FSEEKO64 0
16642 _ACEOF
16643
16644
16645 fi
16646
16647
16648
16649
16650 case "${host}" in
16651 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16652
16653 cat >>confdefs.h <<\_ACEOF
16654 #define USE_BINARY_FOPEN 1
16655 _ACEOF
16656 ;;
16657 esac
16658
16659 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16660 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16661 if test "${ac_cv_have_decl_ffs+set}" = set; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 else
16664 cat >conftest.$ac_ext <<_ACEOF
16665 /* confdefs.h. */
16666 _ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $ac_includes_default
16671 int
16672 main ()
16673 {
16674 #ifndef ffs
16675 char *p = (char *) ffs;
16676 #endif
16677
16678 ;
16679 return 0;
16680 }
16681 _ACEOF
16682 rm -f conftest.$ac_objext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16684 (eval $ac_compile) 2>conftest.er1
16685 ac_status=$?
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest.$ac_objext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_cv_have_decl_ffs=yes
16704 else
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708 ac_cv_have_decl_ffs=no
16709 fi
16710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16711 fi
16712 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16713 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16714 if test $ac_cv_have_decl_ffs = yes; then
16715
16716 cat >>confdefs.h <<_ACEOF
16717 #define HAVE_DECL_FFS 1
16718 _ACEOF
16719
16720
16721 else
16722 cat >>confdefs.h <<_ACEOF
16723 #define HAVE_DECL_FFS 0
16724 _ACEOF
16725
16726
16727 fi
16728
16729
16730 echo "$as_me:$LINENO: checking whether free is declared" >&5
16731 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16732 if test "${ac_cv_have_decl_free+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735 cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h. */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 $ac_includes_default
16742 int
16743 main ()
16744 {
16745 #ifndef free
16746 char *p = (char *) free;
16747 #endif
16748
16749 ;
16750 return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16755 (eval $ac_compile) 2>conftest.er1
16756 ac_status=$?
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } &&
16762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; } &&
16768 { ac_try='test -s conftest.$ac_objext'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 ac_cv_have_decl_free=yes
16775 else
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16778
16779 ac_cv_have_decl_free=no
16780 fi
16781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16782 fi
16783 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16784 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16785 if test $ac_cv_have_decl_free = yes; then
16786
16787 cat >>confdefs.h <<_ACEOF
16788 #define HAVE_DECL_FREE 1
16789 _ACEOF
16790
16791
16792 else
16793 cat >>confdefs.h <<_ACEOF
16794 #define HAVE_DECL_FREE 0
16795 _ACEOF
16796
16797
16798 fi
16799
16800
16801 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16802 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16803 if test "${ac_cv_have_decl_getenv+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806 cat >conftest.$ac_ext <<_ACEOF
16807 /* confdefs.h. */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 $ac_includes_default
16813 int
16814 main ()
16815 {
16816 #ifndef getenv
16817 char *p = (char *) getenv;
16818 #endif
16819
16820 ;
16821 return 0;
16822 }
16823 _ACEOF
16824 rm -f conftest.$ac_objext
16825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16826 (eval $ac_compile) 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try='test -s conftest.$ac_objext'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_cv_have_decl_getenv=yes
16846 else
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 ac_cv_have_decl_getenv=no
16851 fi
16852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16853 fi
16854 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16855 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16856 if test $ac_cv_have_decl_getenv = yes; then
16857
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_DECL_GETENV 1
16860 _ACEOF
16861
16862
16863 else
16864 cat >>confdefs.h <<_ACEOF
16865 #define HAVE_DECL_GETENV 0
16866 _ACEOF
16867
16868
16869 fi
16870
16871
16872 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16873 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16874 if test "${ac_cv_have_decl_malloc+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16876 else
16877 cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h. */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 $ac_includes_default
16884 int
16885 main ()
16886 {
16887 #ifndef malloc
16888 char *p = (char *) malloc;
16889 #endif
16890
16891 ;
16892 return 0;
16893 }
16894 _ACEOF
16895 rm -f conftest.$ac_objext
16896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16897 (eval $ac_compile) 2>conftest.er1
16898 ac_status=$?
16899 grep -v '^ *+' conftest.er1 >conftest.err
16900 rm -f conftest.er1
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; } &&
16910 { ac_try='test -s conftest.$ac_objext'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_have_decl_malloc=yes
16917 else
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ac_cv_have_decl_malloc=no
16922 fi
16923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16924 fi
16925 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16926 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16927 if test $ac_cv_have_decl_malloc = yes; then
16928
16929 cat >>confdefs.h <<_ACEOF
16930 #define HAVE_DECL_MALLOC 1
16931 _ACEOF
16932
16933
16934 else
16935 cat >>confdefs.h <<_ACEOF
16936 #define HAVE_DECL_MALLOC 0
16937 _ACEOF
16938
16939
16940 fi
16941
16942
16943 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16944 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16945 if test "${ac_cv_have_decl_realloc+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948 cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h. */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 $ac_includes_default
16955 int
16956 main ()
16957 {
16958 #ifndef realloc
16959 char *p = (char *) realloc;
16960 #endif
16961
16962 ;
16963 return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16968 (eval $ac_compile) 2>conftest.er1
16969 ac_status=$?
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_have_decl_realloc=yes
16988 else
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 ac_cv_have_decl_realloc=no
16993 fi
16994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16995 fi
16996 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16997 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16998 if test $ac_cv_have_decl_realloc = yes; then
16999
17000 cat >>confdefs.h <<_ACEOF
17001 #define HAVE_DECL_REALLOC 1
17002 _ACEOF
17003
17004
17005 else
17006 cat >>confdefs.h <<_ACEOF
17007 #define HAVE_DECL_REALLOC 0
17008 _ACEOF
17009
17010
17011 fi
17012
17013
17014 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17015 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17016 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 else
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h. */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 $ac_includes_default
17026 int
17027 main ()
17028 {
17029 #ifndef stpcpy
17030 char *p = (char *) stpcpy;
17031 #endif
17032
17033 ;
17034 return 0;
17035 }
17036 _ACEOF
17037 rm -f conftest.$ac_objext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17039 (eval $ac_compile) 2>conftest.er1
17040 ac_status=$?
17041 grep -v '^ *+' conftest.er1 >conftest.err
17042 rm -f conftest.er1
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest.$ac_objext'
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
17058 ac_cv_have_decl_stpcpy=yes
17059 else
17060 echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17062
17063 ac_cv_have_decl_stpcpy=no
17064 fi
17065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17066 fi
17067 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17068 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17069 if test $ac_cv_have_decl_stpcpy = yes; then
17070
17071 cat >>confdefs.h <<_ACEOF
17072 #define HAVE_DECL_STPCPY 1
17073 _ACEOF
17074
17075
17076 else
17077 cat >>confdefs.h <<_ACEOF
17078 #define HAVE_DECL_STPCPY 0
17079 _ACEOF
17080
17081
17082 fi
17083
17084
17085 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17086 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17087 if test "${ac_cv_have_decl_strstr+set}" = set; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 else
17090 cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h. */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17096 $ac_includes_default
17097 int
17098 main ()
17099 {
17100 #ifndef strstr
17101 char *p = (char *) strstr;
17102 #endif
17103
17104 ;
17105 return 0;
17106 }
17107 _ACEOF
17108 rm -f conftest.$ac_objext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17110 (eval $ac_compile) 2>conftest.er1
17111 ac_status=$?
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } &&
17117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
17123 { ac_try='test -s conftest.$ac_objext'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 ac_cv_have_decl_strstr=yes
17130 else
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134 ac_cv_have_decl_strstr=no
17135 fi
17136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17137 fi
17138 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17139 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17140 if test $ac_cv_have_decl_strstr = yes; then
17141
17142 cat >>confdefs.h <<_ACEOF
17143 #define HAVE_DECL_STRSTR 1
17144 _ACEOF
17145
17146
17147 else
17148 cat >>confdefs.h <<_ACEOF
17149 #define HAVE_DECL_STRSTR 0
17150 _ACEOF
17151
17152
17153 fi
17154
17155
17156 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17157 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17158 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161 cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h. */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 $ac_includes_default
17168 int
17169 main ()
17170 {
17171 #ifndef snprintf
17172 char *p = (char *) snprintf;
17173 #endif
17174
17175 ;
17176 return 0;
17177 }
17178 _ACEOF
17179 rm -f conftest.$ac_objext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17181 (eval $ac_compile) 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
17188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest.$ac_objext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_cv_have_decl_snprintf=yes
17201 else
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 ac_cv_have_decl_snprintf=no
17206 fi
17207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17208 fi
17209 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17210 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17211 if test $ac_cv_have_decl_snprintf = yes; then
17212
17213 cat >>confdefs.h <<_ACEOF
17214 #define HAVE_DECL_SNPRINTF 1
17215 _ACEOF
17216
17217
17218 else
17219 cat >>confdefs.h <<_ACEOF
17220 #define HAVE_DECL_SNPRINTF 0
17221 _ACEOF
17222
17223
17224 fi
17225
17226
17227 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17228 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17229 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 else
17232 cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h. */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 $ac_includes_default
17239 int
17240 main ()
17241 {
17242 #ifndef vsnprintf
17243 char *p = (char *) vsnprintf;
17244 #endif
17245
17246 ;
17247 return 0;
17248 }
17249 _ACEOF
17250 rm -f conftest.$ac_objext
17251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17252 (eval $ac_compile) 2>conftest.er1
17253 ac_status=$?
17254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } &&
17259 { ac_try='test -z "$ac_c_werror_flag" || 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_vsnprintf=yes
17272 else
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 ac_cv_have_decl_vsnprintf=no
17277 fi
17278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17279 fi
17280 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17281 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17282 if test $ac_cv_have_decl_vsnprintf = yes; then
17283
17284 cat >>confdefs.h <<_ACEOF
17285 #define HAVE_DECL_VSNPRINTF 1
17286 _ACEOF
17287
17288
17289 else
17290 cat >>confdefs.h <<_ACEOF
17291 #define HAVE_DECL_VSNPRINTF 0
17292 _ACEOF
17293
17294
17295 fi
17296
17297
17298
17299 # Link in zlib if we can. This allows us to read compressed debug sections.
17300 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
17301 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
17302 if test "${ac_cv_search_zlibVersion+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305 ac_func_search_save_LIBS=$LIBS
17306 ac_cv_search_zlibVersion=no
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h. */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313
17314 /* Override any gcc2 internal prototype to avoid an error. */
17315 #ifdef __cplusplus
17316 extern "C"
17317 #endif
17318 /* We use char because int might match the return type of a gcc2
17319 builtin and then its argument prototype would still apply. */
17320 char zlibVersion ();
17321 int
17322 main ()
17323 {
17324 zlibVersion ();
17325 ;
17326 return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17331 (eval $ac_link) 2>conftest.er1
17332 ac_status=$?
17333 grep -v '^ *+' conftest.er1 >conftest.err
17334 rm -f conftest.er1
17335 cat conftest.err >&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } &&
17338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest$ac_exeext'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 ac_cv_search_zlibVersion="none required"
17351 else
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 fi
17356 rm -f conftest.err conftest.$ac_objext \
17357 conftest$ac_exeext conftest.$ac_ext
17358 if test "$ac_cv_search_zlibVersion" = no; then
17359 for ac_lib in z; do
17360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h. */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367
17368 /* Override any gcc2 internal prototype to avoid an error. */
17369 #ifdef __cplusplus
17370 extern "C"
17371 #endif
17372 /* We use char because int might match the return type of a gcc2
17373 builtin and then its argument prototype would still apply. */
17374 char zlibVersion ();
17375 int
17376 main ()
17377 {
17378 zlibVersion ();
17379 ;
17380 return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; } &&
17398 { ac_try='test -s conftest$ac_exeext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_cv_search_zlibVersion="-l$ac_lib"
17405 break
17406 else
17407 echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17409
17410 fi
17411 rm -f conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 done
17414 fi
17415 LIBS=$ac_func_search_save_LIBS
17416 fi
17417 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
17418 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
17419 if test "$ac_cv_search_zlibVersion" != no; then
17420 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
17421
17422 for ac_header in zlib.h
17423 do
17424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17426 echo "$as_me:$LINENO: checking for $ac_header" >&5
17427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 fi
17431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17433 else
17434 # Is the header compilable?
17435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17437 cat >conftest.$ac_ext <<_ACEOF
17438 /* confdefs.h. */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443 $ac_includes_default
17444 #include <$ac_header>
17445 _ACEOF
17446 rm -f conftest.$ac_objext
17447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17448 (eval $ac_compile) 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; } &&
17461 { ac_try='test -s conftest.$ac_objext'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467 ac_header_compiler=yes
17468 else
17469 echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17471
17472 ac_header_compiler=no
17473 fi
17474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17476 echo "${ECHO_T}$ac_header_compiler" >&6
17477
17478 # Is the header present?
17479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17481 cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h. */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 #include <$ac_header>
17488 _ACEOF
17489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17491 ac_status=$?
17492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } >/dev/null; then
17497 if test -s conftest.err; then
17498 ac_cpp_err=$ac_c_preproc_warn_flag
17499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17500 else
17501 ac_cpp_err=
17502 fi
17503 else
17504 ac_cpp_err=yes
17505 fi
17506 if test -z "$ac_cpp_err"; then
17507 ac_header_preproc=yes
17508 else
17509 echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512 ac_header_preproc=no
17513 fi
17514 rm -f conftest.err conftest.$ac_ext
17515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17516 echo "${ECHO_T}$ac_header_preproc" >&6
17517
17518 # So? What about this header?
17519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17520 yes:no: )
17521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17525 ac_header_preproc=yes
17526 ;;
17527 no:yes:* )
17528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17540 (
17541 cat <<\_ASBOX
17542 ## ------------------------------------------ ##
17543 ## Report this to the AC_PACKAGE_NAME lists. ##
17544 ## ------------------------------------------ ##
17545 _ASBOX
17546 ) |
17547 sed "s/^/$as_me: WARNING: /" >&2
17548 ;;
17549 esac
17550 echo "$as_me:$LINENO: checking for $ac_header" >&5
17551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
17554 else
17555 eval "$as_ac_Header=\$ac_header_preproc"
17556 fi
17557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17559
17560 fi
17561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17562 cat >>confdefs.h <<_ACEOF
17563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17564 _ACEOF
17565
17566 fi
17567
17568 done
17569
17570 fi
17571
17572
17573 # If we are configured native, pick a core file support file.
17574 COREFILE=
17575 COREFLAG=
17576 TRAD_HEADER=
17577 if test "${target}" = "${host}"; then
17578 case "${host}" in
17579 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
17580 COREFILE=''
17581 ;;
17582 alpha*-*-linux-*)
17583 COREFILE=trad-core.lo
17584 TRAD_HEADER='"hosts/alphalinux.h"'
17585 ;;
17586 alpha*-*-netbsd* | alpha*-*-openbsd*)
17587 COREFILE=netbsd-core.lo
17588 ;;
17589 alpha*-*-*) COREFILE=osf-core.lo ;;
17590 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17591 COREFILE='' ;;
17592 arm-*-netbsd* | arm-*-openbsd*)
17593 COREFILE=netbsd-core.lo
17594 ;;
17595 arm-*-riscix) COREFILE=trad-core.lo ;;
17596 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
17597 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
17598 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
17599 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
17600 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
17601 hppa*-*-netbsd* | hppa*-*-openbsd*)
17602 COREFILE=netbsd-core.lo
17603 ;;
17604
17605 i370-*-*)
17606 COREFILE=trad-core.lo
17607 TRAD_HEADER='"hosts/i370linux.h"'
17608 ;;
17609
17610 i[3-7]86-sequent-bsd*)
17611 COREFILE=trad-core.lo
17612 TRAD_HEADER='"hosts/symmetry.h"'
17613 ;;
17614 i[3-7]86-sequent-sysv4*) ;;
17615 i[3-7]86-sequent-sysv*)
17616 COREFILE=trad-core.lo
17617 TRAD_HEADER='"hosts/symmetry.h"'
17618 ;;
17619 i[3-7]86-*-bsdi)
17620 COREFILE=
17621 ;;
17622 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*)
17623 COREFILE=trad-core.lo
17624 TRAD_HEADER='"hosts/i386bsd.h"'
17625 ;;
17626 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
17627 COREFILE=''
17628 TRAD_HEADER='"hosts/i386bsd.h"'
17629 ;;
17630 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
17631 COREFILE=netbsd-core.lo
17632 ;;
17633 i[3-7]86-esix-sysv3*)
17634 COREFILE=trad-core.lo
17635 TRAD_HEADER='"hosts/esix.h"'
17636 ;;
17637 i[3-7]86-*-sco3.2v5*)
17638 COREFILE=sco5-core.lo
17639 ;;
17640 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
17641 COREFILE=trad-core.lo
17642 TRAD_HEADER='"hosts/i386sco.h"'
17643 ;;
17644 i[3-7]86-*-mach3*)
17645 COREFILE=trad-core.lo
17646 TRAD_HEADER='"hosts/i386mach3.h"'
17647 ;;
17648 i[3-7]86-*-linux-*)
17649 COREFILE=trad-core.lo
17650 TRAD_HEADER='"hosts/i386linux.h"'
17651 ;;
17652 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17653 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
17654 i860-*-mach3* | i860-*-osf1*)
17655 COREFILE=trad-core.lo
17656 TRAD_HEADER='"hosts/i860mach3.h"'
17657 ;;
17658 mips-*-netbsd* | mips*-*-openbsd*)
17659 COREFILE=netbsd-core.lo
17660 ;;
17661 mips-dec-*)
17662 COREFILE=trad-core.lo
17663 TRAD_HEADER='"hosts/decstation.h"'
17664 ;;
17665 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17666 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17667 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
17668 mips-*-sysv4*) ;;
17669 mips-*-sysv* | mips-*-riscos*)
17670 COREFILE=trad-core.lo
17671 TRAD_HEADER='"hosts/riscos.h"'
17672 ;;
17673 mips-sony-bsd*)
17674 COREFILE=trad-core.lo
17675 TRAD_HEADER='"hosts/news-mips.h"'
17676 ;;
17677 m68*-bull*-sysv*)
17678 COREFILE=trad-core.lo
17679 TRAD_HEADER='"hosts/dpx2.h"'
17680 ;;
17681 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17682 m68*-hp-bsd*)
17683 COREFILE=trad-core.lo
17684 TRAD_HEADER='"hosts/hp300bsd.h"'
17685 ;;
17686 m68*-*-linux-*)
17687 COREFILE=trad-core.lo
17688 TRAD_HEADER='"hosts/m68klinux.h"'
17689 ;;
17690 m68*-motorola-sysv*)
17691 COREFILE=trad-core.lo
17692 TRAD_HEADER='"hosts/delta68.h"'
17693 ;;
17694 m68*-sony-*)
17695 COREFILE=trad-core.lo
17696 TRAD_HEADER='"hosts/news.h"'
17697 ;;
17698 m68*-*-netbsd* | m68*-*-openbsd*)
17699 COREFILE=netbsd-core.lo
17700 ;;
17701 m68*-apple-aux*)
17702 COREFILE=trad-core.lo
17703 TRAD_HEADER='"hosts/m68kaux.h"'
17704 ;;
17705 m88*-*-sysv4*)
17706 ;;
17707 m88*-motorola-sysv*)
17708 COREFILE=ptrace-core.lo
17709 ;;
17710 m88*-*-mach3*)
17711 COREFILE=trad-core.lo
17712 TRAD_HEADER='"hosts/m88kmach3.h"'
17713 ;;
17714 m88*-*-openbsd*)
17715 COREFILE=netbsd-core.lo
17716 ;;
17717 ns32k-pc532-mach)
17718 COREFILE=trad-core.lo
17719 TRAD_HEADER='"hosts/pc532mach.h"'
17720 ;;
17721 ns32k-*-netbsd* | ns32k-*-openbsd*)
17722 COREFILE=netbsd-core.lo
17723 ;;
17724 rs6000-*-lynx*)
17725 COREFILE=lynx-core.lo
17726 ;;
17727 rs6000-*-aix5.* | powerpc-*-aix5.*)
17728 COREFILE=rs6000-core.lo
17729 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17730 ;;
17731 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
17732 COREFILE=rs6000-core.lo
17733 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
17734 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17735 # have c_impl as a member of struct core_dumpx
17736 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17737 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17738 cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h. */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744 #include <core.h>
17745 int
17746 main ()
17747 {
17748 struct core_dumpx c; c.c_impl = 0;
17749 ;
17750 return 0;
17751 }
17752 _ACEOF
17753 rm -f conftest.$ac_objext
17754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17755 (eval $ac_compile) 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest.$ac_objext'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774
17775 cat >>confdefs.h <<\_ACEOF
17776 #define HAVE_ST_C_IMPL 1
17777 _ACEOF
17778
17779 echo "$as_me:$LINENO: result: yes" >&5
17780 echo "${ECHO_T}yes" >&6
17781 else
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17784
17785 echo "$as_me:$LINENO: result: no" >&5
17786 echo "${ECHO_T}no" >&6
17787 fi
17788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17789 ;;
17790 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17791 rs6000-*-*) COREFILE=rs6000-core.lo ;;
17792 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17793 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17794 powerpc-*-beos*) ;;
17795 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17796 COREFILE='' ;;
17797 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
17798 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
17799 s390*-*-*) COREFILE=trad-core.lo ;;
17800 sh*-*-netbsd* | sh*-*-openbsd*)
17801 COREFILE=netbsd-core.lo
17802 ;;
17803 sparc-*-netbsd* | sparc*-*-openbsd*)
17804 COREFILE=netbsd-core.lo
17805 ;;
17806 tahoe-*-*)
17807 COREFILE=trad-core.lo
17808 TRAD_HEADER='"hosts/tahoe.h"'
17809 ;;
17810 vax-*-netbsd* | vax-*-openbsd*)
17811 COREFILE=netbsd-core.lo
17812 ;;
17813 vax-*-ultrix2*)
17814 COREFILE=trad-core.lo
17815 TRAD_HEADER='"hosts/vaxult2.h"'
17816 ;;
17817 vax-*-ultrix*)
17818 COREFILE=trad-core.lo
17819 TRAD_HEADER='"hosts/vaxult2.h"'
17820 ;;
17821 vax-*-linux-*)
17822 COREFILE=trad-core.lo
17823 TRAD_HEADER='"hosts/vaxlinux.h"'
17824 ;;
17825 vax-*-*)
17826 COREFILE=trad-core.lo
17827 TRAD_HEADER='"hosts/vaxbsd.h"'
17828 ;;
17829 x86_64-*-netbsd* | x86_64-*-openbsd*)
17830 COREFILE=netbsd-core.lo
17831 ;;
17832 esac
17833
17834 case "$COREFILE" in
17835 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17836 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17837 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17838 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17839 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17840 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17841 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17842 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17843 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17844 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17845 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17846 esac
17847
17848 # ELF corefile support has several flavors, but all of
17849 # them use something called <sys/procfs.h>
17850
17851 for ac_header in sys/procfs.h
17852 do
17853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17855 echo "$as_me:$LINENO: checking for $ac_header" >&5
17856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 fi
17860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17862 else
17863 # Is the header compilable?
17864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h. */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 $ac_includes_default
17873 #include <$ac_header>
17874 _ACEOF
17875 rm -f conftest.$ac_objext
17876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17877 (eval $ac_compile) 2>conftest.er1
17878 ac_status=$?
17879 grep -v '^ *+' conftest.er1 >conftest.err
17880 rm -f conftest.er1
17881 cat conftest.err >&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } &&
17884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_header_compiler=yes
17897 else
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17900
17901 ac_header_compiler=no
17902 fi
17903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17905 echo "${ECHO_T}$ac_header_compiler" >&6
17906
17907 # Is the header present?
17908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h. */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 #include <$ac_header>
17917 _ACEOF
17918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } >/dev/null; then
17926 if test -s conftest.err; then
17927 ac_cpp_err=$ac_c_preproc_warn_flag
17928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17929 else
17930 ac_cpp_err=
17931 fi
17932 else
17933 ac_cpp_err=yes
17934 fi
17935 if test -z "$ac_cpp_err"; then
17936 ac_header_preproc=yes
17937 else
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17940
17941 ac_header_preproc=no
17942 fi
17943 rm -f conftest.err conftest.$ac_ext
17944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17945 echo "${ECHO_T}$ac_header_preproc" >&6
17946
17947 # So? What about this header?
17948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17949 yes:no: )
17950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17954 ac_header_preproc=yes
17955 ;;
17956 no:yes:* )
17957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17969 (
17970 cat <<\_ASBOX
17971 ## ------------------------------------------ ##
17972 ## Report this to the AC_PACKAGE_NAME lists. ##
17973 ## ------------------------------------------ ##
17974 _ASBOX
17975 ) |
17976 sed "s/^/$as_me: WARNING: /" >&2
17977 ;;
17978 esac
17979 echo "$as_me:$LINENO: checking for $ac_header" >&5
17980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 else
17984 eval "$as_ac_Header=\$ac_header_preproc"
17985 fi
17986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17988
17989 fi
17990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17991 cat >>confdefs.h <<_ACEOF
17992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17993 _ACEOF
17994
17995 fi
17996
17997 done
17998
17999 if test "$ac_cv_header_sys_procfs_h" = yes; then
18000 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
18001 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
18002 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005 cat >conftest.$ac_ext <<_ACEOF
18006 /* confdefs.h. */
18007 _ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18011
18012 #define _SYSCALL32
18013 #include <sys/procfs.h>
18014 int
18015 main ()
18016 {
18017 prstatus_t avar
18018 ;
18019 return 0;
18020 }
18021 _ACEOF
18022 rm -f conftest.$ac_objext
18023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18024 (eval $ac_compile) 2>conftest.er1
18025 ac_status=$?
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
18031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; } &&
18037 { ac_try='test -s conftest.$ac_objext'
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043 bfd_cv_have_sys_procfs_type_prstatus_t=yes
18044 else
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18047
18048 bfd_cv_have_sys_procfs_type_prstatus_t=no
18049
18050 fi
18051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18052 fi
18053
18054 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
18055
18056 cat >>confdefs.h <<\_ACEOF
18057 #define HAVE_PRSTATUS_T 1
18058 _ACEOF
18059
18060 fi
18061 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
18062 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
18063
18064 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
18065 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
18066 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
18067 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 else
18069 cat >conftest.$ac_ext <<_ACEOF
18070 /* confdefs.h. */
18071 _ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18075
18076 #define _SYSCALL32
18077 #include <sys/procfs.h>
18078 int
18079 main ()
18080 {
18081 prstatus32_t avar
18082 ;
18083 return 0;
18084 }
18085 _ACEOF
18086 rm -f conftest.$ac_objext
18087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18088 (eval $ac_compile) 2>conftest.er1
18089 ac_status=$?
18090 grep -v '^ *+' conftest.er1 >conftest.err
18091 rm -f conftest.er1
18092 cat conftest.err >&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } &&
18095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; } &&
18101 { ac_try='test -s conftest.$ac_objext'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
18108 else
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18111
18112 bfd_cv_have_sys_procfs_type_prstatus32_t=no
18113
18114 fi
18115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18116 fi
18117
18118 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
18119
18120 cat >>confdefs.h <<\_ACEOF
18121 #define HAVE_PRSTATUS32_T 1
18122 _ACEOF
18123
18124 fi
18125 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
18126 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
18127
18128 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
18129 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18130 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139
18140 #define _SYSCALL32
18141 #include <sys/procfs.h>
18142 int
18143 main ()
18144 {
18145 prstatus_t avar; void* aref = (void*) &avar.pr_who
18146 ;
18147 return 0;
18148 }
18149 _ACEOF
18150 rm -f conftest.$ac_objext
18151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18152 (eval $ac_compile) 2>conftest.er1
18153 ac_status=$?
18154 grep -v '^ *+' conftest.er1 >conftest.err
18155 rm -f conftest.er1
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest.$ac_objext'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18172 else
18173 echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18175
18176 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18177
18178 fi
18179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18180 fi
18181
18182 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
18183
18184 cat >>confdefs.h <<\_ACEOF
18185 #define HAVE_PRSTATUS_T_PR_WHO 1
18186 _ACEOF
18187
18188 fi
18189 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18190 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
18191
18192 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18193 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18194 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18195 echo $ECHO_N "(cached) $ECHO_C" >&6
18196 else
18197 cat >conftest.$ac_ext <<_ACEOF
18198 /* confdefs.h. */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203
18204 #define _SYSCALL32
18205 #include <sys/procfs.h>
18206 int
18207 main ()
18208 {
18209 prstatus32_t avar; void* aref = (void*) &avar.pr_who
18210 ;
18211 return 0;
18212 }
18213 _ACEOF
18214 rm -f conftest.$ac_objext
18215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18216 (eval $ac_compile) 2>conftest.er1
18217 ac_status=$?
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
18223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } &&
18229 { ac_try='test -s conftest.$ac_objext'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18236 else
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18239
18240 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18241
18242 fi
18243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18244 fi
18245
18246 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
18247
18248 cat >>confdefs.h <<\_ACEOF
18249 #define HAVE_PRSTATUS32_T_PR_WHO 1
18250 _ACEOF
18251
18252 fi
18253 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18254 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
18255
18256 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18257 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18258 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 else
18261 cat >conftest.$ac_ext <<_ACEOF
18262 /* confdefs.h. */
18263 _ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18267
18268 #define _SYSCALL32
18269 #include <sys/procfs.h>
18270 int
18271 main ()
18272 {
18273 pstatus_t avar
18274 ;
18275 return 0;
18276 }
18277 _ACEOF
18278 rm -f conftest.$ac_objext
18279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18280 (eval $ac_compile) 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest.$ac_objext'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18303
18304 bfd_cv_have_sys_procfs_type_pstatus_t=no
18305
18306 fi
18307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18308 fi
18309
18310 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18311
18312 cat >>confdefs.h <<\_ACEOF
18313 #define HAVE_PSTATUS_T 1
18314 _ACEOF
18315
18316 fi
18317 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18318 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18319
18320 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18321 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18322 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18323 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 else
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331
18332 #define _SYSCALL32
18333 #include <sys/procfs.h>
18334 int
18335 main ()
18336 {
18337 pxstatus_t avar
18338 ;
18339 return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344 (eval $ac_compile) 2>conftest.er1
18345 ac_status=$?
18346 grep -v '^ *+' conftest.er1 >conftest.err
18347 rm -f conftest.er1
18348 cat conftest.err >&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
18351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18364 else
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18367
18368 bfd_cv_have_sys_procfs_type_pxstatus_t=no
18369
18370 fi
18371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18372 fi
18373
18374 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
18375
18376 cat >>confdefs.h <<\_ACEOF
18377 #define HAVE_PXSTATUS_T 1
18378 _ACEOF
18379
18380 fi
18381 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18382 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
18383
18384 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18385 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18386 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389 cat >conftest.$ac_ext <<_ACEOF
18390 /* confdefs.h. */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18395
18396 #define _SYSCALL32
18397 #include <sys/procfs.h>
18398 int
18399 main ()
18400 {
18401 pstatus32_t avar
18402 ;
18403 return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext
18407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18408 (eval $ac_compile) 2>conftest.er1
18409 ac_status=$?
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
18415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try='test -s conftest.$ac_objext'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; }; then
18427 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18428 else
18429 echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18431
18432 bfd_cv_have_sys_procfs_type_pstatus32_t=no
18433
18434 fi
18435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18436 fi
18437
18438 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
18439
18440 cat >>confdefs.h <<\_ACEOF
18441 #define HAVE_PSTATUS32_T 1
18442 _ACEOF
18443
18444 fi
18445 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18446 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
18447
18448 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18449 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18450 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453 cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h. */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459
18460 #define _SYSCALL32
18461 #include <sys/procfs.h>
18462 int
18463 main ()
18464 {
18465 prpsinfo_t avar
18466 ;
18467 return 0;
18468 }
18469 _ACEOF
18470 rm -f conftest.$ac_objext
18471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18472 (eval $ac_compile) 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
18479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; } &&
18485 { ac_try='test -s conftest.$ac_objext'
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18492 else
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18495
18496 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18497
18498 fi
18499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18500 fi
18501
18502 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
18503
18504 cat >>confdefs.h <<\_ACEOF
18505 #define HAVE_PRPSINFO_T 1
18506 _ACEOF
18507
18508 fi
18509 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18510 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
18511
18512 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18513 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18514 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h. */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523
18524 #define _SYSCALL32
18525 #include <sys/procfs.h>
18526 int
18527 main ()
18528 {
18529 prpsinfo32_t avar
18530 ;
18531 return 0;
18532 }
18533 _ACEOF
18534 rm -f conftest.$ac_objext
18535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18536 (eval $ac_compile) 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18556 else
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18561
18562 fi
18563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18564 fi
18565
18566 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
18567
18568 cat >>confdefs.h <<\_ACEOF
18569 #define HAVE_PRPSINFO32_T 1
18570 _ACEOF
18571
18572 fi
18573 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18574 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
18575
18576 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18577 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18578 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 else
18581 cat >conftest.$ac_ext <<_ACEOF
18582 /* confdefs.h. */
18583 _ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18587
18588 #define _SYSCALL32
18589 #include <sys/procfs.h>
18590 int
18591 main ()
18592 {
18593 psinfo_t avar
18594 ;
18595 return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext
18599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18600 (eval $ac_compile) 2>conftest.er1
18601 ac_status=$?
18602 grep -v '^ *+' conftest.er1 >conftest.err
18603 rm -f conftest.er1
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; } &&
18613 { ac_try='test -s conftest.$ac_objext'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18620 else
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 bfd_cv_have_sys_procfs_type_psinfo_t=no
18625
18626 fi
18627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18628 fi
18629
18630 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
18631
18632 cat >>confdefs.h <<\_ACEOF
18633 #define HAVE_PSINFO_T 1
18634 _ACEOF
18635
18636 fi
18637 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18638 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
18639
18640 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18641 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18642 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645 cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h. */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651
18652 #define _SYSCALL32
18653 #include <sys/procfs.h>
18654 int
18655 main ()
18656 {
18657 psinfo32_t avar
18658 ;
18659 return 0;
18660 }
18661 _ACEOF
18662 rm -f conftest.$ac_objext
18663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18664 (eval $ac_compile) 2>conftest.er1
18665 ac_status=$?
18666 grep -v '^ *+' conftest.er1 >conftest.err
18667 rm -f conftest.er1
18668 cat conftest.err >&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } &&
18671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; } &&
18677 { ac_try='test -s conftest.$ac_objext'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; }; then
18683 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18684 else
18685 echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18687
18688 bfd_cv_have_sys_procfs_type_psinfo32_t=no
18689
18690 fi
18691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18692 fi
18693
18694 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
18695
18696 cat >>confdefs.h <<\_ACEOF
18697 #define HAVE_PSINFO32_T 1
18698 _ACEOF
18699
18700 fi
18701 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18702 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
18703
18704 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18705 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18706 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h. */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18715
18716 #define _SYSCALL32
18717 #include <sys/procfs.h>
18718 int
18719 main ()
18720 {
18721 lwpstatus_t avar
18722 ;
18723 return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728 (eval $ac_compile) 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); } &&
18735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18738 ac_status=$?
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; } &&
18741 { ac_try='test -s conftest.$ac_objext'
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
18747 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18748 else
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18751
18752 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18753
18754 fi
18755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18756 fi
18757
18758 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
18759
18760 cat >>confdefs.h <<\_ACEOF
18761 #define HAVE_LWPSTATUS_T 1
18762 _ACEOF
18763
18764 fi
18765 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18766 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
18767
18768 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18769 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18770 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18772 else
18773 cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h. */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18779
18780 #define _SYSCALL32
18781 #include <sys/procfs.h>
18782 int
18783 main ()
18784 {
18785 lwpxstatus_t avar
18786 ;
18787 return 0;
18788 }
18789 _ACEOF
18790 rm -f conftest.$ac_objext
18791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18792 (eval $ac_compile) 2>conftest.er1
18793 ac_status=$?
18794 grep -v '^ *+' conftest.er1 >conftest.err
18795 rm -f conftest.er1
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } &&
18799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; } &&
18805 { ac_try='test -s conftest.$ac_objext'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18812 else
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18815
18816 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18817
18818 fi
18819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18820 fi
18821
18822 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
18823
18824 cat >>confdefs.h <<\_ACEOF
18825 #define HAVE_LWPXSTATUS_T 1
18826 _ACEOF
18827
18828 fi
18829 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18830 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
18831
18832 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18833 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18834 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18835 echo $ECHO_N "(cached) $ECHO_C" >&6
18836 else
18837 cat >conftest.$ac_ext <<_ACEOF
18838 /* confdefs.h. */
18839 _ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18843
18844 #define _SYSCALL32
18845 #include <sys/procfs.h>
18846 int
18847 main ()
18848 {
18849 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
18850 ;
18851 return 0;
18852 }
18853 _ACEOF
18854 rm -f conftest.$ac_objext
18855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18856 (eval $ac_compile) 2>conftest.er1
18857 ac_status=$?
18858 grep -v '^ *+' conftest.er1 >conftest.err
18859 rm -f conftest.er1
18860 cat conftest.err >&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } &&
18863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; } &&
18869 { ac_try='test -s conftest.$ac_objext'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18875 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18876 else
18877 echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18879
18880 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18881
18882 fi
18883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18884 fi
18885
18886 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
18887
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
18890 _ACEOF
18891
18892 fi
18893 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18894 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
18895
18896 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18897 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18898 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901 cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h. */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18907
18908 #define _SYSCALL32
18909 #include <sys/procfs.h>
18910 int
18911 main ()
18912 {
18913 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
18914 ;
18915 return 0;
18916 }
18917 _ACEOF
18918 rm -f conftest.$ac_objext
18919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18920 (eval $ac_compile) 2>conftest.er1
18921 ac_status=$?
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
18927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest.$ac_objext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18940 else
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18945
18946 fi
18947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18948 fi
18949
18950 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
18951
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE_LWPSTATUS_T_PR_REG 1
18954 _ACEOF
18955
18956 fi
18957 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18958 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
18959
18960 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18961 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18962 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h. */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971
18972 #define _SYSCALL32
18973 #include <sys/procfs.h>
18974 int
18975 main ()
18976 {
18977 win32_pstatus_t avar
18978 ;
18979 return 0;
18980 }
18981 _ACEOF
18982 rm -f conftest.$ac_objext
18983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18984 (eval $ac_compile) 2>conftest.er1
18985 ac_status=$?
18986 grep -v '^ *+' conftest.er1 >conftest.err
18987 rm -f conftest.er1
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try='test -s conftest.$ac_objext'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; }; then
19003 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
19004 else
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
19009
19010 fi
19011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19012 fi
19013
19014 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
19015
19016 cat >>confdefs.h <<\_ACEOF
19017 #define HAVE_WIN32_PSTATUS_T 1
19018 _ACEOF
19019
19020 fi
19021 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
19022 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
19023
19024 fi
19025 fi
19026
19027
19028 if test -n "$TRAD_HEADER"; then
19029
19030 cat >>confdefs.h <<_ACEOF
19031 #define TRAD_HEADER $TRAD_HEADER
19032 _ACEOF
19033
19034 fi
19035
19036 # Horrible hacks to build DLLs on Windows.
19037 WIN32LDFLAGS=
19038 WIN32LIBADD=
19039 case "${host}" in
19040 *-*-cygwin*)
19041 if test "$enable_shared" = "yes"; then
19042 WIN32LDFLAGS="-no-undefined"
19043 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
19044 fi
19045 ;;
19046 *-*-linux*)
19047 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
19048 # libiberty.a.
19049 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
19050 if test -n "$x"; then
19051 WIN32LIBADD="-L../libiberty/pic -liberty"
19052 fi
19053 ;;
19054 esac
19055
19056
19057
19058 # target stuff:
19059
19060 # Canonicalize the secondary target names.
19061 if test -n "$enable_targets" ; then
19062 for targ in `echo $enable_targets | sed 's/,/ /g'`
19063 do
19064 result=`$ac_config_sub $targ 2>/dev/null`
19065 if test -n "$result" ; then
19066 canon_targets="$canon_targets $result"
19067 else
19068 # Allow targets that config.sub doesn't recognize, like "all".
19069 canon_targets="$canon_targets $targ"
19070 fi
19071 done
19072 fi
19073
19074 all_targets=false
19075 defvec=
19076 selvecs=
19077 assocvecs=
19078 selarchs=
19079 TDEFINES=
19080 for targ in $target $canon_targets
19081 do
19082 if test "x$targ" = "xall"; then
19083 all_targets=true
19084 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
19085 else
19086 . $srcdir/config.bfd
19087 if test "x$targ" = "x$target"; then
19088 defvec=$targ_defvec
19089 fi
19090 selvecs="$selvecs $targ_defvec $targ_selvecs"
19091 selarchs="$selarchs $targ_archs"
19092 TDEFINES="$TDEFINES $targ_cflags"
19093 fi
19094 done
19095
19096
19097 # This processing still needs to be done if we're to decide properly whether
19098 # 64-bit support needs to be compiled in. Currently, it will be included if
19099 # the default or any other explicitly requested target requires it; it
19100 # will not be included on a 32-bit host if no 64-bit target is requested, and
19101 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
19102 # used.
19103
19104 # uniq the default and selected vectors in all the configured targets.
19105 f=""
19106 for i in $selvecs ; do
19107 case " $f " in
19108 *" $i "*) ;;
19109 *) f="$f $i" ;;
19110 esac
19111 done
19112 selvecs="$f"
19113
19114
19115 # uniq the associated vectors in all the configured targets.
19116 f=""
19117 for i in $assocvecs ; do
19118 case " $f " in
19119 *" $i "*) ;;
19120 *) f="$f $i" ;;
19121 esac
19122 done
19123 assocvecs="$f"
19124
19125
19126 # uniq the architectures in all the configured targets.
19127 f=""
19128 for i in $selarchs ; do
19129 case " $f " in
19130 *" $i "*) ;;
19131 *) f="$f $i" ;;
19132 esac
19133 done
19134 selarchs="$f"
19135
19136 # Target backend .o files.
19137 tb=
19138
19139 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
19140
19141 for vec in $selvecs
19142 do
19143 target_size=32
19144 case "$vec" in
19145 # This list is alphabetized to make it easy to compare
19146 # with the two vector lists in targets.c. For the same reason,
19147 # use one entry per line, even though this leads to long lines.
19148 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
19149 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19150 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
19151 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19152 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19153 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
19154 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19155 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19156 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19157 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19158 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19159 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19160 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19161 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19162 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19163 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19164 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19165 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19166 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19167 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19168 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19169 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19170 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
19171 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
19172 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19173 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
19174 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19175 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19176 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19177 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19178 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19179 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19180 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
19181 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
19182 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19183 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19184 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19185 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19186 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19187 bfd_elf32_bigarm_symbian_vec)
19188 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19189 bfd_elf32_bigarm_vxworks_vec)
19190 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19191 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19192 bfd_elf32_bigmips_vxworks_vec)
19193 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19194 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
19195 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
19196 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19197 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
19198 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19199 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
19200 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
19201 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
19202 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19203 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19204 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
19205 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19206 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19207 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19208 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
19209 bfd_elf32_i386_dragonfly_vec)
19210 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19211 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19212 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19213 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19214 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19215 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19216 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
19217 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
19218 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
19219 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
19220 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
19221 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19222 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19223 bfd_elf32_littlearm_symbian_vec)
19224 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19225 bfd_elf32_littlearm_vxworks_vec)
19226 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19227 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19228 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19229 bfd_elf32_littlemips_vxworks_vec)
19230 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19231 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
19232 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19233 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19234 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19235 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19236 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19237 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19238 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19239 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19240 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19241 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19242 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19243 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19244 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19245 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
19246 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
19247 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
19248 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19249 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19250 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19251 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19252 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
19253 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
19254 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19255 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19256 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19257 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19258 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19259 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
19260 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19261 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19262 # FIXME: We include cofflink.lo not because it's needed for
19263 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19264 # which needs it but does not list it. Should be fixed in right place.
19265 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19266 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19267 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19268 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19269 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19270 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19271 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19272 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19273 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19274 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19275 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19276 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19277 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19278 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19279 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19280 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19281 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19282 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
19283 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19284 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19285 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19286 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
19287 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
19288 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
19289 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
19290 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19291 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19292 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19293 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19294 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19295 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 ;;
19296 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19297 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19298 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19299 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19300 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19301 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19302 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 ;;
19303 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
19304 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19305 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19306 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
19307 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19308 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19309 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19310 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19311 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19312 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19313 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19314 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19315 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 ;;
19316 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 ;;
19317 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19318 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19319 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
19320 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19321 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19322 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19323 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19324 cris_aout_vec) tb="$tb aout-cris.lo" ;;
19325 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
19326 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19327 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19328 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19329 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
19330 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
19331 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
19332 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
19333 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
19334 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
19335 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
19336 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
19337 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
19338 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
19339 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
19340 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
19341 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19342 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
19343 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
19344 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19345 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19346 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
19347 i386msdos_vec) tb="$tb i386msdos.lo" ;;
19348 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19349 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
19350 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19351 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
19352 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19353 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19354 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
19355 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19356 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19357 ieee_vec) tb="$tb ieee.lo" ;;
19358 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19359 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
19360 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
19361 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19362 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
19363 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
19364 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19365 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
19366 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
19367 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
19368 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
19369 mach_o_be_vec) tb="$tb mach-o.lo" ;;
19370 mach_o_le_vec) tb="$tb mach-o.lo" ;;
19371 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
19372 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19373 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19374 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19375 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19376 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19377 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
19378 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
19379 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
19380 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
19381 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
19382 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
19383 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
19384 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
19385 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
19386 pef_vec) tb="$tb pef.lo" ;;
19387 pef_xlib_vec) tb="$tb pef.lo" ;;
19388 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
19389 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19390 ppcboot_vec) tb="$tb ppcboot.lo" ;;
19391 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
19392 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19393 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19394 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19395 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19396 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19397 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
19398 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19399 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19400 som_vec) tb="$tb som.lo" ;;
19401 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
19402 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
19403 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
19404 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19405 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19406 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
19407 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
19408 sym_vec) tb="$tb xsym.lo" ;;
19409 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19410 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
19411 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
19412 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
19413 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
19414 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
19415 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
19416 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
19417 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
19418 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
19419 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
19420 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
19421 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
19422 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
19423 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
19424 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
19425 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
19426 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
19427 versados_vec) tb="$tb versados.lo" ;;
19428 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
19429 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19430 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
19431 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
19432 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
19433 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
19434
19435 # These appear out of order in targets.c
19436 srec_vec) tb="$tb srec.lo" ;;
19437 symbolsrec_vec) tb="$tb srec.lo" ;;
19438 tekhex_vec) tb="$tb tekhex.lo" ;;
19439 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
19440 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
19441
19442 "") ;;
19443 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19444 echo "$as_me: error: *** unknown target vector $vec" >&2;}
19445 { (exit 1); exit 1; }; } ;;
19446 esac
19447
19448 if test ${target_size} = 64; then
19449 target64=true
19450 fi
19451 if test x"${vec}" = x"${defvec}"; then
19452 bfd_default_target_size=${target_size}
19453 fi
19454 done
19455
19456 # Target architecture .o files.
19457 # A couple of CPUs use shorter file names to avoid problems on DOS
19458 # filesystems.
19459 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
19460
19461 # Weed out duplicate .o files.
19462 f=""
19463 for i in $tb ; do
19464 case " $f " in
19465 *" $i "*) ;;
19466 *) f="$f $i" ;;
19467 esac
19468 done
19469 tb="$f"
19470
19471 f=""
19472 for i in $ta ; do
19473 case " $f " in
19474 *" $i "*) ;;
19475 *) f="$f $i" ;;
19476 esac
19477 done
19478 ta="$f"
19479
19480 bfd_backends="$tb"
19481 bfd_machines="$ta"
19482
19483 if test x${all_targets} = xtrue ; then
19484 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19485 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19486 selvecs=
19487 havevecs=
19488 selarchs=
19489 test -n "$assocvecs" &&
19490 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19491 else # all_targets is true
19492 # Only set these if they will be nonempty, for the clever echo.
19493 havevecs=
19494 assocvecs=
19495 test -n "$selvecs" &&
19496 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19497 test -n "$selvecs" &&
19498 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19499 test -n "$selarchs" &&
19500 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19501 fi # all_targets is true
19502
19503 case ${host64}-${target64}-${want64} in
19504 *true*)
19505 wordsize=64
19506 bfd64_libs='$(BFD64_LIBS)'
19507 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
19508 if test $BFD_HOST_64_BIT_DEFINED = 0; then
19509 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19510 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19511 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19512 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
19513 fi
19514 if test -n "$GCC" ; then
19515 bad_64bit_gcc=no;
19516 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19517 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
19518 # Add more tests for gcc versions with non-working 64-bit support here.
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h. */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19525 :__GNUC__:__GNUC_MINOR__:__i386__:
19526 _ACEOF
19527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19528 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
19529 bad_64bit_gcc=yes;
19530 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19531 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
19532 else
19533 echo "$as_me:$LINENO: result: no" >&5
19534 echo "${ECHO_T}no" >&6
19535 fi
19536 rm -f conftest*
19537
19538 if test $bad_64bit_gcc = yes ; then
19539 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19540 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19541 { (exit 1); exit 1; }; }
19542 fi
19543 fi
19544 ;;
19545 false-false-false)
19546 wordsize=32
19547 all_backends='$(BFD32_BACKENDS)'
19548 ;;
19549 esac
19550
19551
19552
19553
19554
19555
19556
19557
19558 # Determine the host dependant file_ptr a.k.a. off_t type. In order
19559 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
19560 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
19561 # Hopefully a reasonable assumption since fseeko et.al. should be
19562 # upward compatible.
19563
19564
19565
19566
19567
19568 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
19569 do
19570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19571 echo "$as_me:$LINENO: checking for $ac_func" >&5
19572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19573 if eval "test \"\${$as_ac_var+set}\" = set"; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h. */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19584 #define $ac_func innocuous_$ac_func
19585
19586 /* System header to define __stub macros and hopefully few prototypes,
19587 which can conflict with char $ac_func (); below.
19588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19589 <limits.h> exists even on freestanding compilers. */
19590
19591 #ifdef __STDC__
19592 # include <limits.h>
19593 #else
19594 # include <assert.h>
19595 #endif
19596
19597 #undef $ac_func
19598
19599 /* Override any gcc2 internal prototype to avoid an error. */
19600 #ifdef __cplusplus
19601 extern "C"
19602 {
19603 #endif
19604 /* We use char because int might match the return type of a gcc2
19605 builtin and then its argument prototype would still apply. */
19606 char $ac_func ();
19607 /* The GNU C library defines this for functions which it implements
19608 to always fail with ENOSYS. Some functions are actually named
19609 something starting with __ and the normal name is an alias. */
19610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19611 choke me
19612 #else
19613 char (*f) () = $ac_func;
19614 #endif
19615 #ifdef __cplusplus
19616 }
19617 #endif
19618
19619 int
19620 main ()
19621 {
19622 return f != $ac_func;
19623 ;
19624 return 0;
19625 }
19626 _ACEOF
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19629 (eval $ac_link) 2>conftest.er1
19630 ac_status=$?
19631 grep -v '^ *+' conftest.er1 >conftest.err
19632 rm -f conftest.er1
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest$ac_exeext'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 eval "$as_ac_var=yes"
19649 else
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 eval "$as_ac_var=no"
19654 fi
19655 rm -f conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
19657 fi
19658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19660 if test `eval echo '${'$as_ac_var'}'` = yes; then
19661 cat >>confdefs.h <<_ACEOF
19662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19663 _ACEOF
19664
19665 fi
19666 done
19667
19668 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19669 echo "$as_me:$LINENO: checking for off_t" >&5
19670 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19671 if test "${ac_cv_type_off_t+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 else
19674 cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h. */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19680 $ac_includes_default
19681 int
19682 main ()
19683 {
19684 if ((off_t *) 0)
19685 return 0;
19686 if (sizeof (off_t))
19687 return 0;
19688 ;
19689 return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext
19693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19694 (eval $ac_compile) 2>conftest.er1
19695 ac_status=$?
19696 grep -v '^ *+' conftest.er1 >conftest.err
19697 rm -f conftest.er1
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest.$ac_objext'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 ac_cv_type_off_t=yes
19714 else
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718 ac_cv_type_off_t=no
19719 fi
19720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19721 fi
19722 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19723 echo "${ECHO_T}$ac_cv_type_off_t" >&6
19724
19725 echo "$as_me:$LINENO: checking size of off_t" >&5
19726 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19727 if test "${ac_cv_sizeof_off_t+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730 if test "$ac_cv_type_off_t" = yes; then
19731 # The cast to unsigned long works around a bug in the HP C Compiler
19732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19734 # This bug is HP SR number 8606223364.
19735 if test "$cross_compiling" = yes; then
19736 # Depending upon the size, compute the lo and hi bounds.
19737 cat >conftest.$ac_ext <<_ACEOF
19738 /* confdefs.h. */
19739 _ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19743 $ac_includes_default
19744 int
19745 main ()
19746 {
19747 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19748 test_array [0] = 0
19749
19750 ;
19751 return 0;
19752 }
19753 _ACEOF
19754 rm -f conftest.$ac_objext
19755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19756 (eval $ac_compile) 2>conftest.er1
19757 ac_status=$?
19758 grep -v '^ *+' conftest.er1 >conftest.err
19759 rm -f conftest.er1
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
19763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_lo=0 ac_mid=0
19776 while :; do
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h. */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 $ac_includes_default
19784 int
19785 main ()
19786 {
19787 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19788 test_array [0] = 0
19789
19790 ;
19791 return 0;
19792 }
19793 _ACEOF
19794 rm -f conftest.$ac_objext
19795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19796 (eval $ac_compile) 2>conftest.er1
19797 ac_status=$?
19798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
19803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 ac_hi=$ac_mid; break
19816 else
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 ac_lo=`expr $ac_mid + 1`
19821 if test $ac_lo -le $ac_mid; then
19822 ac_lo= ac_hi=
19823 break
19824 fi
19825 ac_mid=`expr 2 '*' $ac_mid + 1`
19826 fi
19827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19828 done
19829 else
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h. */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 $ac_includes_default
19840 int
19841 main ()
19842 {
19843 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19844 test_array [0] = 0
19845
19846 ;
19847 return 0;
19848 }
19849 _ACEOF
19850 rm -f conftest.$ac_objext
19851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19852 (eval $ac_compile) 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest.$ac_objext'
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; }; then
19871 ac_hi=-1 ac_mid=-1
19872 while :; do
19873 cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h. */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 $ac_includes_default
19880 int
19881 main ()
19882 {
19883 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19884 test_array [0] = 0
19885
19886 ;
19887 return 0;
19888 }
19889 _ACEOF
19890 rm -f conftest.$ac_objext
19891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19892 (eval $ac_compile) 2>conftest.er1
19893 ac_status=$?
19894 grep -v '^ *+' conftest.er1 >conftest.err
19895 rm -f conftest.er1
19896 cat conftest.err >&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } &&
19899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; } &&
19905 { ac_try='test -s conftest.$ac_objext'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
19911 ac_lo=$ac_mid; break
19912 else
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19915
19916 ac_hi=`expr '(' $ac_mid ')' - 1`
19917 if test $ac_mid -le $ac_hi; then
19918 ac_lo= ac_hi=
19919 break
19920 fi
19921 ac_mid=`expr 2 '*' $ac_mid`
19922 fi
19923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19924 done
19925 else
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929 ac_lo= ac_hi=
19930 fi
19931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19932 fi
19933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19934 # Binary search between lo and hi bounds.
19935 while test "x$ac_lo" != "x$ac_hi"; do
19936 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h. */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 $ac_includes_default
19944 int
19945 main ()
19946 {
19947 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19948 test_array [0] = 0
19949
19950 ;
19951 return 0;
19952 }
19953 _ACEOF
19954 rm -f conftest.$ac_objext
19955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19956 (eval $ac_compile) 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } &&
19963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try='test -s conftest.$ac_objext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_hi=$ac_mid
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980 ac_lo=`expr '(' $ac_mid ')' + 1`
19981 fi
19982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19983 done
19984 case $ac_lo in
19985 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19986 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19987 See \`config.log' for more details." >&5
19988 echo "$as_me: error: cannot compute sizeof (off_t), 77
19989 See \`config.log' for more details." >&2;}
19990 { (exit 1); exit 1; }; } ;;
19991 esac
19992 else
19993 if test "$cross_compiling" = yes; then
19994 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19995 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19996 { (exit 1); exit 1; }; }
19997 else
19998 cat >conftest.$ac_ext <<_ACEOF
19999 /* confdefs.h. */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20004 $ac_includes_default
20005 long longval () { return (long) (sizeof (off_t)); }
20006 unsigned long ulongval () { return (long) (sizeof (off_t)); }
20007 #include <stdio.h>
20008 #include <stdlib.h>
20009 int
20010 main ()
20011 {
20012
20013 FILE *f = fopen ("conftest.val", "w");
20014 if (! f)
20015 exit (1);
20016 if (((long) (sizeof (off_t))) < 0)
20017 {
20018 long i = longval ();
20019 if (i != ((long) (sizeof (off_t))))
20020 exit (1);
20021 fprintf (f, "%ld\n", i);
20022 }
20023 else
20024 {
20025 unsigned long i = ulongval ();
20026 if (i != ((long) (sizeof (off_t))))
20027 exit (1);
20028 fprintf (f, "%lu\n", i);
20029 }
20030 exit (ferror (f) || fclose (f) != 0);
20031
20032 ;
20033 return 0;
20034 }
20035 _ACEOF
20036 rm -f conftest$ac_exeext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20038 (eval $ac_link) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; }; then
20047 ac_cv_sizeof_off_t=`cat conftest.val`
20048 else
20049 echo "$as_me: program exited with status $ac_status" >&5
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20052
20053 ( exit $ac_status )
20054 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20055 See \`config.log' for more details." >&5
20056 echo "$as_me: error: cannot compute sizeof (off_t), 77
20057 See \`config.log' for more details." >&2;}
20058 { (exit 1); exit 1; }; }
20059 fi
20060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20061 fi
20062 fi
20063 rm -f conftest.val
20064 else
20065 ac_cv_sizeof_off_t=0
20066 fi
20067 fi
20068 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
20069 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
20070 cat >>confdefs.h <<_ACEOF
20071 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20072 _ACEOF
20073
20074
20075 fi
20076 echo "$as_me:$LINENO: checking file_ptr type" >&5
20077 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
20078 bfd_file_ptr="long"
20079 bfd_ufile_ptr="unsigned long"
20080 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
20081 -o x"${ac_cv_sizeof_off_t}" = x8; then
20082 bfd_file_ptr=BFD_HOST_64_BIT
20083 bfd_ufile_ptr=BFD_HOST_U_64_BIT
20084 fi
20085 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
20086 echo "${ECHO_T}$bfd_file_ptr" >&6
20087
20088
20089
20090
20091 tdefaults=""
20092 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
20093 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
20094 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
20095 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
20096 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
20097
20098
20099
20100
20101 for ac_header in stdlib.h unistd.h
20102 do
20103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20105 echo "$as_me:$LINENO: checking for $ac_header" >&5
20106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 fi
20110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20112 else
20113 # Is the header compilable?
20114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20116 cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h. */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 $ac_includes_default
20123 #include <$ac_header>
20124 _ACEOF
20125 rm -f conftest.$ac_objext
20126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20127 (eval $ac_compile) 2>conftest.er1
20128 ac_status=$?
20129 grep -v '^ *+' conftest.er1 >conftest.err
20130 rm -f conftest.er1
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; } &&
20140 { ac_try='test -s conftest.$ac_objext'
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; }; then
20146 ac_header_compiler=yes
20147 else
20148 echo "$as_me: failed program was:" >&5
20149 sed 's/^/| /' conftest.$ac_ext >&5
20150
20151 ac_header_compiler=no
20152 fi
20153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20155 echo "${ECHO_T}$ac_header_compiler" >&6
20156
20157 # Is the header present?
20158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 #include <$ac_header>
20167 _ACEOF
20168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } >/dev/null; then
20176 if test -s conftest.err; then
20177 ac_cpp_err=$ac_c_preproc_warn_flag
20178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20179 else
20180 ac_cpp_err=
20181 fi
20182 else
20183 ac_cpp_err=yes
20184 fi
20185 if test -z "$ac_cpp_err"; then
20186 ac_header_preproc=yes
20187 else
20188 echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20190
20191 ac_header_preproc=no
20192 fi
20193 rm -f conftest.err conftest.$ac_ext
20194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20195 echo "${ECHO_T}$ac_header_preproc" >&6
20196
20197 # So? What about this header?
20198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20199 yes:no: )
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20204 ac_header_preproc=yes
20205 ;;
20206 no:yes:* )
20207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20219 (
20220 cat <<\_ASBOX
20221 ## ------------------------------------------ ##
20222 ## Report this to the AC_PACKAGE_NAME lists. ##
20223 ## ------------------------------------------ ##
20224 _ASBOX
20225 ) |
20226 sed "s/^/$as_me: WARNING: /" >&2
20227 ;;
20228 esac
20229 echo "$as_me:$LINENO: checking for $ac_header" >&5
20230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 else
20234 eval "$as_ac_Header=\$ac_header_preproc"
20235 fi
20236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20238
20239 fi
20240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20241 cat >>confdefs.h <<_ACEOF
20242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20243 _ACEOF
20244
20245 fi
20246
20247 done
20248
20249
20250 for ac_func in getpagesize
20251 do
20252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20253 echo "$as_me:$LINENO: checking for $ac_func" >&5
20254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20255 if eval "test \"\${$as_ac_var+set}\" = set"; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257 else
20258 cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h. */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20266 #define $ac_func innocuous_$ac_func
20267
20268 /* System header to define __stub macros and hopefully few prototypes,
20269 which can conflict with char $ac_func (); below.
20270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20271 <limits.h> exists even on freestanding compilers. */
20272
20273 #ifdef __STDC__
20274 # include <limits.h>
20275 #else
20276 # include <assert.h>
20277 #endif
20278
20279 #undef $ac_func
20280
20281 /* Override any gcc2 internal prototype to avoid an error. */
20282 #ifdef __cplusplus
20283 extern "C"
20284 {
20285 #endif
20286 /* We use char because int might match the return type of a gcc2
20287 builtin and then its argument prototype would still apply. */
20288 char $ac_func ();
20289 /* The GNU C library defines this for functions which it implements
20290 to always fail with ENOSYS. Some functions are actually named
20291 something starting with __ and the normal name is an alias. */
20292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20293 choke me
20294 #else
20295 char (*f) () = $ac_func;
20296 #endif
20297 #ifdef __cplusplus
20298 }
20299 #endif
20300
20301 int
20302 main ()
20303 {
20304 return f != $ac_func;
20305 ;
20306 return 0;
20307 }
20308 _ACEOF
20309 rm -f conftest.$ac_objext conftest$ac_exeext
20310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20311 (eval $ac_link) 2>conftest.er1
20312 ac_status=$?
20313 grep -v '^ *+' conftest.er1 >conftest.err
20314 rm -f conftest.er1
20315 cat conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
20318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; } &&
20324 { ac_try='test -s conftest$ac_exeext'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 eval "$as_ac_var=yes"
20331 else
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20334
20335 eval "$as_ac_var=no"
20336 fi
20337 rm -f conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20339 fi
20340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20342 if test `eval echo '${'$as_ac_var'}'` = yes; then
20343 cat >>confdefs.h <<_ACEOF
20344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20345 _ACEOF
20346
20347 fi
20348 done
20349
20350 echo "$as_me:$LINENO: checking for working mmap" >&5
20351 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20352 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20354 else
20355 if test "$cross_compiling" = yes; then
20356 ac_cv_func_mmap_fixed_mapped=no
20357 else
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h. */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20364 $ac_includes_default
20365 /* malloc might have been renamed as rpl_malloc. */
20366 #undef malloc
20367
20368 /* Thanks to Mike Haertel and Jim Avera for this test.
20369 Here is a matrix of mmap possibilities:
20370 mmap private not fixed
20371 mmap private fixed at somewhere currently unmapped
20372 mmap private fixed at somewhere already mapped
20373 mmap shared not fixed
20374 mmap shared fixed at somewhere currently unmapped
20375 mmap shared fixed at somewhere already mapped
20376 For private mappings, we should verify that changes cannot be read()
20377 back from the file, nor mmap's back from the file at a different
20378 address. (There have been systems where private was not correctly
20379 implemented like the infamous i386 svr4.0, and systems where the
20380 VM page cache was not coherent with the file system buffer cache
20381 like early versions of FreeBSD and possibly contemporary NetBSD.)
20382 For shared mappings, we should conversely verify that changes get
20383 propagated back to all the places they're supposed to be.
20384
20385 Grep wants private fixed already mapped.
20386 The main things grep needs to know about mmap are:
20387 * does it exist and is it safe to write into the mmap'd area
20388 * how to use it (BSD variants) */
20389
20390 #include <fcntl.h>
20391 #include <sys/mman.h>
20392
20393 #if !STDC_HEADERS && !HAVE_STDLIB_H
20394 char *malloc ();
20395 #endif
20396
20397 /* This mess was copied from the GNU getpagesize.h. */
20398 #if !HAVE_GETPAGESIZE
20399 /* Assume that all systems that can run configure have sys/param.h. */
20400 # if !HAVE_SYS_PARAM_H
20401 # define HAVE_SYS_PARAM_H 1
20402 # endif
20403
20404 # ifdef _SC_PAGESIZE
20405 # define getpagesize() sysconf(_SC_PAGESIZE)
20406 # else /* no _SC_PAGESIZE */
20407 # if HAVE_SYS_PARAM_H
20408 # include <sys/param.h>
20409 # ifdef EXEC_PAGESIZE
20410 # define getpagesize() EXEC_PAGESIZE
20411 # else /* no EXEC_PAGESIZE */
20412 # ifdef NBPG
20413 # define getpagesize() NBPG * CLSIZE
20414 # ifndef CLSIZE
20415 # define CLSIZE 1
20416 # endif /* no CLSIZE */
20417 # else /* no NBPG */
20418 # ifdef NBPC
20419 # define getpagesize() NBPC
20420 # else /* no NBPC */
20421 # ifdef PAGESIZE
20422 # define getpagesize() PAGESIZE
20423 # endif /* PAGESIZE */
20424 # endif /* no NBPC */
20425 # endif /* no NBPG */
20426 # endif /* no EXEC_PAGESIZE */
20427 # else /* no HAVE_SYS_PARAM_H */
20428 # define getpagesize() 8192 /* punt totally */
20429 # endif /* no HAVE_SYS_PARAM_H */
20430 # endif /* no _SC_PAGESIZE */
20431
20432 #endif /* no HAVE_GETPAGESIZE */
20433
20434 int
20435 main ()
20436 {
20437 char *data, *data2, *data3;
20438 int i, pagesize;
20439 int fd;
20440
20441 pagesize = getpagesize ();
20442
20443 /* First, make a file with some known garbage in it. */
20444 data = (char *) malloc (pagesize);
20445 if (!data)
20446 exit (1);
20447 for (i = 0; i < pagesize; ++i)
20448 *(data + i) = rand ();
20449 umask (0);
20450 fd = creat ("conftest.mmap", 0600);
20451 if (fd < 0)
20452 exit (1);
20453 if (write (fd, data, pagesize) != pagesize)
20454 exit (1);
20455 close (fd);
20456
20457 /* Next, try to mmap the file at a fixed address which already has
20458 something else allocated at it. If we can, also make sure that
20459 we see the same garbage. */
20460 fd = open ("conftest.mmap", O_RDWR);
20461 if (fd < 0)
20462 exit (1);
20463 data2 = (char *) malloc (2 * pagesize);
20464 if (!data2)
20465 exit (1);
20466 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20467 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20468 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20469 exit (1);
20470 for (i = 0; i < pagesize; ++i)
20471 if (*(data + i) != *(data2 + i))
20472 exit (1);
20473
20474 /* Finally, make sure that changes to the mapped area do not
20475 percolate back to the file as seen by read(). (This is a bug on
20476 some variants of i386 svr4.0.) */
20477 for (i = 0; i < pagesize; ++i)
20478 *(data2 + i) = *(data2 + i) + 1;
20479 data3 = (char *) malloc (pagesize);
20480 if (!data3)
20481 exit (1);
20482 if (read (fd, data3, pagesize) != pagesize)
20483 exit (1);
20484 for (i = 0; i < pagesize; ++i)
20485 if (*(data + i) != *(data3 + i))
20486 exit (1);
20487 close (fd);
20488 exit (0);
20489 }
20490 _ACEOF
20491 rm -f conftest$ac_exeext
20492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20493 (eval $ac_link) 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502 ac_cv_func_mmap_fixed_mapped=yes
20503 else
20504 echo "$as_me: program exited with status $ac_status" >&5
20505 echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20507
20508 ( exit $ac_status )
20509 ac_cv_func_mmap_fixed_mapped=no
20510 fi
20511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20512 fi
20513 fi
20514 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20515 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20516 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20517
20518 cat >>confdefs.h <<\_ACEOF
20519 #define HAVE_MMAP 1
20520 _ACEOF
20521
20522 fi
20523 rm -f conftest.mmap
20524
20525
20526
20527 for ac_func in madvise mprotect
20528 do
20529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20530 echo "$as_me:$LINENO: checking for $ac_func" >&5
20531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20532 if eval "test \"\${$as_ac_var+set}\" = set"; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20543 #define $ac_func innocuous_$ac_func
20544
20545 /* System header to define __stub macros and hopefully few prototypes,
20546 which can conflict with char $ac_func (); below.
20547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20548 <limits.h> exists even on freestanding compilers. */
20549
20550 #ifdef __STDC__
20551 # include <limits.h>
20552 #else
20553 # include <assert.h>
20554 #endif
20555
20556 #undef $ac_func
20557
20558 /* Override any gcc2 internal prototype to avoid an error. */
20559 #ifdef __cplusplus
20560 extern "C"
20561 {
20562 #endif
20563 /* We use char because int might match the return type of a gcc2
20564 builtin and then its argument prototype would still apply. */
20565 char $ac_func ();
20566 /* The GNU C library defines this for functions which it implements
20567 to always fail with ENOSYS. Some functions are actually named
20568 something starting with __ and the normal name is an alias. */
20569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20570 choke me
20571 #else
20572 char (*f) () = $ac_func;
20573 #endif
20574 #ifdef __cplusplus
20575 }
20576 #endif
20577
20578 int
20579 main ()
20580 {
20581 return f != $ac_func;
20582 ;
20583 return 0;
20584 }
20585 _ACEOF
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588 (eval $ac_link) 2>conftest.er1
20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; } &&
20601 { ac_try='test -s conftest$ac_exeext'
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20604 ac_status=$?
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 eval "$as_ac_var=yes"
20608 else
20609 echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20611
20612 eval "$as_ac_var=no"
20613 fi
20614 rm -f conftest.err conftest.$ac_objext \
20615 conftest$ac_exeext conftest.$ac_ext
20616 fi
20617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20619 if test `eval echo '${'$as_ac_var'}'` = yes; then
20620 cat >>confdefs.h <<_ACEOF
20621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20622 _ACEOF
20623
20624 fi
20625 done
20626
20627 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20628 true+yes )
20629 cat >>confdefs.h <<\_ACEOF
20630 #define USE_MMAP 1
20631 _ACEOF
20632 ;;
20633 esac
20634
20635 rm -f doc/config.status
20636 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20637
20638
20639 ac_config_commands="$ac_config_commands default"
20640
20641
20642
20643
20644
20645
20646 cat >confcache <<\_ACEOF
20647 # This file is a shell script that caches the results of configure
20648 # tests run on this system so they can be shared between configure
20649 # scripts and configure runs, see configure's option --config-cache.
20650 # It is not useful on other systems. If it contains results you don't
20651 # want to keep, you may remove or edit it.
20652 #
20653 # config.status only pays attention to the cache file if you give it
20654 # the --recheck option to rerun configure.
20655 #
20656 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20657 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20658 # following values.
20659
20660 _ACEOF
20661
20662 # The following way of writing the cache mishandles newlines in values,
20663 # but we know of no workaround that is simple, portable, and efficient.
20664 # So, don't put newlines in cache variables' values.
20665 # Ultrix sh set writes to stderr and can't be redirected directly,
20666 # and sets the high bit in the cache file unless we assign to the vars.
20667 {
20668 (set) 2>&1 |
20669 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20670 *ac_space=\ *)
20671 # `set' does not quote correctly, so add quotes (double-quote
20672 # substitution turns \\\\ into \\, and sed turns \\ into \).
20673 sed -n \
20674 "s/'/'\\\\''/g;
20675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20676 ;;
20677 *)
20678 # `set' quotes correctly as required by POSIX, so do not add quotes.
20679 sed -n \
20680 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20681 ;;
20682 esac;
20683 } |
20684 sed '
20685 t clear
20686 : clear
20687 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20688 t end
20689 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20690 : end' >>confcache
20691 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20692 if test -w $cache_file; then
20693 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20694 cat confcache >$cache_file
20695 else
20696 echo "not updating unwritable cache $cache_file"
20697 fi
20698 fi
20699 rm -f confcache
20700
20701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20702 # Let make expand exec_prefix.
20703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20704
20705 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20706 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20707 # trailing colons and then remove the whole line if VPATH becomes empty
20708 # (actually we leave an empty line to preserve line numbers).
20709 if test "x$srcdir" = x.; then
20710 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20711 s/:*\$(srcdir):*/:/;
20712 s/:*\${srcdir}:*/:/;
20713 s/:*@srcdir@:*/:/;
20714 s/^\([^=]*=[ ]*\):*/\1/;
20715 s/:*$//;
20716 s/^[^=]*=[ ]*$//;
20717 }'
20718 fi
20719
20720 DEFS=-DHAVE_CONFIG_H
20721
20722 ac_libobjs=
20723 ac_ltlibobjs=
20724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20725 # 1. Remove the extension, and $U if already installed.
20726 ac_i=`echo "$ac_i" |
20727 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20728 # 2. Add them.
20729 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20730 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20731 done
20732 LIBOBJS=$ac_libobjs
20733
20734 LTLIBOBJS=$ac_ltlibobjs
20735
20736
20737 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20738 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20739 Usually this means the macro was only invoked conditionally." >&5
20740 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20741 Usually this means the macro was only invoked conditionally." >&2;}
20742 { (exit 1); exit 1; }; }
20743 fi
20744 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20745 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20746 Usually this means the macro was only invoked conditionally." >&5
20747 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20748 Usually this means the macro was only invoked conditionally." >&2;}
20749 { (exit 1); exit 1; }; }
20750 fi
20751 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20752 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20753 Usually this means the macro was only invoked conditionally." >&5
20754 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20755 Usually this means the macro was only invoked conditionally." >&2;}
20756 { (exit 1); exit 1; }; }
20757 fi
20758 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20759 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20760 Usually this means the macro was only invoked conditionally." >&5
20761 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20762 Usually this means the macro was only invoked conditionally." >&2;}
20763 { (exit 1); exit 1; }; }
20764 fi
20765 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20766 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20767 Usually this means the macro was only invoked conditionally." >&5
20768 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20769 Usually this means the macro was only invoked conditionally." >&2;}
20770 { (exit 1); exit 1; }; }
20771 fi
20772
20773 : ${CONFIG_STATUS=./config.status}
20774 ac_clean_files_save=$ac_clean_files
20775 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20776 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20777 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20778 cat >$CONFIG_STATUS <<_ACEOF
20779 #! $SHELL
20780 # Generated by $as_me.
20781 # Run this file to recreate the current configuration.
20782 # Compiler output produced by configure, useful for debugging
20783 # configure, is in config.log if it exists.
20784
20785 debug=false
20786 ac_cs_recheck=false
20787 ac_cs_silent=false
20788 SHELL=\${CONFIG_SHELL-$SHELL}
20789 _ACEOF
20790
20791 cat >>$CONFIG_STATUS <<\_ACEOF
20792 ## --------------------- ##
20793 ## M4sh Initialization. ##
20794 ## --------------------- ##
20795
20796 # Be Bourne compatible
20797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20798 emulate sh
20799 NULLCMD=:
20800 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20801 # is contrary to our usage. Disable this feature.
20802 alias -g '${1+"$@"}'='"$@"'
20803 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20804 set -o posix
20805 fi
20806 DUALCASE=1; export DUALCASE # for MKS sh
20807
20808 # Support unset when possible.
20809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20810 as_unset=unset
20811 else
20812 as_unset=false
20813 fi
20814
20815
20816 # Work around bugs in pre-3.0 UWIN ksh.
20817 $as_unset ENV MAIL MAILPATH
20818 PS1='$ '
20819 PS2='> '
20820 PS4='+ '
20821
20822 # NLS nuisances.
20823 for as_var in \
20824 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20825 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20826 LC_TELEPHONE LC_TIME
20827 do
20828 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20829 eval $as_var=C; export $as_var
20830 else
20831 $as_unset $as_var
20832 fi
20833 done
20834
20835 # Required to use basename.
20836 if expr a : '\(a\)' >/dev/null 2>&1; then
20837 as_expr=expr
20838 else
20839 as_expr=false
20840 fi
20841
20842 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20843 as_basename=basename
20844 else
20845 as_basename=false
20846 fi
20847
20848
20849 # Name of the executable.
20850 as_me=`$as_basename "$0" ||
20851 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20852 X"$0" : 'X\(//\)$' \| \
20853 X"$0" : 'X\(/\)$' \| \
20854 . : '\(.\)' 2>/dev/null ||
20855 echo X/"$0" |
20856 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20857 /^X\/\(\/\/\)$/{ s//\1/; q; }
20858 /^X\/\(\/\).*/{ s//\1/; q; }
20859 s/.*/./; q'`
20860
20861
20862 # PATH needs CR, and LINENO needs CR and PATH.
20863 # Avoid depending upon Character Ranges.
20864 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20865 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20866 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20867 as_cr_digits='0123456789'
20868 as_cr_alnum=$as_cr_Letters$as_cr_digits
20869
20870 # The user is always right.
20871 if test "${PATH_SEPARATOR+set}" != set; then
20872 echo "#! /bin/sh" >conf$$.sh
20873 echo "exit 0" >>conf$$.sh
20874 chmod +x conf$$.sh
20875 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20876 PATH_SEPARATOR=';'
20877 else
20878 PATH_SEPARATOR=:
20879 fi
20880 rm -f conf$$.sh
20881 fi
20882
20883
20884 as_lineno_1=$LINENO
20885 as_lineno_2=$LINENO
20886 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20887 test "x$as_lineno_1" != "x$as_lineno_2" &&
20888 test "x$as_lineno_3" = "x$as_lineno_2" || {
20889 # Find who we are. Look in the path if we contain no path at all
20890 # relative or not.
20891 case $0 in
20892 *[\\/]* ) as_myself=$0 ;;
20893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20894 for as_dir in $PATH
20895 do
20896 IFS=$as_save_IFS
20897 test -z "$as_dir" && as_dir=.
20898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20899 done
20900
20901 ;;
20902 esac
20903 # We did not find ourselves, most probably we were run as `sh COMMAND'
20904 # in which case we are not to be found in the path.
20905 if test "x$as_myself" = x; then
20906 as_myself=$0
20907 fi
20908 if test ! -f "$as_myself"; then
20909 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20910 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20911 { (exit 1); exit 1; }; }
20912 fi
20913 case $CONFIG_SHELL in
20914 '')
20915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20916 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20917 do
20918 IFS=$as_save_IFS
20919 test -z "$as_dir" && as_dir=.
20920 for as_base in sh bash ksh sh5; do
20921 case $as_dir in
20922 /*)
20923 if ("$as_dir/$as_base" -c '
20924 as_lineno_1=$LINENO
20925 as_lineno_2=$LINENO
20926 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20927 test "x$as_lineno_1" != "x$as_lineno_2" &&
20928 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20929 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20930 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20931 CONFIG_SHELL=$as_dir/$as_base
20932 export CONFIG_SHELL
20933 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20934 fi;;
20935 esac
20936 done
20937 done
20938 ;;
20939 esac
20940
20941 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20942 # uniformly replaced by the line number. The first 'sed' inserts a
20943 # line-number line before each line; the second 'sed' does the real
20944 # work. The second script uses 'N' to pair each line-number line
20945 # with the numbered line, and appends trailing '-' during
20946 # substitution so that $LINENO is not a special case at line end.
20947 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20948 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20949 sed '=' <$as_myself |
20950 sed '
20951 N
20952 s,$,-,
20953 : loop
20954 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20955 t loop
20956 s,-$,,
20957 s,^['$as_cr_digits']*\n,,
20958 ' >$as_me.lineno &&
20959 chmod +x $as_me.lineno ||
20960 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20961 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20962 { (exit 1); exit 1; }; }
20963
20964 # Don't try to exec as it changes $[0], causing all sort of problems
20965 # (the dirname of $[0] is not the place where we might find the
20966 # original and so on. Autoconf is especially sensible to this).
20967 . ./$as_me.lineno
20968 # Exit status is that of the last command.
20969 exit
20970 }
20971
20972
20973 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20974 *c*,-n*) ECHO_N= ECHO_C='
20975 ' ECHO_T=' ' ;;
20976 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20977 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20978 esac
20979
20980 if expr a : '\(a\)' >/dev/null 2>&1; then
20981 as_expr=expr
20982 else
20983 as_expr=false
20984 fi
20985
20986 rm -f conf$$ conf$$.exe conf$$.file
20987 echo >conf$$.file
20988 if ln -s conf$$.file conf$$ 2>/dev/null; then
20989 # We could just check for DJGPP; but this test a) works b) is more generic
20990 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20991 if test -f conf$$.exe; then
20992 # Don't use ln at all; we don't have any links
20993 as_ln_s='cp -p'
20994 else
20995 as_ln_s='ln -s'
20996 fi
20997 elif ln conf$$.file conf$$ 2>/dev/null; then
20998 as_ln_s=ln
20999 else
21000 as_ln_s='cp -p'
21001 fi
21002 rm -f conf$$ conf$$.exe conf$$.file
21003
21004 if mkdir -p . 2>/dev/null; then
21005 as_mkdir_p=:
21006 else
21007 test -d ./-p && rmdir ./-p
21008 as_mkdir_p=false
21009 fi
21010
21011 as_executable_p="test -f"
21012
21013 # Sed expression to map a string onto a valid CPP name.
21014 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21015
21016 # Sed expression to map a string onto a valid variable name.
21017 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21018
21019
21020 # IFS
21021 # We need space, tab and new line, in precisely that order.
21022 as_nl='
21023 '
21024 IFS=" $as_nl"
21025
21026 # CDPATH.
21027 $as_unset CDPATH
21028
21029 exec 6>&1
21030
21031 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21032 # report actual input values of CONFIG_FILES etc. instead of their
21033 # values after options handling. Logging --version etc. is OK.
21034 exec 5>>config.log
21035 {
21036 echo
21037 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21038 ## Running $as_me. ##
21039 _ASBOX
21040 } >&5
21041 cat >&5 <<_CSEOF
21042
21043 This file was extended by $as_me, which was
21044 generated by GNU Autoconf 2.59. Invocation command line was
21045
21046 CONFIG_FILES = $CONFIG_FILES
21047 CONFIG_HEADERS = $CONFIG_HEADERS
21048 CONFIG_LINKS = $CONFIG_LINKS
21049 CONFIG_COMMANDS = $CONFIG_COMMANDS
21050 $ $0 $@
21051
21052 _CSEOF
21053 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21054 echo >&5
21055 _ACEOF
21056
21057 # Files that config.status was made for.
21058 if test -n "$ac_config_files"; then
21059 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21060 fi
21061
21062 if test -n "$ac_config_headers"; then
21063 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21064 fi
21065
21066 if test -n "$ac_config_links"; then
21067 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21068 fi
21069
21070 if test -n "$ac_config_commands"; then
21071 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21072 fi
21073
21074 cat >>$CONFIG_STATUS <<\_ACEOF
21075
21076 ac_cs_usage="\
21077 \`$as_me' instantiates files from templates according to the
21078 current configuration.
21079
21080 Usage: $0 [OPTIONS] [FILE]...
21081
21082 -h, --help print this help, then exit
21083 -V, --version print version number, then exit
21084 -q, --quiet do not print progress messages
21085 -d, --debug don't remove temporary files
21086 --recheck update $as_me by reconfiguring in the same conditions
21087 --file=FILE[:TEMPLATE]
21088 instantiate the configuration file FILE
21089 --header=FILE[:TEMPLATE]
21090 instantiate the configuration header FILE
21091
21092 Configuration files:
21093 $config_files
21094
21095 Configuration headers:
21096 $config_headers
21097
21098 Configuration commands:
21099 $config_commands
21100
21101 Report bugs to <bug-autoconf@gnu.org>."
21102 _ACEOF
21103
21104 cat >>$CONFIG_STATUS <<_ACEOF
21105 ac_cs_version="\\
21106 config.status
21107 configured by $0, generated by GNU Autoconf 2.59,
21108 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21109
21110 Copyright (C) 2003 Free Software Foundation, Inc.
21111 This config.status script is free software; the Free Software Foundation
21112 gives unlimited permission to copy, distribute and modify it."
21113 srcdir=$srcdir
21114 INSTALL="$INSTALL"
21115 _ACEOF
21116
21117 cat >>$CONFIG_STATUS <<\_ACEOF
21118 # If no file are specified by the user, then we need to provide default
21119 # value. By we need to know if files were specified by the user.
21120 ac_need_defaults=:
21121 while test $# != 0
21122 do
21123 case $1 in
21124 --*=*)
21125 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21126 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21127 ac_shift=:
21128 ;;
21129 -*)
21130 ac_option=$1
21131 ac_optarg=$2
21132 ac_shift=shift
21133 ;;
21134 *) # This is not an option, so the user has probably given explicit
21135 # arguments.
21136 ac_option=$1
21137 ac_need_defaults=false;;
21138 esac
21139
21140 case $ac_option in
21141 # Handling of the options.
21142 _ACEOF
21143 cat >>$CONFIG_STATUS <<\_ACEOF
21144 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21145 ac_cs_recheck=: ;;
21146 --version | --vers* | -V )
21147 echo "$ac_cs_version"; exit 0 ;;
21148 --he | --h)
21149 # Conflict between --help and --header
21150 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21151 Try \`$0 --help' for more information." >&5
21152 echo "$as_me: error: ambiguous option: $1
21153 Try \`$0 --help' for more information." >&2;}
21154 { (exit 1); exit 1; }; };;
21155 --help | --hel | -h )
21156 echo "$ac_cs_usage"; exit 0 ;;
21157 --debug | --d* | -d )
21158 debug=: ;;
21159 --file | --fil | --fi | --f )
21160 $ac_shift
21161 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21162 ac_need_defaults=false;;
21163 --header | --heade | --head | --hea )
21164 $ac_shift
21165 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21166 ac_need_defaults=false;;
21167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21168 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21169 ac_cs_silent=: ;;
21170
21171 # This is an error.
21172 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21173 Try \`$0 --help' for more information." >&5
21174 echo "$as_me: error: unrecognized option: $1
21175 Try \`$0 --help' for more information." >&2;}
21176 { (exit 1); exit 1; }; } ;;
21177
21178 *) ac_config_targets="$ac_config_targets $1" ;;
21179
21180 esac
21181 shift
21182 done
21183
21184 ac_configure_extra_args=
21185
21186 if $ac_cs_silent; then
21187 exec 6>/dev/null
21188 ac_configure_extra_args="$ac_configure_extra_args --silent"
21189 fi
21190
21191 _ACEOF
21192 cat >>$CONFIG_STATUS <<_ACEOF
21193 if \$ac_cs_recheck; then
21194 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21195 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21196 fi
21197
21198 _ACEOF
21199
21200 cat >>$CONFIG_STATUS <<_ACEOF
21201 #
21202 # INIT-COMMANDS section.
21203 #
21204
21205 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21206
21207
21208 # The HP-UX ksh and POSIX shell print the target directory to stdout
21209 # if CDPATH is set.
21210 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21211
21212 sed_quote_subst='$sed_quote_subst'
21213 double_quote_subst='$double_quote_subst'
21214 delay_variable_subst='$delay_variable_subst'
21215 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21216 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21217 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21218 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21219 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21220 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21221 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21222 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21223 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21224 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21225 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21226 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21227 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21228 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21229 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21230 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21231 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21232 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21233 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21234 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21235 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21236 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21237 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21238 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21239 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21240 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21241 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21242 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21243 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21244 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21245 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21246 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21247 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21248 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21249 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21250 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21251 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21252 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21253 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21254 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21255 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21256 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21257 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21258 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"`'
21259 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21260 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21261 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21262 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21263 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21264 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21265 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21266 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21267 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21268 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21269 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21270 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21271 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21272 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21273 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21274 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21275 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21276 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21277 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21278 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21279 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21280 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21281 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21282 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21283 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21284 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21285 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21286 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21287 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21288 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21289 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21290 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21291 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21292 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21293 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21294 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21295 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21296 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21297 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21298 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21299 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21300 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21301 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21302 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21303 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21304 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21305 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21306 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21307 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21308 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21309 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21310 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21311 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21312 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21313 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21314 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21315 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21316 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21317 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21318 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21319 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21320 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21321 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21322 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21323 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21324 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21325 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21326
21327 LTCC='$LTCC'
21328 LTCFLAGS='$LTCFLAGS'
21329 compiler='$compiler_DEFAULT'
21330
21331 # Quote evaled strings.
21332 for var in SED \
21333 GREP \
21334 EGREP \
21335 FGREP \
21336 LD \
21337 NM \
21338 LN_S \
21339 lt_SP2NL \
21340 lt_NL2SP \
21341 reload_flag \
21342 deplibs_check_method \
21343 file_magic_cmd \
21344 AR \
21345 AR_FLAGS \
21346 STRIP \
21347 RANLIB \
21348 CC \
21349 CFLAGS \
21350 compiler \
21351 lt_cv_sys_global_symbol_pipe \
21352 lt_cv_sys_global_symbol_to_cdecl \
21353 lt_cv_sys_global_symbol_to_c_name_address \
21354 SHELL \
21355 ECHO \
21356 lt_prog_compiler_no_builtin_flag \
21357 lt_prog_compiler_wl \
21358 lt_prog_compiler_pic \
21359 lt_prog_compiler_static \
21360 lt_cv_prog_compiler_c_o \
21361 need_locks \
21362 shrext_cmds \
21363 export_dynamic_flag_spec \
21364 whole_archive_flag_spec \
21365 compiler_needs_object \
21366 with_gnu_ld \
21367 allow_undefined_flag \
21368 no_undefined_flag \
21369 hardcode_libdir_flag_spec \
21370 hardcode_libdir_flag_spec_ld \
21371 hardcode_libdir_separator \
21372 fix_srcfile_path \
21373 exclude_expsyms \
21374 include_expsyms \
21375 file_list_spec \
21376 variables_saved_for_relink \
21377 libname_spec \
21378 library_names_spec \
21379 soname_spec \
21380 finish_eval \
21381 old_striplib \
21382 striplib; do
21383 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21384 *[\\\\\\\`\\"\\\$]*)
21385 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21386 ;;
21387 *)
21388 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21389 ;;
21390 esac
21391 done
21392
21393 # Double-quote double-evaled strings.
21394 for var in reload_cmds \
21395 old_postinstall_cmds \
21396 old_postuninstall_cmds \
21397 old_archive_cmds \
21398 extract_expsyms_cmds \
21399 old_archive_from_new_cmds \
21400 old_archive_from_expsyms_cmds \
21401 archive_cmds \
21402 archive_expsym_cmds \
21403 module_cmds \
21404 module_expsym_cmds \
21405 export_symbols_cmds \
21406 prelink_cmds \
21407 postinstall_cmds \
21408 postuninstall_cmds \
21409 finish_cmds \
21410 sys_lib_search_path_spec \
21411 sys_lib_dlsearch_path_spec; do
21412 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21413 *[\\\\\\\`\\"\\\$]*)
21414 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21415 ;;
21416 *)
21417 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21418 ;;
21419 esac
21420 done
21421
21422 # Fix-up fallback echo if it was mangled by the above quoting rules.
21423 case \$lt_ECHO in
21424 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21425 ;;
21426 esac
21427
21428 ac_aux_dir='$ac_aux_dir'
21429 xsi_shell='$xsi_shell'
21430 lt_shell_append='$lt_shell_append'
21431
21432 # See if we are running on zsh, and set the options which allow our
21433 # commands through without removal of \ escapes INIT.
21434 if test -n "\${ZSH_VERSION+set}" ; then
21435 setopt NO_GLOB_SUBST
21436 fi
21437
21438
21439 PACKAGE='$PACKAGE'
21440 VERSION='$VERSION'
21441 TIMESTAMP='$TIMESTAMP'
21442 RM='$RM'
21443 ofile='$ofile'
21444
21445
21446
21447 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21448 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21449 # from automake.
21450 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21451 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21452 LINGUAS="${LINGUAS-%UNSET%}"
21453
21454
21455 GCC="$GCC"
21456 CC="$CC"
21457 acx_cv_header_stdint="$acx_cv_header_stdint"
21458 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21459 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21460 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21461 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21462 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21463 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21464 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21465 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21466 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21467 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21468 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21469 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21470 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21471
21472
21473
21474 _ACEOF
21475
21476
21477
21478 cat >>$CONFIG_STATUS <<\_ACEOF
21479 for ac_config_target in $ac_config_targets
21480 do
21481 case "$ac_config_target" in
21482 # Handling of arguments.
21483 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21484 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21485 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21486 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
21487 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21488 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21489 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21490 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
21491 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21492 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21493 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21494 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21495 { (exit 1); exit 1; }; };;
21496 esac
21497 done
21498
21499 # If the user did not use the arguments to specify the items to instantiate,
21500 # then the envvar interface is used. Set only those that are not.
21501 # We use the long form for the default assignment because of an extremely
21502 # bizarre bug on SunOS 4.1.3.
21503 if $ac_need_defaults; then
21504 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21505 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21506 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21507 fi
21508
21509 # Have a temporary directory for convenience. Make it in the build tree
21510 # simply because there is no reason to put it here, and in addition,
21511 # creating and moving files from /tmp can sometimes cause problems.
21512 # Create a temporary directory, and hook for its removal unless debugging.
21513 $debug ||
21514 {
21515 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21516 trap '{ (exit 1); exit 1; }' 1 2 13 15
21517 }
21518
21519 # Create a (secure) tmp directory for tmp files.
21520
21521 {
21522 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21523 test -n "$tmp" && test -d "$tmp"
21524 } ||
21525 {
21526 tmp=./confstat$$-$RANDOM
21527 (umask 077 && mkdir $tmp)
21528 } ||
21529 {
21530 echo "$me: cannot create a temporary directory in ." >&2
21531 { (exit 1); exit 1; }
21532 }
21533
21534 _ACEOF
21535
21536 cat >>$CONFIG_STATUS <<_ACEOF
21537
21538 #
21539 # CONFIG_FILES section.
21540 #
21541
21542 # No need to generate the scripts if there are no CONFIG_FILES.
21543 # This happens for instance when ./config.status config.h
21544 if test -n "\$CONFIG_FILES"; then
21545 # Protect against being on the right side of a sed subst in config.status.
21546 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21547 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21548 s,@SHELL@,$SHELL,;t t
21549 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21550 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21551 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21552 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21553 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21554 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21555 s,@exec_prefix@,$exec_prefix,;t t
21556 s,@prefix@,$prefix,;t t
21557 s,@program_transform_name@,$program_transform_name,;t t
21558 s,@bindir@,$bindir,;t t
21559 s,@sbindir@,$sbindir,;t t
21560 s,@libexecdir@,$libexecdir,;t t
21561 s,@datadir@,$datadir,;t t
21562 s,@sysconfdir@,$sysconfdir,;t t
21563 s,@sharedstatedir@,$sharedstatedir,;t t
21564 s,@localstatedir@,$localstatedir,;t t
21565 s,@libdir@,$libdir,;t t
21566 s,@includedir@,$includedir,;t t
21567 s,@oldincludedir@,$oldincludedir,;t t
21568 s,@infodir@,$infodir,;t t
21569 s,@mandir@,$mandir,;t t
21570 s,@build_alias@,$build_alias,;t t
21571 s,@host_alias@,$host_alias,;t t
21572 s,@target_alias@,$target_alias,;t t
21573 s,@DEFS@,$DEFS,;t t
21574 s,@ECHO_C@,$ECHO_C,;t t
21575 s,@ECHO_N@,$ECHO_N,;t t
21576 s,@ECHO_T@,$ECHO_T,;t t
21577 s,@LIBS@,$LIBS,;t t
21578 s,@build@,$build,;t t
21579 s,@build_cpu@,$build_cpu,;t t
21580 s,@build_vendor@,$build_vendor,;t t
21581 s,@build_os@,$build_os,;t t
21582 s,@host@,$host,;t t
21583 s,@host_cpu@,$host_cpu,;t t
21584 s,@host_vendor@,$host_vendor,;t t
21585 s,@host_os@,$host_os,;t t
21586 s,@target@,$target,;t t
21587 s,@target_cpu@,$target_cpu,;t t
21588 s,@target_vendor@,$target_vendor,;t t
21589 s,@target_os@,$target_os,;t t
21590 s,@CC@,$CC,;t t
21591 s,@CFLAGS@,$CFLAGS,;t t
21592 s,@LDFLAGS@,$LDFLAGS,;t t
21593 s,@CPPFLAGS@,$CPPFLAGS,;t t
21594 s,@ac_ct_CC@,$ac_ct_CC,;t t
21595 s,@EXEEXT@,$EXEEXT,;t t
21596 s,@OBJEXT@,$OBJEXT,;t t
21597 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21598 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21599 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21600 s,@CYGPATH_W@,$CYGPATH_W,;t t
21601 s,@PACKAGE@,$PACKAGE,;t t
21602 s,@VERSION@,$VERSION,;t t
21603 s,@ACLOCAL@,$ACLOCAL,;t t
21604 s,@AUTOCONF@,$AUTOCONF,;t t
21605 s,@AUTOMAKE@,$AUTOMAKE,;t t
21606 s,@AUTOHEADER@,$AUTOHEADER,;t t
21607 s,@MAKEINFO@,$MAKEINFO,;t t
21608 s,@install_sh@,$install_sh,;t t
21609 s,@STRIP@,$STRIP,;t t
21610 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21611 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21612 s,@mkdir_p@,$mkdir_p,;t t
21613 s,@AWK@,$AWK,;t t
21614 s,@SET_MAKE@,$SET_MAKE,;t t
21615 s,@am__leading_dot@,$am__leading_dot,;t t
21616 s,@AMTAR@,$AMTAR,;t t
21617 s,@am__tar@,$am__tar,;t t
21618 s,@am__untar@,$am__untar,;t t
21619 s,@DEPDIR@,$DEPDIR,;t t
21620 s,@am__include@,$am__include,;t t
21621 s,@am__quote@,$am__quote,;t t
21622 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21623 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21624 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21625 s,@CCDEPMODE@,$CCDEPMODE,;t t
21626 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21627 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21628 s,@AR@,$AR,;t t
21629 s,@ac_ct_AR@,$ac_ct_AR,;t t
21630 s,@RANLIB@,$RANLIB,;t t
21631 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21632 s,@LIBTOOL@,$LIBTOOL,;t t
21633 s,@SED@,$SED,;t t
21634 s,@EGREP@,$EGREP,;t t
21635 s,@FGREP@,$FGREP,;t t
21636 s,@GREP@,$GREP,;t t
21637 s,@LD@,$LD,;t t
21638 s,@DUMPBIN@,$DUMPBIN,;t t
21639 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21640 s,@NM@,$NM,;t t
21641 s,@LN_S@,$LN_S,;t t
21642 s,@lt_ECHO@,$lt_ECHO,;t t
21643 s,@CPP@,$CPP,;t t
21644 s,@DEBUGDIR@,$DEBUGDIR,;t t
21645 s,@PKGVERSION@,$PKGVERSION,;t t
21646 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21647 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21648 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21649 s,@NO_WERROR@,$NO_WERROR,;t t
21650 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21651 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21652 s,@MAINT@,$MAINT,;t t
21653 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21654 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
21655 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21656 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
21657 s,@host_noncanonical@,$host_noncanonical,;t t
21658 s,@target_noncanonical@,$target_noncanonical,;t t
21659 s,@bfdlibdir@,$bfdlibdir,;t t
21660 s,@bfdincludedir@,$bfdincludedir,;t t
21661 s,@USE_NLS@,$USE_NLS,;t t
21662 s,@LIBINTL@,$LIBINTL,;t t
21663 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21664 s,@INCINTL@,$INCINTL,;t t
21665 s,@XGETTEXT@,$XGETTEXT,;t t
21666 s,@GMSGFMT@,$GMSGFMT,;t t
21667 s,@POSUB@,$POSUB,;t t
21668 s,@CATALOGS@,$CATALOGS,;t t
21669 s,@DATADIRNAME@,$DATADIRNAME,;t t
21670 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21671 s,@GENCAT@,$GENCAT,;t t
21672 s,@CATOBJEXT@,$CATOBJEXT,;t t
21673 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21674 s,@MSGFMT@,$MSGFMT,;t t
21675 s,@MSGMERGE@,$MSGMERGE,;t t
21676 s,@HDEFINES@,$HDEFINES,;t t
21677 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21678 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
21679 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21680 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21681 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21682 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
21683 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21684 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21685 s,@COREFILE@,$COREFILE,;t t
21686 s,@COREFLAG@,$COREFLAG,;t t
21687 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21688 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21689 s,@TDEFINES@,$TDEFINES,;t t
21690 s,@wordsize@,$wordsize,;t t
21691 s,@bfd64_libs@,$bfd64_libs,;t t
21692 s,@all_backends@,$all_backends,;t t
21693 s,@bfd_backends@,$bfd_backends,;t t
21694 s,@bfd_machines@,$bfd_machines,;t t
21695 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21696 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21697 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21698 s,@tdefaults@,$tdefaults,;t t
21699 s,@datarootdir@,$datarootdir,;t t
21700 s,@docdir@,$docdir,;t t
21701 s,@htmldir@,$htmldir,;t t
21702 s,@LIBOBJS@,$LIBOBJS,;t t
21703 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21704 CEOF
21705
21706 _ACEOF
21707
21708 cat >>$CONFIG_STATUS <<\_ACEOF
21709 # Split the substitutions into bite-sized pieces for seds with
21710 # small command number limits, like on Digital OSF/1 and HP-UX.
21711 ac_max_sed_lines=48
21712 ac_sed_frag=1 # Number of current file.
21713 ac_beg=1 # First line for current file.
21714 ac_end=$ac_max_sed_lines # Line after last line for current file.
21715 ac_more_lines=:
21716 ac_sed_cmds=
21717 while $ac_more_lines; do
21718 if test $ac_beg -gt 1; then
21719 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21720 else
21721 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21722 fi
21723 if test ! -s $tmp/subs.frag; then
21724 ac_more_lines=false
21725 else
21726 # The purpose of the label and of the branching condition is to
21727 # speed up the sed processing (if there are no `@' at all, there
21728 # is no need to browse any of the substitutions).
21729 # These are the two extra sed commands mentioned above.
21730 (echo ':t
21731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21732 if test -z "$ac_sed_cmds"; then
21733 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21734 else
21735 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21736 fi
21737 ac_sed_frag=`expr $ac_sed_frag + 1`
21738 ac_beg=$ac_end
21739 ac_end=`expr $ac_end + $ac_max_sed_lines`
21740 fi
21741 done
21742 if test -z "$ac_sed_cmds"; then
21743 ac_sed_cmds=cat
21744 fi
21745 fi # test -n "$CONFIG_FILES"
21746
21747 _ACEOF
21748 cat >>$CONFIG_STATUS <<\_ACEOF
21749 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21750 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21751 case $ac_file in
21752 - | *:- | *:-:* ) # input from stdin
21753 cat >$tmp/stdin
21754 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21755 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21756 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21757 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21758 * ) ac_file_in=$ac_file.in ;;
21759 esac
21760
21761 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21762 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21764 X"$ac_file" : 'X\(//\)[^/]' \| \
21765 X"$ac_file" : 'X\(//\)$' \| \
21766 X"$ac_file" : 'X\(/\)' \| \
21767 . : '\(.\)' 2>/dev/null ||
21768 echo X"$ac_file" |
21769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21771 /^X\(\/\/\)$/{ s//\1/; q; }
21772 /^X\(\/\).*/{ s//\1/; q; }
21773 s/.*/./; q'`
21774 { if $as_mkdir_p; then
21775 mkdir -p "$ac_dir"
21776 else
21777 as_dir="$ac_dir"
21778 as_dirs=
21779 while test ! -d "$as_dir"; do
21780 as_dirs="$as_dir $as_dirs"
21781 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21783 X"$as_dir" : 'X\(//\)[^/]' \| \
21784 X"$as_dir" : 'X\(//\)$' \| \
21785 X"$as_dir" : 'X\(/\)' \| \
21786 . : '\(.\)' 2>/dev/null ||
21787 echo X"$as_dir" |
21788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21790 /^X\(\/\/\)$/{ s//\1/; q; }
21791 /^X\(\/\).*/{ s//\1/; q; }
21792 s/.*/./; q'`
21793 done
21794 test ! -n "$as_dirs" || mkdir $as_dirs
21795 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21796 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21797 { (exit 1); exit 1; }; }; }
21798
21799 ac_builddir=.
21800
21801 if test "$ac_dir" != .; then
21802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21803 # A "../" for each directory in $ac_dir_suffix.
21804 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21805 else
21806 ac_dir_suffix= ac_top_builddir=
21807 fi
21808
21809 case $srcdir in
21810 .) # No --srcdir option. We are building in place.
21811 ac_srcdir=.
21812 if test -z "$ac_top_builddir"; then
21813 ac_top_srcdir=.
21814 else
21815 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21816 fi ;;
21817 [\\/]* | ?:[\\/]* ) # Absolute path.
21818 ac_srcdir=$srcdir$ac_dir_suffix;
21819 ac_top_srcdir=$srcdir ;;
21820 *) # Relative path.
21821 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21822 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21823 esac
21824
21825 # Do not use `cd foo && pwd` to compute absolute paths, because
21826 # the directories may not exist.
21827 case `pwd` in
21828 .) ac_abs_builddir="$ac_dir";;
21829 *)
21830 case "$ac_dir" in
21831 .) ac_abs_builddir=`pwd`;;
21832 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21833 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21834 esac;;
21835 esac
21836 case $ac_abs_builddir in
21837 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21838 *)
21839 case ${ac_top_builddir}. in
21840 .) ac_abs_top_builddir=$ac_abs_builddir;;
21841 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21842 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21843 esac;;
21844 esac
21845 case $ac_abs_builddir in
21846 .) ac_abs_srcdir=$ac_srcdir;;
21847 *)
21848 case $ac_srcdir in
21849 .) ac_abs_srcdir=$ac_abs_builddir;;
21850 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21851 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21852 esac;;
21853 esac
21854 case $ac_abs_builddir in
21855 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21856 *)
21857 case $ac_top_srcdir in
21858 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21859 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21860 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21861 esac;;
21862 esac
21863
21864
21865 case $INSTALL in
21866 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21867 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21868 esac
21869
21870 # Let's still pretend it is `configure' which instantiates (i.e., don't
21871 # use $as_me), people would be surprised to read:
21872 # /* config.h. Generated by config.status. */
21873 if test x"$ac_file" = x-; then
21874 configure_input=
21875 else
21876 configure_input="$ac_file. "
21877 fi
21878 configure_input=$configure_input"Generated from `echo $ac_file_in |
21879 sed 's,.*/,,'` by configure."
21880
21881 # First look for the input files in the build tree, otherwise in the
21882 # src tree.
21883 ac_file_inputs=`IFS=:
21884 for f in $ac_file_in; do
21885 case $f in
21886 -) echo $tmp/stdin ;;
21887 [\\/$]*)
21888 # Absolute (can't be DOS-style, as IFS=:)
21889 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21890 echo "$as_me: error: cannot find input file: $f" >&2;}
21891 { (exit 1); exit 1; }; }
21892 echo "$f";;
21893 *) # Relative
21894 if test -f "$f"; then
21895 # Build tree
21896 echo "$f"
21897 elif test -f "$srcdir/$f"; then
21898 # Source tree
21899 echo "$srcdir/$f"
21900 else
21901 # /dev/null tree
21902 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21903 echo "$as_me: error: cannot find input file: $f" >&2;}
21904 { (exit 1); exit 1; }; }
21905 fi;;
21906 esac
21907 done` || { (exit 1); exit 1; }
21908
21909 if test x"$ac_file" != x-; then
21910 { echo "$as_me:$LINENO: creating $ac_file" >&5
21911 echo "$as_me: creating $ac_file" >&6;}
21912 rm -f "$ac_file"
21913 fi
21914 _ACEOF
21915 cat >>$CONFIG_STATUS <<_ACEOF
21916 sed "$ac_vpsub
21917 $extrasub
21918 _ACEOF
21919 cat >>$CONFIG_STATUS <<\_ACEOF
21920 :t
21921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21922 s,@configure_input@,$configure_input,;t t
21923 s,@srcdir@,$ac_srcdir,;t t
21924 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21925 s,@top_srcdir@,$ac_top_srcdir,;t t
21926 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21927 s,@builddir@,$ac_builddir,;t t
21928 s,@abs_builddir@,$ac_abs_builddir,;t t
21929 s,@top_builddir@,$ac_top_builddir,;t t
21930 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21931 s,@INSTALL@,$ac_INSTALL,;t t
21932 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21933 rm -f $tmp/stdin
21934 if test x"$ac_file" != x-; then
21935 mv $tmp/out $ac_file
21936 else
21937 cat $tmp/out
21938 rm -f $tmp/out
21939 fi
21940
21941 done
21942 _ACEOF
21943 cat >>$CONFIG_STATUS <<\_ACEOF
21944
21945 #
21946 # CONFIG_HEADER section.
21947 #
21948
21949 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21950 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21951 #
21952 # ac_d sets the value in "#define NAME VALUE" lines.
21953 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21954 ac_dB='[ ].*$,\1#\2'
21955 ac_dC=' '
21956 ac_dD=',;t'
21957 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21958 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21959 ac_uB='$,\1#\2define\3'
21960 ac_uC=' '
21961 ac_uD=',;t'
21962
21963 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21965 case $ac_file in
21966 - | *:- | *:-:* ) # input from stdin
21967 cat >$tmp/stdin
21968 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21969 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21970 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21972 * ) ac_file_in=$ac_file.in ;;
21973 esac
21974
21975 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21976 echo "$as_me: creating $ac_file" >&6;}
21977
21978 # First look for the input files in the build tree, otherwise in the
21979 # src tree.
21980 ac_file_inputs=`IFS=:
21981 for f in $ac_file_in; do
21982 case $f in
21983 -) echo $tmp/stdin ;;
21984 [\\/$]*)
21985 # Absolute (can't be DOS-style, as IFS=:)
21986 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21987 echo "$as_me: error: cannot find input file: $f" >&2;}
21988 { (exit 1); exit 1; }; }
21989 # Do quote $f, to prevent DOS paths from being IFS'd.
21990 echo "$f";;
21991 *) # Relative
21992 if test -f "$f"; then
21993 # Build tree
21994 echo "$f"
21995 elif test -f "$srcdir/$f"; then
21996 # Source tree
21997 echo "$srcdir/$f"
21998 else
21999 # /dev/null tree
22000 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22001 echo "$as_me: error: cannot find input file: $f" >&2;}
22002 { (exit 1); exit 1; }; }
22003 fi;;
22004 esac
22005 done` || { (exit 1); exit 1; }
22006 # Remove the trailing spaces.
22007 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22008
22009 _ACEOF
22010
22011 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22012 # `conftest.undefs', that substitutes the proper values into
22013 # config.h.in to produce config.h. The first handles `#define'
22014 # templates, and the second `#undef' templates.
22015 # And first: Protect against being on the right side of a sed subst in
22016 # config.status. Protect against being in an unquoted here document
22017 # in config.status.
22018 rm -f conftest.defines conftest.undefs
22019 # Using a here document instead of a string reduces the quoting nightmare.
22020 # Putting comments in sed scripts is not portable.
22021 #
22022 # `end' is used to avoid that the second main sed command (meant for
22023 # 0-ary CPP macros) applies to n-ary macro definitions.
22024 # See the Autoconf documentation for `clear'.
22025 cat >confdef2sed.sed <<\_ACEOF
22026 s/[\\&,]/\\&/g
22027 s,[\\$`],\\&,g
22028 t clear
22029 : clear
22030 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22031 t end
22032 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22033 : end
22034 _ACEOF
22035 # If some macros were called several times there might be several times
22036 # the same #defines, which is useless. Nevertheless, we may not want to
22037 # sort them, since we want the *last* AC-DEFINE to be honored.
22038 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22039 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22040 rm -f confdef2sed.sed
22041
22042 # This sed command replaces #undef with comments. This is necessary, for
22043 # example, in the case of _POSIX_SOURCE, which is predefined and required
22044 # on some systems where configure will not decide to define it.
22045 cat >>conftest.undefs <<\_ACEOF
22046 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22047 _ACEOF
22048
22049 # Break up conftest.defines because some shells have a limit on the size
22050 # of here documents, and old seds have small limits too (100 cmds).
22051 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22052 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22053 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22054 echo ' :' >>$CONFIG_STATUS
22055 rm -f conftest.tail
22056 while grep . conftest.defines >/dev/null
22057 do
22058 # Write a limited-size here document to $tmp/defines.sed.
22059 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22060 # Speed up: don't consider the non `#define' lines.
22061 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22062 # Work around the forget-to-reset-the-flag bug.
22063 echo 't clr' >>$CONFIG_STATUS
22064 echo ': clr' >>$CONFIG_STATUS
22065 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22066 echo 'CEOF
22067 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22068 rm -f $tmp/in
22069 mv $tmp/out $tmp/in
22070 ' >>$CONFIG_STATUS
22071 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22072 rm -f conftest.defines
22073 mv conftest.tail conftest.defines
22074 done
22075 rm -f conftest.defines
22076 echo ' fi # grep' >>$CONFIG_STATUS
22077 echo >>$CONFIG_STATUS
22078
22079 # Break up conftest.undefs because some shells have a limit on the size
22080 # of here documents, and old seds have small limits too (100 cmds).
22081 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22082 rm -f conftest.tail
22083 while grep . conftest.undefs >/dev/null
22084 do
22085 # Write a limited-size here document to $tmp/undefs.sed.
22086 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22087 # Speed up: don't consider the non `#undef'
22088 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22089 # Work around the forget-to-reset-the-flag bug.
22090 echo 't clr' >>$CONFIG_STATUS
22091 echo ': clr' >>$CONFIG_STATUS
22092 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22093 echo 'CEOF
22094 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22095 rm -f $tmp/in
22096 mv $tmp/out $tmp/in
22097 ' >>$CONFIG_STATUS
22098 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22099 rm -f conftest.undefs
22100 mv conftest.tail conftest.undefs
22101 done
22102 rm -f conftest.undefs
22103
22104 cat >>$CONFIG_STATUS <<\_ACEOF
22105 # Let's still pretend it is `configure' which instantiates (i.e., don't
22106 # use $as_me), people would be surprised to read:
22107 # /* config.h. Generated by config.status. */
22108 if test x"$ac_file" = x-; then
22109 echo "/* Generated by configure. */" >$tmp/config.h
22110 else
22111 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22112 fi
22113 cat $tmp/in >>$tmp/config.h
22114 rm -f $tmp/in
22115 if test x"$ac_file" != x-; then
22116 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22117 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22118 echo "$as_me: $ac_file is unchanged" >&6;}
22119 else
22120 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22122 X"$ac_file" : 'X\(//\)[^/]' \| \
22123 X"$ac_file" : 'X\(//\)$' \| \
22124 X"$ac_file" : 'X\(/\)' \| \
22125 . : '\(.\)' 2>/dev/null ||
22126 echo X"$ac_file" |
22127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22129 /^X\(\/\/\)$/{ s//\1/; q; }
22130 /^X\(\/\).*/{ s//\1/; q; }
22131 s/.*/./; q'`
22132 { if $as_mkdir_p; then
22133 mkdir -p "$ac_dir"
22134 else
22135 as_dir="$ac_dir"
22136 as_dirs=
22137 while test ! -d "$as_dir"; do
22138 as_dirs="$as_dir $as_dirs"
22139 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22141 X"$as_dir" : 'X\(//\)[^/]' \| \
22142 X"$as_dir" : 'X\(//\)$' \| \
22143 X"$as_dir" : 'X\(/\)' \| \
22144 . : '\(.\)' 2>/dev/null ||
22145 echo X"$as_dir" |
22146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22147 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22148 /^X\(\/\/\)$/{ s//\1/; q; }
22149 /^X\(\/\).*/{ s//\1/; q; }
22150 s/.*/./; q'`
22151 done
22152 test ! -n "$as_dirs" || mkdir $as_dirs
22153 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22154 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22155 { (exit 1); exit 1; }; }; }
22156
22157 rm -f $ac_file
22158 mv $tmp/config.h $ac_file
22159 fi
22160 else
22161 cat $tmp/config.h
22162 rm -f $tmp/config.h
22163 fi
22164 # Compute $ac_file's index in $config_headers.
22165 _am_stamp_count=1
22166 for _am_header in $config_headers :; do
22167 case $_am_header in
22168 $ac_file | $ac_file:* )
22169 break ;;
22170 * )
22171 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22172 esac
22173 done
22174 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22175 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22176 X$ac_file : 'X\(//\)[^/]' \| \
22177 X$ac_file : 'X\(//\)$' \| \
22178 X$ac_file : 'X\(/\)' \| \
22179 . : '\(.\)' 2>/dev/null ||
22180 echo X$ac_file |
22181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22183 /^X\(\/\/\)$/{ s//\1/; q; }
22184 /^X\(\/\).*/{ s//\1/; q; }
22185 s/.*/./; q'`/stamp-h$_am_stamp_count
22186 done
22187 _ACEOF
22188 cat >>$CONFIG_STATUS <<\_ACEOF
22189
22190 #
22191 # CONFIG_COMMANDS section.
22192 #
22193 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22194 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22195 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22196 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22197 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22198 X"$ac_dest" : 'X\(//\)[^/]' \| \
22199 X"$ac_dest" : 'X\(//\)$' \| \
22200 X"$ac_dest" : 'X\(/\)' \| \
22201 . : '\(.\)' 2>/dev/null ||
22202 echo X"$ac_dest" |
22203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22205 /^X\(\/\/\)$/{ s//\1/; q; }
22206 /^X\(\/\).*/{ s//\1/; q; }
22207 s/.*/./; q'`
22208 { if $as_mkdir_p; then
22209 mkdir -p "$ac_dir"
22210 else
22211 as_dir="$ac_dir"
22212 as_dirs=
22213 while test ! -d "$as_dir"; do
22214 as_dirs="$as_dir $as_dirs"
22215 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22217 X"$as_dir" : 'X\(//\)[^/]' \| \
22218 X"$as_dir" : 'X\(//\)$' \| \
22219 X"$as_dir" : 'X\(/\)' \| \
22220 . : '\(.\)' 2>/dev/null ||
22221 echo X"$as_dir" |
22222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22224 /^X\(\/\/\)$/{ s//\1/; q; }
22225 /^X\(\/\).*/{ s//\1/; q; }
22226 s/.*/./; q'`
22227 done
22228 test ! -n "$as_dirs" || mkdir $as_dirs
22229 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22231 { (exit 1); exit 1; }; }; }
22232
22233 ac_builddir=.
22234
22235 if test "$ac_dir" != .; then
22236 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22237 # A "../" for each directory in $ac_dir_suffix.
22238 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22239 else
22240 ac_dir_suffix= ac_top_builddir=
22241 fi
22242
22243 case $srcdir in
22244 .) # No --srcdir option. We are building in place.
22245 ac_srcdir=.
22246 if test -z "$ac_top_builddir"; then
22247 ac_top_srcdir=.
22248 else
22249 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22250 fi ;;
22251 [\\/]* | ?:[\\/]* ) # Absolute path.
22252 ac_srcdir=$srcdir$ac_dir_suffix;
22253 ac_top_srcdir=$srcdir ;;
22254 *) # Relative path.
22255 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22256 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22257 esac
22258
22259 # Do not use `cd foo && pwd` to compute absolute paths, because
22260 # the directories may not exist.
22261 case `pwd` in
22262 .) ac_abs_builddir="$ac_dir";;
22263 *)
22264 case "$ac_dir" in
22265 .) ac_abs_builddir=`pwd`;;
22266 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22267 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22268 esac;;
22269 esac
22270 case $ac_abs_builddir in
22271 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22272 *)
22273 case ${ac_top_builddir}. in
22274 .) ac_abs_top_builddir=$ac_abs_builddir;;
22275 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22276 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22277 esac;;
22278 esac
22279 case $ac_abs_builddir in
22280 .) ac_abs_srcdir=$ac_srcdir;;
22281 *)
22282 case $ac_srcdir in
22283 .) ac_abs_srcdir=$ac_abs_builddir;;
22284 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22285 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22286 esac;;
22287 esac
22288 case $ac_abs_builddir in
22289 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22290 *)
22291 case $ac_top_srcdir in
22292 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22293 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22294 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22295 esac;;
22296 esac
22297
22298
22299 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22300 echo "$as_me: executing $ac_dest commands" >&6;}
22301 case $ac_dest in
22302 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22303 # Strip MF so we end up with the name of the file.
22304 mf=`echo "$mf" | sed -e 's/:.*$//'`
22305 # Check whether this is an Automake generated Makefile or not.
22306 # We used to match only the files named `Makefile.in', but
22307 # some people rename them; so instead we look at the file content.
22308 # Grep'ing the first line is not enough: some people post-process
22309 # each Makefile.in and add a new line on top of each file to say so.
22310 # So let's grep whole file.
22311 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22312 dirpart=`(dirname "$mf") 2>/dev/null ||
22313 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22314 X"$mf" : 'X\(//\)[^/]' \| \
22315 X"$mf" : 'X\(//\)$' \| \
22316 X"$mf" : 'X\(/\)' \| \
22317 . : '\(.\)' 2>/dev/null ||
22318 echo X"$mf" |
22319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22321 /^X\(\/\/\)$/{ s//\1/; q; }
22322 /^X\(\/\).*/{ s//\1/; q; }
22323 s/.*/./; q'`
22324 else
22325 continue
22326 fi
22327 # Extract the definition of DEPDIR, am__include, and am__quote
22328 # from the Makefile without running `make'.
22329 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22330 test -z "$DEPDIR" && continue
22331 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22332 test -z "am__include" && continue
22333 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22334 # When using ansi2knr, U may be empty or an underscore; expand it
22335 U=`sed -n 's/^U = //p' < "$mf"`
22336 # Find all dependency output files, they are included files with
22337 # $(DEPDIR) in their names. We invoke sed twice because it is the
22338 # simplest approach to changing $(DEPDIR) to its actual value in the
22339 # expansion.
22340 for file in `sed -n "
22341 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22342 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22343 # Make sure the directory exists.
22344 test -f "$dirpart/$file" && continue
22345 fdir=`(dirname "$file") 2>/dev/null ||
22346 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22347 X"$file" : 'X\(//\)[^/]' \| \
22348 X"$file" : 'X\(//\)$' \| \
22349 X"$file" : 'X\(/\)' \| \
22350 . : '\(.\)' 2>/dev/null ||
22351 echo X"$file" |
22352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22354 /^X\(\/\/\)$/{ s//\1/; q; }
22355 /^X\(\/\).*/{ s//\1/; q; }
22356 s/.*/./; q'`
22357 { if $as_mkdir_p; then
22358 mkdir -p $dirpart/$fdir
22359 else
22360 as_dir=$dirpart/$fdir
22361 as_dirs=
22362 while test ! -d "$as_dir"; do
22363 as_dirs="$as_dir $as_dirs"
22364 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22366 X"$as_dir" : 'X\(//\)[^/]' \| \
22367 X"$as_dir" : 'X\(//\)$' \| \
22368 X"$as_dir" : 'X\(/\)' \| \
22369 . : '\(.\)' 2>/dev/null ||
22370 echo X"$as_dir" |
22371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22373 /^X\(\/\/\)$/{ s//\1/; q; }
22374 /^X\(\/\).*/{ s//\1/; q; }
22375 s/.*/./; q'`
22376 done
22377 test ! -n "$as_dirs" || mkdir $as_dirs
22378 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22379 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22380 { (exit 1); exit 1; }; }; }
22381
22382 # echo "creating $dirpart/$file"
22383 echo '# dummy' > "$dirpart/$file"
22384 done
22385 done
22386 ;;
22387 libtool )
22388
22389 # See if we are running on zsh, and set the options which allow our
22390 # commands through without removal of \ escapes.
22391 if test -n "${ZSH_VERSION+set}" ; then
22392 setopt NO_GLOB_SUBST
22393 fi
22394
22395 cfgfile="${ofile}T"
22396 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22397 $RM "$cfgfile"
22398
22399 cat <<_LT_EOF >> "$cfgfile"
22400 #! $SHELL
22401
22402 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22403 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22404 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22405 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22406 #
22407 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22408 # 2006, 2007 Free Software Foundation, Inc.
22409 #
22410 # This file is part of GNU Libtool:
22411 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22412 #
22413 # This program is free software; you can redistribute it and/or modify
22414 # it under the terms of the GNU General Public License as published by
22415 # the Free Software Foundation; either version 2 of the License, or
22416 # (at your option) any later version.
22417 #
22418 # This program is distributed in the hope that it will be useful, but
22419 # WITHOUT ANY WARRANTY; without even the implied warranty of
22420 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22421 # General Public License for more details.
22422 #
22423 # You should have received a copy of the GNU General Public License
22424 # along with this program; if not, a copy can be downloaded from
22425 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22426 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22427 # MA 02110-1301, USA.
22428 #
22429 # As a special exception to the GNU General Public License, if you
22430 # distribute this file as part of a program that contains a
22431 # configuration script generated by Autoconf, you may include it under
22432 # the same distribution terms that you use for the rest of that program.
22433
22434
22435 # The names of the tagged configurations supported by this script.
22436 available_tags=""
22437
22438 # ### BEGIN LIBTOOL CONFIG
22439
22440 # Whether or not to build shared libraries.
22441 build_libtool_libs=$enable_shared
22442
22443 # Which release of libtool.m4 was used?
22444 macro_version=$macro_version
22445 macro_revision=$macro_revision
22446
22447 # Whether or not to build static libraries.
22448 build_old_libs=$enable_static
22449
22450 # What type of objects to build.
22451 pic_mode=$pic_mode
22452
22453 # Whether or not to optimize for fast installation.
22454 fast_install=$enable_fast_install
22455
22456 # The host system.
22457 host_alias=$host_alias
22458 host=$host
22459 host_os=$host_os
22460
22461 # The build system.
22462 build_alias=$build_alias
22463 build=$build
22464 build_os=$build_os
22465
22466 # A sed program that does not truncate output.
22467 SED=$lt_SED
22468
22469 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22470 Xsed="\$SED -e 1s/^X//"
22471
22472 # A grep program that handles long lines.
22473 GREP=$lt_GREP
22474
22475 # An ERE matcher.
22476 EGREP=$lt_EGREP
22477
22478 # A literal string matcher.
22479 FGREP=$lt_FGREP
22480
22481 # A BSD- or MS-compatible name lister.
22482 NM=$lt_NM
22483
22484 # Whether we need soft or hard links.
22485 LN_S=$lt_LN_S
22486
22487 # What is the maximum length of a command?
22488 max_cmd_len=$max_cmd_len
22489
22490 # Object file suffix (normally "o").
22491 objext=$ac_objext
22492
22493 # Executable file suffix (normally "").
22494 exeext=$exeext
22495
22496 # whether the shell understands "unset".
22497 lt_unset=$lt_unset
22498
22499 # turn spaces into newlines.
22500 SP2NL=$lt_lt_SP2NL
22501
22502 # turn newlines into spaces.
22503 NL2SP=$lt_lt_NL2SP
22504
22505 # How to create reloadable object files.
22506 reload_flag=$lt_reload_flag
22507 reload_cmds=$lt_reload_cmds
22508
22509 # Method to check whether dependent libraries are shared objects.
22510 deplibs_check_method=$lt_deplibs_check_method
22511
22512 # Command to use when deplibs_check_method == "file_magic".
22513 file_magic_cmd=$lt_file_magic_cmd
22514
22515 # The archiver.
22516 AR=$lt_AR
22517 AR_FLAGS=$lt_AR_FLAGS
22518
22519 # A symbol stripping program.
22520 STRIP=$lt_STRIP
22521
22522 # Commands used to install an old-style archive.
22523 RANLIB=$lt_RANLIB
22524 old_postinstall_cmds=$lt_old_postinstall_cmds
22525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22526
22527 # A C compiler.
22528 LTCC=$lt_CC
22529
22530 # LTCC compiler flags.
22531 LTCFLAGS=$lt_CFLAGS
22532
22533 # Take the output of nm and produce a listing of raw symbols and C names.
22534 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22535
22536 # Transform the output of nm in a proper C declaration.
22537 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22538
22539 # Transform the output of nm in a C name address pair.
22540 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22541
22542 # The name of the directory that contains temporary libtool files.
22543 objdir=$objdir
22544
22545 # Shell to use when invoking shell scripts.
22546 SHELL=$lt_SHELL
22547
22548 # An echo program that does not interpret backslashes.
22549 ECHO=$lt_ECHO
22550
22551 # Used to examine libraries when file_magic_cmd begins with "file".
22552 MAGIC_CMD=$MAGIC_CMD
22553
22554 # Must we lock files when doing compilation?
22555 need_locks=$lt_need_locks
22556
22557 # Old archive suffix (normally "a").
22558 libext=$libext
22559
22560 # Shared library suffix (normally ".so").
22561 shrext_cmds=$lt_shrext_cmds
22562
22563 # The commands to extract the exported symbol list from a shared archive.
22564 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22565
22566 # Variables whose values should be saved in libtool wrapper scripts and
22567 # restored at link time.
22568 variables_saved_for_relink=$lt_variables_saved_for_relink
22569
22570 # Do we need the "lib" prefix for modules?
22571 need_lib_prefix=$need_lib_prefix
22572
22573 # Do we need a version for libraries?
22574 need_version=$need_version
22575
22576 # Library versioning type.
22577 version_type=$version_type
22578
22579 # Shared library runtime path variable.
22580 runpath_var=$runpath_var
22581
22582 # Shared library path variable.
22583 shlibpath_var=$shlibpath_var
22584
22585 # Is shlibpath searched before the hard-coded library search path?
22586 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22587
22588 # Format of library name prefix.
22589 libname_spec=$lt_libname_spec
22590
22591 # List of archive names. First name is the real one, the rest are links.
22592 # The last name is the one that the linker finds with -lNAME
22593 library_names_spec=$lt_library_names_spec
22594
22595 # The coded name of the library, if different from the real name.
22596 soname_spec=$lt_soname_spec
22597
22598 # Command to use after installation of a shared archive.
22599 postinstall_cmds=$lt_postinstall_cmds
22600
22601 # Command to use after uninstallation of a shared archive.
22602 postuninstall_cmds=$lt_postuninstall_cmds
22603
22604 # Commands used to finish a libtool library installation in a directory.
22605 finish_cmds=$lt_finish_cmds
22606
22607 # As "finish_cmds", except a single script fragment to be evaled but
22608 # not shown.
22609 finish_eval=$lt_finish_eval
22610
22611 # Whether we should hardcode library paths into libraries.
22612 hardcode_into_libs=$hardcode_into_libs
22613
22614 # Compile-time system search path for libraries.
22615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22616
22617 # Run-time system search path for libraries.
22618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22619
22620 # Whether dlopen is supported.
22621 dlopen_support=$enable_dlopen
22622
22623 # Whether dlopen of programs is supported.
22624 dlopen_self=$enable_dlopen_self
22625
22626 # Whether dlopen of statically linked programs is supported.
22627 dlopen_self_static=$enable_dlopen_self_static
22628
22629 # Commands to strip libraries.
22630 old_striplib=$lt_old_striplib
22631 striplib=$lt_striplib
22632
22633
22634 # The linker used to build libraries.
22635 LD=$lt_LD
22636
22637 # Commands used to build an old-style archive.
22638 old_archive_cmds=$lt_old_archive_cmds
22639
22640 # A language specific compiler.
22641 CC=$lt_compiler
22642
22643 # Is the compiler the GNU compiler?
22644 with_gcc=$GCC
22645
22646 # Compiler flag to turn off builtin functions.
22647 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22648
22649 # How to pass a linker flag through the compiler.
22650 wl=$lt_lt_prog_compiler_wl
22651
22652 # Additional compiler flags for building library objects.
22653 pic_flag=$lt_lt_prog_compiler_pic
22654
22655 # Compiler flag to prevent dynamic linking.
22656 link_static_flag=$lt_lt_prog_compiler_static
22657
22658 # Does compiler simultaneously support -c and -o options?
22659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22660
22661 # Whether or not to add -lc for building shared libraries.
22662 build_libtool_need_lc=$archive_cmds_need_lc
22663
22664 # Whether or not to disallow shared libs when runtime libs are static.
22665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22666
22667 # Compiler flag to allow reflexive dlopens.
22668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22669
22670 # Compiler flag to generate shared objects directly from archives.
22671 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22672
22673 # Whether the compiler copes with passing no objects directly.
22674 compiler_needs_object=$lt_compiler_needs_object
22675
22676 # Create an old-style archive from a shared archive.
22677 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22678
22679 # Create a temporary old-style archive to link instead of a shared archive.
22680 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22681
22682 # Commands used to build a shared archive.
22683 archive_cmds=$lt_archive_cmds
22684 archive_expsym_cmds=$lt_archive_expsym_cmds
22685
22686 # Commands used to build a loadable module if different from building
22687 # a shared archive.
22688 module_cmds=$lt_module_cmds
22689 module_expsym_cmds=$lt_module_expsym_cmds
22690
22691 # Whether we are building with GNU ld or not.
22692 with_gnu_ld=$lt_with_gnu_ld
22693
22694 # Flag that allows shared libraries with undefined symbols to be built.
22695 allow_undefined_flag=$lt_allow_undefined_flag
22696
22697 # Flag that enforces no undefined symbols.
22698 no_undefined_flag=$lt_no_undefined_flag
22699
22700 # Flag to hardcode \$libdir into a binary during linking.
22701 # This must work even if \$libdir does not exist
22702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22703
22704 # If ld is used when linking, flag to hardcode \$libdir into a binary
22705 # during linking. This must work even if \$libdir does not exist.
22706 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22707
22708 # Whether we need a single "-rpath" flag with a separated argument.
22709 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22710
22711 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22712 # DIR into the resulting binary.
22713 hardcode_direct=$hardcode_direct
22714
22715 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22716 # DIR into the resulting binary and the resulting library dependency is
22717 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22718 # library is relocated.
22719 hardcode_direct_absolute=$hardcode_direct_absolute
22720
22721 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22722 # into the resulting binary.
22723 hardcode_minus_L=$hardcode_minus_L
22724
22725 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22726 # into the resulting binary.
22727 hardcode_shlibpath_var=$hardcode_shlibpath_var
22728
22729 # Set to "yes" if building a shared library automatically hardcodes DIR
22730 # into the library and all subsequent libraries and executables linked
22731 # against it.
22732 hardcode_automatic=$hardcode_automatic
22733
22734 # Set to yes if linker adds runtime paths of dependent libraries
22735 # to runtime path list.
22736 inherit_rpath=$inherit_rpath
22737
22738 # Whether libtool must link a program against all its dependency libraries.
22739 link_all_deplibs=$link_all_deplibs
22740
22741 # Fix the shell variable \$srcfile for the compiler.
22742 fix_srcfile_path=$lt_fix_srcfile_path
22743
22744 # Set to "yes" if exported symbols are required.
22745 always_export_symbols=$always_export_symbols
22746
22747 # The commands to list exported symbols.
22748 export_symbols_cmds=$lt_export_symbols_cmds
22749
22750 # Symbols that should not be listed in the preloaded symbols.
22751 exclude_expsyms=$lt_exclude_expsyms
22752
22753 # Symbols that must always be exported.
22754 include_expsyms=$lt_include_expsyms
22755
22756 # Commands necessary for linking programs (against libraries) with templates.
22757 prelink_cmds=$lt_prelink_cmds
22758
22759 # Specify filename containing input files.
22760 file_list_spec=$lt_file_list_spec
22761
22762 # How to hardcode a shared library path into an executable.
22763 hardcode_action=$hardcode_action
22764
22765 # ### END LIBTOOL CONFIG
22766
22767 _LT_EOF
22768
22769 case $host_os in
22770 aix3*)
22771 cat <<\_LT_EOF >> "$cfgfile"
22772 # AIX sometimes has problems with the GCC collect2 program. For some
22773 # reason, if we set the COLLECT_NAMES environment variable, the problems
22774 # vanish in a puff of smoke.
22775 if test "X${COLLECT_NAMES+set}" != Xset; then
22776 COLLECT_NAMES=
22777 export COLLECT_NAMES
22778 fi
22779 _LT_EOF
22780 ;;
22781 esac
22782
22783
22784 ltmain="$ac_aux_dir/ltmain.sh"
22785
22786
22787 # We use sed instead of cat because bash on DJGPP gets confused if
22788 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22789 # text mode, it properly converts lines to CR/LF. This bash problem
22790 # is reportedly fixed, but why not run on old versions too?
22791 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22792 || (rm -f "$cfgfile"; exit 1)
22793
22794 case $xsi_shell in
22795 yes)
22796 cat << \_LT_EOF >> "$cfgfile"
22797 # func_dirname file append nondir_replacement
22798 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22799 # otherwise set result to NONDIR_REPLACEMENT.
22800 func_dirname ()
22801 {
22802 case ${1} in
22803 */*) func_dirname_result="${1%/*}${2}" ;;
22804 * ) func_dirname_result="${3}" ;;
22805 esac
22806 }
22807
22808 # func_basename file
22809 func_basename ()
22810 {
22811 func_basename_result="${1##*/}"
22812 }
22813
22814 # func_stripname prefix suffix name
22815 # strip PREFIX and SUFFIX off of NAME.
22816 # PREFIX and SUFFIX must not contain globbing or regex special
22817 # characters, hashes, percent signs, but SUFFIX may contain a leading
22818 # dot (in which case that matches only a dot).
22819 func_stripname ()
22820 {
22821 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22822 # positional parameters, so assign one to ordinary parameter first.
22823 func_stripname_result=${3}
22824 func_stripname_result=${func_stripname_result#"${1}"}
22825 func_stripname_result=${func_stripname_result%"${2}"}
22826 }
22827
22828 # func_opt_split
22829 func_opt_split ()
22830 {
22831 func_opt_split_opt=${1%%=*}
22832 func_opt_split_arg=${1#*=}
22833 }
22834
22835 # func_lo2o object
22836 func_lo2o ()
22837 {
22838 case ${1} in
22839 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22840 *) func_lo2o_result=${1} ;;
22841 esac
22842 }
22843 _LT_EOF
22844 ;;
22845 *) # Bourne compatible functions.
22846 cat << \_LT_EOF >> "$cfgfile"
22847 # func_dirname file append nondir_replacement
22848 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22849 # otherwise set result to NONDIR_REPLACEMENT.
22850 func_dirname ()
22851 {
22852 # Extract subdirectory from the argument.
22853 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22854 if test "X$func_dirname_result" = "X${1}"; then
22855 func_dirname_result="${3}"
22856 else
22857 func_dirname_result="$func_dirname_result${2}"
22858 fi
22859 }
22860
22861 # func_basename file
22862 func_basename ()
22863 {
22864 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22865 }
22866
22867 # func_stripname prefix suffix name
22868 # strip PREFIX and SUFFIX off of NAME.
22869 # PREFIX and SUFFIX must not contain globbing or regex special
22870 # characters, hashes, percent signs, but SUFFIX may contain a leading
22871 # dot (in which case that matches only a dot).
22872 # func_strip_suffix prefix name
22873 func_stripname ()
22874 {
22875 case ${2} in
22876 .*) func_stripname_result=`$ECHO "X${3}" \
22877 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22878 *) func_stripname_result=`$ECHO "X${3}" \
22879 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22880 esac
22881 }
22882
22883 # sed scripts:
22884 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22885 my_sed_long_arg='1s/^-[^=]*=//'
22886
22887 # func_opt_split
22888 func_opt_split ()
22889 {
22890 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22891 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22892 }
22893
22894 # func_lo2o object
22895 func_lo2o ()
22896 {
22897 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22898 }
22899 _LT_EOF
22900 esac
22901
22902 case $lt_shell_append in
22903 yes)
22904 cat << \_LT_EOF >> "$cfgfile"
22905
22906 # func_append var value
22907 # Append VALUE to the end of shell variable VAR.
22908 func_append ()
22909 {
22910 eval "$1+=\$2"
22911 }
22912 _LT_EOF
22913 ;;
22914 *)
22915 cat << \_LT_EOF >> "$cfgfile"
22916
22917 # func_append var value
22918 # Append VALUE to the end of shell variable VAR.
22919 func_append ()
22920 {
22921 eval "$1=\$$1\$2"
22922 }
22923 _LT_EOF
22924 ;;
22925 esac
22926
22927
22928 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22929 || (rm -f "$cfgfile"; exit 1)
22930
22931 mv -f "$cfgfile" "$ofile" ||
22932 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22933 chmod +x "$ofile"
22934
22935 ;;
22936 default-1 )
22937 for ac_file in $CONFIG_FILES; do
22938 # Support "outfile[:infile[:infile...]]"
22939 case "$ac_file" in
22940 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22941 esac
22942 # PO directories have a Makefile.in generated from Makefile.in.in.
22943 case "$ac_file" in */Makefile.in)
22944 # Adjust a relative srcdir.
22945 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22946 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22947 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22948 # In autoconf-2.13 it is called $ac_given_srcdir.
22949 # In autoconf-2.50 it is called $srcdir.
22950 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22951 case "$ac_given_srcdir" in
22952 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22953 /*) top_srcdir="$ac_given_srcdir" ;;
22954 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22955 esac
22956 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22957 rm -f "$ac_dir/POTFILES"
22958 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22959 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22960 POMAKEFILEDEPS="POTFILES.in"
22961 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22962 # on $ac_dir but don't depend on user-specified configuration
22963 # parameters.
22964 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22965 # The LINGUAS file contains the set of available languages.
22966 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22967 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22968 fi
22969 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22970 # Hide the ALL_LINGUAS assigment from automake.
22971 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22972 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22973 else
22974 # The set of available languages was given in configure.in.
22975 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22976 fi
22977 case "$ac_given_srcdir" in
22978 .) srcdirpre= ;;
22979 *) srcdirpre='$(srcdir)/' ;;
22980 esac
22981 POFILES=
22982 GMOFILES=
22983 UPDATEPOFILES=
22984 DUMMYPOFILES=
22985 for lang in $ALL_LINGUAS; do
22986 POFILES="$POFILES $srcdirpre$lang.po"
22987 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22988 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22989 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22990 done
22991 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22992 # environment variable.
22993 INST_LINGUAS=
22994 if test -n "$ALL_LINGUAS"; then
22995 for presentlang in $ALL_LINGUAS; do
22996 useit=no
22997 if test "%UNSET%" != "$LINGUAS"; then
22998 desiredlanguages="$LINGUAS"
22999 else
23000 desiredlanguages="$ALL_LINGUAS"
23001 fi
23002 for desiredlang in $desiredlanguages; do
23003 # Use the presentlang catalog if desiredlang is
23004 # a. equal to presentlang, or
23005 # b. a variant of presentlang (because in this case,
23006 # presentlang can be used as a fallback for messages
23007 # which are not translated in the desiredlang catalog).
23008 case "$desiredlang" in
23009 "$presentlang"*) useit=yes;;
23010 esac
23011 done
23012 if test $useit = yes; then
23013 INST_LINGUAS="$INST_LINGUAS $presentlang"
23014 fi
23015 done
23016 fi
23017 CATALOGS=
23018 if test -n "$INST_LINGUAS"; then
23019 for lang in $INST_LINGUAS; do
23020 CATALOGS="$CATALOGS $lang.gmo"
23021 done
23022 fi
23023 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23024 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"
23025 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23026 if test -f "$f"; then
23027 case "$f" in
23028 *.orig | *.bak | *~) ;;
23029 *) cat "$f" >> "$ac_dir/Makefile" ;;
23030 esac
23031 fi
23032 done
23033 fi
23034 ;;
23035 esac
23036 done ;;
23037 bfd_stdint.h )
23038 if test "$GCC" = yes; then
23039 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23040 else
23041 echo "/* generated for $CC */" > tmp-stdint.h
23042 fi
23043
23044 sed 's/^ *//' >> tmp-stdint.h <<EOF
23045
23046 #ifndef GCC_GENERATED_STDINT_H
23047 #define GCC_GENERATED_STDINT_H 1
23048
23049 #include <sys/types.h>
23050 EOF
23051
23052 if test "$acx_cv_header_stdint" != stdint.h; then
23053 echo "#include <stddef.h>" >> tmp-stdint.h
23054 fi
23055 if test "$acx_cv_header_stdint" != stddef.h; then
23056 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23057 fi
23058
23059 sed 's/^ *//' >> tmp-stdint.h <<EOF
23060 /* glibc uses these symbols as guards to prevent redefinitions. */
23061 #ifdef __int8_t_defined
23062 #define _INT8_T
23063 #define _INT16_T
23064 #define _INT32_T
23065 #endif
23066 #ifdef __uint32_t_defined
23067 #define _UINT32_T
23068 #endif
23069
23070 EOF
23071
23072 # ----------------- done header, emit basic int types -------------
23073 if test "$acx_cv_header_stdint" = stddef.h; then
23074 sed 's/^ *//' >> tmp-stdint.h <<EOF
23075
23076 #ifndef _UINT8_T
23077 #define _UINT8_T
23078 #ifndef __uint8_t_defined
23079 #define __uint8_t_defined
23080 typedef unsigned $acx_cv_type_int8_t uint8_t;
23081 #endif
23082 #endif
23083
23084 #ifndef _UINT16_T
23085 #define _UINT16_T
23086 #ifndef __uint16_t_defined
23087 #define __uint16_t_defined
23088 typedef unsigned $acx_cv_type_int16_t uint16_t;
23089 #endif
23090 #endif
23091
23092 #ifndef _UINT32_T
23093 #define _UINT32_T
23094 #ifndef __uint32_t_defined
23095 #define __uint32_t_defined
23096 typedef unsigned $acx_cv_type_int32_t uint32_t;
23097 #endif
23098 #endif
23099
23100 #ifndef _INT8_T
23101 #define _INT8_T
23102 #ifndef __int8_t_defined
23103 #define __int8_t_defined
23104 typedef $acx_cv_type_int8_t int8_t;
23105 #endif
23106 #endif
23107
23108 #ifndef _INT16_T
23109 #define _INT16_T
23110 #ifndef __int16_t_defined
23111 #define __int16_t_defined
23112 typedef $acx_cv_type_int16_t int16_t;
23113 #endif
23114 #endif
23115
23116 #ifndef _INT32_T
23117 #define _INT32_T
23118 #ifndef __int32_t_defined
23119 #define __int32_t_defined
23120 typedef $acx_cv_type_int32_t int32_t;
23121 #endif
23122 #endif
23123 EOF
23124 elif test "$ac_cv_type_u_int32_t" = yes; then
23125 sed 's/^ *//' >> tmp-stdint.h <<EOF
23126
23127 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23128 #ifndef _INT8_T
23129 #define _INT8_T
23130 #endif
23131 #ifndef _INT16_T
23132 #define _INT16_T
23133 #endif
23134 #ifndef _INT32_T
23135 #define _INT32_T
23136 #endif
23137
23138 #ifndef _UINT8_T
23139 #define _UINT8_T
23140 #ifndef __uint8_t_defined
23141 #define __uint8_t_defined
23142 typedef u_int8_t uint8_t;
23143 #endif
23144 #endif
23145
23146 #ifndef _UINT16_T
23147 #define _UINT16_T
23148 #ifndef __uint16_t_defined
23149 #define __uint16_t_defined
23150 typedef u_int16_t uint16_t;
23151 #endif
23152 #endif
23153
23154 #ifndef _UINT32_T
23155 #define _UINT32_T
23156 #ifndef __uint32_t_defined
23157 #define __uint32_t_defined
23158 typedef u_int32_t uint32_t;
23159 #endif
23160 #endif
23161 EOF
23162 else
23163 sed 's/^ *//' >> tmp-stdint.h <<EOF
23164
23165 /* Some systems have guard macros to prevent redefinitions, define them. */
23166 #ifndef _INT8_T
23167 #define _INT8_T
23168 #endif
23169 #ifndef _INT16_T
23170 #define _INT16_T
23171 #endif
23172 #ifndef _INT32_T
23173 #define _INT32_T
23174 #endif
23175 #ifndef _UINT8_T
23176 #define _UINT8_T
23177 #endif
23178 #ifndef _UINT16_T
23179 #define _UINT16_T
23180 #endif
23181 #ifndef _UINT32_T
23182 #define _UINT32_T
23183 #endif
23184 EOF
23185 fi
23186
23187 # ------------- done basic int types, emit int64_t types ------------
23188 if test "$ac_cv_type_uint64_t" = yes; then
23189 sed 's/^ *//' >> tmp-stdint.h <<EOF
23190
23191 /* system headers have good uint64_t and int64_t */
23192 #ifndef _INT64_T
23193 #define _INT64_T
23194 #endif
23195 #ifndef _UINT64_T
23196 #define _UINT64_T
23197 #endif
23198 EOF
23199 elif test "$ac_cv_type_u_int64_t" = yes; then
23200 sed 's/^ *//' >> tmp-stdint.h <<EOF
23201
23202 /* system headers have an u_int64_t (and int64_t) */
23203 #ifndef _INT64_T
23204 #define _INT64_T
23205 #endif
23206 #ifndef _UINT64_T
23207 #define _UINT64_T
23208 #ifndef __uint64_t_defined
23209 #define __uint64_t_defined
23210 typedef u_int64_t uint64_t;
23211 #endif
23212 #endif
23213 EOF
23214 elif test -n "$acx_cv_type_int64_t"; then
23215 sed 's/^ *//' >> tmp-stdint.h <<EOF
23216
23217 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23218 #ifndef _INT64_T
23219 #define _INT64_T
23220 typedef $acx_cv_type_int64_t int64_t;
23221 #endif
23222 #ifndef _UINT64_T
23223 #define _UINT64_T
23224 #ifndef __uint64_t_defined
23225 #define __uint64_t_defined
23226 typedef unsigned $acx_cv_type_int64_t uint64_t;
23227 #endif
23228 #endif
23229 EOF
23230 else
23231 sed 's/^ *//' >> tmp-stdint.h <<EOF
23232
23233 /* some common heuristics for int64_t, using compiler-specific tests */
23234 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23235 #ifndef _INT64_T
23236 #define _INT64_T
23237 #ifndef __int64_t_defined
23238 typedef long long int64_t;
23239 #endif
23240 #endif
23241 #ifndef _UINT64_T
23242 #define _UINT64_T
23243 typedef unsigned long long uint64_t;
23244 #endif
23245
23246 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23247 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23248 does not implement __extension__. But that compiler doesn't define
23249 __GNUC_MINOR__. */
23250 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23251 # define __extension__
23252 # endif
23253
23254 # ifndef _INT64_T
23255 # define _INT64_T
23256 __extension__ typedef long long int64_t;
23257 # endif
23258 # ifndef _UINT64_T
23259 # define _UINT64_T
23260 __extension__ typedef unsigned long long uint64_t;
23261 # endif
23262
23263 #elif !defined __STRICT_ANSI__
23264 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23265
23266 # ifndef _INT64_T
23267 # define _INT64_T
23268 typedef __int64 int64_t;
23269 # endif
23270 # ifndef _UINT64_T
23271 # define _UINT64_T
23272 typedef unsigned __int64 uint64_t;
23273 # endif
23274 # endif /* compiler */
23275
23276 #endif /* ANSI version */
23277 EOF
23278 fi
23279
23280 # ------------- done int64_t types, emit intptr types ------------
23281 if test "$ac_cv_type_uintptr_t" != yes; then
23282 sed 's/^ *//' >> tmp-stdint.h <<EOF
23283
23284 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23285 #ifndef __uintptr_t_defined
23286 typedef u$acx_cv_type_intptr_t uintptr_t;
23287 #endif
23288 #ifndef __intptr_t_defined
23289 typedef $acx_cv_type_intptr_t intptr_t;
23290 #endif
23291 EOF
23292 fi
23293
23294 # ------------- done intptr types, emit int_least types ------------
23295 if test "$ac_cv_type_int_least32_t" != yes; then
23296 sed 's/^ *//' >> tmp-stdint.h <<EOF
23297
23298 /* Define int_least types */
23299 typedef int8_t int_least8_t;
23300 typedef int16_t int_least16_t;
23301 typedef int32_t int_least32_t;
23302 #ifdef _INT64_T
23303 typedef int64_t int_least64_t;
23304 #endif
23305
23306 typedef uint8_t uint_least8_t;
23307 typedef uint16_t uint_least16_t;
23308 typedef uint32_t uint_least32_t;
23309 #ifdef _UINT64_T
23310 typedef uint64_t uint_least64_t;
23311 #endif
23312 EOF
23313 fi
23314
23315 # ------------- done intptr types, emit int_fast types ------------
23316 if test "$ac_cv_type_int_fast32_t" != yes; then
23317 sed 's/^ *//' >> tmp-stdint.h <<EOF
23318
23319 /* Define int_fast types. short is often slow */
23320 typedef int8_t int_fast8_t;
23321 typedef int int_fast16_t;
23322 typedef int32_t int_fast32_t;
23323 #ifdef _INT64_T
23324 typedef int64_t int_fast64_t;
23325 #endif
23326
23327 typedef uint8_t uint_fast8_t;
23328 typedef unsigned int uint_fast16_t;
23329 typedef uint32_t uint_fast32_t;
23330 #ifdef _UINT64_T
23331 typedef uint64_t uint_fast64_t;
23332 #endif
23333 EOF
23334 fi
23335
23336 if test "$ac_cv_type_uintmax_t" != yes; then
23337 sed 's/^ *//' >> tmp-stdint.h <<EOF
23338
23339 /* Define intmax based on what we found */
23340 #ifdef _INT64_T
23341 typedef int64_t intmax_t;
23342 #else
23343 typedef long intmax_t;
23344 #endif
23345 #ifdef _UINT64_T
23346 typedef uint64_t uintmax_t;
23347 #else
23348 typedef unsigned long uintmax_t;
23349 #endif
23350 EOF
23351 fi
23352
23353 sed 's/^ *//' >> tmp-stdint.h <<EOF
23354
23355 #endif /* GCC_GENERATED_STDINT_H */
23356 EOF
23357
23358 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23359 rm -f tmp-stdint.h
23360 else
23361 mv -f tmp-stdint.h bfd_stdint.h
23362 fi
23363
23364 ;;
23365 default )
23366 case "$srcdir" in
23367 .) srcdirpre= ;;
23368 *) srcdirpre='$(srcdir)/' ;;
23369 esac
23370 POFILES=
23371 GMOFILES=
23372 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23373 if test $lang != dummy; then
23374 POFILES="$POFILES $srcdirpre$lang.po"
23375 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23376 fi
23377 done
23378 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23379 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23380 -e "s,@POFILES@,$POFILES," \
23381 -e "s,@GMOFILES@,$GMOFILES," \
23382 po/Makefile.in > po/Makefile ;;
23383 esac
23384 done
23385 _ACEOF
23386
23387 cat >>$CONFIG_STATUS <<\_ACEOF
23388
23389 { (exit 0); exit 0; }
23390 _ACEOF
23391 chmod +x $CONFIG_STATUS
23392 ac_clean_files=$ac_clean_files_save
23393
23394
23395 # configure is writing to config.log, and then calls config.status.
23396 # config.status does its own redirection, appending to config.log.
23397 # Unfortunately, on DOS this fails, as config.log is still kept open
23398 # by configure, so config.status won't be able to write to it; its
23399 # output is simply discarded. So we exec the FD to /dev/null,
23400 # effectively closing config.log, so it can be properly (re)opened and
23401 # appended to by config.status. When coming back to configure, we
23402 # need to make the FD available again.
23403 if test "$no_create" != yes; then
23404 ac_cs_success=:
23405 ac_config_status_args=
23406 test "$silent" = yes &&
23407 ac_config_status_args="$ac_config_status_args --quiet"
23408 exec 5>/dev/null
23409 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23410 exec 5>>config.log
23411 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23412 # would make configure fail if this is the last instruction.
23413 $ac_cs_success || { (exit 1); exit 1; }
23414 fi
23415
23416
This page took 0.638224 seconds and 5 git commands to generate.