(read_section): Take pointer to bfd_size_type instead
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
5464f5a1 3# Generated by GNU Autoconf 2.59.
252b5132 4#
5464f5a1 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
5464f5a1
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if 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
277fi
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
283if 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
381fi
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.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
5464f5a1
NN
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
5464f5a1
NN
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
5464f5a1
NN
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${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.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="libbfd.c"
424# Factoring default headers for most tests.
425ac_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
bce5e5c9 461ac_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'
5464f5a1 462ac_subst_files=''
252b5132
RH
463
464# Initialize some variables set by options.
5464f5a1
NN
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
5464f5a1 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
5464f5a1
NN
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.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
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
5464f5a1 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
5464f5a1 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
5464f5a1 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 526 build_alias=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1
NN
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
5464f5a1 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
5464f5a1 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
5464f5a1
NN
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" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
5464f5a1 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
5464f5a1
NN
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"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
5464f5a1 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
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=*)
5464f5a1 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
5464f5a1
NN
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 ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
5464f5a1 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 589 host_alias=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 606 libdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 613 libexecdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 627 mandir=$ac_optarg ;;
252b5132
RH
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 \
5464f5a1 634 | --no-cr | --no-c | -n)
252b5132
RH
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=*)
5464f5a1 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 653 prefix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 660 program_prefix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 667 program_suffix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 684 program_transform_name=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 694 sbindir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
5464f5a1 710 site=$ac_optarg ;;
6be7c12c 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 715 srcdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
5464f5a1
NN
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
5464f5a1 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
5464f5a1
NN
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; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
5464f5a1 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
5464f5a1 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
5464f5a1
NN
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" ;;
252b5132
RH
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=*)
5464f5a1 766 x_includes=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 773 x_libraries=$ac_optarg ;;
252b5132 774
5464f5a1
NN
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
5464f5a1
NN
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
252b5132 790 *)
5464f5a1
NN
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}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
5464f5a1
NN
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; }; }
252b5132 805fi
252b5132 806
5464f5a1
NN
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
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
816done
6be7c12c 817
5464f5a1
NN
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
5464f5a1
NN
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; }; };;
252b5132
RH
827 esac
828done
829
5464f5a1
NN
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.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if 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
846fi
252b5132 847
5464f5a1
NN
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
5464f5a1
NN
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 ||
864echo 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'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
5464f5a1
NN
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
5464f5a1
NN
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; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
b3baf5d0 922
5464f5a1
NN
923#
924# Report the --help message.
925#
926if 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.
252b5132 931
5464f5a1 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
5464f5a1
NN
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 936
5464f5a1 937Defaults for the options are specified in brackets.
6be7c12c 938
5464f5a1
NN
939Configuration:
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
953Installation 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]
6be7c12c 958
5464f5a1
NN
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
6be7c12c 963
5464f5a1 964For better control, use the options below.
6be7c12c 965
5464f5a1
NN
966Fine 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
6be7c12c 980
5464f5a1 981 cat <<\_ACEOF
6be7c12c 982
5464f5a1
NN
983Program 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
252b5132 987
5464f5a1
NN
988System 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
252b5132 993fi
252b5132 994
5464f5a1 995if test -n "$ac_init_help"; then
6be7c12c 996
5464f5a1 997 cat <<\_ACEOF
252b5132 998
5464f5a1
NN
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
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]
5464f5a1
NN
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
6ec7057a 1014 --enable-secureplt Default to creating read-only plt entries
504b7d20 1015 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1016 --enable-werror treat compile warnings as errors
1017 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
5464f5a1
NN
1020 --enable-install-libbfd controls installation of libbfd and related headers
1021 --disable-nls do not use Native Language Support
1022
1023Optional Packages:
1024 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1025 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
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]
5464f5a1 1029 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1030 --with-separate-debug-dir=DIR
1031 Look for global separate debug info in DIR
1032 [default=LIBDIR/debug]
a1ac8190
JM
1033 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1034 Binutils"
c428fa83 1035 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1036
1037Some 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
1046Use these variables to override the choices made by `configure' or to help
1047it to find libraries and programs with nonstandard names/locations.
1048
1049_ACEOF
1050fi
1051
1052if 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
1059if 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'`
1063else
1064 ac_dir_suffix= ac_top_builddir=
1065fi
1066
1067case $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 ;;
6be7c12c
AO
1081esac
1082
5464f5a1
NN
1083# Do not use `cd foo && pwd` to compute absolute paths, because
1084# the directories may not exist.
1085case `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;;
1093esac
1094case $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;;
1102esac
1103case $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;;
1111esac
1112case $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;;
1120esac
6be7c12c 1121
5464f5a1
NN
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
1b315056 1137 cd "$ac_popdir"
5464f5a1 1138 done
6be7c12c
AO
1139fi
1140
5464f5a1
NN
1141test -n "$ac_init_help" && exit 0
1142if $ac_init_version; then
1143 cat <<\_ACEOF
6be7c12c 1144
5464f5a1
NN
1145Copyright (C) 2003 Free Software Foundation, Inc.
1146This configure script is free software; the Free Software Foundation
1147gives unlimited permission to copy, distribute and modify it.
1148_ACEOF
1149 exit 0
1150fi
1151exec 5>config.log
1152cat >&5 <<_ACEOF
1153This file contains any messages produced by compilers while
1154running configure, to aid debugging if configure makes a mistake.
6be7c12c 1155
5464f5a1
NN
1156It was created by $as_me, which was
1157generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1158
5464f5a1 1159 $ $0 $@
6be7c12c 1160
5464f5a1
NN
1161_ACEOF
1162{
1163cat <<_ASUNAME
1164## --------- ##
1165## Platform. ##
1166## --------- ##
1167
1168hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1169uname -m = `(uname -m) 2>/dev/null || echo unknown`
1170uname -r = `(uname -r) 2>/dev/null || echo unknown`
1171uname -s = `(uname -s) 2>/dev/null || echo unknown`
1172uname -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`
1180hostinfo = `(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
1187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1188for as_dir in $PATH
1189do
1190 IFS=$as_save_IFS
1191 test -z "$as_dir" && as_dir=.
1192 echo "PATH: $as_dir"
1193done
6be7c12c 1194
5464f5a1 1195} >&5
66e25bab 1196
5464f5a1 1197cat >&5 <<_ACEOF
b3baf5d0 1198
6be7c12c 1199
5464f5a1
NN
1200## ----------- ##
1201## Core tests. ##
1202## ----------- ##
252b5132 1203
5464f5a1 1204_ACEOF
c5d1701e 1205
6be7c12c 1206
5464f5a1
NN
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.
1212ac_configure_args=
1213ac_configure_args0=
1214ac_configure_args1=
1215ac_sep=
1216ac_must_keep_next=false
1217for ac_pass in 1 2
1218do
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
1254done
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.
1263trap '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
1337for ac_signal in 1 2 13 15; do
1338 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1339done
1340ac_signal=0
1341
1342# confdefs.h avoids OS command line length limits that DEFS can exceed.
1343rm -rf conftest* confdefs.h
1344# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345echo >confdefs.h
1346
1347# Predefined preprocessor variables.
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_NAME "$PACKAGE_NAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_VERSION "$PACKAGE_VERSION"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_STRING "$PACKAGE_STRING"
1366_ACEOF
1367
1368
1369cat >>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.
1376if 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
1382fi
1383for 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
1386echo "$as_me: loading site script $ac_site_file" >&6;}
1387 sed 's/^/| /' "$ac_site_file" >&5
1388 . "$ac_site_file"
1389 fi
1390done
1391
1392if 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
1397echo "$as_me: loading cache $cache_file" >&6;}
1398 case $cache_file in
1399 [\\/]* | ?:[\\/]* ) . $cache_file;;
1400 *) . ./$cache_file;;
1401 esac
1402 fi
1403else
1404 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1405echo "$as_me: creating cache $cache_file" >&6;}
1406 >$cache_file
1407fi
1408
1409# Check that the precious variables saved in the cache have kept the same
1410# value.
1411ac_cache_corrupted=false
1412for 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
1421echo "$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
1425echo "$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
6194aaab
L
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
5464f5a1 1435echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1436 ac_cache_corrupted=:
1437 else
1438 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1439echo "$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
1443echo "$as_me: former value: \`$ac_old_val'" >&2;}
1444 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1445echo "$as_me: current value: \`$ac_new_val'" >&2;}
5464f5a1
NN
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
1460done
1461if $ac_cache_corrupted; then
1462 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1463echo "$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
1465echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1466 { (exit 1); exit 1; }; }
1467fi
1468
1469ac_ext=c
1470ac_cpp='$CPP $CPPFLAGS'
1471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473ac_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
1495ac_aux_dir=
1496for 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
1510done
1511if test -z "$ac_aux_dir"; then
1512 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514 { (exit 1); exit 1; }; }
1515fi
1516ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1517ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1518ac_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
1523echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1525
1526echo "$as_me:$LINENO: checking build system type" >&5
1527echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530else
1531 ac_cv_build_alias=$build_alias
1532test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias=`$ac_config_guess`
1534test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1542
1543fi
1544echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545echo "${ECHO_T}$ac_cv_build" >&6
1546build=$ac_cv_build
1547build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552echo "$as_me:$LINENO: checking host system type" >&5
1553echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
1557 ac_cv_host_alias=$host_alias
1558test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias=$ac_cv_build_alias
1560ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565fi
1566echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567echo "${ECHO_T}$ac_cv_host" >&6
1568host=$ac_cv_host
1569host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574echo "$as_me:$LINENO: checking target system type" >&5
1575echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576if test "${ac_cv_target+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_target_alias=$target_alias
1580test "x$ac_cv_target_alias" = "x" &&
1581 ac_cv_target_alias=$ac_cv_host_alias
1582ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587fi
1588echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589echo "${ECHO_T}$ac_cv_target" >&6
1590target=$ac_cv_target
1591target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593target_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.
1598test -n "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1600 NONENONEs,x,x, &&
1601 program_prefix=${target_alias}-
1602ac_ext=c
1603ac_cpp='$CPP $CPPFLAGS'
1604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606ac_compiler_gnu=$ac_cv_c_compiler_gnu
1607if 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.
1609set dummy ${ac_tool_prefix}gcc; ac_word=$2
1610echo "$as_me:$LINENO: checking for $ac_word" >&5
1611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1617else
1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619for as_dir in $PATH
1620do
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
1629done
1630done
1631
1632fi
1633fi
1634CC=$ac_cv_prog_CC
1635if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637echo "${ECHO_T}$CC" >&6
1638else
1639 echo "$as_me:$LINENO: result: no" >&5
1640echo "${ECHO_T}no" >&6
1641fi
1642
1643fi
1644if 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.
1647set dummy gcc; ac_word=$2
1648echo "$as_me:$LINENO: checking for $ac_word" >&5
1649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655else
1656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657for as_dir in $PATH
1658do
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
1667done
1668done
1669
1670fi
1671fi
1672ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675echo "${ECHO_T}$ac_ct_CC" >&6
1676else
1677 echo "$as_me:$LINENO: result: no" >&5
1678echo "${ECHO_T}no" >&6
1679fi
1680
1681 CC=$ac_ct_CC
1682else
1683 CC="$ac_cv_prog_CC"
1684fi
1685
1686if 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.
1689set dummy ${ac_tool_prefix}cc; ac_word=$2
1690echo "$as_me:$LINENO: checking for $ac_word" >&5
1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1697else
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
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
1709done
1710done
1711
1712fi
1713fi
1714CC=$ac_cv_prog_CC
1715if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717echo "${ECHO_T}$CC" >&6
1718else
1719 echo "$as_me:$LINENO: result: no" >&5
1720echo "${ECHO_T}no" >&6
1721fi
1722
1723fi
1724if 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.
1727set dummy cc; ac_word=$2
1728echo "$as_me:$LINENO: checking for $ac_word" >&5
1729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732else
1733 if test -n "$ac_ct_CC"; then
1734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735else
1736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737for as_dir in $PATH
1738do
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
1747done
1748done
1749
1750fi
1751fi
1752ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753if test -n "$ac_ct_CC"; then
1754 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755echo "${ECHO_T}$ac_ct_CC" >&6
1756else
1757 echo "$as_me:$LINENO: result: no" >&5
1758echo "${ECHO_T}no" >&6
1759fi
1760
1761 CC=$ac_ct_CC
1762else
1763 CC="$ac_cv_prog_CC"
1764fi
1765
1766fi
1767if test -z "$CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769set dummy cc; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1777else
1778 ac_prog_rejected=no
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
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
1794done
1795done
1796
1797if 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
1808fi
1809fi
1810fi
1811CC=$ac_cv_prog_CC
1812if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814echo "${ECHO_T}$CC" >&6
1815else
1816 echo "$as_me:$LINENO: result: no" >&5
1817echo "${ECHO_T}no" >&6
1818fi
1819
1820fi
1821if 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.
1826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1827echo "$as_me:$LINENO: checking for $ac_word" >&5
1828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834else
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
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
1846done
1847done
1848
1849fi
1850fi
1851CC=$ac_cv_prog_CC
1852if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854echo "${ECHO_T}$CC" >&6
1855else
1856 echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6
1858fi
1859
1860 test -n "$CC" && break
1861 done
1862fi
1863if test -z "$CC"; then
1864 ac_ct_CC=$CC
1865 for ac_prog in cl
1866do
1867 # Extract the first word of "$ac_prog", so it can be a program name with args.
1868set dummy $ac_prog; ac_word=$2
1869echo "$as_me:$LINENO: checking for $ac_word" >&5
1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876else
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
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
1888done
1889done
1890
1891fi
1892fi
1893ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896echo "${ECHO_T}$ac_ct_CC" >&6
1897else
1898 echo "$as_me:$LINENO: result: no" >&5
1899echo "${ECHO_T}no" >&6
1900fi
1901
1902 test -n "$ac_ct_CC" && break
1903done
1904
1905 CC=$ac_ct_CC
1906fi
1907
1908fi
1909
1910
1b315056 1911test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5464f5a1
NN
1912See \`config.log' for more details." >&5
1913echo "$as_me: error: no acceptable C compiler found in \$PATH
1914See \`config.log' for more details." >&2;}
1b315056 1915 { (exit 1); exit 1; }; }
5464f5a1
NN
1916
1917# Provide some information about the compiler.
1918echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920ac_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
1937cat >conftest.$ac_ext <<_ACEOF
1938/* confdefs.h. */
1939_ACEOF
1940cat confdefs.h >>conftest.$ac_ext
1941cat >>conftest.$ac_ext <<_ACEOF
1942/* end confdefs.h. */
1943
1944int
1945main ()
1946{
1947
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952ac_clean_files_save=$ac_clean_files
1953ac_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.
1957echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960if { (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.
1971ac_cv_exeext=
1972# b.out is created by i960 compilers.
1973for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1974do
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
1996done
1997else
1998 echo "$as_me: failed program was:" >&5
1999sed 's/^/| /' conftest.$ac_ext >&5
2000
2001{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002See \`config.log' for more details." >&5
2003echo "$as_me: error: C compiler cannot create executables
2004See \`config.log' for more details." >&2;}
1b315056 2005 { (exit 77); exit 77; }; }
5464f5a1
NN
2006fi
2007
2008ac_exeext=$ac_cv_exeext
2009echo "$as_me:$LINENO: result: $ac_file" >&5
2010echo "${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.
2014echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015echo $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.
2018if 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
1b315056 2030 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5464f5a1
NN
2031If you meant to cross compile, use \`--host'.
2032See \`config.log' for more details." >&5
2033echo "$as_me: error: cannot run C compiled programs.
2034If you meant to cross compile, use \`--host'.
2035See \`config.log' for more details." >&2;}
1b315056 2036 { (exit 1); exit 1; }; }
5464f5a1
NN
2037 fi
2038 fi
2039fi
2040echo "$as_me:$LINENO: result: yes" >&5
2041echo "${ECHO_T}yes" >&6
2042
2043rm -f a.out a.exe conftest$ac_cv_exeext b.out
2044ac_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.
2047echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2048echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2049echo "$as_me:$LINENO: result: $cross_compiling" >&5
2050echo "${ECHO_T}$cross_compiling" >&6
2051
2052echo "$as_me:$LINENO: checking for suffix of executables" >&5
2053echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2054if { (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'.
2063for 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
2072done
2073else
1b315056 2074 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5464f5a1
NN
2075See \`config.log' for more details." >&5
2076echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2077See \`config.log' for more details." >&2;}
1b315056 2078 { (exit 1); exit 1; }; }
5464f5a1
NN
2079fi
2080
2081rm -f conftest$ac_cv_exeext
2082echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2083echo "${ECHO_T}$ac_cv_exeext" >&6
2084
2085rm -f conftest.$ac_ext
2086EXEEXT=$ac_cv_exeext
2087ac_exeext=$EXEEXT
2088echo "$as_me:$LINENO: checking for suffix of object files" >&5
2089echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2090if test "${ac_cv_objext+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092else
2093 cat >conftest.$ac_ext <<_ACEOF
2094/* confdefs.h. */
2095_ACEOF
2096cat confdefs.h >>conftest.$ac_ext
2097cat >>conftest.$ac_ext <<_ACEOF
2098/* end confdefs.h. */
2099
2100int
2101main ()
2102{
2103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108rm -f conftest.o conftest.obj
2109if { (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
2120done
2121else
2122 echo "$as_me: failed program was:" >&5
2123sed 's/^/| /' conftest.$ac_ext >&5
2124
2125{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2126See \`config.log' for more details." >&5
2127echo "$as_me: error: cannot compute suffix of object files: cannot compile
2128See \`config.log' for more details." >&2;}
1b315056 2129 { (exit 1); exit 1; }; }
5464f5a1
NN
2130fi
2131
2132rm -f conftest.$ac_cv_objext conftest.$ac_ext
2133fi
2134echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2135echo "${ECHO_T}$ac_cv_objext" >&6
2136OBJEXT=$ac_cv_objext
2137ac_objext=$OBJEXT
2138echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2139echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2140if test "${ac_cv_c_compiler_gnu+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143 cat >conftest.$ac_ext <<_ACEOF
2144/* confdefs.h. */
2145_ACEOF
2146cat confdefs.h >>conftest.$ac_ext
2147cat >>conftest.$ac_ext <<_ACEOF
2148/* end confdefs.h. */
2149
2150int
2151main ()
2152{
2153#ifndef __GNUC__
2154 choke me
2155#endif
2156
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161rm -f conftest.$ac_objext
2162if { (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); } &&
1b315056 2170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2183else
2184 echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187ac_compiler_gnu=no
2188fi
2189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2190ac_cv_c_compiler_gnu=$ac_compiler_gnu
2191
2192fi
2193echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2194echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2195GCC=`test $ac_compiler_gnu = yes && echo yes`
2196ac_test_CFLAGS=${CFLAGS+set}
2197ac_save_CFLAGS=$CFLAGS
2198CFLAGS="-g"
2199echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2200echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2201if test "${ac_cv_prog_cc_g+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
2204 cat >conftest.$ac_ext <<_ACEOF
2205/* confdefs.h. */
2206_ACEOF
2207cat confdefs.h >>conftest.$ac_ext
2208cat >>conftest.$ac_ext <<_ACEOF
2209/* end confdefs.h. */
2210
2211int
2212main ()
2213{
2214
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (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); } &&
1b315056 2228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2241else
2242 echo "$as_me: failed program was:" >&5
2243sed 's/^/| /' conftest.$ac_ext >&5
2244
2245ac_cv_prog_cc_g=no
2246fi
2247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2248fi
2249echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2250echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2251if test "$ac_test_CFLAGS" = set; then
2252 CFLAGS=$ac_save_CFLAGS
2253elif 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
2259else
2260 if test "$GCC" = yes; then
2261 CFLAGS="-O2"
2262 else
2263 CFLAGS=
2264 fi
2265fi
2266echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2267echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2268if test "${ac_cv_prog_cc_stdc+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271 ac_cv_prog_cc_stdc=no
2272ac_save_CC=$CC
2273cat >conftest.$ac_ext <<_ACEOF
2274/* confdefs.h. */
2275_ACEOF
2276cat confdefs.h >>conftest.$ac_ext
2277cat >>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. */
2284struct buf { int x; };
2285FILE * (*rcsopen) (struct buf *, struct stat *, int);
2286static char *e (p, i)
2287 char **p;
2288 int i;
2289{
2290 return p[i];
2291}
2292static 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. */
2309int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2310
2311int test (int i, double x);
2312struct s1 {int (*f) (int a);};
2313struct s2 {int (*f) (double a);};
2314int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2315int argc;
2316char **argv;
2317int
2318main ()
2319{
2320return 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__
2332for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2333do
2334 CC="$ac_save_CC $ac_arg"
2335 rm -f conftest.$ac_objext
2336if { (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); } &&
1b315056 2344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2357break
2358else
2359 echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362fi
2363rm -f conftest.err conftest.$ac_objext
2364done
2365rm -f conftest.$ac_ext conftest.$ac_objext
2366CC=$ac_save_CC
2367
2368fi
2369
2370case "x$ac_cv_prog_cc_stdc" in
2371 x|xno)
2372 echo "$as_me:$LINENO: result: none needed" >&5
2373echo "${ECHO_T}none needed" >&6 ;;
2374 *)
2375 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2376echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2377 CC="$CC $ac_cv_prog_cc_stdc" ;;
2378esac
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.
2384cat >conftest.$ac_ext <<_ACEOF
2385#ifndef __cplusplus
2386 choke me
2387#endif
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (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); } &&
1b315056 2398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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);'
2417do
2418 cat >conftest.$ac_ext <<_ACEOF
2419/* confdefs.h. */
2420_ACEOF
2421cat confdefs.h >>conftest.$ac_ext
2422cat >>conftest.$ac_ext <<_ACEOF
2423/* end confdefs.h. */
2424$ac_declaration
2425#include <stdlib.h>
2426int
2427main ()
2428{
2429exit (42);
2430 ;
2431 return 0;
2432}
2433_ACEOF
2434rm -f conftest.$ac_objext
2435if { (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); } &&
1b315056 2443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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 :
2456else
2457 echo "$as_me: failed program was:" >&5
2458sed 's/^/| /' conftest.$ac_ext >&5
2459
2460continue
2461fi
2462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 cat >conftest.$ac_ext <<_ACEOF
2464/* confdefs.h. */
2465_ACEOF
2466cat confdefs.h >>conftest.$ac_ext
2467cat >>conftest.$ac_ext <<_ACEOF
2468/* end confdefs.h. */
2469$ac_declaration
2470int
2471main ()
2472{
2473exit (42);
2474 ;
2475 return 0;
2476}
2477_ACEOF
2478rm -f conftest.$ac_objext
2479if { (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); } &&
1b315056 2487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2500else
2501 echo "$as_me: failed program was:" >&5
2502sed 's/^/| /' conftest.$ac_ext >&5
2503
2504fi
2505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506done
2507rm -f conftest*
2508if test -n "$ac_declaration"; then
2509 echo '#ifdef __cplusplus' >>confdefs.h
2510 echo $ac_declaration >>confdefs.h
2511 echo '#endif' >>confdefs.h
2512fi
2513
2514else
2515 echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
2517
2518fi
2519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520ac_ext=c
2521ac_cpp='$CPP $CPPFLAGS'
2522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525
2526
f5385ebf
AM
2527echo "$as_me:$LINENO: checking for library containing strerror" >&5
2528echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2529if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531else
f5385ebf
AM
2532 ac_func_search_save_LIBS=$LIBS
2533ac_cv_search_strerror=no
5464f5a1
NN
2534cat >conftest.$ac_ext <<_ACEOF
2535/* confdefs.h. */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
2539/* end confdefs.h. */
2540
2541/* Override any gcc2 internal prototype to avoid an error. */
2542#ifdef __cplusplus
2543extern "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. */
2547char strerror ();
2548int
2549main ()
2550{
2551strerror ();
2552 ;
2553 return 0;
2554}
2555_ACEOF
2556rm -f conftest.$ac_objext conftest$ac_exeext
2557if { (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); } &&
1b315056 2565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
f5385ebf 2577 ac_cv_search_strerror="none required"
5464f5a1
NN
2578else
2579 echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
5464f5a1
NN
2582fi
2583rm -f conftest.err conftest.$ac_objext \
2584 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2585if 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
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>conftest.$ac_ext <<_ACEOF
2593/* end confdefs.h. */
2594
2595/* Override any gcc2 internal prototype to avoid an error. */
2596#ifdef __cplusplus
2597extern "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. */
2601char strerror ();
2602int
2603main ()
2604{
2605strerror ();
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext conftest$ac_exeext
2611if { (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); } &&
1b315056 2619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f5385ebf
AM
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"
2632break
2633else
2634 echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
5464f5a1 2637fi
f5385ebf
AM
2638rm -f conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2640 done
5464f5a1 2641fi
f5385ebf
AM
2642LIBS=$ac_func_search_save_LIBS
2643fi
2644echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2645echo "${ECHO_T}$ac_cv_search_strerror" >&6
2646if test "$ac_cv_search_strerror" != no; then
2647 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2648
f5385ebf 2649fi
5464f5a1
NN
2650
2651
f5385ebf 2652am__api_version="1.9"
5464f5a1
NN
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
252b5132
RH
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"
5464f5a1 2664# OS/2's system install, which has a completely different semantic
252b5132 2665# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2666# Reject install programs that cannot install multiple files.
5464f5a1
NN
2667echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2668echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2669if test -z "$INSTALL"; then
5464f5a1
NN
2670if test "${ac_cv_path_install+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2672else
5464f5a1
NN
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 # Account for people who put trailing slashes in PATH elements.
2679case $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
252b5132 2691 if test $ac_prog = install &&
5464f5a1 2692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2693 # AIX install. It has an incompatible calling convention.
2694 :
5464f5a1
NN
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 :
252b5132 2699 else
58c85be7
RW
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
252b5132
RH
2712 fi
2713 fi
2714 done
5464f5a1
NN
2715 done
2716 ;;
2717esac
2718done
2719
58c85be7 2720rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2721
2722fi
2723 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2724 INSTALL=$ac_cv_path_install
252b5132 2725 else
58c85be7
RW
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
252b5132 2728 # break other packages using the cache if that directory is
58c85be7 2729 # removed, or if the value is a relative name.
5464f5a1 2730 INSTALL=$ac_install_sh
252b5132
RH
2731 fi
2732fi
5464f5a1
NN
2733echo "$as_me:$LINENO: result: $INSTALL" >&5
2734echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2735
2736# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737# It thinks the first close brace ends the variable substitution.
2738test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2739
5464f5a1 2740test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2741
2742test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2743
5464f5a1
NN
2744echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2745echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2746# Just in case
2747sleep 1
f5385ebf 2748echo timestamp > conftest.file
252b5132
RH
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).
2754if (
f5385ebf 2755 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2756 if test "$*" = "X"; then
2757 # -L didn't work.
f5385ebf 2758 set X `ls -t $srcdir/configure conftest.file`
252b5132 2759 fi
f5385ebf
AM
2760 rm -f conftest.file
2761 if test "$*" != "X $srcdir/configure conftest.file" \
2762 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
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".
5464f5a1
NN
2768 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2769alias in your environment" >&5
2770echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2771alias in your environment" >&2;}
2772 { (exit 1); exit 1; }; }
252b5132
RH
2773 fi
2774
f5385ebf 2775 test "$2" = conftest.file
252b5132
RH
2776 )
2777then
2778 # Ok.
2779 :
2780else
5464f5a1
NN
2781 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2782Check your system clock" >&5
2783echo "$as_me: error: newly created file is older than distributed files!
2784Check your system clock" >&2;}
2785 { (exit 1); exit 1; }; }
252b5132 2786fi
5464f5a1
NN
2787echo "$as_me:$LINENO: result: yes" >&5
2788echo "${ECHO_T}yes" >&6
252b5132 2789test "$program_prefix" != NONE &&
5464f5a1 2790 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2791# Use a double $ so make ignores it.
2792test "$program_suffix" != NONE &&
5464f5a1
NN
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.
2796cat <<\_ACEOF >conftest.sed
2797s/[\\$]/&&/g;s/;s,x,x,$//
2798_ACEOF
2799program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2800rm conftest.sed
2801
f5385ebf
AM
2802# expand $ac_aux_dir to an absolute path
2803am_aux_dir=`cd $ac_aux_dir && pwd`
2804
2805test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2806# Use eval to expand $SHELL
2807if eval "$MISSING --run true"; then
2808 am_missing_run="$MISSING --run "
2809else
2810 am_missing_run=
2811 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2812echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2813fi
2814
2815if 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 --'
2831else
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
2846fi
2847
2848for ac_prog in gawk mawk nawk awk
2849do
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851set dummy $ac_prog; ac_word=$2
2852echo "$as_me:$LINENO: checking for $ac_word" >&5
2853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854if test "${ac_cv_prog_AWK+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857 if test -n "$AWK"; then
2858 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
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
2871done
2872done
2873
2874fi
2875fi
2876AWK=$ac_cv_prog_AWK
2877if test -n "$AWK"; then
2878 echo "$as_me:$LINENO: result: $AWK" >&5
2879echo "${ECHO_T}$AWK" >&6
2880else
2881 echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
2883fi
2884
2885 test -n "$AWK" && break
2886done
2887
5464f5a1
NN
2888echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2889echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2890set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2891if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894 cat >conftest.make <<\_ACEOF
252b5132 2895all:
5464f5a1
NN
2896 @echo 'ac_maketemp="$(MAKE)"'
2897_ACEOF
252b5132 2898# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2899eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2900if test -n "$ac_maketemp"; then
2901 eval ac_cv_prog_make_${ac_make}_set=yes
2902else
2903 eval ac_cv_prog_make_${ac_make}_set=no
2904fi
5464f5a1 2905rm -f conftest.make
252b5132
RH
2906fi
2907if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2908 echo "$as_me:$LINENO: result: yes" >&5
2909echo "${ECHO_T}yes" >&6
252b5132
RH
2910 SET_MAKE=
2911else
5464f5a1
NN
2912 echo "$as_me:$LINENO: result: no" >&5
2913echo "${ECHO_T}no" >&6
252b5132
RH
2914 SET_MAKE="MAKE=${MAKE-make}"
2915fi
2916
f5385ebf
AM
2917rm -rf .tst 2>/dev/null
2918mkdir .tst 2>/dev/null
2919if test -d .tst; then
2920 am__leading_dot=.
2921else
2922 am__leading_dot=_
2923fi
2924rmdir .tst 2>/dev/null
2925
2926DEPDIR="${am__leading_dot}deps"
2927
2928 ac_config_commands="$ac_config_commands depfiles"
2929
2930
2931am_make=${MAKE-make}
2932cat > confinc << 'END'
2933am__doit:
2934 @echo done
2935.PHONY: am__doit
2936END
2937# If we don't find an include directive, just comment out the code.
2938echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2939echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2940am__include="#"
2941am__quote=
2942_am_result=none
2943# First try GNU make style include.
2944echo "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'.
2950if 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
2954fi
2955# Now try BSD make style include.
2956if 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
2963fi
2964
2965
2966echo "$as_me:$LINENO: result: $_am_result" >&5
2967echo "${ECHO_T}$_am_result" >&6
2968rm -f confinc confmf
2969
2970# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2971if test "${enable_dependency_tracking+set}" = set; then
2972 enableval="$enable_dependency_tracking"
2973
2974fi;
2975if test "x$enable_dependency_tracking" != xno; then
2976 am_depcomp="$ac_aux_dir/depcomp"
2977 AMDEPBACKSLASH='\'
2978fi
2979
2980
2981if test "x$enable_dependency_tracking" != xno; then
2982 AMDEP_TRUE=
2983 AMDEP_FALSE='#'
2984else
2985 AMDEP_TRUE='#'
2986 AMDEP_FALSE=
2987fi
6be7c12c 2988
252b5132 2989
252b5132 2990
f5385ebf
AM
2991# test to see if srcdir already configured
2992if test "`cd $srcdir && pwd`" != "`pwd`" &&
2993 test -f $srcdir/config.status; then
5464f5a1
NN
2994 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2995echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2996 { (exit 1); exit 1; }; }
252b5132 2997fi
5464f5a1 2998
f5385ebf
AM
2999# test whether we have cygpath
3000if 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
3006fi
3007
3008
3009# Define the identity of the package.
3010 PACKAGE=bfd
be118e79 3011 VERSION=2.18.50
f5385ebf
AM
3012
3013
5464f5a1 3014cat >>confdefs.h <<_ACEOF
252b5132 3015#define PACKAGE "$PACKAGE"
5464f5a1 3016_ACEOF
252b5132 3017
5464f5a1
NN
3018
3019cat >>confdefs.h <<_ACEOF
252b5132 3020#define VERSION "$VERSION"
5464f5a1 3021_ACEOF
252b5132 3022
f5385ebf
AM
3023# Some tools Automake needs.
3024
3025ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3026
3027
3028AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3029
3030
3031AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3032
3033
3034AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3035
3036
3037MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3038
f5385ebf 3039install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3040
f5385ebf
AM
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.
3045if 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.
3048set dummy ${ac_tool_prefix}strip; ac_word=$2
3049echo "$as_me:$LINENO: checking for $ac_word" >&5
3050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3051if test "${ac_cv_prog_STRIP+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053else
3054 if test -n "$STRIP"; then
3055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3056else
f5385ebf
AM
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
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
3068done
3069done
3070
3071fi
3072fi
3073STRIP=$ac_cv_prog_STRIP
3074if test -n "$STRIP"; then
3075 echo "$as_me:$LINENO: result: $STRIP" >&5
3076echo "${ECHO_T}$STRIP" >&6
3077else
3078 echo "$as_me:$LINENO: result: no" >&5
3079echo "${ECHO_T}no" >&6
3080fi
3081
252b5132 3082fi
f5385ebf
AM
3083if 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.
3086set dummy strip; ac_word=$2
3087echo "$as_me:$LINENO: checking for $ac_word" >&5
3088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3089if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3091else
3092 if test -n "$ac_ct_STRIP"; then
3093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
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
3106done
3107done
252b5132 3108
f5385ebf
AM
3109 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3110fi
3111fi
3112ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3113if test -n "$ac_ct_STRIP"; then
3114 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3115echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3116else
f5385ebf
AM
3117 echo "$as_me:$LINENO: result: no" >&5
3118echo "${ECHO_T}no" >&6
252b5132
RH
3119fi
3120
f5385ebf 3121 STRIP=$ac_ct_STRIP
252b5132 3122else
f5385ebf
AM
3123 STRIP="$ac_cv_prog_STRIP"
3124fi
3125
252b5132 3126fi
f5385ebf
AM
3127INSTALL_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
3133AMTAR=${AMTAR-"${am_missing_run}tar"}
3134
3135am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3136
252b5132 3137
f5385ebf
AM
3138
3139
3140depcc="$CC" am_compiler_list=
3141
3142echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3143echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3144if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3146else
f5385ebf
AM
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
3227else
3228 am_cv_CC_dependencies_compiler_type=none
3229fi
3230
252b5132 3231fi
f5385ebf
AM
3232echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3233echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3234CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3235
f5385ebf
AM
3236
3237
3238if
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='#'
252b5132 3243else
f5385ebf
AM
3244 am__fastdepCC_TRUE='#'
3245 am__fastdepCC_FALSE=
252b5132
RH
3246fi
3247
6be7c12c 3248
e43d48cc 3249
f5385ebf 3250
5464f5a1
NN
3251if 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.
252b5132 3253set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3254echo "$as_me:$LINENO: checking for $ac_word" >&5
3255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3256if test "${ac_cv_prog_AR+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3258else
3259 if test -n "$AR"; then
3260 ac_cv_prog_AR="$AR" # Let the user override the test.
3261else
5464f5a1
NN
3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263for as_dir in $PATH
3264do
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
3273done
3274done
3275
252b5132
RH
3276fi
3277fi
5464f5a1 3278AR=$ac_cv_prog_AR
252b5132 3279if test -n "$AR"; then
5464f5a1
NN
3280 echo "$as_me:$LINENO: result: $AR" >&5
3281echo "${ECHO_T}$AR" >&6
252b5132 3282else
5464f5a1
NN
3283 echo "$as_me:$LINENO: result: no" >&5
3284echo "${ECHO_T}no" >&6
3285fi
3286
252b5132 3287fi
5464f5a1
NN
3288if 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.
3291set dummy ar; ac_word=$2
3292echo "$as_me:$LINENO: checking for $ac_word" >&5
3293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297 if test -n "$ac_ct_AR"; then
3298 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
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
3311done
3312done
252b5132 3313
5464f5a1
NN
3314fi
3315fi
3316ac_ct_AR=$ac_cv_prog_ac_ct_AR
3317if test -n "$ac_ct_AR"; then
3318 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3319echo "${ECHO_T}$ac_ct_AR" >&6
3320else
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323fi
252b5132 3324
5464f5a1
NN
3325 AR=$ac_ct_AR
3326else
3327 AR="$ac_cv_prog_AR"
3328fi
6be7c12c 3329
5464f5a1
NN
3330if 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.
252b5132 3332set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3333echo "$as_me:$LINENO: checking for $ac_word" >&5
3334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335if test "${ac_cv_prog_RANLIB+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3337else
3338 if test -n "$RANLIB"; then
3339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3340else
5464f5a1
NN
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
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
3352done
3353done
3354
252b5132
RH
3355fi
3356fi
5464f5a1 3357RANLIB=$ac_cv_prog_RANLIB
252b5132 3358if test -n "$RANLIB"; then
5464f5a1
NN
3359 echo "$as_me:$LINENO: result: $RANLIB" >&5
3360echo "${ECHO_T}$RANLIB" >&6
252b5132 3361else
5464f5a1
NN
3362 echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
252b5132
RH
3364fi
3365
5464f5a1 3366fi
252b5132 3367if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3368 ac_ct_RANLIB=$RANLIB
252b5132
RH
3369 # Extract the first word of "ranlib", so it can be a program name with args.
3370set dummy ranlib; ac_word=$2
5464f5a1
NN
3371echo "$as_me:$LINENO: checking for $ac_word" >&5
3372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3375else
5464f5a1
NN
3376 if test -n "$ac_ct_RANLIB"; then
3377 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3378else
5464f5a1
NN
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
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
3390done
3391done
3392
3393 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3394fi
3395fi
5464f5a1
NN
3396ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3397if test -n "$ac_ct_RANLIB"; then
3398 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3399echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3400else
5464f5a1
NN
3401 echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
252b5132
RH
3403fi
3404
5464f5a1 3405 RANLIB=$ac_ct_RANLIB
252b5132 3406else
5464f5a1 3407 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3408fi
3409
252b5132
RH
3410
3411# Check whether --enable-shared or --disable-shared was given.
3412if test "${enable_shared+set}" = set; then
3413 enableval="$enable_shared"
3414 p=${PACKAGE-default}
d7040cdb
SE
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
252b5132
RH
3431else
3432 enable_shared=no
5464f5a1 3433fi;
252b5132 3434
d7040cdb
SE
3435
3436
3437
3438
3439
3440
3441
3442
cfbc9945
SE
3443ac_ext=c
3444ac_cpp='$CPP $CPPFLAGS'
3445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448if 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.
3450set dummy ${ac_tool_prefix}gcc; ac_word=$2
3451echo "$as_me:$LINENO: checking for $ac_word" >&5
3452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453if test "${ac_cv_prog_CC+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3455else
cfbc9945
SE
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3458else
cfbc9945
SE
3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460for as_dir in $PATH
3461do
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
3470done
3471done
c5d1701e 3472
cfbc9945
SE
3473fi
3474fi
3475CC=$ac_cv_prog_CC
3476if test -n "$CC"; then
3477 echo "$as_me:$LINENO: result: $CC" >&5
3478echo "${ECHO_T}$CC" >&6
252b5132 3479else
cfbc9945
SE
3480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
252b5132 3482fi
cfbc9945
SE
3483
3484fi
3485if 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.
3488set dummy gcc; ac_word=$2
3489echo "$as_me:$LINENO: checking for $ac_word" >&5
3490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3491if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3492 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3493else
cfbc9945
SE
3494 if test -n "$ac_ct_CC"; then
3495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3496else
cfbc9945
SE
3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498for as_dir in $PATH
3499do
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
3508done
3509done
3510
252b5132
RH
3511fi
3512fi
cfbc9945
SE
3513ac_ct_CC=$ac_cv_prog_ac_ct_CC
3514if test -n "$ac_ct_CC"; then
3515 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3516echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3517else
5464f5a1
NN
3518 echo "$as_me:$LINENO: result: no" >&5
3519echo "${ECHO_T}no" >&6
252b5132 3520fi
cfbc9945
SE
3521
3522 CC=$ac_ct_CC
3523else
3524 CC="$ac_cv_prog_CC"
3525fi
3526
3527if 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.
3530set dummy ${ac_tool_prefix}cc; ac_word=$2
3531echo "$as_me:$LINENO: checking for $ac_word" >&5
3532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3534 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3535else
cfbc9945
SE
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3538else
cfbc9945
SE
3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
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
3550done
3551done
3552
252b5132
RH
3553fi
3554fi
cfbc9945
SE
3555CC=$ac_cv_prog_CC
3556if test -n "$CC"; then
3557 echo "$as_me:$LINENO: result: $CC" >&5
3558echo "${ECHO_T}$CC" >&6
ac48eca1 3559else
cfbc9945
SE
3560 echo "$as_me:$LINENO: result: no" >&5
3561echo "${ECHO_T}no" >&6
ac48eca1 3562fi
ac48eca1 3563
cfbc9945
SE
3564fi
3565if 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.
3568set dummy cc; ac_word=$2
3569echo "$as_me:$LINENO: checking for $ac_word" >&5
3570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3571if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3572 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3573else
cfbc9945
SE
3574 if test -n "$ac_ct_CC"; then
3575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3576else
cfbc9945
SE
3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
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
3588done
3589done
3590
252b5132 3591fi
cfbc9945
SE
3592fi
3593ac_ct_CC=$ac_cv_prog_ac_ct_CC
3594if test -n "$ac_ct_CC"; then
3595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3596echo "${ECHO_T}$ac_ct_CC" >&6
3597else
3598 echo "$as_me:$LINENO: result: no" >&5
3599echo "${ECHO_T}no" >&6
252b5132
RH
3600fi
3601
cfbc9945
SE
3602 CC=$ac_ct_CC
3603else
3604 CC="$ac_cv_prog_CC"
3605fi
252b5132 3606
cfbc9945
SE
3607fi
3608if test -z "$CC"; then
3609 # Extract the first word of "cc", so it can be a program name with args.
3610set dummy cc; ac_word=$2
3611echo "$as_me:$LINENO: checking for $ac_word" >&5
3612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613if test "${ac_cv_prog_CC+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3615else
cfbc9945
SE
3616 if test -n "$CC"; then
3617 ac_cv_prog_CC="$CC" # Let the user override the test.
3618else
3619 ac_prog_rejected=no
3620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621for as_dir in $PATH
3622do
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
3635done
3636done
3637
3638if 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
3649fi
3650fi
3651fi
3652CC=$ac_cv_prog_CC
3653if test -n "$CC"; then
3654 echo "$as_me:$LINENO: result: $CC" >&5
3655echo "${ECHO_T}$CC" >&6
3656else
3657 echo "$as_me:$LINENO: result: no" >&5
3658echo "${ECHO_T}no" >&6
252b5132
RH
3659fi
3660
cfbc9945
SE
3661fi
3662if 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.
3667set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3668echo "$as_me:$LINENO: checking for $ac_word" >&5
3669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3671 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3672else
cfbc9945
SE
3673 if test -n "$CC"; then
3674 ac_cv_prog_CC="$CC" # Let the user override the test.
3675else
3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677for as_dir in $PATH
3678do
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
3687done
3688done
ac48eca1 3689
cfbc9945
SE
3690fi
3691fi
3692CC=$ac_cv_prog_CC
3693if test -n "$CC"; then
3694 echo "$as_me:$LINENO: result: $CC" >&5
3695echo "${ECHO_T}$CC" >&6
3696else
3697 echo "$as_me:$LINENO: result: no" >&5
3698echo "${ECHO_T}no" >&6
3699fi
ac48eca1 3700
cfbc9945
SE
3701 test -n "$CC" && break
3702 done
3703fi
3704if test -z "$CC"; then
3705 ac_ct_CC=$CC
3706 for ac_prog in cl
3707do
3708 # Extract the first word of "$ac_prog", so it can be a program name with args.
3709set dummy $ac_prog; ac_word=$2
3710echo "$as_me:$LINENO: checking for $ac_word" >&5
3711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714else
3715 if test -n "$ac_ct_CC"; then
3716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3717else
3718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719for as_dir in $PATH
3720do
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
3729done
3730done
ac48eca1 3731
cfbc9945
SE
3732fi
3733fi
3734ac_ct_CC=$ac_cv_prog_ac_ct_CC
3735if test -n "$ac_ct_CC"; then
3736 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3737echo "${ECHO_T}$ac_ct_CC" >&6
3738else
3739 echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741fi
ac48eca1 3742
cfbc9945
SE
3743 test -n "$ac_ct_CC" && break
3744done
ac48eca1 3745
cfbc9945
SE
3746 CC=$ac_ct_CC
3747fi
55c80943 3748
cfbc9945 3749fi
ac48eca1 3750
ac48eca1 3751
1b315056 3752test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
cfbc9945
SE
3753See \`config.log' for more details." >&5
3754echo "$as_me: error: no acceptable C compiler found in \$PATH
3755See \`config.log' for more details." >&2;}
1b315056 3756 { (exit 1); exit 1; }; }
ac48eca1 3757
cfbc9945
SE
3758# Provide some information about the compiler.
3759echo "$as_me:$LINENO:" \
3760 "checking for C compiler version" >&5
3761ac_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); }
ac48eca1 3777
cfbc9945
SE
3778echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3779echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3780if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3781 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3782else
cfbc9945
SE
3783 cat >conftest.$ac_ext <<_ACEOF
3784/* confdefs.h. */
3785_ACEOF
3786cat confdefs.h >>conftest.$ac_ext
3787cat >>conftest.$ac_ext <<_ACEOF
3788/* end confdefs.h. */
ac48eca1 3789
cfbc9945
SE
3790int
3791main ()
3792{
3793#ifndef __GNUC__
3794 choke me
3795#endif
5464f5a1 3796
cfbc9945
SE
3797 ;
3798 return 0;
3799}
3800_ACEOF
3801rm -f conftest.$ac_objext
3802if { (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); } &&
1b315056 3810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cfbc9945
SE
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
ac48eca1 3823else
cfbc9945
SE
3824 echo "$as_me: failed program was:" >&5
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3827ac_compiler_gnu=no
ac48eca1 3828fi
cfbc9945
SE
3829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3831
5464f5a1 3832fi
cfbc9945
SE
3833echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3834echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3835GCC=`test $ac_compiler_gnu = yes && echo yes`
3836ac_test_CFLAGS=${CFLAGS+set}
3837ac_save_CFLAGS=$CFLAGS
3838CFLAGS="-g"
3839echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3840echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3841if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3842 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3843else
cfbc9945
SE
3844 cat >conftest.$ac_ext <<_ACEOF
3845/* confdefs.h. */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
3849/* end confdefs.h. */
3850
3851int
3852main ()
3853{
3854
3855 ;
3856 return 0;
3857}
3858_ACEOF
3859rm -f conftest.$ac_objext
3860if { (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); } &&
1b315056 3868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cfbc9945
SE
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
6be7c12c 3881else
cfbc9945
SE
3882 echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3884
cfbc9945 3885ac_cv_prog_cc_g=no
ac48eca1 3886fi
cfbc9945 3887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3888fi
cfbc9945
SE
3889echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3890echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3891if test "$ac_test_CFLAGS" = set; then
3892 CFLAGS=$ac_save_CFLAGS
3893elif 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
ac48eca1 3899else
cfbc9945
SE
3900 if test "$GCC" = yes; then
3901 CFLAGS="-O2"
3902 else
3903 CFLAGS=
3904 fi
ac48eca1 3905fi
cfbc9945
SE
3906echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3907echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3908if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3909 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3910else
cfbc9945
SE
3911 ac_cv_prog_cc_stdc=no
3912ac_save_CC=$CC
3913cat >conftest.$ac_ext <<_ACEOF
3914/* confdefs.h. */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>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. */
3924struct buf { int x; };
3925FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926static char *e (p, i)
3927 char **p;
3928 int i;
3929{
3930 return p[i];
3931}
3932static 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}
5464f5a1 3941
cfbc9945
SE
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. */
3949int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3950
3951int test (int i, double x);
3952struct s1 {int (*f) (int a);};
3953struct s2 {int (*f) (double a);};
3954int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3955int argc;
3956char **argv;
3957int
3958main ()
3959{
3960return 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__
3972for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3973do
3974 CC="$ac_save_CC $ac_arg"
3975 rm -f conftest.$ac_objext
3976if { (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); } &&
1b315056 3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cfbc9945
SE
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
3997break
ac48eca1 3998else
cfbc9945
SE
3999 echo "$as_me: failed program was:" >&5
4000sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4001
5464f5a1 4002fi
cfbc9945 4003rm -f conftest.err conftest.$ac_objext
5464f5a1 4004done
cfbc9945
SE
4005rm -f conftest.$ac_ext conftest.$ac_objext
4006CC=$ac_save_CC
5464f5a1 4007
ac48eca1 4008fi
252b5132 4009
cfbc9945
SE
4010case "x$ac_cv_prog_cc_stdc" in
4011 x|xno)
4012 echo "$as_me:$LINENO: result: none needed" >&5
4013echo "${ECHO_T}none needed" >&6 ;;
4014 *)
4015 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4016echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4017 CC="$CC $ac_cv_prog_cc_stdc" ;;
4018esac
6be7c12c 4019
cfbc9945
SE
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.
4024cat >conftest.$ac_ext <<_ACEOF
4025#ifndef __cplusplus
4026 choke me
4027#endif
4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>conftest.er1
5464f5a1 4032 ac_status=$?
cfbc9945
SE
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
5464f5a1 4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945 4037 (exit $ac_status); } &&
1b315056 4038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cfbc9945
SE
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
5464f5a1
NN
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
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
d70c5fc7
NC
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
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);'
4057do
4058 cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h. */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h. */
4064$ac_declaration
4065#include <stdlib.h>
4066int
4067main ()
4068{
4069exit (42);
4070 ;
4071 return 0;
4072}
4073_ACEOF
4074rm -f conftest.$ac_objext
4075if { (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); } &&
1b315056 4083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cfbc9945
SE
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 :
b2ef150d 4096else
cfbc9945
SE
4097 echo "$as_me: failed program was:" >&5
4098sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4099
cfbc9945
SE
4100continue
4101fi
4102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4103 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
cfbc9945 4109$ac_declaration
5464f5a1
NN
4110int
4111main ()
4112{
cfbc9945 4113exit (42);
5464f5a1
NN
4114 ;
4115 return 0;
4116}
4117_ACEOF
cfbc9945
SE
4118rm -f conftest.$ac_objext
4119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4120 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
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); } &&
1b315056 4127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
cfbc9945 4133 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
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
cfbc9945 4139 break
b2ef150d 4140else
5464f5a1
NN
4141 echo "$as_me: failed program was:" >&5
4142sed 's/^/| /' conftest.$ac_ext >&5
4143
b2ef150d 4144fi
cfbc9945
SE
4145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146done
4147rm -f conftest*
4148if test -n "$ac_declaration"; then
4149 echo '#ifdef __cplusplus' >>confdefs.h
4150 echo $ac_declaration >>confdefs.h
4151 echo '#endif' >>confdefs.h
6ec7057a 4152fi
cfbc9945 4153
92f01d61 4154else
cfbc9945
SE
4155 echo "$as_me: failed program was:" >&5
4156sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4157
cfbc9945
SE
4158fi
4159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160ac_ext=c
4161ac_cpp='$CPP $CPPFLAGS'
4162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4165
4166
cfbc9945
SE
4167cat >>confdefs.h <<\_ACEOF
4168#define _GNU_SOURCE 1
4169_ACEOF
a1ac8190 4170
c428fa83 4171
cfbc9945 4172
d7040cdb
SE
4173
4174
4175macro_version='2.1a'
4176macro_revision='1.2435'
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189ltmain="$ac_aux_dir/ltmain.sh"
4190
4191# Set options
4192
4193enable_dlopen=no
4194
4195
4196enable_win32_dll=no
4197
4198
4199
cfbc9945
SE
4200# Check whether --enable-static or --disable-static was given.
4201if test "${enable_static+set}" = set; then
4202 enableval="$enable_static"
4203 p=${PACKAGE-default}
d7040cdb
SE
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
c428fa83 4220else
cfbc9945
SE
4221 enable_static=yes
4222fi;
d7040cdb
SE
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232# Check whether --with-pic or --without-pic was given.
4233if test "${with_pic+set}" = set; then
4234 withval="$with_pic"
4235 pic_mode="$withval"
4236else
4237 pic_mode=default
4238fi;
4239
4240test -z "$pic_mode" && pic_mode=default
4241
4242
4243
4244
4245
4246
4247
cfbc9945
SE
4248# Check whether --enable-fast-install or --disable-fast-install was given.
4249if test "${enable_fast_install+set}" = set; then
4250 enableval="$enable_fast_install"
4251 p=${PACKAGE-default}
d7040cdb
SE
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
cfbc9945
SE
4268else
4269 enable_fast_install=yes
4270fi;
c428fa83 4271
d7040cdb
SE
4272
4273
4274
4275
4276
4277
4278
4279echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4280echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4281if test "${lt_cv_path_SED+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
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.
4286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH
4288do
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
4298done
4299IFS=$as_save_IFS
4300lt_ac_max=0
4301lt_ac_count=0
4302# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4303# along with /bin/sed that truncates output.
4304for 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
4329done
4330
4331fi
4332
4333SED=$lt_cv_path_SED
4334
4335echo "$as_me:$LINENO: result: $SED" >&5
4336echo "${ECHO_T}$SED" >&6
4337
4338test -z "$SED" && SED=sed
4339Xsed="$SED -e 1s/^X//"
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351echo "$as_me:$LINENO: checking for egrep" >&5
4352echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4353if test "${ac_cv_prog_egrep+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355else
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
4360fi
4361echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4362echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4363 EGREP=$ac_cv_prog_egrep
4364
4365
4366echo "$as_me:$LINENO: checking for fgrep" >&5
4367echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4368if test "${ac_cv_prog_fgrep+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
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
4375fi
4376echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4377echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4378 FGREP=$ac_cv_prog_fgrep
4379
4380
4381test -z "$GREP" && GREP=grep
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
cfbc9945
SE
4401# Check whether --with-gnu-ld or --without-gnu-ld was given.
4402if test "${with_gnu_ld+set}" = set; then
4403 withval="$with_gnu_ld"
4404 test "$withval" = no || with_gnu_ld=yes
4405else
4406 with_gnu_ld=no
c428fa83 4407fi;
cfbc9945
SE
4408ac_prog=ld
4409if test "$GCC" = yes; then
4410 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
4411 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4412echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
cfbc9945
SE
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.
d7040cdb 4422 [\\/]* | ?:[\\/]*)
cfbc9945 4423 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
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%/%"`
cfbc9945
SE
4428 done
4429 test -z "$LD" && LD="$ac_prog"
4430 ;;
5bd8253d 4431 "")
cfbc9945
SE
4432 # If it fails, then pretend we aren't using GCC.
4433 ac_prog=ld
5bd8253d
L
4434 ;;
4435 *)
cfbc9945
SE
4436 # If it is relative, then search for the first ld in PATH.
4437 with_gnu_ld=unknown
5bd8253d 4438 ;;
cfbc9945
SE
4439 esac
4440elif test "$with_gnu_ld" = yes; then
4441 echo "$as_me:$LINENO: checking for GNU ld" >&5
4442echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4443else
4444 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4445echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4446fi
4447if test "${lt_cv_path_LD+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 if test -z "$LD"; then
d7040cdb 4451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 4452 for ac_dir in $PATH; do
d7040cdb 4453 IFS="$lt_save_ifs"
cfbc9945
SE
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,
d7040cdb 4458 # but apparently some variants of GNU ld only accept -v.
cfbc9945 4459 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4460 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4461 *GNU* | *'with BFD'*)
cfbc9945 4462 test "$with_gnu_ld" != no && break
d7040cdb
SE
4463 ;;
4464 *)
cfbc9945 4465 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4466 ;;
4467 esac
cfbc9945
SE
4468 fi
4469 done
d7040cdb 4470 IFS="$lt_save_ifs"
cfbc9945
SE
4471else
4472 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 4473fi
1ad12f97
NC
4474fi
4475
cfbc9945
SE
4476LD="$lt_cv_path_LD"
4477if test -n "$LD"; then
4478 echo "$as_me:$LINENO: result: $LD" >&5
4479echo "${ECHO_T}$LD" >&6
4480else
4481 echo "$as_me:$LINENO: result: no" >&5
4482echo "${ECHO_T}no" >&6
4483fi
4484test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4485echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4486 { (exit 1); exit 1; }; }
4487echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4488echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4489if test "${lt_cv_prog_gnu_ld+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491else
d7040cdb
SE
4492 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4493case `$LD -v 2>&1 </dev/null` in
4494*GNU* | *'with BFD'*)
cfbc9945 4495 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4496 ;;
4497*)
cfbc9945 4498 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4499 ;;
4500esac
49c96104 4501fi
cfbc9945
SE
4502echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4503echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4504with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 4505
9e9b66a9 4506
cfbc9945 4507
d7040cdb
SE
4508
4509
4510
4511
4512
4513
4514
4515echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4516echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
4517if test "${lt_cv_path_NM+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520 if test -n "$NM"; then
4521 # Let the user override the test.
4522 lt_cv_path_NM="$NM"
4523else
d7040cdb
SE
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
cfbc9945 4557 fi
d7040cdb
SE
4558 done
4559 IFS="$lt_save_ifs"
cfbc9945 4560 done
d7040cdb 4561 : ${lt_cv_path_NM=no}
cfbc9945 4562fi
a2d91340 4563fi
d7040cdb
SE
4564echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4565echo "${ECHO_T}$lt_cv_path_NM" >&6
4566if test "$lt_cv_path_NM" != "no"; then
4567 NM="$lt_cv_path_NM"
cfbc9945 4568else
d7040cdb
SE
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.
4574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4575echo "$as_me:$LINENO: checking for $ac_word" >&5
4576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4577if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 4578 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4579else
d7040cdb
SE
4580 if test -n "$DUMPBIN"; then
4581 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4582else
4583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584for as_dir in $PATH
4585do
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
4594done
4595done
5464f5a1 4596
d7040cdb
SE
4597fi
4598fi
4599DUMPBIN=$ac_cv_prog_DUMPBIN
4600if test -n "$DUMPBIN"; then
4601 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4602echo "${ECHO_T}$DUMPBIN" >&6
4603else
4604 echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6
4606fi
d5fbea21 4607
d7040cdb
SE
4608 test -n "$DUMPBIN" && break
4609 done
4610fi
4611if test -z "$DUMPBIN"; then
4612 ac_ct_DUMPBIN=$DUMPBIN
4613 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4614do
4615 # Extract the first word of "$ac_prog", so it can be a program name with args.
4616set dummy $ac_prog; ac_word=$2
4617echo "$as_me:$LINENO: checking for $ac_word" >&5
4618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4619if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
4622 if test -n "$ac_ct_DUMPBIN"; then
4623 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4624else
4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
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
cfbc9945 4635 fi
d7040cdb
SE
4636done
4637done
d5fbea21 4638
d7040cdb
SE
4639fi
4640fi
4641ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4642if test -n "$ac_ct_DUMPBIN"; then
4643 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4644echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4645else
4646 echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6
4648fi
d5fbea21 4649
d7040cdb
SE
4650 test -n "$ac_ct_DUMPBIN" && break
4651done
4652test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 4653
d7040cdb
SE
4654 DUMPBIN=$ac_ct_DUMPBIN
4655fi
24443139 4656
24443139 4657
d7040cdb
SE
4658 if test "$DUMPBIN" != ":"; then
4659 NM="$DUMPBIN"
cfbc9945 4660 fi
d7040cdb
SE
4661fi
4662test -z "$NM" && NM=nm
a703a6ea 4663
f5385ebf 4664
cfbc9945 4665
24443139
AS
4666
4667
4668
d7040cdb
SE
4669echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4670echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4671if test "${lt_cv_nm_interface+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673else
4674 lt_cv_nm_interface="BSD nm"
4675 echo "int some_variable = 0;" > conftest.$ac_ext
1b315056 4676 (eval echo "\"\$as_me:4676: $ac_compile\"" >&5)
d7040cdb
SE
4677 (eval "$ac_compile" 2>conftest.err)
4678 cat conftest.err >&5
1b315056 4679 (eval echo "\"\$as_me:4679: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
4680 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4681 cat conftest.err >&5
1b315056 4682 (eval echo "\"\$as_me:4682: output\"" >&5)
d7040cdb
SE
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*
cfbc9945 4688fi
d7040cdb
SE
4689echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4690echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 4691
d7040cdb
SE
4692echo "$as_me:$LINENO: checking whether ln -s works" >&5
4693echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4694LN_S=$as_ln_s
4695if test "$LN_S" = "ln -s"; then
4696 echo "$as_me:$LINENO: result: yes" >&5
4697echo "${ECHO_T}yes" >&6
4698else
4699 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4700echo "${ECHO_T}no, using $LN_S" >&6
4701fi
252b5132 4702
cfbc9945
SE
4703# find the maximum length of command line arguments
4704echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4705echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4706if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708else
4709 i=0
4710 teststring="ABCD"
5464f5a1 4711
cfbc9945
SE
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 ;;
5464f5a1 4720
d7040cdb
SE
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
cfbc9945
SE
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 ;;
5464f5a1 4738
cfbc9945
SE
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 ;;
5464f5a1 4744
cfbc9945
SE
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
d7040cdb 4752 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
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 ;;
d7040cdb
SE
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 *)
79887925
L
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
d7040cdb 4818 ;;
cfbc9945 4819 esac
5464f5a1 4820
252b5132 4821fi
cfbc9945 4822
d7040cdb 4823if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
4824 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4825echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 4826else
cfbc9945
SE
4827 echo "$as_me:$LINENO: result: none" >&5
4828echo "${ECHO_T}none" >&6
5464f5a1 4829fi
d7040cdb 4830max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4831
cfbc9945 4832
252b5132 4833
cfbc9945 4834
cfbc9945 4835
d7040cdb
SE
4836
4837
4838: ${CP="cp -f"}
4839: ${MV="mv -f"}
4840: ${RM="rm -f"}
4841
4842echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4843echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4844# Try some XSI features
4845xsi_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
4850echo "$as_me:$LINENO: result: $xsi_shell" >&5
4851echo "${ECHO_T}$xsi_shell" >&6
4852
4853
4854echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4855echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4856lt_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
4860echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4861echo "${ECHO_T}$lt_shell_append" >&6
4862
4863
4864if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4865 lt_unset=unset
5464f5a1 4866else
d7040cdb 4867 lt_unset=false
5464f5a1 4868fi
252b5132 4869
d7040cdb
SE
4870
4871
4872
4873
4874# test EBCDIC or ASCII
4875case `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 ;;
4885esac
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4896echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4897if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
d7040cdb
SE
4900 lt_cv_ld_reload_flag='-r'
4901fi
4902echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4903echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4904reload_flag=$lt_cv_ld_reload_flag
4905case $reload_flag in
4906"" | " "*) ;;
4907*) reload_flag=" $reload_flag" ;;
4908esac
4909reload_cmds='$LD$reload_flag -o $output$reload_objs'
4910case $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 ;;
4918esac
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4930echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4931if test "${lt_cv_deplibs_check_method+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934 lt_cv_file_magic_cmd='$MAGIC_CMD'
4935lt_cv_file_magic_test_file=
4936lt_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
4948case $host_os in
e81819a5 4949aix[4-9]*)
d7040cdb
SE
4950 lt_cv_deplibs_check_method=pass_all
4951 ;;
4952
4953beos*)
4954 lt_cv_deplibs_check_method=pass_all
4955 ;;
4956
4957bsdi[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
4963cygwin*)
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
4969mingw* | 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
4982darwin* | rhapsody*)
4983 lt_cv_deplibs_check_method=pass_all
cfbc9945 4984 ;;
d7040cdb
SE
4985
4986freebsd* | 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
5002gnu*)
5003 lt_cv_deplibs_check_method=pass_all
cfbc9945 5004 ;;
d7040cdb
SE
5005
5006hpux10.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 ;;
cfbc9945 5017 *)
d7040cdb
SE
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 ;;
6be7c12c 5023
d7040cdb
SE
5024interix[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 ;;
cfbc9945 5028
d7040cdb
SE
5029irix5* | 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
cfbc9945 5037 ;;
cfbc9945 5038
d7040cdb
SE
5039# This must be Linux ELF.
5040linux* | k*bsd*-gnu)
5041 lt_cv_deplibs_check_method=pass_all
5042 ;;
5464f5a1 5043
d7040cdb
SE
5044netbsd*)
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)$'
cfbc9945 5047 else
d7040cdb 5048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 5049 fi
d7040cdb
SE
5050 ;;
5051
5052newos6*)
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 ;;
cfbc9945 5061
d7040cdb
SE
5062openbsd*)
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)$'
cfbc9945
SE
5067 fi
5068 ;;
d7040cdb
SE
5069
5070osf3* | osf4* | osf5*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073
5074rdos*)
5075 lt_cv_deplibs_check_method=pass_all
5076 ;;
5077
5078solaris*)
5079 lt_cv_deplibs_check_method=pass_all
5080 ;;
5081
5082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
5085
5086sysv4 | 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
5113tpf*)
5114 lt_cv_deplibs_check_method=pass_all
5115 ;;
cfbc9945
SE
5116esac
5117
d7040cdb
SE
5118fi
5119echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5120echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5121file_magic_cmd=$lt_cv_file_magic_cmd
5122deplibs_check_method=$lt_cv_deplibs_check_method
5123test -z "$deplibs_check_method" && deplibs_check_method=unknown
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
cfbc9945 5136if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5138set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
5139echo "$as_me:$LINENO: checking for $ac_word" >&5
5140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5141if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143else
d7040cdb
SE
5144 if test -n "$AR"; then
5145 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
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
d7040cdb 5154 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158done
5159done
5160
5161fi
5162fi
d7040cdb
SE
5163AR=$ac_cv_prog_AR
5164if test -n "$AR"; then
5165 echo "$as_me:$LINENO: result: $AR" >&5
5166echo "${ECHO_T}$AR" >&6
5464f5a1
NN
5167else
5168 echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
5170fi
5171
5464f5a1 5172fi
d7040cdb
SE
5173if 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.
5176set dummy ar; ac_word=$2
5464f5a1
NN
5177echo "$as_me:$LINENO: checking for $ac_word" >&5
5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5179if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 5180 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5181else
d7040cdb
SE
5182 if test -n "$ac_ct_AR"; then
5183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 5184else
5464f5a1
NN
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
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
d7040cdb 5192 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196done
5197done
5198
d7040cdb 5199 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
5200fi
5201fi
d7040cdb
SE
5202ac_ct_AR=$ac_cv_prog_ac_ct_AR
5203if test -n "$ac_ct_AR"; then
5204 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5205echo "${ECHO_T}$ac_ct_AR" >&6
5206else
5207 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
5208echo "${ECHO_T}no" >&6
5209fi
5210
d7040cdb 5211 AR=$ac_ct_AR
cfbc9945 5212else
d7040cdb 5213 AR="$ac_cv_prog_AR"
5464f5a1 5214fi
cfbc9945 5215
d7040cdb
SE
5216test -z "$AR" && AR=ar
5217test -z "$AR_FLAGS" && AR_FLAGS=cru
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
cfbc9945
SE
5229if 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.
5231set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
5232echo "$as_me:$LINENO: checking for $ac_word" >&5
5233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5234if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
cfbc9945
SE
5237 if test -n "$STRIP"; then
5238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
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
cfbc9945 5247 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251done
5252done
5253
5254fi
5255fi
cfbc9945
SE
5256STRIP=$ac_cv_prog_STRIP
5257if test -n "$STRIP"; then
5258 echo "$as_me:$LINENO: result: $STRIP" >&5
5259echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
5260else
5261 echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263fi
5264
252b5132 5265fi
cfbc9945
SE
5266if 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.
5269set dummy strip; ac_word=$2
5464f5a1
NN
5270echo "$as_me:$LINENO: checking for $ac_word" >&5
5271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5272if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
cfbc9945
SE
5275 if test -n "$ac_ct_STRIP"; then
5276 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
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
cfbc9945 5285 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289done
5290done
5291
cfbc9945 5292 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
5293fi
5294fi
cfbc9945
SE
5295ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5296if test -n "$ac_ct_STRIP"; then
5297 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5298echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
5299else
5300 echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
5302fi
5303
cfbc9945
SE
5304 STRIP=$ac_ct_STRIP
5305else
5306 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
5307fi
5308
d7040cdb 5309test -z "$STRIP" && STRIP=:
5464f5a1 5310
cfbc9945
SE
5311
5312
cfbc9945 5313
cfbc9945
SE
5314
5315
d7040cdb
SE
5316if 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.
5318set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5319echo "$as_me:$LINENO: checking for $ac_word" >&5
5320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321if test "${ac_cv_prog_RANLIB+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 5323else
d7040cdb
SE
5324 if test -n "$RANLIB"; then
5325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5326else
5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328for as_dir in $PATH
5329do
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
cfbc9945 5337 fi
d7040cdb
SE
5338done
5339done
cfbc9945 5340
d7040cdb
SE
5341fi
5342fi
5343RANLIB=$ac_cv_prog_RANLIB
5344if test -n "$RANLIB"; then
5345 echo "$as_me:$LINENO: result: $RANLIB" >&5
5346echo "${ECHO_T}$RANLIB" >&6
5347else
5348 echo "$as_me:$LINENO: result: no" >&5
5349echo "${ECHO_T}no" >&6
5350fi
cfbc9945 5351
d7040cdb
SE
5352fi
5353if 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.
5356set dummy ranlib; ac_word=$2
5357echo "$as_me:$LINENO: checking for $ac_word" >&5
5358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362 if test -n "$ac_ct_RANLIB"; then
5363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
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
cfbc9945 5375 fi
d7040cdb
SE
5376done
5377done
cfbc9945 5378
d7040cdb
SE
5379 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5380fi
5381fi
5382ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5383if test -n "$ac_ct_RANLIB"; then
5384 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5385echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 5386else
d7040cdb
SE
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389fi
5464f5a1 5390
d7040cdb
SE
5391 RANLIB=$ac_ct_RANLIB
5392else
5393 RANLIB="$ac_cv_prog_RANLIB"
5394fi
5464f5a1 5395
d7040cdb 5396test -z "$RANLIB" && RANLIB=:
5464f5a1 5397
5464f5a1 5398
5464f5a1 5399
cfbc9945 5400
cfbc9945 5401
d7040cdb
SE
5402
5403# Determine commands to create old-style static archives.
5404old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5405old_postinstall_cmds='chmod 644 $oldlib'
5406old_postuninstall_cmds=
5407
5408if 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"
cfbc9945 5418fi
cfbc9945
SE
5419
5420
cfbc9945
SE
5421
5422
cfbc9945 5423
cfbc9945 5424
cfbc9945 5425
cfbc9945 5426
cfbc9945
SE
5427
5428
cfbc9945 5429
cfbc9945 5430
cfbc9945
SE
5431
5432
5433
5434
5435
5436
5437
5464f5a1 5438
5464f5a1 5439
cfbc9945
SE
5440
5441
5442
5464f5a1 5443
5464f5a1 5444
cfbc9945
SE
5445
5446
5447
5464f5a1 5448
cfbc9945
SE
5449
5450
5451
5452
d7040cdb
SE
5453# If no C compiler was specified, use CC.
5454LTCC=${LTCC-"$CC"}
cfbc9945 5455
d7040cdb
SE
5456# If no C compiler flags were specified, use CFLAGS.
5457LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 5458
d7040cdb
SE
5459# Allow CC to be a program name with arguments.
5460compiler=$CC
cfbc9945 5461
cfbc9945 5462
d7040cdb
SE
5463# Check for command to grab the raw symbol name followed by C symbol from nm.
5464echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5465echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5466if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5464f5a1 5469
d7040cdb
SE
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?!! ;)]
5464f5a1 5472
d7040cdb
SE
5473# Character class describing NM global symbol codes.
5474symcode='[BCDEGRST]'
5475
5476# Regexp to match symbols that can be accessed directly from C.
5477sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5478
5479# Define system-specific variables.
5480case $host_os in
5481aix*)
5482 symcode='[BCDT]'
5483 ;;
5484cygwin* | mingw* | pw32*)
5485 symcode='[ABCDGISTW]'
5486 ;;
5487hpux*)
5488 if test "$host_cpu" = ia64; then
5489 symcode='[ABCDEGRST]'
5490 fi
5491 ;;
5492irix* | nonstopux*)
5493 symcode='[BCDEGRST]'
5494 ;;
5495osf*)
5496 symcode='[BCDEGQRST]'
5497 ;;
5498solaris*)
5499 symcode='[BDRT]'
5500 ;;
5501sco3.2v5*)
5502 symcode='[DT]'
5503 ;;
5504sysv4.2uw2*)
5505 symcode='[DT]'
5506 ;;
5507sysv5* | sco5v6* | unixware* | OpenUNIX*)
5508 symcode='[ABDT]'
5509 ;;
5510sysv4)
5511 symcode='[DFNSTU]'
5512 ;;
cfbc9945 5513esac
5464f5a1 5514
d7040cdb
SE
5515# If we're using GNU nm, then use its standard symbol codes.
5516case `$NM -V 2>&1` in
5517*GNU* | *'with BFD'*)
5518 symcode='[ABCDGIRSTW]' ;;
5519esac
5464f5a1 5520
d7040cdb
SE
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.
5524lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 5525
d7040cdb
SE
5526# Transform an extracted symbol line into symbol name and symbol address
5527lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5464f5a1 5528
d7040cdb
SE
5529# Handle CRLF in mingw tool chain
5530opt_cr=
5531case $build_os in
5532mingw*)
5533 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5534 ;;
5535esac
5464f5a1 5536
d7040cdb
SE
5537# Try without a prefix underscore, then with it.
5538for 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
cfbc9945 5563
d7040cdb
SE
5564 # Check to see that the pipe works correctly.
5565 pipe_works=no
cfbc9945 5566
d7040cdb
SE
5567 rm -f conftest*
5568 cat > conftest.$ac_ext <<_LT_EOF
5569#ifdef __cplusplus
5570extern "C" {
5571#endif
5572char nm_test_var;
5573void nm_test_func(void);
5574void nm_test_func(void){}
5575#ifdef __cplusplus
5576}
5577#endif
5578int main(){nm_test_var='a';nm_test_func();return(0);}
5579_LT_EOF
cfbc9945 5580
d7040cdb
SE
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
cfbc9945 5599
d7040cdb
SE
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
5605extern "C" {
5606#endif
cfbc9945 5607
d7040cdb
SE
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'
5464f5a1 5611
d7040cdb 5612 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 5613
d7040cdb
SE
5614/* The mapping between symbol names and symbols. */
5615const struct {
5616 const char *name;
5617 void *address;
5618}
5619lt__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
5630static const void *lt_preloaded_setup() {
5631 return lt__PROGRAM__LTX_preloaded_symbols;
5632}
5633#endif
cfbc9945 5634
d7040cdb
SE
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*
cfbc9945 5668
d7040cdb
SE
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
5675done
cfbc9945 5676
252b5132 5677fi
5464f5a1 5678
d7040cdb
SE
5679if test -z "$lt_cv_sys_global_symbol_pipe"; then
5680 lt_cv_sys_global_symbol_to_cdecl=
5681fi
5682if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5683 echo "$as_me:$LINENO: result: failed" >&5
5684echo "${ECHO_T}failed" >&6
b3baf5d0 5685else
d7040cdb
SE
5686 echo "$as_me:$LINENO: result: ok" >&5
5687echo "${ECHO_T}ok" >&6
5688fi
5464f5a1 5689
cfbc9945 5690
b3baf5d0 5691
cfbc9945
SE
5692
5693
5694
5695
5464f5a1 5696
4a2a2686
HPN
5697
5698
5699
cfbc9945
SE
5700
5701
cfbc9945 5702
cfbc9945 5703
9d7cbccd 5704
20e95c23 5705
d7040cdb
SE
5706# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5707if test "${enable_libtool_lock+set}" = set; then
5708 enableval="$enable_libtool_lock"
20e95c23 5709
d7040cdb
SE
5710fi;
5711test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 5712
d7040cdb
SE
5713# Some flags need to be propagated to the compiler or linker for good
5714# libtool support.
5715case $host in
5716ia64-*-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 ;;
20e95c23 5731 esac
d7040cdb
SE
5732 fi
5733 rm -rf conftest*
5734 ;;
5735*-*-irix6*)
5736 # Find out which ABI we are using.
1b315056 5737 echo '#line 5737 "configure"' > conftest.$ac_ext
d7040cdb
SE
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
20e95c23 5755 else
d7040cdb
SE
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 ;;
20e95c23
DJ
5766 esac
5767 fi
d7040cdb
SE
5768 fi
5769 rm -rf conftest*
5770 ;;
20e95c23 5771
d7040cdb
SE
5772x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5773s390*-*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 ;;
20e95c23
DJ
5820 esac
5821 fi
d7040cdb
SE
5822 rm -rf conftest*
5823 ;;
20e95c23 5824
d7040cdb
SE
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
5830echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5831if test "${lt_cv_cc_needs_belf+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5833else
d7040cdb
SE
5834 ac_ext=c
5835ac_cpp='$CPP $CPPFLAGS'
5836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 5839
d7040cdb
SE
5840 cat >conftest.$ac_ext <<_ACEOF
5841/* confdefs.h. */
5842_ACEOF
5843cat confdefs.h >>conftest.$ac_ext
5844cat >>conftest.$ac_ext <<_ACEOF
5845/* end confdefs.h. */
20e95c23 5846
d7040cdb
SE
5847int
5848main ()
5849{
20e95c23 5850
d7040cdb
SE
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855rm -f conftest.$ac_objext conftest$ac_exeext
5856if { (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); } &&
1b315056 5864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
5877else
5878 echo "$as_me: failed program was:" >&5
5879sed 's/^/| /' conftest.$ac_ext >&5
5880
5881lt_cv_cc_needs_belf=no
5882fi
5883rm -f conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5885 ac_ext=c
5886ac_cpp='$CPP $CPPFLAGS'
5887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890
5891fi
5892echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5893echo "${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 ;;
5899sparc*-*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 ;;
5918esac
5919
5920need_locks="$enable_libtool_lock"
5921
5922ac_ext=c
5923ac_cpp='$CPP $CPPFLAGS'
5924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5928echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5929# On Suns, sometimes $CPP names a directory.
5930if test -n "$CPP" && test -d "$CPP"; then
5931 CPP=
5932fi
5933if test -z "$CPP"; then
5934 if test "${ac_cv_prog_CPP+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
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
5941for ac_c_preproc_warn_flag in '' yes
5942do
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
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>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
5962if { (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
5976else
5977 ac_cpp_err=yes
5978fi
5979if test -z "$ac_cpp_err"; then
5980 :
5981else
5982 echo "$as_me: failed program was:" >&5
5983sed 's/^/| /' conftest.$ac_ext >&5
5984
5985 # Broken: fails on valid input.
5986continue
5987fi
5988rm -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
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h. */
5998#include <ac_nonexistent.h>
5999_ACEOF
6000if { (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
6014else
6015 ac_cpp_err=yes
6016fi
6017if test -z "$ac_cpp_err"; then
6018 # Broken: success on invalid input.
6019continue
6020else
6021 echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 # Passes both tests.
6025ac_preproc_ok=:
6026break
6027fi
6028rm -f conftest.err conftest.$ac_ext
6029
6030done
6031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6032rm -f conftest.err conftest.$ac_ext
6033if $ac_preproc_ok; then
6034 break
6035fi
6036
6037 done
6038 ac_cv_prog_CPP=$CPP
6039
6040fi
6041 CPP=$ac_cv_prog_CPP
6042else
6043 ac_cv_prog_CPP=$CPP
6044fi
6045echo "$as_me:$LINENO: result: $CPP" >&5
6046echo "${ECHO_T}$CPP" >&6
6047ac_preproc_ok=false
6048for ac_c_preproc_warn_flag in '' yes
6049do
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
6059cat confdefs.h >>conftest.$ac_ext
6060cat >>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
6069if { (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
6083else
6084 ac_cpp_err=yes
6085fi
6086if test -z "$ac_cpp_err"; then
6087 :
6088else
6089 echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 # Broken: fails on valid input.
6093continue
6094fi
6095rm -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
6102cat confdefs.h >>conftest.$ac_ext
6103cat >>conftest.$ac_ext <<_ACEOF
6104/* end confdefs.h. */
6105#include <ac_nonexistent.h>
6106_ACEOF
6107if { (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
6121else
6122 ac_cpp_err=yes
6123fi
6124if test -z "$ac_cpp_err"; then
6125 # Broken: success on invalid input.
6126continue
6127else
6128 echo "$as_me: failed program was:" >&5
6129sed 's/^/| /' conftest.$ac_ext >&5
6130
6131 # Passes both tests.
6132ac_preproc_ok=:
6133break
6134fi
6135rm -f conftest.err conftest.$ac_ext
6136
6137done
6138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6139rm -f conftest.err conftest.$ac_ext
6140if $ac_preproc_ok; then
6141 :
6142else
1b315056 6143 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d7040cdb
SE
6144See \`config.log' for more details." >&5
6145echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6146See \`config.log' for more details." >&2;}
1b315056 6147 { (exit 1); exit 1; }; }
d7040cdb
SE
6148fi
6149
6150ac_ext=c
6151ac_cpp='$CPP $CPPFLAGS'
6152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
6156
6157echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6158echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6159if test "${ac_cv_header_stdc+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162 cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h. */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>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
6173int
6174main ()
6175{
6176
6177 ;
6178 return 0;
6179}
6180_ACEOF
6181rm -f conftest.$ac_objext
6182if { (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); } &&
1b315056 6190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
6203else
6204 echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207ac_cv_header_stdc=no
6208fi
6209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6210
6211if 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
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h. */
6219#include <string.h>
6220
6221_ACEOF
6222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6223 $EGREP "memchr" >/dev/null 2>&1; then
6224 :
6225else
6226 ac_cv_header_stdc=no
6227fi
6228rm -f conftest*
6229
6230fi
6231
6232if 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
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h. */
6240#include <stdlib.h>
6241
6242_ACEOF
6243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6244 $EGREP "free" >/dev/null 2>&1; then
6245 :
6246else
6247 ac_cv_header_stdc=no
6248fi
6249rm -f conftest*
6250
6251fi
6252
6253if 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 :
6257else
6258 cat >conftest.$ac_ext <<_ACEOF
6259/* confdefs.h. */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>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)))
6277int
6278main ()
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
6288rm -f conftest$ac_exeext
6289if { (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 :
6300else
6301 echo "$as_me: program exited with status $ac_status" >&5
6302echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305( exit $ac_status )
6306ac_cv_header_stdc=no
6307fi
6308rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6309fi
6310fi
6311fi
6312echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6313echo "${ECHO_T}$ac_cv_header_stdc" >&6
6314if test $ac_cv_header_stdc = yes; then
6315
6316cat >>confdefs.h <<\_ACEOF
6317#define STDC_HEADERS 1
6318_ACEOF
6319
6320fi
6321
6322# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6333 inttypes.h stdint.h unistd.h
6334do
6335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6336echo "$as_me:$LINENO: checking for $ac_header" >&5
6337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6338if eval "test \"\${$as_ac_Header+set}\" = set"; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341 cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h. */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h. */
6347$ac_includes_default
6348
6349#include <$ac_header>
6350_ACEOF
6351rm -f conftest.$ac_objext
6352if { (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); } &&
1b315056 6360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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"
6373else
6374 echo "$as_me: failed program was:" >&5
6375sed 's/^/| /' conftest.$ac_ext >&5
6376
6377eval "$as_ac_Header=no"
6378fi
6379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380fi
6381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6383if 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
6388fi
6389
6390done
6391
6392
6393
6394for ac_header in dlfcn.h
6395do
6396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6397echo "$as_me:$LINENO: checking for $ac_header" >&5
6398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6399if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402 cat >conftest.$ac_ext <<_ACEOF
6403/* confdefs.h. */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
6407/* end confdefs.h. */
6408$ac_includes_default
6409
6410#include <$ac_header>
6411_ACEOF
6412rm -f conftest.$ac_objext
6413if { (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); } &&
1b315056 6421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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"
6434else
6435 echo "$as_me: failed program was:" >&5
6436sed 's/^/| /' conftest.$ac_ext >&5
6437
6438eval "$as_ac_Header=no"
6439fi
6440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441fi
6442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444if 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
6449fi
6450
6451done
6452
6453
6454
6455# This can be used to rebuild libtool when needed
6456LIBTOOL_DEPS="$ltmain"
6457
6458# Always use our own libtool.
6459LIBTOOL='$(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
6485test -z "$LN_S" && LN_S="ln -s"
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500if test -n "${ZSH_VERSION+set}" ; then
6501 setopt NO_GLOB_SUBST
6502fi
6503
6504echo "$as_me:$LINENO: checking for objdir" >&5
6505echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6506if test "${lt_cv_objdir+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 rm -f .libs 2>/dev/null
6510mkdir .libs 2>/dev/null
6511if test -d .libs; then
6512 lt_cv_objdir=.libs
6513else
6514 # MS-DOS does not allow filenames that begin with a dot.
6515 lt_cv_objdir=_libs
6516fi
6517rmdir .libs 2>/dev/null
6518fi
6519echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6520echo "${ECHO_T}$lt_cv_objdir" >&6
6521objdir=$lt_cv_objdir
6522
6523
6524
6525
6526
6527cat >>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
6547case $host_os in
6548aix3*)
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 ;;
6557esac
6558
6559# Sed substitution that helps us do robust quoting. It backslashifies
6560# metacharacters that are still active within double-quoted strings.
6561sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6562
6563# Same as above, but do not quote variable references.
6564double_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.
6568delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6569
6570# Sed substitution to delay expansion of an escaped single quote.
6571delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6572
6573# Sed substitution to avoid accidental globbing in evaled expressions
6574no_glob_subst='s/\*/\\\*/g'
6575
6576# Global variables:
6577ofile=libtool
6578can_build_shared=yes
6579
6580# All known linkers require a `.a' archive for static linking (except MSVC,
6581# which needs '.lib').
6582libext=a
6583
6584with_gnu_ld="$lt_cv_prog_gnu_ld"
6585
6586old_CC="$CC"
6587old_CFLAGS="$CFLAGS"
6588
6589# Set sane defaults for various variables
6590test -z "$CC" && CC=cc
6591test -z "$LTCC" && LTCC=$CC
6592test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6593test -z "$LD" && LD=ld
6594test -z "$ac_objext" && ac_objext=o
6595
6596for 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
6603done
6604cc_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
6608test -z "$MAGIC_CMD" && MAGIC_CMD=file
6609case $deplibs_check_method in
6610file_magic*)
6611 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6612 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6613echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6614if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616else
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 ;;
6660esac
6661fi
6662
6663MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6664if test -n "$MAGIC_CMD"; then
6665 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6666echo "${ECHO_T}$MAGIC_CMD" >&6
6667else
6668 echo "$as_me:$LINENO: result: no" >&5
6669echo "${ECHO_T}no" >&6
6670fi
6671
6672
6673
6674
6675
6676if 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
6679echo $ECHO_N "checking for file... $ECHO_C" >&6
6680if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
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 ;;
6726esac
6727fi
6728
6729MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6730if test -n "$MAGIC_CMD"; then
6731 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6732echo "${ECHO_T}$MAGIC_CMD" >&6
6733else
6734 echo "$as_me:$LINENO: result: no" >&5
6735echo "${ECHO_T}no" >&6
6736fi
6737
6738
6739 else
6740 MAGIC_CMD=:
6741 fi
6742fi
6743
6744 fi
6745 ;;
6746esac
6747
6748# Use C for the default configuration in the libtool script
6749
6750lt_save_CC="$CC"
6751ac_ext=c
6752ac_cpp='$CPP $CPPFLAGS'
6753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755ac_compiler_gnu=$ac_cv_c_compiler_gnu
6756
6757
6758# Source file extension for C test sources.
6759ac_ext=c
6760
6761# Object file extension for compiled C test sources.
6762objext=o
6763objext=$objext
6764
6765# Code to be used in simple compile tests
6766lt_simple_compile_test_code="int some_variable = 0;"
6767
6768# Code to be used in simple link tests
6769lt_simple_link_test_code='int main(){return(0);}'
6770
6771
6772
6773
6774
6775
6776
6777# If no C compiler was specified, use CC.
6778LTCC=${LTCC-"$CC"}
6779
6780# If no C compiler flags were specified, use CFLAGS.
6781LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6782
6783# Allow CC to be a program name with arguments.
6784compiler=$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.
6788compiler_DEFAULT=$CC
6789
6790# save warnings/boilerplate of simple test code
6791ac_outfile=conftest.$ac_objext
6792echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6793eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6794_lt_compiler_boilerplate=`cat conftest.err`
6795$RM conftest*
6796
6797ac_outfile=conftest.$ac_objext
6798echo "$lt_simple_link_test_code" >conftest.$ac_ext
6799eval "$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...
6808if test -n "$compiler"; then
6809
6810lt_prog_compiler_no_builtin_flag=
6811
6812if 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
6816echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6817if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
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:'`
1b315056 6833 (eval echo "\"\$as_me:6833: $lt_compile\"" >&5)
d7040cdb
SE
6834 (eval "$lt_compile" 2>conftest.err)
6835 ac_status=$?
6836 cat conftest.err >&5
1b315056 6837 echo "$as_me:6837: \$? = $ac_status" >&5
d7040cdb
SE
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
6849fi
6850echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6851echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6852
6853if 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"
6855else
6856 :
6857fi
6858
6859fi
6860
6861
6862
6863
6864
6865
6866 lt_prog_compiler_wl=
6867lt_prog_compiler_pic=
6868lt_prog_compiler_static=
6869
6870echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6871echo $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
7116case $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 ;;
7124esac
7125echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7126echo "${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#
7136if test -n "$lt_prog_compiler_pic"; then
7137 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7138echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7139if test "${lt_prog_compiler_pic_works+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
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:'`
1b315056 7155 (eval echo "\"\$as_me:7155: $lt_compile\"" >&5)
d7040cdb
SE
7156 (eval "$lt_compile" 2>conftest.err)
7157 ac_status=$?
7158 cat conftest.err >&5
1b315056 7159 echo "$as_me:7159: \$? = $ac_status" >&5
d7040cdb
SE
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
7171fi
7172echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7173echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7174
7175if 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
7180else
7181 lt_prog_compiler_pic=
7182 lt_prog_compiler_can_build_shared=no
7183fi
7184
7185fi
7186
7187
7188
7189
7190
7191
7192#
7193# Check to make sure the static flag actually works.
7194#
7195wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7196echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7197echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7198if test "${lt_prog_compiler_static_works+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200else
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
7223fi
7224echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7225echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7226
7227if test x"$lt_prog_compiler_static_works" = xyes; then
7228 :
7229else
7230 lt_prog_compiler_static=
7231fi
7232
7233
7234
7235
7236
7237
7238
7239 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7240echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7241if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243else
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:'`
1b315056 7260 (eval echo "\"\$as_me:7260: $lt_compile\"" >&5)
d7040cdb
SE
7261 (eval "$lt_compile" 2>out/conftest.err)
7262 ac_status=$?
7263 cat out/conftest.err >&5
1b315056 7264 echo "$as_me:7264: \$? = $ac_status" >&5
d7040cdb
SE
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
7285fi
7286echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7287echo "${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
7295echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7296if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298else
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:'`
1b315056 7315 (eval echo "\"\$as_me:7315: $lt_compile\"" >&5)
d7040cdb
SE
7316 (eval "$lt_compile" 2>out/conftest.err)
7317 ac_status=$?
7318 cat out/conftest.err >&5
1b315056 7319 echo "$as_me:7319: \$? = $ac_status" >&5
d7040cdb
SE
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
7340fi
7341echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7342echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7343
7344
7345
7346
7347hard_links="nottested"
7348if 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
7351echo $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
7359echo "${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
7362echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7363 need_locks=warn
7364 fi
7365else
7366 need_locks=no
7367fi
7368
7369
7370
7371
7372
7373
7374 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7375echo $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
e81819a5 7463 aix[3-9]*)
d7040cdb
SE
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
e81819a5 7697 aix[4-9]*)
d7040cdb
SE
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.
e81819a5 7717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
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
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800
7801int
7802main ()
7803{
7804
7805 ;
7806 return 0;
7807}
7808_ACEOF
7809rm -f conftest.$ac_objext conftest$ac_exeext
7810if { (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); } &&
1b315056 7818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
7831lt_aix_libpath_sed='
7832 /Import File Strings/,/^$/ {
7833 /^0/ {
7834 s/^0 *\(.*\)$/\1/
7835 p
7836 }
7837 }'
7838aix_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.
7840if test -z "$aix_libpath"; then
7841 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7842fi
7843else
7844 echo "$as_me: failed program was:" >&5
7845sed 's/^/| /' conftest.$ac_ext >&5
7846
7847fi
7848rm -f conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7850if 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
7865cat confdefs.h >>conftest.$ac_ext
7866cat >>conftest.$ac_ext <<_ACEOF
7867/* end confdefs.h. */
7868
7869int
7870main ()
7871{
7872
7873 ;
7874 return 0;
7875}
7876_ACEOF
7877rm -f conftest.$ac_objext conftest$ac_exeext
7878if { (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); } &&
1b315056 7886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
7899lt_aix_libpath_sed='
7900 /Import File Strings/,/^$/ {
7901 /^0/ {
7902 s/^0 *\(.*\)$/\1/
7903 p
7904 }
7905 }'
7906aix_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.
7908if test -z "$aix_libpath"; then
7909 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7910fi
7911else
7912 echo "$as_me: failed program was:" >&5
7913sed 's/^/| /' conftest.$ac_ext >&5
7914
7915fi
7916rm -f conftest.err conftest.$ac_objext \
7917 conftest$ac_exeext conftest.$ac_ext
7918if 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
7994else
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
8010fi
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
8168int foo(void) {}
8169_ACEOF
8170rm -f conftest.$ac_objext conftest$ac_exeext
8171if { (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); } &&
1b315056 8179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
8193else
8194 echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197fi
8198rm -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
8451echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8452echo "${ECHO_T}$ld_shlibs" >&6
8453test "$ld_shlibs" = no && can_build_shared=no
8454
8455with_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#
8474case "x$archive_cmds_need_lc" in
8475x|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
8489echo $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
8527echo "${ECHO_T}$archive_cmds_need_lc" >&6
8528 ;;
8529 esac
8530 fi
8531 ;;
8532esac
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
8691echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8692withGCC=$GCC
8693if 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 '
8721BEGIN {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`
8741else
8742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8743fi
8744library_names_spec=
8745libname_spec='lib$name'
8746soname_spec=
8747shrext_cmds=".so"
8748postinstall_cmds=
8749postuninstall_cmds=
8750finish_cmds=
8751finish_eval=
8752shlibpath_var=
8753shlibpath_overrides_runpath=unknown
8754version_type=none
8755dynamic_linker="$host_os ld.so"
8756sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757need_lib_prefix=unknown
8758hardcode_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
8762need_version=unknown
8763
8764case $host_os in
8765aix3*)
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
e81819a5 8774aix[4-9]*)
d7040cdb
SE
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
8818amigaos*)
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
8828beos*)
8829 library_names_spec='${libname}${shared_ext}'
8830 dynamic_linker="$host_os ld.so"
8831 shlibpath_var=LIBRARY_PATH
8832 ;;
8833
8834bsdi[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
8848cygwin* | 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
8910darwin* | 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
8925dgux*)
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
8934freebsd1*)
8935 dynamic_linker=no
8936 ;;
8937
8938freebsd* | 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
8982gnu*)
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
8992hpux9* | 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
9038interix[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
9050irix5* | 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.
9088linux*oldld* | linux*aout* | linux*coff*)
9089 dynamic_linker=no
9090 ;;
9091
9092# This must be Linux ELF.
9093linux* | 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
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h. */
9113
9114int
9115main ()
9116{
9117
9118 ;
9119 return 0;
9120}
9121_ACEOF
9122rm -f conftest.$ac_objext conftest$ac_exeext
9123if { (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); } &&
1b315056 9131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
9145fi
9146
9147else
9148 echo "$as_me: failed program was:" >&5
9149sed 's/^/| /' conftest.$ac_ext >&5
9150
9151fi
9152rm -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
9177netbsd*)
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
9195newsos6)
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
9214openbsd*)
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
9240os2*)
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
9249osf3* | 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
9260rdos*)
9261 dynamic_linker=no
9262 ;;
9263
9264solaris*)
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
9277sunos4*)
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
9289sysv4 | 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
9312sysv4*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
9321sysv5* | 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
9343tpf*)
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
9354uts4*)
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 ;;
9364esac
9365echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9366echo "${ECHO_T}$dynamic_linker" >&6
9367test "$dynamic_linker" = no && can_build_shared=no
9368
9369variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9370if test "$GCC" = yes; then
9371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9372fi
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
9461echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9462hardcode_action=
9463if 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
9480else
9481 # We cannot hardcode anything, or else we can only hardcode existing
9482 # directories.
9483 hardcode_action=unsupported
9484fi
9485echo "$as_me:$LINENO: result: $hardcode_action" >&5
9486echo "${ECHO_T}$hardcode_action" >&6
9487
9488if test "$hardcode_action" = relink ||
9489 test "$inherit_rpath" = yes; then
9490 # Fast installation is not supported
9491 enable_fast_install=no
9492elif test "$shlibpath_overrides_runpath" = yes ||
9493 test "$enable_shared" = no; then
9494 # Fast installation is not necessary
9495 enable_fast_install=needless
9496fi
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
9507else
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
9531echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9532if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534else
9535 ac_check_lib_save_LIBS=$LIBS
9536LIBS="-ldl $LIBS"
9537cat >conftest.$ac_ext <<_ACEOF
9538/* confdefs.h. */
9539_ACEOF
9540cat confdefs.h >>conftest.$ac_ext
9541cat >>conftest.$ac_ext <<_ACEOF
9542/* end confdefs.h. */
9543
9544/* Override any gcc2 internal prototype to avoid an error. */
9545#ifdef __cplusplus
9546extern "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. */
9550char dlopen ();
9551int
9552main ()
9553{
9554dlopen ();
9555 ;
9556 return 0;
9557}
9558_ACEOF
9559rm -f conftest.$ac_objext conftest$ac_exeext
9560if { (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); } &&
1b315056 9568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
9581else
9582 echo "$as_me: failed program was:" >&5
9583sed 's/^/| /' conftest.$ac_ext >&5
9584
9585ac_cv_lib_dl_dlopen=no
9586fi
9587rm -f conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589LIBS=$ac_check_lib_save_LIBS
9590fi
9591echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9592echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9593if test $ac_cv_lib_dl_dlopen = yes; then
9594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9595else
9596
9597 lt_cv_dlopen="dyld"
9598 lt_cv_dlopen_libs=
9599 lt_cv_dlopen_self=yes
9600
9601fi
9602
9603 ;;
9604
9605 *)
9606 echo "$as_me:$LINENO: checking for shl_load" >&5
9607echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9608if test "${ac_cv_func_shl_load+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610else
9611 cat >conftest.$ac_ext <<_ACEOF
9612/* confdefs.h. */
9613_ACEOF
9614cat confdefs.h >>conftest.$ac_ext
9615cat >>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
9636extern "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. */
9641char 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)
9646choke me
9647#else
9648char (*f) () = shl_load;
9649#endif
9650#ifdef __cplusplus
9651}
9652#endif
9653
9654int
9655main ()
9656{
9657return f != shl_load;
9658 ;
9659 return 0;
9660}
9661_ACEOF
9662rm -f conftest.$ac_objext conftest$ac_exeext
9663if { (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); } &&
1b315056 9671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
9684else
9685 echo "$as_me: failed program was:" >&5
9686sed 's/^/| /' conftest.$ac_ext >&5
9687
9688ac_cv_func_shl_load=no
9689fi
9690rm -f conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692fi
9693echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9694echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9695if test $ac_cv_func_shl_load = yes; then
9696 lt_cv_dlopen="shl_load"
9697else
9698 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9699echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9700if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703 ac_check_lib_save_LIBS=$LIBS
9704LIBS="-ldld $LIBS"
9705cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h. */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h. */
9711
9712/* Override any gcc2 internal prototype to avoid an error. */
9713#ifdef __cplusplus
9714extern "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. */
9718char shl_load ();
9719int
9720main ()
9721{
9722shl_load ();
9723 ;
9724 return 0;
9725}
9726_ACEOF
9727rm -f conftest.$ac_objext conftest$ac_exeext
9728if { (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); } &&
1b315056 9736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
9749else
9750 echo "$as_me: failed program was:" >&5
9751sed 's/^/| /' conftest.$ac_ext >&5
9752
9753ac_cv_lib_dld_shl_load=no
9754fi
9755rm -f conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757LIBS=$ac_check_lib_save_LIBS
9758fi
9759echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9760echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9761if test $ac_cv_lib_dld_shl_load = yes; then
9762 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9763else
9764 echo "$as_me:$LINENO: checking for dlopen" >&5
9765echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9766if test "${ac_cv_func_dlopen+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768else
9769 cat >conftest.$ac_ext <<_ACEOF
9770/* confdefs.h. */
9771_ACEOF
9772cat confdefs.h >>conftest.$ac_ext
9773cat >>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
9794extern "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. */
9799char 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)
9804choke me
9805#else
9806char (*f) () = dlopen;
9807#endif
9808#ifdef __cplusplus
9809}
9810#endif
9811
9812int
9813main ()
9814{
9815return f != dlopen;
9816 ;
9817 return 0;
9818}
9819_ACEOF
9820rm -f conftest.$ac_objext conftest$ac_exeext
9821if { (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); } &&
1b315056 9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
9842else
9843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846ac_cv_func_dlopen=no
9847fi
9848rm -f conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850fi
9851echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9852echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9853if test $ac_cv_func_dlopen = yes; then
9854 lt_cv_dlopen="dlopen"
9855else
9856 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9857echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9858if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861 ac_check_lib_save_LIBS=$LIBS
9862LIBS="-ldl $LIBS"
9863cat >conftest.$ac_ext <<_ACEOF
9864/* confdefs.h. */
9865_ACEOF
9866cat confdefs.h >>conftest.$ac_ext
9867cat >>conftest.$ac_ext <<_ACEOF
9868/* end confdefs.h. */
9869
9870/* Override any gcc2 internal prototype to avoid an error. */
9871#ifdef __cplusplus
9872extern "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. */
9876char dlopen ();
9877int
9878main ()
9879{
9880dlopen ();
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext conftest$ac_exeext
9886if { (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); } &&
1b315056 9894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
9907else
9908 echo "$as_me: failed program was:" >&5
9909sed 's/^/| /' conftest.$ac_ext >&5
9910
9911ac_cv_lib_dl_dlopen=no
9912fi
9913rm -f conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext conftest.$ac_ext
9915LIBS=$ac_check_lib_save_LIBS
9916fi
9917echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9918echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9919if test $ac_cv_lib_dl_dlopen = yes; then
9920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9921else
9922 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9923echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9924if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926else
9927 ac_check_lib_save_LIBS=$LIBS
9928LIBS="-lsvld $LIBS"
9929cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h. */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h. */
9935
9936/* Override any gcc2 internal prototype to avoid an error. */
9937#ifdef __cplusplus
9938extern "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. */
9942char dlopen ();
9943int
9944main ()
9945{
9946dlopen ();
9947 ;
9948 return 0;
9949}
9950_ACEOF
9951rm -f conftest.$ac_objext conftest$ac_exeext
9952if { (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); } &&
1b315056 9960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
9973else
9974 echo "$as_me: failed program was:" >&5
9975sed 's/^/| /' conftest.$ac_ext >&5
9976
9977ac_cv_lib_svld_dlopen=no
9978fi
9979rm -f conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981LIBS=$ac_check_lib_save_LIBS
9982fi
9983echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9984echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9985if test $ac_cv_lib_svld_dlopen = yes; then
9986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9987else
9988 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9989echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9990if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992else
9993 ac_check_lib_save_LIBS=$LIBS
9994LIBS="-ldld $LIBS"
9995cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h. */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h. */
10001
10002/* Override any gcc2 internal prototype to avoid an error. */
10003#ifdef __cplusplus
10004extern "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. */
10008char dld_link ();
10009int
10010main ()
10011{
10012dld_link ();
10013 ;
10014 return 0;
10015}
10016_ACEOF
10017rm -f conftest.$ac_objext conftest$ac_exeext
10018if { (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); } &&
1b315056 10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
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
10039else
10040 echo "$as_me: failed program was:" >&5
10041sed 's/^/| /' conftest.$ac_ext >&5
10042
10043ac_cv_lib_dld_dld_link=no
10044fi
10045rm -f conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047LIBS=$ac_check_lib_save_LIBS
10048fi
10049echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10050echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10051if test $ac_cv_lib_dld_dld_link = yes; then
10052 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10053fi
10054
10055
10056fi
10057
10058
10059fi
10060
10061
10062fi
10063
10064
10065fi
10066
10067
10068fi
10069
10070 ;;
10071 esac
10072
10073 if test "x$lt_cv_dlopen" != xno; then
10074 enable_dlopen=yes
20e95c23 10075 else
d7040cdb 10076 enable_dlopen=no
252b5132 10077 fi
5464f5a1 10078
d7040cdb
SE
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
10091echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10092if test "${lt_cv_dlopen_self+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10094else
d7040cdb
SE
10095 if test "$cross_compiling" = yes; then :
10096 lt_cv_dlopen_self=cross
10097else
10098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10099 lt_status=$lt_dlunknown
10100 cat > conftest.$ac_ext <<_LT_EOF
1b315056 10101#line 10101 "configure"
d7040cdb
SE
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
10143extern "C" void exit (int);
10144#endif
10145
10146void fnord() { int i=42;}
10147int 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
252b5132 10180fi
d7040cdb 10181rm -fr conftest*
20e95c23 10182
d7040cdb
SE
10183
10184fi
10185echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10186echo "${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
10191echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10192if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194else
d7040cdb
SE
10195 if test "$cross_compiling" = yes; then :
10196 lt_cv_dlopen_self_static=cross
10197else
10198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10199 lt_status=$lt_dlunknown
10200 cat > conftest.$ac_ext <<_LT_EOF
1b315056 10201#line 10201 "configure"
d7040cdb
SE
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
10243extern "C" void exit (int);
10244#endif
10245
10246void fnord() { int i=42;}
10247int 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
10280fi
10281rm -fr conftest*
10282
10283
10284fi
10285echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10286echo "${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
10304fi
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322striplib=
10323old_striplib=
10324echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10325echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10326if 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
10330echo "${ECHO_T}yes" >&6
10331else
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
10339echo "${ECHO_T}yes" >&6
10340 else
10341 echo "$as_me:$LINENO: result: no" >&5
10342echo "${ECHO_T}no" >&6
10343 fi
20e95c23
DJ
10344 ;;
10345 *)
d7040cdb
SE
10346 echo "$as_me:$LINENO: result: no" >&5
10347echo "${ECHO_T}no" >&6
10348 ;;
10349 esac
10350fi
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
10365echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10366 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10367echo "${ECHO_T}$can_build_shared" >&6
10368
10369 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10370echo $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
e81819a5 10384 aix[4-9]*)
d7040cdb
SE
10385 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10386 test "$enable_shared" = yes && enable_static=no
10387 fi
20e95c23 10388 ;;
d7040cdb
SE
10389 esac
10390 echo "$as_me:$LINENO: result: $enable_shared" >&5
10391echo "${ECHO_T}$enable_shared" >&6
10392
10393 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10394echo $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
10398echo "${ECHO_T}$enable_static" >&6
10399
10400
10401
10402
10403fi
10404ac_ext=c
10405ac_cpp='$CPP $CPPFLAGS'
10406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10408ac_compiler_gnu=$ac_cv_c_compiler_gnu
10409
10410CC="$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.
10434if 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
10440echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10441 { (exit 1); exit 1; }; } ;;
10442esac
10443else
10444 want64=false
504b7d20
NC
10445fi;
10446# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
10447if 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
10451echo "$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 ;;
10456esac
504b7d20
NC
10457fi;
10458# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
d7040cdb
SE
10459if 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
10465echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10466 { (exit 1); exit 1; }; } ;;
10467esac
10468fi;
504b7d20 10469
d7040cdb
SE
10470# Check whether --with-mmap or --without-mmap was given.
10471if 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
10477echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10478 { (exit 1); exit 1; }; } ;;
20e95c23 10479esac
252b5132 10480else
d7040cdb
SE
10481 want_mmap=false
10482fi;
10483# Check whether --enable-secureplt or --disable-secureplt was given.
10484if 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
10490echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10491 { (exit 1); exit 1; }; } ;;
10492esac
252b5132 10493else
d7040cdb
SE
10494 use_secureplt=false
10495fi; if test $use_secureplt = true; then
10496
10497cat >>confdefs.h <<\_ACEOF
10498#define USE_SECUREPLT 1
10499_ACEOF
5464f5a1 10500
252b5132 10501fi
20e95c23 10502
0d4a1476
AS
10503DEBUGDIR=${libdir}/debug
10504
0d4a1476
AS
10505# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10506if test "${with_separate_debug_dir+set}" = set; then
10507 withval="$with_separate_debug_dir"
10508 DEBUGDIR="${withval}"
10509fi;
10510
10511
504b7d20
NC
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.
10515if 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
10521echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10522 { (exit 1); exit 1; }; } ;;
10523 esac
10524else
10525 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
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.
504b7d20 10530 want_elf_stt_common=false
504b7d20
NC
10531fi; if test $want_elf_stt_common = true; then
10532
10533cat >>confdefs.h <<\_ACEOF
10534#define USE_STT_COMMON 1
10535_ACEOF
10536
10537fi
10538
10539
d7040cdb 10540
d7040cdb
SE
10541# Check whether --with-pkgversion or --without-pkgversion was given.
10542if 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
10546echo "$as_me: error: package version not specified" >&2;}
10547 { (exit 1); exit 1; }; } ;;
10548 no) PKGVERSION= ;;
10549 *) PKGVERSION="($withval) " ;;
10550 esac
252b5132 10551else
d7040cdb 10552 PKGVERSION="(GNU Binutils) "
252b5132 10553
d7040cdb 10554fi;
20e95c23
DJ
10555
10556
5464f5a1 10557
20e95c23 10558
d7040cdb
SE
10559# Check whether --with-bugurl or --without-bugurl was given.
10560if 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
10564echo "$as_me: error: bug URL not specified" >&2;}
10565 { (exit 1); exit 1; }; } ;;
10566 no) BUGURL=
10567 ;;
10568 *) BUGURL="$withval"
10569 ;;
10570 esac
252b5132 10571else
d7040cdb
SE
10572 BUGURL="http://www.sourceware.org/bugzilla/"
10573
10574fi;
10575 case ${BUGURL} in
10576 "")
10577 REPORT_BUGS_TO=
10578 REPORT_BUGS_TEXI=
20e95c23
DJ
10579 ;;
10580 *)
d7040cdb
SE
10581 REPORT_BUGS_TO="<$BUGURL>"
10582 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 10583 ;;
d7040cdb
SE
10584 esac;
10585
10586
10587
10588
10589
10590GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10591
10592# Check whether --enable-werror or --disable-werror was given.
10593if 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
10599echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10600 { (exit 1); exit 1; }; } ;;
10601 esac
10602fi;
10603
bb8541b9
L
10604# Enable -Wno-format by default when using gcc on mingw
10605case "${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 *) ;;
10612esac
10613
d7040cdb
SE
10614# Enable -Werror by default when using gcc
10615if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10616 ERROR_ON_WARNING=yes
10617fi
10618
10619NO_WERROR=
10620if test "${ERROR_ON_WARNING}" = yes ; then
10621 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10622 NO_WERROR="-Wno-error"
10623fi
10624
10625if test "${GCC}" = yes ; then
10626 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10627fi
10628
10629# Check whether --enable-build-warnings or --disable-build-warnings was given.
10630if 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"`;;
20e95c23 10642esac
d7040cdb
SE
10643fi;
10644
10645if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10646 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 10647fi
d7040cdb
SE
10648
10649
10650
10651
10652
10653 ac_config_headers="$ac_config_headers config.h:config.in"
10654
10655
10656if test -z "$target" ; then
10657 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10658echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10659 { (exit 1); exit 1; }; }
20e95c23
DJ
10660fi
10661
d7040cdb
SE
10662echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10663echo $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.
10665if test "${enable_maintainer_mode+set}" = set; then
10666 enableval="$enable_maintainer_mode"
10667 USE_MAINTAINER_MODE=$enableval
10668else
10669 USE_MAINTAINER_MODE=no
10670fi;
10671 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10672echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
10673
10674
d7040cdb
SE
10675if test $USE_MAINTAINER_MODE = yes; then
10676 MAINTAINER_MODE_TRUE=
10677 MAINTAINER_MODE_FALSE='#'
10678else
10679 MAINTAINER_MODE_TRUE='#'
10680 MAINTAINER_MODE_FALSE=
6be7c12c 10681fi
5464f5a1 10682
d7040cdb
SE
10683 MAINT=$MAINTAINER_MODE_TRUE
10684
10685
10686
10687
10688if false; then
10689 GENINSRC_NEVER_TRUE=
10690 GENINSRC_NEVER_FALSE='#'
20e95c23 10691else
d7040cdb
SE
10692 GENINSRC_NEVER_TRUE='#'
10693 GENINSRC_NEVER_FALSE=
5464f5a1 10694fi
5464f5a1 10695
d7040cdb
SE
10696 case ${build_alias} in
10697 "") build_noncanonical=${build} ;;
10698 *) build_noncanonical=${build_alias} ;;
20e95c23 10699esac
d7040cdb
SE
10700
10701 case ${host_alias} in
10702 "") host_noncanonical=${build_noncanonical} ;;
10703 *) host_noncanonical=${host_alias} ;;
10704esac
10705
10706 case ${target_alias} in
10707 "") target_noncanonical=${host_noncanonical} ;;
10708 *) target_noncanonical=${target_alias} ;;
10709esac
10710
10711echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10712echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10713 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10714if test "${enable_install_libbfd+set}" = set; then
10715 enableval="$enable_install_libbfd"
10716 install_libbfd_p=$enableval
252b5132 10717else
d7040cdb
SE
10718 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10719 install_libbfd_p=yes
10720 else
10721 install_libbfd_p=no
10722 fi
10723fi;
10724 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10725echo "${ECHO_T}$install_libbfd_p" >&6
10726
10727
10728if test $install_libbfd_p = yes; then
10729 INSTALL_LIBBFD_TRUE=
10730 INSTALL_LIBBFD_FALSE='#'
10731else
10732 INSTALL_LIBBFD_TRUE='#'
10733 INSTALL_LIBBFD_FALSE=
5464f5a1 10734fi
5464f5a1 10735
d7040cdb 10736 # Need _noncanonical variables for this.
5464f5a1 10737
5464f5a1 10738
d7040cdb
SE
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'
20e95c23 10747 fi
6be7c12c 10748
5464f5a1 10749
5464f5a1
NN
10750
10751
5464f5a1 10752
ac48eca1 10753
d7040cdb
SE
10754host64=false
10755target64=false
10756bfd_default_target_size=32
252b5132 10757
d7040cdb 10758# host stuff:
20e95c23 10759
041a1845 10760ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
d7040cdb
SE
10761# If we haven't got the data from the intl directory,
10762# assume NLS is disabled.
10763USE_NLS=no
10764LIBINTL=
10765LIBINTL_DEP=
10766INCINTL=
10767XGETTEXT=
10768GMSGFMT=
10769POSUB=
10770
10771if test -f ../intl/config.intl; then
10772 . ../intl/config.intl
252b5132 10773fi
d7040cdb
SE
10774echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10775echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10776if test x"$USE_NLS" != xyes; then
10777 echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779else
10780 echo "$as_me:$LINENO: result: yes" >&5
10781echo "${ECHO_T}yes" >&6
5464f5a1 10782
d7040cdb
SE
10783cat >>confdefs.h <<\_ACEOF
10784#define ENABLE_NLS 1
10785_ACEOF
252b5132 10786
6be7c12c 10787
d7040cdb
SE
10788 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10789echo $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
10821echo "${ECHO_T}$LINGUAS" >&6
10822
252b5132 10823
d7040cdb 10824 DATADIRNAME=share
252b5132 10825
d7040cdb 10826 INSTOBJEXT=.mo
5464f5a1 10827
d7040cdb 10828 GENCAT=gencat
20e95c23 10829
d7040cdb 10830 CATOBJEXT=.gmo
5464f5a1 10831
20e95c23 10832fi
5464f5a1 10833
d7040cdb
SE
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"
5464f5a1 10843 fi
5464f5a1 10844
5464f5a1 10845
d7040cdb
SE
10846
10847 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10848echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10849 # Check whether --enable-nls or --disable-nls was given.
10850if test "${enable_nls+set}" = set; then
10851 enableval="$enable_nls"
10852 USE_NLS=$enableval
252b5132 10853else
d7040cdb
SE
10854 USE_NLS=yes
10855fi;
10856 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10857echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 10858
252b5132 10859
5464f5a1 10860
252b5132 10861
d7040cdb
SE
10862
10863
10864# Prepare PATH_SEPARATOR.
10865# The user is always right.
10866if 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=';'
20e95c23 10872 else
d7040cdb 10873 PATH_SEPARATOR=:
20e95c23 10874 fi
d7040cdb
SE
10875 rm -f conf$$.sh
10876fi
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.
10880cat >conf$$.file <<_ASEOF
10881#! /bin/sh
10882exit 0
10883_ASEOF
10884chmod +x conf$$.file
10885if test -x conf$$.file >/dev/null 2>&1; then
10886 ac_executable_p="test -x"
20e95c23 10887else
d7040cdb 10888 ac_executable_p="test -f"
20e95c23 10889fi
d7040cdb 10890rm -f conf$$.file
5464f5a1 10891
d7040cdb
SE
10892# Extract the first word of "msgfmt", so it can be a program name with args.
10893set dummy msgfmt; ac_word=$2
10894echo "$as_me:$LINENO: checking for $ac_word" >&5
10895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10896if test "${ac_cv_path_MSGFMT+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10898else
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 ;;
10921esac
5464f5a1 10922fi
d7040cdb
SE
10923MSGFMT="$ac_cv_path_MSGFMT"
10924if test "$MSGFMT" != ":"; then
10925 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10926echo "${ECHO_T}$MSGFMT" >&6
20e95c23 10927else
d7040cdb
SE
10928 echo "$as_me:$LINENO: result: no" >&5
10929echo "${ECHO_T}no" >&6
252b5132 10930fi
d7040cdb
SE
10931
10932 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10933set dummy gmsgfmt; ac_word=$2
10934echo "$as_me:$LINENO: checking for $ac_word" >&5
10935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10936if test "${ac_cv_path_GMSGFMT+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10938else
d7040cdb
SE
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
10945for as_dir in $PATH
10946do
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
10955done
10956done
5464f5a1 10957
d7040cdb
SE
10958 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10959 ;;
10960esac
252b5132 10961fi
d7040cdb 10962GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 10963
d7040cdb
SE
10964if test -n "$GMSGFMT"; then
10965 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10966echo "${ECHO_T}$GMSGFMT" >&6
252b5132 10967else
d7040cdb
SE
10968 echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6
252b5132
RH
10970fi
10971
20e95c23
DJ
10972
10973
d7040cdb
SE
10974# Prepare PATH_SEPARATOR.
10975# The user is always right.
10976if 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
252b5132 10986fi
20e95c23 10987
d7040cdb
SE
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.
10990cat >conf$$.file <<_ASEOF
10991#! /bin/sh
10992exit 0
10993_ASEOF
10994chmod +x conf$$.file
10995if test -x conf$$.file >/dev/null 2>&1; then
10996 ac_executable_p="test -x"
10997else
10998 ac_executable_p="test -f"
10999fi
11000rm -f conf$$.file
252b5132 11001
d7040cdb
SE
11002# Extract the first word of "xgettext", so it can be a program name with args.
11003set dummy xgettext; ac_word=$2
11004echo "$as_me:$LINENO: checking for $ac_word" >&5
11005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11006if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
d7040cdb
SE
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 ;;
11031esac
11032fi
11033XGETTEXT="$ac_cv_path_XGETTEXT"
11034if test "$XGETTEXT" != ":"; then
11035 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11036echo "${ECHO_T}$XGETTEXT" >&6
252b5132 11037else
d7040cdb
SE
11038 echo "$as_me:$LINENO: result: no" >&5
11039echo "${ECHO_T}no" >&6
252b5132
RH
11040fi
11041
d7040cdb 11042 rm -f messages.po
5464f5a1 11043
252b5132 11044
d7040cdb
SE
11045# Prepare PATH_SEPARATOR.
11046# The user is always right.
11047if 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
252b5132
RH
11057fi
11058
d7040cdb
SE
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.
11061cat >conf$$.file <<_ASEOF
11062#! /bin/sh
11063exit 0
11064_ASEOF
11065chmod +x conf$$.file
11066if test -x conf$$.file >/dev/null 2>&1; then
11067 ac_executable_p="test -x"
5464f5a1 11068else
d7040cdb 11069 ac_executable_p="test -f"
20e95c23 11070fi
d7040cdb 11071rm -f conf$$.file
5464f5a1 11072
d7040cdb
SE
11073# Extract the first word of "msgmerge", so it can be a program name with args.
11074set dummy msgmerge; ac_word=$2
11075echo "$as_me:$LINENO: checking for $ac_word" >&5
11076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11077if test "${ac_cv_path_MSGMERGE+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079else
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 ;;
11101esac
5464f5a1 11102fi
d7040cdb
SE
11103MSGMERGE="$ac_cv_path_MSGMERGE"
11104if test "$MSGMERGE" != ":"; then
11105 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11106echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 11107else
d7040cdb
SE
11108 echo "$as_me:$LINENO: result: no" >&5
11109echo "${ECHO_T}no" >&6
11110fi
20e95c23 11111
5464f5a1 11112
d7040cdb
SE
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
11120echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11121 GMSGFMT=":"
11122 fi
11123 fi
252b5132 11124
d7040cdb
SE
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
11131echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11132 XGETTEXT=":"
11133 fi
11134 rm -f messages.po
11135 fi
6be7c12c 11136
d7040cdb 11137 ac_config_commands="$ac_config_commands default-1"
5464f5a1 11138
252b5132 11139
5464f5a1 11140
d7040cdb
SE
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.
58c85be7 11158# Reject install programs that cannot install multiple files.
d7040cdb
SE
11159echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11160echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11161if test -z "$INSTALL"; then
11162if test "${ac_cv_path_install+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164else
11165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
11170 # Account for people who put trailing slashes in PATH elements.
11171case $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
58c85be7
RW
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
d7040cdb
SE
11204 fi
11205 fi
11206 done
11207 done
11208 ;;
11209esac
11210done
11211
58c85be7 11212rm -rf conftest.one conftest.two conftest.dir
252b5132 11213
d7040cdb
SE
11214fi
11215 if test "${ac_cv_path_install+set}" = set; then
11216 INSTALL=$ac_cv_path_install
11217 else
58c85be7
RW
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
d7040cdb 11220 # break other packages using the cache if that directory is
58c85be7 11221 # removed, or if the value is a relative name.
d7040cdb
SE
11222 INSTALL=$ac_install_sh
11223 fi
11224fi
11225echo "$as_me:$LINENO: result: $INSTALL" >&5
11226echo "${ECHO_T}$INSTALL" >&6
5464f5a1 11227
d7040cdb
SE
11228# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11229# It thinks the first close brace ends the variable substitution.
11230test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 11231
d7040cdb 11232test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 11233
d7040cdb 11234test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 11235
252b5132 11236
d7040cdb 11237BFD_HOST_64BIT_LONG=0
d2df793a 11238BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
11239BFD_HOST_64_BIT_DEFINED=0
11240BFD_HOST_64_BIT=
11241BFD_HOST_U_64_BIT=
d2df793a 11242BFD_HOSTPTR_T="unsigned long"
6be7c12c 11243
d7040cdb
SE
11244echo "$as_me:$LINENO: checking for long long" >&5
11245echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 11246if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 11247 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11248else
5464f5a1
NN
11249 cat >conftest.$ac_ext <<_ACEOF
11250/* confdefs.h. */
11251_ACEOF
11252cat confdefs.h >>conftest.$ac_ext
11253cat >>conftest.$ac_ext <<_ACEOF
11254/* end confdefs.h. */
2ba49b59 11255$ac_includes_default
5464f5a1
NN
11256int
11257main ()
11258{
2ba49b59
KC
11259if ((long long *) 0)
11260 return 0;
11261if (sizeof (long long))
11262 return 0;
5464f5a1
NN
11263 ;
11264 return 0;
11265}
11266_ACEOF
11267rm -f conftest.$ac_objext
11268if { (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); } &&
1b315056 11276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2ba49b59 11288 ac_cv_type_long_long=yes
6726e1ea 11289else
5464f5a1
NN
11290 echo "$as_me: failed program was:" >&5
11291sed 's/^/| /' conftest.$ac_ext >&5
11292
2ba49b59 11293ac_cv_type_long_long=no
6726e1ea 11294fi
5464f5a1 11295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 11296fi
2ba49b59
KC
11297echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11298echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 11299
2ba49b59
KC
11300echo "$as_me:$LINENO: checking size of long long" >&5
11301echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11302if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 11303 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11304else
2ba49b59
KC
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.
11312cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11313/* confdefs.h. */
11314_ACEOF
11315cat confdefs.h >>conftest.$ac_ext
11316cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */
2ba49b59
KC
11318$ac_includes_default
11319int
11320main ()
11321{
11322static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11323test_array [0] = 0
6726e1ea 11324
2ba49b59
KC
11325 ;
11326 return 0;
11327}
11328_ACEOF
11329rm -f conftest.$ac_objext
11330if { (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); } &&
1b315056 11338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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
11355cat confdefs.h >>conftest.$ac_ext
11356cat >>conftest.$ac_ext <<_ACEOF
11357/* end confdefs.h. */
11358$ac_includes_default
5464f5a1
NN
11359int
11360main ()
11361{
2ba49b59
KC
11362static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11363test_array [0] = 0
11364
5464f5a1
NN
11365 ;
11366 return 0;
11367}
11368_ACEOF
11369rm -f conftest.$ac_objext
11370if { (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); } &&
1b315056 11378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2ba49b59 11390 ac_hi=$ac_mid; break
6726e1ea 11391else
5464f5a1
NN
11392 echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
2ba49b59
KC
11395ac_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`
6726e1ea 11401fi
5464f5a1 11402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 11403 done
252b5132 11404else
2ba49b59
KC
11405 echo "$as_me: failed program was:" >&5
11406sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 11407
5464f5a1
NN
11408cat >conftest.$ac_ext <<_ACEOF
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
11414$ac_includes_default
2ba49b59
KC
11415int
11416main ()
11417{
11418static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11419test_array [0] = 0
11420
11421 ;
11422 return 0;
11423}
5464f5a1
NN
11424_ACEOF
11425rm -f conftest.$ac_objext
11426if { (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); } &&
1b315056 11434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2ba49b59
KC
11446 ac_hi=-1 ac_mid=-1
11447 while :; do
11448 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11449/* confdefs.h. */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h. */
2ba49b59
KC
11454$ac_includes_default
11455int
11456main ()
11457{
11458static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11459test_array [0] = 0
11460
11461 ;
11462 return 0;
11463}
5464f5a1 11464_ACEOF
2ba49b59
KC
11465rm -f conftest.$ac_objext
11466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11467 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
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
2ba49b59 11473 (exit $ac_status); } &&
1b315056 11474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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
252b5132 11487else
2ba49b59
KC
11488 echo "$as_me: failed program was:" >&5
11489sed 's/^/| /' conftest.$ac_ext >&5
11490
11491ac_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`
252b5132 11497fi
2ba49b59
KC
11498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11499 done
5464f5a1
NN
11500else
11501 echo "$as_me: failed program was:" >&5
11502sed 's/^/| /' conftest.$ac_ext >&5
11503
2ba49b59 11504ac_lo= ac_hi=
252b5132 11505fi
2ba49b59
KC
11506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11507fi
11508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11509# Binary search between lo and hi bounds.
11510while 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
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
11518$ac_includes_default
11519int
11520main ()
11521{
11522static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11523test_array [0] = 0
5464f5a1 11524
2ba49b59
KC
11525 ;
11526 return 0;
11527}
5464f5a1
NN
11528_ACEOF
11529rm -f conftest.$ac_objext
11530if { (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); } &&
1b315056 11538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2ba49b59 11550 ac_hi=$ac_mid
5464f5a1
NN
11551else
11552 echo "$as_me: failed program was:" >&5
11553sed 's/^/| /' conftest.$ac_ext >&5
11554
2ba49b59 11555ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
11556fi
11557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
11558done
11559case $ac_lo in
11560?*) ac_cv_sizeof_long_long=$ac_lo;;
1b315056 11561'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
2ba49b59
KC
11562See \`config.log' for more details." >&5
11563echo "$as_me: error: cannot compute sizeof (long long), 77
11564See \`config.log' for more details." >&2;}
1b315056 11565 { (exit 1); exit 1; }; } ;;
2ba49b59
KC
11566esac
11567else
11568 if test "$cross_compiling" = yes; then
1b315056
CS
11569 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11570echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11571 { (exit 1); exit 1; }; }
2ba49b59
KC
11572else
11573 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11574/* confdefs.h. */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */
2ba49b59
KC
11579$ac_includes_default
11580long longval () { return (long) (sizeof (long long)); }
11581unsigned long ulongval () { return (long) (sizeof (long long)); }
11582#include <stdio.h>
11583#include <stdlib.h>
11584int
11585main ()
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}
5464f5a1 11610_ACEOF
2ba49b59
KC
11611rm -f conftest$ac_exeext
11612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613 (eval $ac_link) 2>&5
5464f5a1 11614 ac_status=$?
5464f5a1 11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
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`
5464f5a1 11623else
2ba49b59
KC
11624 echo "$as_me: program exited with status $ac_status" >&5
11625echo "$as_me: failed program was:" >&5
5464f5a1
NN
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
2ba49b59
KC
11628( exit $ac_status )
11629{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11630See \`config.log' for more details." >&5
11631echo "$as_me: error: cannot compute sizeof (long long), 77
11632See \`config.log' for more details." >&2;}
1b315056 11633 { (exit 1); exit 1; }; }
252b5132 11634fi
2ba49b59
KC
11635rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11636fi
11637fi
11638rm -f conftest.val
6be7c12c 11639else
2ba49b59 11640 ac_cv_sizeof_long_long=0
5464f5a1 11641fi
5464f5a1 11642fi
2ba49b59
KC
11643echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11644echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11645cat >>confdefs.h <<_ACEOF
11646#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
11647_ACEOF
11648
5464f5a1 11649
d2df793a
NC
11650echo "$as_me:$LINENO: checking for void *" >&5
11651echo $ECHO_N "checking for void *... $ECHO_C" >&6
11652if test "${ac_cv_type_void_p+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654else
11655 cat >conftest.$ac_ext <<_ACEOF
11656/* confdefs.h. */
11657_ACEOF
11658cat confdefs.h >>conftest.$ac_ext
11659cat >>conftest.$ac_ext <<_ACEOF
11660/* end confdefs.h. */
11661$ac_includes_default
11662int
11663main ()
11664{
11665if ((void * *) 0)
11666 return 0;
11667if (sizeof (void *))
11668 return 0;
11669 ;
11670 return 0;
11671}
11672_ACEOF
11673rm -f conftest.$ac_objext
11674if { (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); } &&
1b315056 11682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d2df793a
NC
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
11695else
11696 echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
11699ac_cv_type_void_p=no
11700fi
11701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11702fi
11703echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11704echo "${ECHO_T}$ac_cv_type_void_p" >&6
11705
11706echo "$as_me:$LINENO: checking size of void *" >&5
11707echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11708if test "${ac_cv_sizeof_void_p+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
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.
11718cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
11724$ac_includes_default
11725int
11726main ()
11727{
11728static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11729test_array [0] = 0
11730
11731 ;
11732 return 0;
11733}
11734_ACEOF
11735rm -f conftest.$ac_objext
11736if { (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); } &&
1b315056 11744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d2df793a
NC
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
11761cat confdefs.h >>conftest.$ac_ext
11762cat >>conftest.$ac_ext <<_ACEOF
11763/* end confdefs.h. */
11764$ac_includes_default
11765int
11766main ()
11767{
11768static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11769test_array [0] = 0
11770
11771 ;
11772 return 0;
11773}
11774_ACEOF
11775rm -f conftest.$ac_objext
11776if { (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); } &&
1b315056 11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d2df793a
NC
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
11797else
11798 echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801ac_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`
11807fi
11808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11809 done
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
11814cat >conftest.$ac_ext <<_ACEOF
11815/* confdefs.h. */
11816_ACEOF
11817cat confdefs.h >>conftest.$ac_ext
11818cat >>conftest.$ac_ext <<_ACEOF
11819/* end confdefs.h. */
11820$ac_includes_default
11821int
11822main ()
11823{
11824static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11825test_array [0] = 0
11826
11827 ;
11828 return 0;
11829}
11830_ACEOF
11831rm -f conftest.$ac_objext
11832if { (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); } &&
1b315056 11840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d2df793a
NC
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
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860$ac_includes_default
11861int
11862main ()
11863{
11864static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11865test_array [0] = 0
11866
11867 ;
11868 return 0;
11869}
11870_ACEOF
11871rm -f conftest.$ac_objext
11872if { (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); } &&
1b315056 11880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d2df793a
NC
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
11893else
11894 echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897ac_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`
11903fi
11904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11905 done
11906else
11907 echo "$as_me: failed program was:" >&5
11908sed 's/^/| /' conftest.$ac_ext >&5
11909
11910ac_lo= ac_hi=
11911fi
11912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11913fi
11914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11915# Binary search between lo and hi bounds.
11916while 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
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
11924$ac_includes_default
11925int
11926main ()
11927{
11928static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11929test_array [0] = 0
11930
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935rm -f conftest.$ac_objext
11936if { (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); } &&
1b315056 11944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d2df793a
NC
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
11957else
11958 echo "$as_me: failed program was:" >&5
11959sed 's/^/| /' conftest.$ac_ext >&5
11960
11961ac_lo=`expr '(' $ac_mid ')' + 1`
11962fi
11963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11964done
11965case $ac_lo in
11966?*) ac_cv_sizeof_void_p=$ac_lo;;
1b315056 11967'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d2df793a
NC
11968See \`config.log' for more details." >&5
11969echo "$as_me: error: cannot compute sizeof (void *), 77
11970See \`config.log' for more details." >&2;}
1b315056 11971 { (exit 1); exit 1; }; } ;;
d2df793a
NC
11972esac
11973else
11974 if test "$cross_compiling" = yes; then
1b315056
CS
11975 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11976echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11977 { (exit 1); exit 1; }; }
d2df793a
NC
11978else
11979 cat >conftest.$ac_ext <<_ACEOF
11980/* confdefs.h. */
11981_ACEOF
11982cat confdefs.h >>conftest.$ac_ext
11983cat >>conftest.$ac_ext <<_ACEOF
11984/* end confdefs.h. */
11985$ac_includes_default
11986long longval () { return (long) (sizeof (void *)); }
11987unsigned long ulongval () { return (long) (sizeof (void *)); }
11988#include <stdio.h>
11989#include <stdlib.h>
11990int
11991main ()
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
12017rm -f conftest$ac_exeext
12018if { (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`
12029else
12030 echo "$as_me: program exited with status $ac_status" >&5
12031echo "$as_me: failed program was:" >&5
12032sed 's/^/| /' conftest.$ac_ext >&5
12033
12034( exit $ac_status )
12035{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12036See \`config.log' for more details." >&5
12037echo "$as_me: error: cannot compute sizeof (void *), 77
12038See \`config.log' for more details." >&2;}
1b315056 12039 { (exit 1); exit 1; }; }
d2df793a
NC
12040fi
12041rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12042fi
12043fi
12044rm -f conftest.val
12045else
12046 ac_cv_sizeof_void_p=0
12047fi
12048fi
12049echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12050echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12051cat >>confdefs.h <<_ACEOF
12052#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12053_ACEOF
12054
12055
2ba49b59
KC
12056echo "$as_me:$LINENO: checking for long" >&5
12057echo $ECHO_N "checking for long... $ECHO_C" >&6
12058if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060else
12061 cat >conftest.$ac_ext <<_ACEOF
12062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
2ba49b59 12067$ac_includes_default
5464f5a1
NN
12068int
12069main ()
12070{
2ba49b59
KC
12071if ((long *) 0)
12072 return 0;
12073if (sizeof (long))
12074 return 0;
5464f5a1
NN
12075 ;
12076 return 0;
12077}
12078_ACEOF
12079rm -f conftest.$ac_objext
12080if { (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); } &&
1b315056 12088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2ba49b59 12100 ac_cv_type_long=yes
252b5132 12101else
5464f5a1
NN
12102 echo "$as_me: failed program was:" >&5
12103sed 's/^/| /' conftest.$ac_ext >&5
12104
2ba49b59 12105ac_cv_type_long=no
252b5132 12106fi
5464f5a1 12107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12108fi
2ba49b59
KC
12109echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12110echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 12111
2ba49b59
KC
12112echo "$as_me:$LINENO: checking size of long" >&5
12113echo $ECHO_N "checking size of long... $ECHO_C" >&6
12114if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116else
2ba49b59
KC
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.
12124cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12125/* confdefs.h. */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h. */
2ba49b59 12130$ac_includes_default
5464f5a1
NN
12131int
12132main ()
12133{
2ba49b59
KC
12134static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12135test_array [0] = 0
12136
5464f5a1
NN
12137 ;
12138 return 0;
12139}
12140_ACEOF
12141rm -f conftest.$ac_objext
12142if { (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); } &&
1b315056 12150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2ba49b59
KC
12162 ac_lo=0 ac_mid=0
12163 while :; do
12164 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12165/* confdefs.h. */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h. */
2ba49b59 12170$ac_includes_default
5464f5a1
NN
12171int
12172main ()
12173{
2ba49b59
KC
12174static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12175test_array [0] = 0
12176
5464f5a1
NN
12177 ;
12178 return 0;
12179}
12180_ACEOF
2ba49b59
KC
12181rm -f conftest.$ac_objext
12182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
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); } &&
1b315056 12190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
2ba49b59 12196 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
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
2ba49b59 12202 ac_hi=$ac_mid; break
5464f5a1
NN
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
2ba49b59
KC
12207ac_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`
5464f5a1 12213fi
2ba49b59
KC
12214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215 done
12216else
12217 echo "$as_me: failed program was:" >&5
12218sed 's/^/| /' conftest.$ac_ext >&5
12219
12220cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12221/* confdefs.h. */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h. */
2ba49b59 12226$ac_includes_default
5464f5a1
NN
12227int
12228main ()
12229{
2ba49b59
KC
12230static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12231test_array [0] = 0
12232
5464f5a1
NN
12233 ;
12234 return 0;
12235}
12236_ACEOF
2ba49b59
KC
12237rm -f conftest.$ac_objext
12238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12239 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
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); } &&
1b315056 12246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
2ba49b59 12252 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
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
2ba49b59
KC
12258 ac_hi=-1 ac_mid=-1
12259 while :; do
12260 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
2ba49b59 12266$ac_includes_default
5464f5a1
NN
12267int
12268main ()
12269{
2ba49b59
KC
12270static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12271test_array [0] = 0
12272
5464f5a1
NN
12273 ;
12274 return 0;
12275}
12276_ACEOF
2ba49b59
KC
12277rm -f conftest.$ac_objext
12278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
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); } &&
1b315056 12286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
2ba49b59 12292 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
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
2ba49b59 12298 ac_lo=$ac_mid; break
5464f5a1
NN
12299else
12300 echo "$as_me: failed program was:" >&5
12301sed 's/^/| /' conftest.$ac_ext >&5
12302
2ba49b59
KC
12303ac_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`
5464f5a1 12309fi
2ba49b59
KC
12310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12311 done
12312else
12313 echo "$as_me: failed program was:" >&5
12314sed 's/^/| /' conftest.$ac_ext >&5
12315
12316ac_lo= ac_hi=
12317fi
12318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12319fi
12320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12321# Binary search between lo and hi bounds.
12322while 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
5464f5a1
NN
12325/* confdefs.h. */
12326_ACEOF
12327cat confdefs.h >>conftest.$ac_ext
12328cat >>conftest.$ac_ext <<_ACEOF
12329/* end confdefs.h. */
2ba49b59 12330$ac_includes_default
5464f5a1
NN
12331int
12332main ()
12333{
2ba49b59
KC
12334static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12335test_array [0] = 0
12336
5464f5a1
NN
12337 ;
12338 return 0;
12339}
12340_ACEOF
2ba49b59
KC
12341rm -f conftest.$ac_objext
12342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
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); } &&
1b315056 12350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
2ba49b59 12356 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
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
2ba49b59 12362 ac_hi=$ac_mid
5464f5a1
NN
12363else
12364 echo "$as_me: failed program was:" >&5
12365sed 's/^/| /' conftest.$ac_ext >&5
12366
2ba49b59 12367ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 12368fi
2ba49b59
KC
12369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12370done
12371case $ac_lo in
12372?*) ac_cv_sizeof_long=$ac_lo;;
1b315056 12373'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2ba49b59
KC
12374See \`config.log' for more details." >&5
12375echo "$as_me: error: cannot compute sizeof (long), 77
12376See \`config.log' for more details." >&2;}
1b315056 12377 { (exit 1); exit 1; }; } ;;
2ba49b59
KC
12378esac
12379else
12380 if test "$cross_compiling" = yes; then
1b315056
CS
12381 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12382echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12383 { (exit 1); exit 1; }; }
2e0fbf77
JW
12384else
12385 cat >conftest.$ac_ext <<_ACEOF
12386/* confdefs.h. */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h. */
2ba49b59
KC
12391$ac_includes_default
12392long longval () { return (long) (sizeof (long)); }
12393unsigned long ulongval () { return (long) (sizeof (long)); }
12394#include <stdio.h>
12395#include <stdlib.h>
2e0fbf77
JW
12396int
12397main ()
12398{
12399
2ba49b59
KC
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
2e0fbf77
JW
12419 ;
12420 return 0;
12421}
12422_ACEOF
2ba49b59
KC
12423rm -f conftest$ac_exeext
12424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12425 (eval $ac_link) 2>&5
2e0fbf77
JW
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
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
2ba49b59 12434 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 12435else
2ba49b59
KC
12436 echo "$as_me: program exited with status $ac_status" >&5
12437echo "$as_me: failed program was:" >&5
2e0fbf77
JW
12438sed 's/^/| /' conftest.$ac_ext >&5
12439
2ba49b59
KC
12440( exit $ac_status )
12441{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12442See \`config.log' for more details." >&5
12443echo "$as_me: error: cannot compute sizeof (long), 77
12444See \`config.log' for more details." >&2;}
1b315056 12445 { (exit 1); exit 1; }; }
2e0fbf77 12446fi
2ba49b59 12447rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 12448fi
2ba49b59
KC
12449fi
12450rm -f conftest.val
12451else
12452 ac_cv_sizeof_long=0
12453fi
12454fi
12455echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12456echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12457cat >>confdefs.h <<_ACEOF
12458#define SIZEOF_LONG $ac_cv_sizeof_long
12459_ACEOF
12460
12461
d2df793a
NC
12462
12463if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 12464 host64=true
bce5e5c9
AM
12465fi
12466
12467if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
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"
12471elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 12472 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
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"
bce5e5c9
AM
12475 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12476 BFD_HOSTPTR_T="unsigned long long"
12477 fi
2ba49b59
KC
12478fi
12479
12480if 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}"
12484fi
12485
12486
12487
12488
12489
12490
12491
d2df793a 12492
2ba49b59
KC
12493# Put a plausible default for CC_FOR_BUILD in Makefile.
12494if 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
12500fi
12501
12502# Also set EXEEXT_FOR_BUILD.
12503if test "x$cross_compiling" = "xno"; then
12504 EXEEXT_FOR_BUILD='$(EXEEXT)'
12505else
12506 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12507echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12508if test "${bfd_cv_build_exeext+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510else
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
12523fi
12524echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12525echo "${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}
12528fi
12529
12530
12531
12532
12533
12534
12535
12536
8bc9c892
NC
12537
12538for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
12539do
12540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12541if eval "test \"\${$as_ac_Header+set}\" = set"; then
12542 echo "$as_me:$LINENO: checking for $ac_header" >&5
12543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12544if eval "test \"\${$as_ac_Header+set}\" = set"; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546fi
12547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12549else
12550 # Is the header compilable?
12551echo "$as_me:$LINENO: checking $ac_header usability" >&5
12552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12553cat >conftest.$ac_ext <<_ACEOF
12554/* confdefs.h. */
12555_ACEOF
12556cat confdefs.h >>conftest.$ac_ext
12557cat >>conftest.$ac_ext <<_ACEOF
12558/* end confdefs.h. */
12559$ac_includes_default
12560#include <$ac_header>
12561_ACEOF
12562rm -f conftest.$ac_objext
12563if { (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); } &&
1b315056 12571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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
12584else
12585 echo "$as_me: failed program was:" >&5
12586sed 's/^/| /' conftest.$ac_ext >&5
12587
12588ac_header_compiler=no
12589fi
12590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12591echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12592echo "${ECHO_T}$ac_header_compiler" >&6
12593
12594# Is the header present?
12595echo "$as_me:$LINENO: checking $ac_header presence" >&5
12596echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12597cat >conftest.$ac_ext <<_ACEOF
12598/* confdefs.h. */
12599_ACEOF
12600cat confdefs.h >>conftest.$ac_ext
12601cat >>conftest.$ac_ext <<_ACEOF
12602/* end confdefs.h. */
12603#include <$ac_header>
12604_ACEOF
12605if { (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
12619else
12620 ac_cpp_err=yes
12621fi
12622if test -z "$ac_cpp_err"; then
12623 ac_header_preproc=yes
12624else
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
12628 ac_header_preproc=no
12629fi
12630rm -f conftest.err conftest.$ac_ext
12631echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12632echo "${ECHO_T}$ac_header_preproc" >&6
12633
12634# So? What about this header?
12635case $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
12638echo "$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
12640echo "$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
12645echo "$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
12647echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12649echo "$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
12651echo "$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
12653echo "$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
12655echo "$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 ;;
12665esac
12666echo "$as_me:$LINENO: checking for $ac_header" >&5
12667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12668if eval "test \"\${$as_ac_Header+set}\" = set"; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670else
12671 eval "$as_ac_Header=\$ac_header_preproc"
12672fi
12673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12675
12676fi
12677if 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
12682fi
12683
12684done
12685
12686
12687
12688
12689for ac_header in fcntl.h sys/file.h sys/time.h
12690do
12691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12692if eval "test \"\${$as_ac_Header+set}\" = set"; then
12693 echo "$as_me:$LINENO: checking for $ac_header" >&5
12694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12695if eval "test \"\${$as_ac_Header+set}\" = set"; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697fi
12698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12700else
12701 # Is the header compilable?
12702echo "$as_me:$LINENO: checking $ac_header usability" >&5
12703echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12704cat >conftest.$ac_ext <<_ACEOF
12705/* confdefs.h. */
12706_ACEOF
12707cat confdefs.h >>conftest.$ac_ext
12708cat >>conftest.$ac_ext <<_ACEOF
12709/* end confdefs.h. */
12710$ac_includes_default
12711#include <$ac_header>
12712_ACEOF
12713rm -f conftest.$ac_objext
12714if { (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); } &&
1b315056 12722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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
12735else
12736 echo "$as_me: failed program was:" >&5
12737sed 's/^/| /' conftest.$ac_ext >&5
12738
12739ac_header_compiler=no
12740fi
12741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12742echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12743echo "${ECHO_T}$ac_header_compiler" >&6
12744
12745# Is the header present?
12746echo "$as_me:$LINENO: checking $ac_header presence" >&5
12747echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12748cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h. */
12754#include <$ac_header>
12755_ACEOF
12756if { (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
12770else
12771 ac_cpp_err=yes
12772fi
12773if test -z "$ac_cpp_err"; then
12774 ac_header_preproc=yes
12775else
12776 echo "$as_me: failed program was:" >&5
12777sed 's/^/| /' conftest.$ac_ext >&5
12778
12779 ac_header_preproc=no
12780fi
12781rm -f conftest.err conftest.$ac_ext
12782echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12783echo "${ECHO_T}$ac_header_preproc" >&6
12784
12785# So? What about this header?
12786case $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
12789echo "$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
12791echo "$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
12796echo "$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
12798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12800echo "$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
12802echo "$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
12804echo "$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
12806echo "$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 ;;
12816esac
12817echo "$as_me:$LINENO: checking for $ac_header" >&5
12818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12819if eval "test \"\${$as_ac_Header+set}\" = set"; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821else
12822 eval "$as_ac_Header=\$ac_header_preproc"
12823fi
12824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12826
12827fi
12828if 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
12833fi
12834
12835done
12836
d5efd9fc
AM
12837
12838
12839inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12840
12841acx_cv_header_stdint=stddef.h
12842acx_cv_header_stdint_kind="(already complete)"
12843for 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
12851echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12852if test "${ac_cv_type_uintmax_t+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
12855 cat >conftest.$ac_ext <<_ACEOF
12856/* confdefs.h. */
12857_ACEOF
12858cat confdefs.h >>conftest.$ac_ext
12859cat >>conftest.$ac_ext <<_ACEOF
12860/* end confdefs.h. */
12861#include <sys/types.h>
12862#include <$i>
12863
12864int
12865main ()
12866{
12867if ((uintmax_t *) 0)
12868 return 0;
12869if (sizeof (uintmax_t))
12870 return 0;
12871 ;
12872 return 0;
12873}
12874_ACEOF
12875rm -f conftest.$ac_objext
12876if { (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); } &&
1b315056 12884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
12897else
12898 echo "$as_me: failed program was:" >&5
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
12901ac_cv_type_uintmax_t=no
12902fi
12903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904fi
12905echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12906echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12907if test $ac_cv_type_uintmax_t = yes; then
12908 acx_cv_header_stdint=$i
12909else
12910 continue
12911fi
12912
12913 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12914echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12915if test "${ac_cv_type_uintptr_t+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12917else
12918 cat >conftest.$ac_ext <<_ACEOF
12919/* confdefs.h. */
12920_ACEOF
12921cat confdefs.h >>conftest.$ac_ext
12922cat >>conftest.$ac_ext <<_ACEOF
12923/* end confdefs.h. */
12924#include <sys/types.h>
12925#include <$i>
12926
12927int
12928main ()
12929{
12930if ((uintptr_t *) 0)
12931 return 0;
12932if (sizeof (uintptr_t))
12933 return 0;
12934 ;
12935 return 0;
12936}
12937_ACEOF
12938rm -f conftest.$ac_objext
12939if { (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); } &&
1b315056 12947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
12960else
12961 echo "$as_me: failed program was:" >&5
12962sed 's/^/| /' conftest.$ac_ext >&5
12963
12964ac_cv_type_uintptr_t=no
12965fi
12966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12967fi
12968echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12969echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12970if test $ac_cv_type_uintptr_t = yes; then
12971 :
12972else
12973 acx_cv_header_stdint_kind="(mostly complete)"
12974fi
12975
12976 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12977echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12978if test "${ac_cv_type_int_least32_t+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980else
12981 cat >conftest.$ac_ext <<_ACEOF
12982/* confdefs.h. */
12983_ACEOF
12984cat confdefs.h >>conftest.$ac_ext
12985cat >>conftest.$ac_ext <<_ACEOF
12986/* end confdefs.h. */
12987#include <sys/types.h>
12988#include <$i>
12989
12990int
12991main ()
12992{
12993if ((int_least32_t *) 0)
12994 return 0;
12995if (sizeof (int_least32_t))
12996 return 0;
12997 ;
12998 return 0;
12999}
13000_ACEOF
13001rm -f conftest.$ac_objext
13002if { (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); } &&
1b315056 13010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13023else
13024 echo "$as_me: failed program was:" >&5
13025sed 's/^/| /' conftest.$ac_ext >&5
13026
13027ac_cv_type_int_least32_t=no
13028fi
13029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13030fi
13031echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13032echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13033if test $ac_cv_type_int_least32_t = yes; then
13034 :
13035else
13036 acx_cv_header_stdint_kind="(mostly complete)"
13037fi
13038
13039 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13040echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13041if test "${ac_cv_type_int_fast32_t+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043else
13044 cat >conftest.$ac_ext <<_ACEOF
13045/* confdefs.h. */
13046_ACEOF
13047cat confdefs.h >>conftest.$ac_ext
13048cat >>conftest.$ac_ext <<_ACEOF
13049/* end confdefs.h. */
13050#include <sys/types.h>
13051#include <$i>
13052
13053int
13054main ()
13055{
13056if ((int_fast32_t *) 0)
13057 return 0;
13058if (sizeof (int_fast32_t))
13059 return 0;
13060 ;
13061 return 0;
13062}
13063_ACEOF
13064rm -f conftest.$ac_objext
13065if { (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); } &&
1b315056 13073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13086else
13087 echo "$as_me: failed program was:" >&5
13088sed 's/^/| /' conftest.$ac_ext >&5
13089
13090ac_cv_type_int_fast32_t=no
13091fi
13092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13093fi
13094echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13095echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13096if test $ac_cv_type_int_fast32_t = yes; then
13097 :
13098else
13099 acx_cv_header_stdint_kind="(mostly complete)"
13100fi
13101
13102 echo "$as_me:$LINENO: checking for uint64_t" >&5
13103echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13104if test "${ac_cv_type_uint64_t+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13106else
13107 cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
13113#include <sys/types.h>
13114#include <$i>
13115
13116int
13117main ()
13118{
13119if ((uint64_t *) 0)
13120 return 0;
13121if (sizeof (uint64_t))
13122 return 0;
13123 ;
13124 return 0;
13125}
13126_ACEOF
13127rm -f conftest.$ac_objext
13128if { (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); } &&
1b315056 13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13149else
13150 echo "$as_me: failed program was:" >&5
13151sed 's/^/| /' conftest.$ac_ext >&5
13152
13153ac_cv_type_uint64_t=no
13154fi
13155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13156fi
13157echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13158echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13159if test $ac_cv_type_uint64_t = yes; then
13160 :
13161else
13162 acx_cv_header_stdint_kind="(lacks uint64_t)"
13163fi
13164
13165 break
13166done
13167if 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
13175echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13176if test "${ac_cv_type_uint32_t+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13178else
13179 cat >conftest.$ac_ext <<_ACEOF
13180/* confdefs.h. */
13181_ACEOF
13182cat confdefs.h >>conftest.$ac_ext
13183cat >>conftest.$ac_ext <<_ACEOF
13184/* end confdefs.h. */
13185#include <sys/types.h>
13186#include <$i>
13187
13188int
13189main ()
13190{
13191if ((uint32_t *) 0)
13192 return 0;
13193if (sizeof (uint32_t))
13194 return 0;
13195 ;
13196 return 0;
13197}
13198_ACEOF
13199rm -f conftest.$ac_objext
13200if { (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); } &&
1b315056 13208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13221else
13222 echo "$as_me: failed program was:" >&5
13223sed 's/^/| /' conftest.$ac_ext >&5
13224
13225ac_cv_type_uint32_t=no
13226fi
13227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13228fi
13229echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13230echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13231if test $ac_cv_type_uint32_t = yes; then
13232 acx_cv_header_stdint=$i
13233else
13234 continue
13235fi
13236
13237 echo "$as_me:$LINENO: checking for uint64_t" >&5
13238echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13239if test "${ac_cv_type_uint64_t+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241else
13242 cat >conftest.$ac_ext <<_ACEOF
13243/* confdefs.h. */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
13247/* end confdefs.h. */
13248#include <sys/types.h>
13249#include <$i>
13250
13251int
13252main ()
13253{
13254if ((uint64_t *) 0)
13255 return 0;
13256if (sizeof (uint64_t))
13257 return 0;
13258 ;
13259 return 0;
13260}
13261_ACEOF
13262rm -f conftest.$ac_objext
13263if { (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); } &&
1b315056 13271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13284else
13285 echo "$as_me: failed program was:" >&5
13286sed 's/^/| /' conftest.$ac_ext >&5
13287
13288ac_cv_type_uint64_t=no
13289fi
13290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13291fi
13292echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13293echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13294
13295 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13296echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13297if test "${ac_cv_type_uintptr_t+set}" = set; then
13298 echo $ECHO_N "(cached) $ECHO_C" >&6
13299else
13300 cat >conftest.$ac_ext <<_ACEOF
13301/* confdefs.h. */
13302_ACEOF
13303cat confdefs.h >>conftest.$ac_ext
13304cat >>conftest.$ac_ext <<_ACEOF
13305/* end confdefs.h. */
13306#include <sys/types.h>
13307#include <$i>
13308
13309int
13310main ()
13311{
13312if ((uintptr_t *) 0)
13313 return 0;
13314if (sizeof (uintptr_t))
13315 return 0;
13316 ;
13317 return 0;
13318}
13319_ACEOF
13320rm -f conftest.$ac_objext
13321if { (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); } &&
1b315056 13329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13342else
13343 echo "$as_me: failed program was:" >&5
13344sed 's/^/| /' conftest.$ac_ext >&5
13345
13346ac_cv_type_uintptr_t=no
13347fi
13348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13349fi
13350echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13351echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13352
13353 break
13354 done
13355fi
13356if 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
13363echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13364if test "${ac_cv_type_u_int32_t+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
13367 cat >conftest.$ac_ext <<_ACEOF
13368/* confdefs.h. */
13369_ACEOF
13370cat confdefs.h >>conftest.$ac_ext
13371cat >>conftest.$ac_ext <<_ACEOF
13372/* end confdefs.h. */
13373#include <sys/types.h>
13374#include <$i>
13375
13376int
13377main ()
13378{
13379if ((u_int32_t *) 0)
13380 return 0;
13381if (sizeof (u_int32_t))
13382 return 0;
13383 ;
13384 return 0;
13385}
13386_ACEOF
13387rm -f conftest.$ac_objext
13388if { (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); } &&
1b315056 13396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13409else
13410 echo "$as_me: failed program was:" >&5
13411sed 's/^/| /' conftest.$ac_ext >&5
13412
13413ac_cv_type_u_int32_t=no
13414fi
13415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13416fi
13417echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13418echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13419if test $ac_cv_type_u_int32_t = yes; then
13420 acx_cv_header_stdint=$i
13421else
13422 continue
13423fi
13424
13425 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13426echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13427if test "${ac_cv_type_u_int64_t+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429else
13430 cat >conftest.$ac_ext <<_ACEOF
13431/* confdefs.h. */
13432_ACEOF
13433cat confdefs.h >>conftest.$ac_ext
13434cat >>conftest.$ac_ext <<_ACEOF
13435/* end confdefs.h. */
13436#include <sys/types.h>
13437#include <$i>
13438
13439int
13440main ()
13441{
13442if ((u_int64_t *) 0)
13443 return 0;
13444if (sizeof (u_int64_t))
13445 return 0;
13446 ;
13447 return 0;
13448}
13449_ACEOF
13450rm -f conftest.$ac_objext
13451if { (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); } &&
1b315056 13459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13472else
13473 echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
13476ac_cv_type_u_int64_t=no
13477fi
13478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13479fi
13480echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13481echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13482
13483 break
13484 done
13485fi
13486if test "$acx_cv_header_stdint" = stddef.h; then
13487 acx_cv_header_stdint_kind="(using manual detection)"
13488fi
13489
13490test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13491test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13492test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13493test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13494test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13495
13496# ----------------- Summarize what we found so far
13497
13498echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13499echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13500
13501case `$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 ||
13506echo 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
13512echo "$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
13514echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13515 *) ;;
13516esac
13517
13518echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13519echo "${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 *
13524case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13525 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13526echo $ECHO_N "checking for void *... $ECHO_C" >&6
13527if test "${ac_cv_type_void_p+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529else
13530 cat >conftest.$ac_ext <<_ACEOF
13531/* confdefs.h. */
13532_ACEOF
13533cat confdefs.h >>conftest.$ac_ext
13534cat >>conftest.$ac_ext <<_ACEOF
13535/* end confdefs.h. */
13536$ac_includes_default
13537int
13538main ()
13539{
13540if ((void * *) 0)
13541 return 0;
13542if (sizeof (void *))
13543 return 0;
13544 ;
13545 return 0;
13546}
13547_ACEOF
13548rm -f conftest.$ac_objext
13549if { (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); } &&
1b315056 13557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13570else
13571 echo "$as_me: failed program was:" >&5
13572sed 's/^/| /' conftest.$ac_ext >&5
13573
13574ac_cv_type_void_p=no
13575fi
13576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13577fi
13578echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13579echo "${ECHO_T}$ac_cv_type_void_p" >&6
13580
13581echo "$as_me:$LINENO: checking size of void *" >&5
13582echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13583if test "${ac_cv_sizeof_void_p+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585else
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.
13593cat >conftest.$ac_ext <<_ACEOF
13594/* confdefs.h. */
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
13598/* end confdefs.h. */
13599$ac_includes_default
13600int
13601main ()
13602{
13603static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13604test_array [0] = 0
13605
13606 ;
13607 return 0;
13608}
13609_ACEOF
13610rm -f conftest.$ac_objext
13611if { (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); } &&
1b315056 13619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13636cat confdefs.h >>conftest.$ac_ext
13637cat >>conftest.$ac_ext <<_ACEOF
13638/* end confdefs.h. */
13639$ac_includes_default
13640int
13641main ()
13642{
13643static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13644test_array [0] = 0
13645
13646 ;
13647 return 0;
13648}
13649_ACEOF
13650rm -f conftest.$ac_objext
13651if { (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); } &&
1b315056 13659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13672else
13673 echo "$as_me: failed program was:" >&5
13674sed 's/^/| /' conftest.$ac_ext >&5
13675
13676ac_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`
13682fi
13683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684 done
13685else
13686 echo "$as_me: failed program was:" >&5
13687sed 's/^/| /' conftest.$ac_ext >&5
13688
13689cat >conftest.$ac_ext <<_ACEOF
13690/* confdefs.h. */
13691_ACEOF
13692cat confdefs.h >>conftest.$ac_ext
13693cat >>conftest.$ac_ext <<_ACEOF
13694/* end confdefs.h. */
13695$ac_includes_default
13696int
13697main ()
13698{
13699static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13700test_array [0] = 0
13701
13702 ;
13703 return 0;
13704}
13705_ACEOF
13706rm -f conftest.$ac_objext
13707if { (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); } &&
1b315056 13715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
13735$ac_includes_default
13736int
13737main ()
13738{
13739static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13740test_array [0] = 0
13741
13742 ;
13743 return 0;
13744}
13745_ACEOF
13746rm -f conftest.$ac_objext
13747if { (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); } &&
1b315056 13755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13768else
13769 echo "$as_me: failed program was:" >&5
13770sed 's/^/| /' conftest.$ac_ext >&5
13771
13772ac_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`
13778fi
13779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13780 done
13781else
13782 echo "$as_me: failed program was:" >&5
13783sed 's/^/| /' conftest.$ac_ext >&5
13784
13785ac_lo= ac_hi=
13786fi
13787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13788fi
13789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13790# Binary search between lo and hi bounds.
13791while 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
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799$ac_includes_default
13800int
13801main ()
13802{
13803static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13804test_array [0] = 0
13805
13806 ;
13807 return 0;
13808}
13809_ACEOF
13810rm -f conftest.$ac_objext
13811if { (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); } &&
1b315056 13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13832else
13833 echo "$as_me: failed program was:" >&5
13834sed 's/^/| /' conftest.$ac_ext >&5
13835
13836ac_lo=`expr '(' $ac_mid ')' + 1`
13837fi
13838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13839done
13840case $ac_lo in
13841?*) ac_cv_sizeof_void_p=$ac_lo;;
1b315056 13842'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d5efd9fc
AM
13843See \`config.log' for more details." >&5
13844echo "$as_me: error: cannot compute sizeof (void *), 77
13845See \`config.log' for more details." >&2;}
1b315056 13846 { (exit 1); exit 1; }; } ;;
d5efd9fc
AM
13847esac
13848else
13849 if test "$cross_compiling" = yes; then
1b315056
CS
13850 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13851echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13852 { (exit 1); exit 1; }; }
d5efd9fc
AM
13853else
13854 cat >conftest.$ac_ext <<_ACEOF
13855/* confdefs.h. */
13856_ACEOF
13857cat confdefs.h >>conftest.$ac_ext
13858cat >>conftest.$ac_ext <<_ACEOF
13859/* end confdefs.h. */
13860$ac_includes_default
13861long longval () { return (long) (sizeof (void *)); }
13862unsigned long ulongval () { return (long) (sizeof (void *)); }
13863#include <stdio.h>
13864#include <stdlib.h>
13865int
13866main ()
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
13892rm -f conftest$ac_exeext
13893if { (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`
13904else
13905 echo "$as_me: program exited with status $ac_status" >&5
13906echo "$as_me: failed program was:" >&5
13907sed 's/^/| /' conftest.$ac_ext >&5
13908
13909( exit $ac_status )
13910{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13911See \`config.log' for more details." >&5
13912echo "$as_me: error: cannot compute sizeof (void *), 77
13913See \`config.log' for more details." >&2;}
1b315056 13914 { (exit 1); exit 1; }; }
d5efd9fc
AM
13915fi
13916rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13917fi
13918fi
13919rm -f conftest.val
13920else
13921 ac_cv_sizeof_void_p=0
13922fi
13923fi
13924echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13925echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13926cat >>confdefs.h <<_ACEOF
13927#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13928_ACEOF
13929
13930 ;;
13931esac
13932
13933# Lacking an uint64_t? Test size of long
13934case "$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
13936echo $ECHO_N "checking for long... $ECHO_C" >&6
13937if test "${ac_cv_type_long+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939else
13940 cat >conftest.$ac_ext <<_ACEOF
13941/* confdefs.h. */
13942_ACEOF
13943cat confdefs.h >>conftest.$ac_ext
13944cat >>conftest.$ac_ext <<_ACEOF
13945/* end confdefs.h. */
13946$ac_includes_default
13947int
13948main ()
13949{
13950if ((long *) 0)
13951 return 0;
13952if (sizeof (long))
13953 return 0;
13954 ;
13955 return 0;
13956}
13957_ACEOF
13958rm -f conftest.$ac_objext
13959if { (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); } &&
1b315056 13967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
13980else
13981 echo "$as_me: failed program was:" >&5
13982sed 's/^/| /' conftest.$ac_ext >&5
13983
13984ac_cv_type_long=no
13985fi
13986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13987fi
13988echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13989echo "${ECHO_T}$ac_cv_type_long" >&6
13990
13991echo "$as_me:$LINENO: checking size of long" >&5
13992echo $ECHO_N "checking size of long... $ECHO_C" >&6
13993if test "${ac_cv_sizeof_long+set}" = set; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13995else
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.
14003cat >conftest.$ac_ext <<_ACEOF
14004/* confdefs.h. */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
14008/* end confdefs.h. */
14009$ac_includes_default
14010int
14011main ()
14012{
14013static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14014test_array [0] = 0
14015
14016 ;
14017 return 0;
14018}
14019_ACEOF
14020rm -f conftest.$ac_objext
14021if { (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); } &&
1b315056 14029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14046cat confdefs.h >>conftest.$ac_ext
14047cat >>conftest.$ac_ext <<_ACEOF
14048/* end confdefs.h. */
14049$ac_includes_default
14050int
14051main ()
14052{
14053static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14054test_array [0] = 0
14055
14056 ;
14057 return 0;
14058}
14059_ACEOF
14060rm -f conftest.$ac_objext
14061if { (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); } &&
1b315056 14069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14082else
14083 echo "$as_me: failed program was:" >&5
14084sed 's/^/| /' conftest.$ac_ext >&5
14085
14086ac_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`
14092fi
14093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14094 done
14095else
14096 echo "$as_me: failed program was:" >&5
14097sed 's/^/| /' conftest.$ac_ext >&5
14098
14099cat >conftest.$ac_ext <<_ACEOF
14100/* confdefs.h. */
14101_ACEOF
14102cat confdefs.h >>conftest.$ac_ext
14103cat >>conftest.$ac_ext <<_ACEOF
14104/* end confdefs.h. */
14105$ac_includes_default
14106int
14107main ()
14108{
14109static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14110test_array [0] = 0
14111
14112 ;
14113 return 0;
14114}
14115_ACEOF
14116rm -f conftest.$ac_objext
14117if { (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); } &&
1b315056 14125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14142cat confdefs.h >>conftest.$ac_ext
14143cat >>conftest.$ac_ext <<_ACEOF
14144/* end confdefs.h. */
14145$ac_includes_default
14146int
14147main ()
14148{
14149static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14150test_array [0] = 0
14151
14152 ;
14153 return 0;
14154}
14155_ACEOF
14156rm -f conftest.$ac_objext
14157if { (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); } &&
1b315056 14165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14178else
14179 echo "$as_me: failed program was:" >&5
14180sed 's/^/| /' conftest.$ac_ext >&5
14181
14182ac_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`
14188fi
14189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14190 done
14191else
14192 echo "$as_me: failed program was:" >&5
14193sed 's/^/| /' conftest.$ac_ext >&5
14194
14195ac_lo= ac_hi=
14196fi
14197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14198fi
14199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14200# Binary search between lo and hi bounds.
14201while 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
14206cat confdefs.h >>conftest.$ac_ext
14207cat >>conftest.$ac_ext <<_ACEOF
14208/* end confdefs.h. */
14209$ac_includes_default
14210int
14211main ()
14212{
14213static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14214test_array [0] = 0
14215
14216 ;
14217 return 0;
14218}
14219_ACEOF
14220rm -f conftest.$ac_objext
14221if { (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); } &&
1b315056 14229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14242else
14243 echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246ac_lo=`expr '(' $ac_mid ')' + 1`
14247fi
14248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14249done
14250case $ac_lo in
14251?*) ac_cv_sizeof_long=$ac_lo;;
1b315056 14252'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d5efd9fc
AM
14253See \`config.log' for more details." >&5
14254echo "$as_me: error: cannot compute sizeof (long), 77
14255See \`config.log' for more details." >&2;}
1b315056 14256 { (exit 1); exit 1; }; } ;;
d5efd9fc
AM
14257esac
14258else
14259 if test "$cross_compiling" = yes; then
1b315056
CS
14260 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14261echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
14262 { (exit 1); exit 1; }; }
d5efd9fc
AM
14263else
14264 cat >conftest.$ac_ext <<_ACEOF
14265/* confdefs.h. */
14266_ACEOF
14267cat confdefs.h >>conftest.$ac_ext
14268cat >>conftest.$ac_ext <<_ACEOF
14269/* end confdefs.h. */
14270$ac_includes_default
14271long longval () { return (long) (sizeof (long)); }
14272unsigned long ulongval () { return (long) (sizeof (long)); }
14273#include <stdio.h>
14274#include <stdlib.h>
14275int
14276main ()
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
14302rm -f conftest$ac_exeext
14303if { (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`
14314else
14315 echo "$as_me: program exited with status $ac_status" >&5
14316echo "$as_me: failed program was:" >&5
14317sed 's/^/| /' conftest.$ac_ext >&5
14318
14319( exit $ac_status )
14320{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14321See \`config.log' for more details." >&5
14322echo "$as_me: error: cannot compute sizeof (long), 77
14323See \`config.log' for more details." >&2;}
1b315056 14324 { (exit 1); exit 1; }; }
d5efd9fc
AM
14325fi
14326rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14327fi
14328fi
14329rm -f conftest.val
14330else
14331 ac_cv_sizeof_long=0
14332fi
14333fi
14334echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14335echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14336cat >>confdefs.h <<_ACEOF
14337#define SIZEOF_LONG $ac_cv_sizeof_long
14338_ACEOF
14339
14340 ;;
14341esac
14342
14343if 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
14346echo $ECHO_N "checking for int... $ECHO_C" >&6
14347if test "${ac_cv_type_int+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349else
14350 cat >conftest.$ac_ext <<_ACEOF
14351/* confdefs.h. */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
14356$ac_includes_default
14357int
14358main ()
14359{
14360if ((int *) 0)
14361 return 0;
14362if (sizeof (int))
14363 return 0;
14364 ;
14365 return 0;
14366}
14367_ACEOF
14368rm -f conftest.$ac_objext
14369if { (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); } &&
1b315056 14377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14390else
14391 echo "$as_me: failed program was:" >&5
14392sed 's/^/| /' conftest.$ac_ext >&5
14393
14394ac_cv_type_int=no
14395fi
14396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14397fi
14398echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14399echo "${ECHO_T}$ac_cv_type_int" >&6
14400
14401echo "$as_me:$LINENO: checking size of int" >&5
14402echo $ECHO_N "checking size of int... $ECHO_C" >&6
14403if test "${ac_cv_sizeof_int+set}" = set; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14405else
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.
14413cat >conftest.$ac_ext <<_ACEOF
14414/* confdefs.h. */
14415_ACEOF
14416cat confdefs.h >>conftest.$ac_ext
14417cat >>conftest.$ac_ext <<_ACEOF
14418/* end confdefs.h. */
14419$ac_includes_default
14420int
14421main ()
14422{
14423static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14424test_array [0] = 0
14425
14426 ;
14427 return 0;
14428}
14429_ACEOF
14430rm -f conftest.$ac_objext
14431if { (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); } &&
1b315056 14439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14456cat confdefs.h >>conftest.$ac_ext
14457cat >>conftest.$ac_ext <<_ACEOF
14458/* end confdefs.h. */
14459$ac_includes_default
14460int
14461main ()
14462{
14463static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14464test_array [0] = 0
14465
14466 ;
14467 return 0;
14468}
14469_ACEOF
14470rm -f conftest.$ac_objext
14471if { (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); } &&
1b315056 14479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14492else
14493 echo "$as_me: failed program was:" >&5
14494sed 's/^/| /' conftest.$ac_ext >&5
14495
14496ac_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`
14502fi
14503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14504 done
14505else
14506 echo "$as_me: failed program was:" >&5
14507sed 's/^/| /' conftest.$ac_ext >&5
14508
14509cat >conftest.$ac_ext <<_ACEOF
14510/* confdefs.h. */
14511_ACEOF
14512cat confdefs.h >>conftest.$ac_ext
14513cat >>conftest.$ac_ext <<_ACEOF
14514/* end confdefs.h. */
14515$ac_includes_default
14516int
14517main ()
14518{
14519static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14520test_array [0] = 0
14521
14522 ;
14523 return 0;
14524}
14525_ACEOF
14526rm -f conftest.$ac_objext
14527if { (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); } &&
1b315056 14535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h. */
14555$ac_includes_default
14556int
14557main ()
14558{
14559static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14560test_array [0] = 0
14561
14562 ;
14563 return 0;
14564}
14565_ACEOF
14566rm -f conftest.$ac_objext
14567if { (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); } &&
1b315056 14575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14588else
14589 echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
14592ac_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`
14598fi
14599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14600 done
14601else
14602 echo "$as_me: failed program was:" >&5
14603sed 's/^/| /' conftest.$ac_ext >&5
14604
14605ac_lo= ac_hi=
14606fi
14607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14608fi
14609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14610# Binary search between lo and hi bounds.
14611while 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
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
14618/* end confdefs.h. */
14619$ac_includes_default
14620int
14621main ()
14622{
14623static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14624test_array [0] = 0
14625
14626 ;
14627 return 0;
14628}
14629_ACEOF
14630rm -f conftest.$ac_objext
14631if { (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); } &&
1b315056 14639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14652else
14653 echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
14656ac_lo=`expr '(' $ac_mid ')' + 1`
14657fi
14658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659done
14660case $ac_lo in
14661?*) ac_cv_sizeof_int=$ac_lo;;
1b315056 14662'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d5efd9fc
AM
14663See \`config.log' for more details." >&5
14664echo "$as_me: error: cannot compute sizeof (int), 77
14665See \`config.log' for more details." >&2;}
1b315056 14666 { (exit 1); exit 1; }; } ;;
d5efd9fc
AM
14667esac
14668else
14669 if test "$cross_compiling" = yes; then
1b315056
CS
14670 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14671echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
14672 { (exit 1); exit 1; }; }
d5efd9fc
AM
14673else
14674 cat >conftest.$ac_ext <<_ACEOF
14675/* confdefs.h. */
14676_ACEOF
14677cat confdefs.h >>conftest.$ac_ext
14678cat >>conftest.$ac_ext <<_ACEOF
14679/* end confdefs.h. */
14680$ac_includes_default
14681long longval () { return (long) (sizeof (int)); }
14682unsigned long ulongval () { return (long) (sizeof (int)); }
14683#include <stdio.h>
14684#include <stdlib.h>
14685int
14686main ()
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
14712rm -f conftest$ac_exeext
14713if { (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`
14724else
14725 echo "$as_me: program exited with status $ac_status" >&5
14726echo "$as_me: failed program was:" >&5
14727sed 's/^/| /' conftest.$ac_ext >&5
14728
14729( exit $ac_status )
14730{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14731See \`config.log' for more details." >&5
14732echo "$as_me: error: cannot compute sizeof (int), 77
14733See \`config.log' for more details." >&2;}
1b315056 14734 { (exit 1); exit 1; }; }
d5efd9fc
AM
14735fi
14736rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14737fi
14738fi
14739rm -f conftest.val
14740else
14741 ac_cv_sizeof_int=0
14742fi
14743fi
14744echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14745echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14746cat >>confdefs.h <<_ACEOF
14747#define SIZEOF_INT $ac_cv_sizeof_int
14748_ACEOF
14749
14750
14751 echo "$as_me:$LINENO: checking for short" >&5
14752echo $ECHO_N "checking for short... $ECHO_C" >&6
14753if test "${ac_cv_type_short+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755else
14756 cat >conftest.$ac_ext <<_ACEOF
14757/* confdefs.h. */
14758_ACEOF
14759cat confdefs.h >>conftest.$ac_ext
14760cat >>conftest.$ac_ext <<_ACEOF
14761/* end confdefs.h. */
14762$ac_includes_default
14763int
14764main ()
14765{
14766if ((short *) 0)
14767 return 0;
14768if (sizeof (short))
14769 return 0;
14770 ;
14771 return 0;
14772}
14773_ACEOF
14774rm -f conftest.$ac_objext
14775if { (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); } &&
1b315056 14783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14796else
14797 echo "$as_me: failed program was:" >&5
14798sed 's/^/| /' conftest.$ac_ext >&5
14799
14800ac_cv_type_short=no
14801fi
14802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14803fi
14804echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14805echo "${ECHO_T}$ac_cv_type_short" >&6
14806
14807echo "$as_me:$LINENO: checking size of short" >&5
14808echo $ECHO_N "checking size of short... $ECHO_C" >&6
14809if test "${ac_cv_sizeof_short+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811else
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.
14819cat >conftest.$ac_ext <<_ACEOF
14820/* confdefs.h. */
14821_ACEOF
14822cat confdefs.h >>conftest.$ac_ext
14823cat >>conftest.$ac_ext <<_ACEOF
14824/* end confdefs.h. */
14825$ac_includes_default
14826int
14827main ()
14828{
14829static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14830test_array [0] = 0
14831
14832 ;
14833 return 0;
14834}
14835_ACEOF
14836rm -f conftest.$ac_objext
14837if { (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); } &&
1b315056 14845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14862cat confdefs.h >>conftest.$ac_ext
14863cat >>conftest.$ac_ext <<_ACEOF
14864/* end confdefs.h. */
14865$ac_includes_default
14866int
14867main ()
14868{
14869static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14870test_array [0] = 0
14871
14872 ;
14873 return 0;
14874}
14875_ACEOF
14876rm -f conftest.$ac_objext
14877if { (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); } &&
1b315056 14885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902ac_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`
14908fi
14909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14910 done
14911else
14912 echo "$as_me: failed program was:" >&5
14913sed 's/^/| /' conftest.$ac_ext >&5
14914
14915cat >conftest.$ac_ext <<_ACEOF
14916/* confdefs.h. */
14917_ACEOF
14918cat confdefs.h >>conftest.$ac_ext
14919cat >>conftest.$ac_ext <<_ACEOF
14920/* end confdefs.h. */
14921$ac_includes_default
14922int
14923main ()
14924{
14925static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14926test_array [0] = 0
14927
14928 ;
14929 return 0;
14930}
14931_ACEOF
14932rm -f conftest.$ac_objext
14933if { (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); } &&
1b315056 14941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961$ac_includes_default
14962int
14963main ()
14964{
14965static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14966test_array [0] = 0
14967
14968 ;
14969 return 0;
14970}
14971_ACEOF
14972rm -f conftest.$ac_objext
14973if { (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); } &&
1b315056 14981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
14994else
14995 echo "$as_me: failed program was:" >&5
14996sed 's/^/| /' conftest.$ac_ext >&5
14997
14998ac_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`
15004fi
15005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15006 done
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011ac_lo= ac_hi=
15012fi
15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15014fi
15015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15016# Binary search between lo and hi bounds.
15017while 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
15022cat confdefs.h >>conftest.$ac_ext
15023cat >>conftest.$ac_ext <<_ACEOF
15024/* end confdefs.h. */
15025$ac_includes_default
15026int
15027main ()
15028{
15029static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15030test_array [0] = 0
15031
15032 ;
15033 return 0;
15034}
15035_ACEOF
15036rm -f conftest.$ac_objext
15037if { (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); } &&
1b315056 15045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
15058else
15059 echo "$as_me: failed program was:" >&5
15060sed 's/^/| /' conftest.$ac_ext >&5
15061
15062ac_lo=`expr '(' $ac_mid ')' + 1`
15063fi
15064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15065done
15066case $ac_lo in
15067?*) ac_cv_sizeof_short=$ac_lo;;
1b315056 15068'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d5efd9fc
AM
15069See \`config.log' for more details." >&5
15070echo "$as_me: error: cannot compute sizeof (short), 77
15071See \`config.log' for more details." >&2;}
1b315056 15072 { (exit 1); exit 1; }; } ;;
d5efd9fc
AM
15073esac
15074else
15075 if test "$cross_compiling" = yes; then
1b315056
CS
15076 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15077echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15078 { (exit 1); exit 1; }; }
d5efd9fc
AM
15079else
15080 cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086$ac_includes_default
15087long longval () { return (long) (sizeof (short)); }
15088unsigned long ulongval () { return (long) (sizeof (short)); }
15089#include <stdio.h>
15090#include <stdlib.h>
15091int
15092main ()
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
15118rm -f conftest$ac_exeext
15119if { (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`
15130else
15131 echo "$as_me: program exited with status $ac_status" >&5
15132echo "$as_me: failed program was:" >&5
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
15135( exit $ac_status )
15136{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15137See \`config.log' for more details." >&5
15138echo "$as_me: error: cannot compute sizeof (short), 77
15139See \`config.log' for more details." >&2;}
1b315056 15140 { (exit 1); exit 1; }; }
d5efd9fc
AM
15141fi
15142rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15143fi
15144fi
15145rm -f conftest.val
15146else
15147 ac_cv_sizeof_short=0
15148fi
15149fi
15150echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15151echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15152cat >>confdefs.h <<_ACEOF
15153#define SIZEOF_SHORT $ac_cv_sizeof_short
15154_ACEOF
15155
15156
15157 echo "$as_me:$LINENO: checking for char" >&5
15158echo $ECHO_N "checking for char... $ECHO_C" >&6
15159if test "${ac_cv_type_char+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161else
15162 cat >conftest.$ac_ext <<_ACEOF
15163/* confdefs.h. */
15164_ACEOF
15165cat confdefs.h >>conftest.$ac_ext
15166cat >>conftest.$ac_ext <<_ACEOF
15167/* end confdefs.h. */
15168$ac_includes_default
15169int
15170main ()
15171{
15172if ((char *) 0)
15173 return 0;
15174if (sizeof (char))
15175 return 0;
15176 ;
15177 return 0;
15178}
15179_ACEOF
15180rm -f conftest.$ac_objext
15181if { (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); } &&
1b315056 15189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
15202else
15203 echo "$as_me: failed program was:" >&5
15204sed 's/^/| /' conftest.$ac_ext >&5
15205
15206ac_cv_type_char=no
15207fi
15208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15209fi
15210echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15211echo "${ECHO_T}$ac_cv_type_char" >&6
15212
15213echo "$as_me:$LINENO: checking size of char" >&5
15214echo $ECHO_N "checking size of char... $ECHO_C" >&6
15215if test "${ac_cv_sizeof_char+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15217else
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.
15225cat >conftest.$ac_ext <<_ACEOF
15226/* confdefs.h. */
15227_ACEOF
15228cat confdefs.h >>conftest.$ac_ext
15229cat >>conftest.$ac_ext <<_ACEOF
15230/* end confdefs.h. */
15231$ac_includes_default
15232int
15233main ()
15234{
15235static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15236test_array [0] = 0
15237
15238 ;
15239 return 0;
15240}
15241_ACEOF
15242rm -f conftest.$ac_objext
15243if { (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); } &&
1b315056 15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
15268cat confdefs.h >>conftest.$ac_ext
15269cat >>conftest.$ac_ext <<_ACEOF
15270/* end confdefs.h. */
15271$ac_includes_default
15272int
15273main ()
15274{
15275static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15276test_array [0] = 0
15277
15278 ;
15279 return 0;
15280}
15281_ACEOF
15282rm -f conftest.$ac_objext
15283if { (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); } &&
1b315056 15291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
15304else
15305 echo "$as_me: failed program was:" >&5
15306sed 's/^/| /' conftest.$ac_ext >&5
15307
15308ac_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`
15314fi
15315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15316 done
15317else
15318 echo "$as_me: failed program was:" >&5
15319sed 's/^/| /' conftest.$ac_ext >&5
15320
15321cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
15326/* end confdefs.h. */
15327$ac_includes_default
15328int
15329main ()
15330{
15331static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15332test_array [0] = 0
15333
15334 ;
15335 return 0;
15336}
15337_ACEOF
15338rm -f conftest.$ac_objext
15339if { (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); } &&
1b315056 15347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
15364cat confdefs.h >>conftest.$ac_ext
15365cat >>conftest.$ac_ext <<_ACEOF
15366/* end confdefs.h. */
15367$ac_includes_default
15368int
15369main ()
15370{
15371static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15372test_array [0] = 0
15373
15374 ;
15375 return 0;
15376}
15377_ACEOF
15378rm -f conftest.$ac_objext
15379if { (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); } &&
1b315056 15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
15400else
15401 echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404ac_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`
15410fi
15411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15412 done
15413else
15414 echo "$as_me: failed program was:" >&5
15415sed 's/^/| /' conftest.$ac_ext >&5
15416
15417ac_lo= ac_hi=
15418fi
15419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15420fi
15421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15422# Binary search between lo and hi bounds.
15423while 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
15428cat confdefs.h >>conftest.$ac_ext
15429cat >>conftest.$ac_ext <<_ACEOF
15430/* end confdefs.h. */
15431$ac_includes_default
15432int
15433main ()
15434{
15435static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15436test_array [0] = 0
15437
15438 ;
15439 return 0;
15440}
15441_ACEOF
15442rm -f conftest.$ac_objext
15443if { (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); } &&
1b315056 15451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d5efd9fc
AM
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
15464else
15465 echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
15468ac_lo=`expr '(' $ac_mid ')' + 1`
15469fi
15470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15471done
15472case $ac_lo in
15473?*) ac_cv_sizeof_char=$ac_lo;;
1b315056 15474'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d5efd9fc
AM
15475See \`config.log' for more details." >&5
15476echo "$as_me: error: cannot compute sizeof (char), 77
15477See \`config.log' for more details." >&2;}
1b315056 15478 { (exit 1); exit 1; }; } ;;
d5efd9fc
AM
15479esac
15480else
15481 if test "$cross_compiling" = yes; then
1b315056
CS
15482 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15483echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15484 { (exit 1); exit 1; }; }
d5efd9fc
AM
15485else
15486 cat >conftest.$ac_ext <<_ACEOF
15487/* confdefs.h. */
15488_ACEOF
15489cat confdefs.h >>conftest.$ac_ext
15490cat >>conftest.$ac_ext <<_ACEOF
15491/* end confdefs.h. */
15492$ac_includes_default
15493long longval () { return (long) (sizeof (char)); }
15494unsigned long ulongval () { return (long) (sizeof (char)); }
15495#include <stdio.h>
15496#include <stdlib.h>
15497int
15498main ()
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
15524rm -f conftest$ac_exeext
15525if { (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`
15536else
15537 echo "$as_me: program exited with status $ac_status" >&5
15538echo "$as_me: failed program was:" >&5
15539sed 's/^/| /' conftest.$ac_ext >&5
15540
15541( exit $ac_status )
15542{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15543See \`config.log' for more details." >&5
15544echo "$as_me: error: cannot compute sizeof (char), 77
15545See \`config.log' for more details." >&2;}
1b315056 15546 { (exit 1); exit 1; }; }
d5efd9fc
AM
15547fi
15548rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15549fi
15550fi
15551rm -f conftest.val
15552else
15553 ac_cv_sizeof_char=0
15554fi
15555fi
15556echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15557echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15558cat >>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
15565echo $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
15569echo "$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
15573echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15574
15575 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15576echo $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
15581echo "$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
15585echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15586
15587 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15588echo $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
15593echo "$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
15597echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15598fi
15599
15600# These tests are here to make the output prettier
15601
15602if 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
15607echo $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
15609echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15610fi
15611
15612# Now we can use the above types
15613
15614if test "$ac_cv_type_uintptr_t" != yes; then
15615 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15616echo $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
15622echo "$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
15626echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15627fi
15628
15629# ----------------- done all checks, emit header -------------
15630 ac_config_commands="$ac_config_commands bfd_stdint.h"
15631
15632
15633
2ba49b59
KC
15634echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15635echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15636if test "${ac_cv_header_time+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15638else
15639 cat >conftest.$ac_ext <<_ACEOF
15640/* confdefs.h. */
15641_ACEOF
15642cat confdefs.h >>conftest.$ac_ext
15643cat >>conftest.$ac_ext <<_ACEOF
15644/* end confdefs.h. */
15645#include <sys/types.h>
15646#include <sys/time.h>
15647#include <time.h>
15648
15649int
15650main ()
15651{
15652if ((struct tm *) 0)
15653return 0;
15654 ;
15655 return 0;
15656}
15657_ACEOF
15658rm -f conftest.$ac_objext
15659if { (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); } &&
1b315056 15667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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
15680else
15681 echo "$as_me: failed program was:" >&5
15682sed 's/^/| /' conftest.$ac_ext >&5
15683
15684ac_cv_header_time=no
15685fi
15686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15687fi
15688echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15689echo "${ECHO_T}$ac_cv_header_time" >&6
15690if test $ac_cv_header_time = yes; then
15691
15692cat >>confdefs.h <<\_ACEOF
15693#define TIME_WITH_SYS_TIME 1
15694_ACEOF
15695
15696fi
15697
15698
15699
15700
15701
15702
15703ac_header_dirent=no
15704for 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`
15706echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15707echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15708if eval "test \"\${$as_ac_Header+set}\" = set"; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710else
15711 cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717#include <sys/types.h>
15718#include <$ac_hdr>
15719
15720int
15721main ()
15722{
15723if ((DIR *) 0)
15724return 0;
15725 ;
15726 return 0;
15727}
15728_ACEOF
15729rm -f conftest.$ac_objext
15730if { (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); } &&
1b315056 15738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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"
15751else
15752 echo "$as_me: failed program was:" >&5
15753sed 's/^/| /' conftest.$ac_ext >&5
15754
15755eval "$as_ac_Header=no"
15756fi
15757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758fi
15759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15761if 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
15766ac_header_dirent=$ac_hdr; break
15767fi
15768
15769done
15770# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15771if test $ac_header_dirent = dirent.h; then
15772 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15773echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15774if test "${ac_cv_search_opendir+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776else
15777 ac_func_search_save_LIBS=$LIBS
15778ac_cv_search_opendir=no
15779cat >conftest.$ac_ext <<_ACEOF
15780/* confdefs.h. */
15781_ACEOF
15782cat confdefs.h >>conftest.$ac_ext
15783cat >>conftest.$ac_ext <<_ACEOF
15784/* end confdefs.h. */
15785
15786/* Override any gcc2 internal prototype to avoid an error. */
15787#ifdef __cplusplus
15788extern "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. */
15792char opendir ();
15793int
15794main ()
15795{
15796opendir ();
15797 ;
15798 return 0;
15799}
15800_ACEOF
15801rm -f conftest.$ac_objext conftest$ac_exeext
15802if { (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); } &&
1b315056 15810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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"
15823else
15824 echo "$as_me: failed program was:" >&5
15825sed 's/^/| /' conftest.$ac_ext >&5
15826
15827fi
15828rm -f conftest.err conftest.$ac_objext \
15829 conftest$ac_exeext conftest.$ac_ext
15830if 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
15836cat confdefs.h >>conftest.$ac_ext
15837cat >>conftest.$ac_ext <<_ACEOF
15838/* end confdefs.h. */
15839
15840/* Override any gcc2 internal prototype to avoid an error. */
15841#ifdef __cplusplus
15842extern "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. */
15846char opendir ();
15847int
15848main ()
15849{
15850opendir ();
15851 ;
15852 return 0;
15853}
15854_ACEOF
15855rm -f conftest.$ac_objext conftest$ac_exeext
15856if { (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); } &&
1b315056 15864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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"
15877break
15878else
15879 echo "$as_me: failed program was:" >&5
15880sed 's/^/| /' conftest.$ac_ext >&5
15881
15882fi
15883rm -f conftest.err conftest.$ac_objext \
15884 conftest$ac_exeext conftest.$ac_ext
15885 done
15886fi
15887LIBS=$ac_func_search_save_LIBS
15888fi
15889echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15890echo "${ECHO_T}$ac_cv_search_opendir" >&6
15891if test "$ac_cv_search_opendir" != no; then
15892 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15893
15894fi
15895
15896else
15897 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15898echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15899if test "${ac_cv_search_opendir+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901else
15902 ac_func_search_save_LIBS=$LIBS
15903ac_cv_search_opendir=no
15904cat >conftest.$ac_ext <<_ACEOF
15905/* confdefs.h. */
15906_ACEOF
15907cat confdefs.h >>conftest.$ac_ext
15908cat >>conftest.$ac_ext <<_ACEOF
15909/* end confdefs.h. */
15910
15911/* Override any gcc2 internal prototype to avoid an error. */
15912#ifdef __cplusplus
15913extern "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. */
15917char opendir ();
15918int
15919main ()
15920{
15921opendir ();
15922 ;
15923 return 0;
15924}
15925_ACEOF
15926rm -f conftest.$ac_objext conftest$ac_exeext
15927if { (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); } &&
1b315056 15935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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"
15948else
15949 echo "$as_me: failed program was:" >&5
15950sed 's/^/| /' conftest.$ac_ext >&5
15951
15952fi
15953rm -f conftest.err conftest.$ac_objext \
15954 conftest$ac_exeext conftest.$ac_ext
15955if 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
15961cat confdefs.h >>conftest.$ac_ext
15962cat >>conftest.$ac_ext <<_ACEOF
15963/* end confdefs.h. */
15964
15965/* Override any gcc2 internal prototype to avoid an error. */
15966#ifdef __cplusplus
15967extern "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. */
15971char opendir ();
15972int
15973main ()
15974{
15975opendir ();
15976 ;
15977 return 0;
15978}
15979_ACEOF
15980rm -f conftest.$ac_objext conftest$ac_exeext
15981if { (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); } &&
1b315056 15989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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"
16002break
16003else
16004 echo "$as_me: failed program was:" >&5
16005sed 's/^/| /' conftest.$ac_ext >&5
16006
16007fi
16008rm -f conftest.err conftest.$ac_objext \
16009 conftest$ac_exeext conftest.$ac_ext
16010 done
16011fi
16012LIBS=$ac_func_search_save_LIBS
16013fi
16014echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16015echo "${ECHO_T}$ac_cv_search_opendir" >&6
16016if test "$ac_cv_search_opendir" != no; then
16017 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16018
16019fi
16020
16021fi
16022
16023echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16024echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16025if test "${gcc_cv_header_string+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16027else
16028 cat >conftest.$ac_ext <<_ACEOF
16029/* confdefs.h. */
16030_ACEOF
16031cat confdefs.h >>conftest.$ac_ext
16032cat >>conftest.$ac_ext <<_ACEOF
16033/* end confdefs.h. */
16034#include <string.h>
16035#include <strings.h>
16036int
16037main ()
16038{
16039
16040 ;
16041 return 0;
16042}
16043_ACEOF
16044rm -f conftest.$ac_objext
16045if { (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); } &&
1b315056 16053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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
16066else
16067 echo "$as_me: failed program was:" >&5
16068sed 's/^/| /' conftest.$ac_ext >&5
16069
16070gcc_cv_header_string=no
16071fi
16072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16073fi
16074echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16075echo "${ECHO_T}$gcc_cv_header_string" >&6
16076if test $gcc_cv_header_string = yes; then
16077
16078cat >>confdefs.h <<\_ACEOF
16079#define STRING_WITH_STRINGS 1
16080_ACEOF
16081
2e0fbf77
JW
16082fi
16083
5464f5a1
NN
16084
16085
16086
16087
16088
16089
16090
633fd09f 16091for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 16092do
5464f5a1
NN
16093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16094echo "$as_me:$LINENO: checking for $ac_func" >&5
16095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16096if eval "test \"\${$as_ac_var+set}\" = set"; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16098else
16099 cat >conftest.$ac_ext <<_ACEOF
16100/* confdefs.h. */
16101_ACEOF
16102cat confdefs.h >>conftest.$ac_ext
16103cat >>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
252b5132 16109/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
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
6be7c12c 16119
5464f5a1 16120#undef $ac_func
252b5132 16121
5464f5a1
NN
16122/* Override any gcc2 internal prototype to avoid an error. */
16123#ifdef __cplusplus
16124extern "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. */
16129char $ac_func ();
252b5132
RH
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)
16134choke me
16135#else
5464f5a1
NN
16136char (*f) () = $ac_func;
16137#endif
16138#ifdef __cplusplus
16139}
252b5132
RH
16140#endif
16141
5464f5a1
NN
16142int
16143main ()
16144{
16145return f != $ac_func;
16146 ;
16147 return 0;
16148}
16149_ACEOF
16150rm -f conftest.$ac_objext conftest$ac_exeext
16151if { (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); } &&
1b315056 16159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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"
16172else
16173 echo "$as_me: failed program was:" >&5
16174sed 's/^/| /' conftest.$ac_ext >&5
16175
16176eval "$as_ac_var=no"
16177fi
16178rm -f conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16180fi
16181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16183if 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
252b5132 16187
252b5132
RH
16188fi
16189done
16190
5464f5a1 16191
49c97a80
ILT
16192for ac_func in strtoull
16193do
5464f5a1
NN
16194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16195echo "$as_me:$LINENO: checking for $ac_func" >&5
16196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16197if eval "test \"\${$as_ac_var+set}\" = set"; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16199else
16200 cat >conftest.$ac_ext <<_ACEOF
16201/* confdefs.h. */
16202_ACEOF
16203cat confdefs.h >>conftest.$ac_ext
16204cat >>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
49c97a80 16210/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
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
49c97a80 16220
5464f5a1 16221#undef $ac_func
49c97a80 16222
5464f5a1
NN
16223/* Override any gcc2 internal prototype to avoid an error. */
16224#ifdef __cplusplus
16225extern "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. */
16230char $ac_func ();
49c97a80
ILT
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)
16235choke me
16236#else
5464f5a1
NN
16237char (*f) () = $ac_func;
16238#endif
16239#ifdef __cplusplus
16240}
49c97a80
ILT
16241#endif
16242
5464f5a1
NN
16243int
16244main ()
16245{
16246return f != $ac_func;
16247 ;
16248 return 0;
16249}
16250_ACEOF
16251rm -f conftest.$ac_objext conftest$ac_exeext
16252if { (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); } &&
1b315056 16260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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"
16273else
16274 echo "$as_me: failed program was:" >&5
16275sed 's/^/| /' conftest.$ac_ext >&5
16276
16277eval "$as_ac_var=no"
16278fi
16279rm -f conftest.err conftest.$ac_objext \
16280 conftest$ac_exeext conftest.$ac_ext
16281fi
16282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16284if 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
49c97a80 16288
49c97a80
ILT
16289fi
16290done
16291
6be7c12c 16292
2e9ebff5
JG
16293echo "$as_me:$LINENO: checking whether basename is declared" >&5
16294echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16295if test "${ac_cv_have_decl_basename+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16297else
16298 cat >conftest.$ac_ext <<_ACEOF
16299/* confdefs.h. */
16300_ACEOF
16301cat confdefs.h >>conftest.$ac_ext
16302cat >>conftest.$ac_ext <<_ACEOF
16303/* end confdefs.h. */
ec7b76fe 16304$ac_includes_default
2e9ebff5
JG
16305int
16306main ()
16307{
16308#ifndef basename
16309 char *p = (char *) basename;
16310#endif
16311
16312 ;
16313 return 0;
16314}
16315_ACEOF
16316rm -f conftest.$ac_objext
16317if { (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); } &&
1b315056 16325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2e9ebff5
JG
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
16338else
16339 echo "$as_me: failed program was:" >&5
16340sed 's/^/| /' conftest.$ac_ext >&5
16341
16342ac_cv_have_decl_basename=no
16343fi
16344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16345fi
16346echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16347echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16348if test $ac_cv_have_decl_basename = yes; then
16349
16350cat >>confdefs.h <<_ACEOF
16351#define HAVE_DECL_BASENAME 1
16352_ACEOF
16353
16354
16355else
16356 cat >>confdefs.h <<_ACEOF
16357#define HAVE_DECL_BASENAME 0
16358_ACEOF
16359
16360
16361fi
16362
16363
ec7b76fe
JG
16364echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16365echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16366if test "${ac_cv_have_decl_ftello+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368else
16369 cat >conftest.$ac_ext <<_ACEOF
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
16374/* end confdefs.h. */
16375$ac_includes_default
16376int
16377main ()
16378{
16379#ifndef ftello
16380 char *p = (char *) ftello;
16381#endif
16382
16383 ;
16384 return 0;
16385}
16386_ACEOF
16387rm -f conftest.$ac_objext
16388if { (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); } &&
1b315056 16396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
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
16409else
16410 echo "$as_me: failed program was:" >&5
16411sed 's/^/| /' conftest.$ac_ext >&5
16412
16413ac_cv_have_decl_ftello=no
16414fi
16415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16416fi
16417echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16418echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16419if test $ac_cv_have_decl_ftello = yes; then
16420
16421cat >>confdefs.h <<_ACEOF
16422#define HAVE_DECL_FTELLO 1
16423_ACEOF
16424
16425
16426else
16427 cat >>confdefs.h <<_ACEOF
16428#define HAVE_DECL_FTELLO 0
16429_ACEOF
16430
16431
16432fi
16433
16434
16435echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16436echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16437if test "${ac_cv_have_decl_ftello64+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16439else
16440 cat >conftest.$ac_ext <<_ACEOF
16441/* confdefs.h. */
16442_ACEOF
16443cat confdefs.h >>conftest.$ac_ext
16444cat >>conftest.$ac_ext <<_ACEOF
16445/* end confdefs.h. */
16446$ac_includes_default
16447int
16448main ()
16449{
16450#ifndef ftello64
16451 char *p = (char *) ftello64;
16452#endif
16453
16454 ;
16455 return 0;
16456}
16457_ACEOF
16458rm -f conftest.$ac_objext
16459if { (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); } &&
1b315056 16467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
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
16480else
16481 echo "$as_me: failed program was:" >&5
16482sed 's/^/| /' conftest.$ac_ext >&5
16483
16484ac_cv_have_decl_ftello64=no
16485fi
16486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16487fi
16488echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16489echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16490if test $ac_cv_have_decl_ftello64 = yes; then
16491
16492cat >>confdefs.h <<_ACEOF
16493#define HAVE_DECL_FTELLO64 1
16494_ACEOF
16495
16496
16497else
16498 cat >>confdefs.h <<_ACEOF
16499#define HAVE_DECL_FTELLO64 0
16500_ACEOF
16501
16502
16503fi
16504
16505
16506echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16507echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16508if test "${ac_cv_have_decl_fseeko+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510else
16511 cat >conftest.$ac_ext <<_ACEOF
16512/* confdefs.h. */
16513_ACEOF
16514cat confdefs.h >>conftest.$ac_ext
16515cat >>conftest.$ac_ext <<_ACEOF
16516/* end confdefs.h. */
16517$ac_includes_default
16518int
16519main ()
16520{
16521#ifndef fseeko
16522 char *p = (char *) fseeko;
16523#endif
16524
16525 ;
16526 return 0;
16527}
16528_ACEOF
16529rm -f conftest.$ac_objext
16530if { (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); } &&
1b315056 16538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
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
16551else
16552 echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555ac_cv_have_decl_fseeko=no
16556fi
16557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16558fi
16559echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16560echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16561if test $ac_cv_have_decl_fseeko = yes; then
16562
16563cat >>confdefs.h <<_ACEOF
16564#define HAVE_DECL_FSEEKO 1
16565_ACEOF
16566
16567
16568else
16569 cat >>confdefs.h <<_ACEOF
16570#define HAVE_DECL_FSEEKO 0
16571_ACEOF
16572
16573
16574fi
16575
16576
16577echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16578echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16579if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16581else
16582 cat >conftest.$ac_ext <<_ACEOF
16583/* confdefs.h. */
16584_ACEOF
16585cat confdefs.h >>conftest.$ac_ext
16586cat >>conftest.$ac_ext <<_ACEOF
16587/* end confdefs.h. */
16588$ac_includes_default
16589int
16590main ()
16591{
16592#ifndef fseeko64
16593 char *p = (char *) fseeko64;
16594#endif
16595
16596 ;
16597 return 0;
16598}
16599_ACEOF
16600rm -f conftest.$ac_objext
16601if { (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); } &&
1b315056 16609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
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
16622else
16623 echo "$as_me: failed program was:" >&5
16624sed 's/^/| /' conftest.$ac_ext >&5
16625
16626ac_cv_have_decl_fseeko64=no
16627fi
16628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16629fi
16630echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16631echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16632if test $ac_cv_have_decl_fseeko64 = yes; then
16633
16634cat >>confdefs.h <<_ACEOF
16635#define HAVE_DECL_FSEEKO64 1
16636_ACEOF
16637
16638
16639else
16640 cat >>confdefs.h <<_ACEOF
16641#define HAVE_DECL_FSEEKO64 0
16642_ACEOF
16643
16644
16645fi
16646
16647
2e9ebff5 16648
6be7c12c 16649
252b5132 16650case "${host}" in
855b0be7 16651*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
16652
16653cat >>confdefs.h <<\_ACEOF
252b5132 16654#define USE_BINARY_FOPEN 1
5464f5a1 16655_ACEOF
252b5132
RH
16656 ;;
16657esac
16658
d34a2b1d
JG
16659echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16660echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16661if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 16662 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16663else
5464f5a1
NN
16664 cat >conftest.$ac_ext <<_ACEOF
16665/* confdefs.h. */
16666_ACEOF
16667cat confdefs.h >>conftest.$ac_ext
16668cat >>conftest.$ac_ext <<_ACEOF
16669/* end confdefs.h. */
d34a2b1d 16670$ac_includes_default
5464f5a1
NN
16671int
16672main ()
16673{
d34a2b1d
JG
16674#ifndef ffs
16675 char *p = (char *) ffs;
16676#endif
16677
5464f5a1
NN
16678 ;
16679 return 0;
16680}
16681_ACEOF
16682rm -f conftest.$ac_objext
16683if { (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); } &&
1b315056 16691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
d34a2b1d 16703 ac_cv_have_decl_ffs=yes
252b5132 16704else
5464f5a1
NN
16705 echo "$as_me: failed program was:" >&5
16706sed 's/^/| /' conftest.$ac_ext >&5
16707
d34a2b1d 16708ac_cv_have_decl_ffs=no
252b5132 16709fi
5464f5a1 16710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16711fi
d34a2b1d
JG
16712echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16713echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16714if test $ac_cv_have_decl_ffs = yes; then
252b5132 16715
d34a2b1d
JG
16716cat >>confdefs.h <<_ACEOF
16717#define HAVE_DECL_FFS 1
16718_ACEOF
5464f5a1 16719
d34a2b1d
JG
16720
16721else
16722 cat >>confdefs.h <<_ACEOF
16723#define HAVE_DECL_FFS 0
5464f5a1 16724_ACEOF
252b5132 16725
d34a2b1d 16726
252b5132
RH
16727fi
16728
d34a2b1d
JG
16729
16730echo "$as_me:$LINENO: checking whether free is declared" >&5
16731echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16732if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 16733 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16734else
5464f5a1
NN
16735 cat >conftest.$ac_ext <<_ACEOF
16736/* confdefs.h. */
16737_ACEOF
16738cat confdefs.h >>conftest.$ac_ext
16739cat >>conftest.$ac_ext <<_ACEOF
16740/* end confdefs.h. */
d34a2b1d 16741$ac_includes_default
5464f5a1
NN
16742int
16743main ()
16744{
d34a2b1d
JG
16745#ifndef free
16746 char *p = (char *) free;
16747#endif
16748
5464f5a1
NN
16749 ;
16750 return 0;
16751}
16752_ACEOF
16753rm -f conftest.$ac_objext
16754if { (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); } &&
1b315056 16762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
d34a2b1d 16774 ac_cv_have_decl_free=yes
252b5132 16775else
5464f5a1
NN
16776 echo "$as_me: failed program was:" >&5
16777sed 's/^/| /' conftest.$ac_ext >&5
16778
d34a2b1d 16779ac_cv_have_decl_free=no
252b5132 16780fi
5464f5a1 16781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16782fi
d34a2b1d
JG
16783echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16784echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16785if test $ac_cv_have_decl_free = yes; then
16786
16787cat >>confdefs.h <<_ACEOF
16788#define HAVE_DECL_FREE 1
16789_ACEOF
252b5132 16790
5464f5a1 16791
d34a2b1d
JG
16792else
16793 cat >>confdefs.h <<_ACEOF
16794#define HAVE_DECL_FREE 0
5464f5a1 16795_ACEOF
252b5132 16796
d34a2b1d 16797
252b5132
RH
16798fi
16799
d34a2b1d
JG
16800
16801echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16802echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16803if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 16804 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16805else
5464f5a1
NN
16806 cat >conftest.$ac_ext <<_ACEOF
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
d34a2b1d 16812$ac_includes_default
5464f5a1
NN
16813int
16814main ()
16815{
d34a2b1d
JG
16816#ifndef getenv
16817 char *p = (char *) getenv;
16818#endif
16819
5464f5a1
NN
16820 ;
16821 return 0;
16822}
16823_ACEOF
16824rm -f conftest.$ac_objext
16825if { (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); } &&
1b315056 16833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
d34a2b1d 16845 ac_cv_have_decl_getenv=yes
252b5132 16846else
5464f5a1
NN
16847 echo "$as_me: failed program was:" >&5
16848sed 's/^/| /' conftest.$ac_ext >&5
16849
d34a2b1d 16850ac_cv_have_decl_getenv=no
252b5132 16851fi
5464f5a1 16852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16853fi
d34a2b1d
JG
16854echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16855echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16856if test $ac_cv_have_decl_getenv = yes; then
252b5132 16857
d34a2b1d
JG
16858cat >>confdefs.h <<_ACEOF
16859#define HAVE_DECL_GETENV 1
16860_ACEOF
5464f5a1 16861
d34a2b1d
JG
16862
16863else
16864 cat >>confdefs.h <<_ACEOF
16865#define HAVE_DECL_GETENV 0
5464f5a1 16866_ACEOF
252b5132 16867
d34a2b1d 16868
252b5132
RH
16869fi
16870
d34a2b1d
JG
16871
16872echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16873echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16874if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 16875 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16876else
5464f5a1
NN
16877 cat >conftest.$ac_ext <<_ACEOF
16878/* confdefs.h. */
16879_ACEOF
16880cat confdefs.h >>conftest.$ac_ext
16881cat >>conftest.$ac_ext <<_ACEOF
16882/* end confdefs.h. */
d34a2b1d 16883$ac_includes_default
5464f5a1
NN
16884int
16885main ()
16886{
d34a2b1d
JG
16887#ifndef malloc
16888 char *p = (char *) malloc;
16889#endif
16890
5464f5a1
NN
16891 ;
16892 return 0;
16893}
16894_ACEOF
16895rm -f conftest.$ac_objext
16896if { (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); } &&
1b315056 16904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
d34a2b1d 16916 ac_cv_have_decl_malloc=yes
252b5132 16917else
5464f5a1
NN
16918 echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
d34a2b1d 16921ac_cv_have_decl_malloc=no
252b5132 16922fi
5464f5a1 16923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16924fi
d34a2b1d
JG
16925echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16926echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16927if test $ac_cv_have_decl_malloc = yes; then
252b5132 16928
d34a2b1d
JG
16929cat >>confdefs.h <<_ACEOF
16930#define HAVE_DECL_MALLOC 1
16931_ACEOF
5464f5a1 16932
d34a2b1d
JG
16933
16934else
16935 cat >>confdefs.h <<_ACEOF
16936#define HAVE_DECL_MALLOC 0
5464f5a1 16937_ACEOF
252b5132 16938
d34a2b1d 16939
252b5132
RH
16940fi
16941
d34a2b1d
JG
16942
16943echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16944echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16945if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 16946 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16947else
5464f5a1
NN
16948 cat >conftest.$ac_ext <<_ACEOF
16949/* confdefs.h. */
16950_ACEOF
16951cat confdefs.h >>conftest.$ac_ext
16952cat >>conftest.$ac_ext <<_ACEOF
16953/* end confdefs.h. */
d34a2b1d 16954$ac_includes_default
5464f5a1
NN
16955int
16956main ()
16957{
d34a2b1d
JG
16958#ifndef realloc
16959 char *p = (char *) realloc;
16960#endif
16961
5464f5a1
NN
16962 ;
16963 return 0;
16964}
16965_ACEOF
16966rm -f conftest.$ac_objext
16967if { (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); } &&
1b315056 16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
d34a2b1d 16987 ac_cv_have_decl_realloc=yes
252b5132 16988else
5464f5a1
NN
16989 echo "$as_me: failed program was:" >&5
16990sed 's/^/| /' conftest.$ac_ext >&5
16991
d34a2b1d 16992ac_cv_have_decl_realloc=no
252b5132 16993fi
5464f5a1 16994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16995fi
d34a2b1d
JG
16996echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16997echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16998if test $ac_cv_have_decl_realloc = yes; then
16999
17000cat >>confdefs.h <<_ACEOF
17001#define HAVE_DECL_REALLOC 1
17002_ACEOF
252b5132 17003
5464f5a1 17004
d34a2b1d
JG
17005else
17006 cat >>confdefs.h <<_ACEOF
17007#define HAVE_DECL_REALLOC 0
efa9bda4
AL
17008_ACEOF
17009
d34a2b1d 17010
efa9bda4
AL
17011fi
17012
d34a2b1d 17013
be5cacdb
L
17014echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17015echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17016if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17018else
17019 cat >conftest.$ac_ext <<_ACEOF
17020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
17025$ac_includes_default
17026int
17027main ()
17028{
17029#ifndef stpcpy
17030 char *p = (char *) stpcpy;
17031#endif
17032
17033 ;
17034 return 0;
17035}
17036_ACEOF
17037rm -f conftest.$ac_objext
17038if { (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); } &&
1b315056 17046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
be5cacdb
L
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
17059else
17060 echo "$as_me: failed program was:" >&5
17061sed 's/^/| /' conftest.$ac_ext >&5
17062
17063ac_cv_have_decl_stpcpy=no
17064fi
17065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17066fi
17067echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17068echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17069if test $ac_cv_have_decl_stpcpy = yes; then
17070
17071cat >>confdefs.h <<_ACEOF
17072#define HAVE_DECL_STPCPY 1
17073_ACEOF
17074
17075
17076else
17077 cat >>confdefs.h <<_ACEOF
17078#define HAVE_DECL_STPCPY 0
17079_ACEOF
17080
17081
17082fi
17083
17084
d34a2b1d
JG
17085echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17086echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17087if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17089else
17090 cat >conftest.$ac_ext <<_ACEOF
17091/* confdefs.h. */
17092_ACEOF
17093cat confdefs.h >>conftest.$ac_ext
17094cat >>conftest.$ac_ext <<_ACEOF
17095/* end confdefs.h. */
d34a2b1d 17096$ac_includes_default
efa9bda4
AL
17097int
17098main ()
17099{
d34a2b1d
JG
17100#ifndef strstr
17101 char *p = (char *) strstr;
17102#endif
17103
efa9bda4
AL
17104 ;
17105 return 0;
17106}
17107_ACEOF
17108rm -f conftest.$ac_objext
17109if { (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); } &&
1b315056 17117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efa9bda4
AL
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
d34a2b1d 17129 ac_cv_have_decl_strstr=yes
efa9bda4
AL
17130else
17131 echo "$as_me: failed program was:" >&5
17132sed 's/^/| /' conftest.$ac_ext >&5
17133
d34a2b1d 17134ac_cv_have_decl_strstr=no
efa9bda4
AL
17135fi
17136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17137fi
d34a2b1d
JG
17138echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17139echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17140if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 17141
d34a2b1d
JG
17142cat >>confdefs.h <<_ACEOF
17143#define HAVE_DECL_STRSTR 1
17144_ACEOF
efa9bda4 17145
d34a2b1d
JG
17146
17147else
17148 cat >>confdefs.h <<_ACEOF
17149#define HAVE_DECL_STRSTR 0
5464f5a1 17150_ACEOF
252b5132 17151
d34a2b1d 17152
252b5132
RH
17153fi
17154
6be7c12c 17155
36527912
AJ
17156echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17157echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17158if test "${ac_cv_have_decl_snprintf+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160else
17161 cat >conftest.$ac_ext <<_ACEOF
17162/* confdefs.h. */
17163_ACEOF
17164cat confdefs.h >>conftest.$ac_ext
17165cat >>conftest.$ac_ext <<_ACEOF
17166/* end confdefs.h. */
17167$ac_includes_default
17168int
17169main ()
17170{
17171#ifndef snprintf
17172 char *p = (char *) snprintf;
17173#endif
17174
17175 ;
17176 return 0;
17177}
17178_ACEOF
17179rm -f conftest.$ac_objext
17180if { (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); } &&
1b315056 17188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36527912
AJ
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
17201else
17202 echo "$as_me: failed program was:" >&5
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
17205ac_cv_have_decl_snprintf=no
17206fi
17207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17208fi
17209echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17210echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17211if test $ac_cv_have_decl_snprintf = yes; then
17212
17213cat >>confdefs.h <<_ACEOF
17214#define HAVE_DECL_SNPRINTF 1
17215_ACEOF
17216
17217
17218else
17219 cat >>confdefs.h <<_ACEOF
17220#define HAVE_DECL_SNPRINTF 0
17221_ACEOF
17222
17223
17224fi
17225
17226
17227echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17228echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17229if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17231else
17232 cat >conftest.$ac_ext <<_ACEOF
17233/* confdefs.h. */
17234_ACEOF
17235cat confdefs.h >>conftest.$ac_ext
17236cat >>conftest.$ac_ext <<_ACEOF
17237/* end confdefs.h. */
17238$ac_includes_default
17239int
17240main ()
17241{
17242#ifndef vsnprintf
17243 char *p = (char *) vsnprintf;
17244#endif
17245
17246 ;
17247 return 0;
17248}
17249_ACEOF
17250rm -f conftest.$ac_objext
17251if { (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); } &&
1b315056 17259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36527912
AJ
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
17272else
17273 echo "$as_me: failed program was:" >&5
17274sed 's/^/| /' conftest.$ac_ext >&5
17275
17276ac_cv_have_decl_vsnprintf=no
17277fi
17278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17279fi
17280echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17281echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17282if test $ac_cv_have_decl_vsnprintf = yes; then
17283
17284cat >>confdefs.h <<_ACEOF
17285#define HAVE_DECL_VSNPRINTF 1
17286_ACEOF
17287
17288
17289else
17290 cat >>confdefs.h <<_ACEOF
17291#define HAVE_DECL_VSNPRINTF 0
17292_ACEOF
17293
17294
17295fi
17296
17297
d34a2b1d 17298
1b315056
CS
17299# Link in zlib if we can. This allows us to read compressed debug sections.
17300echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
17301echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
17302if test "${ac_cv_search_zlibVersion+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304else
17305 ac_func_search_save_LIBS=$LIBS
17306ac_cv_search_zlibVersion=no
17307cat >conftest.$ac_ext <<_ACEOF
17308/* confdefs.h. */
17309_ACEOF
17310cat confdefs.h >>conftest.$ac_ext
17311cat >>conftest.$ac_ext <<_ACEOF
17312/* end confdefs.h. */
17313
17314/* Override any gcc2 internal prototype to avoid an error. */
17315#ifdef __cplusplus
17316extern "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. */
17320char zlibVersion ();
17321int
17322main ()
17323{
17324zlibVersion ();
17325 ;
17326 return 0;
17327}
17328_ACEOF
17329rm -f conftest.$ac_objext conftest$ac_exeext
17330if { (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"
17351else
17352 echo "$as_me: failed program was:" >&5
17353sed 's/^/| /' conftest.$ac_ext >&5
17354
17355fi
17356rm -f conftest.err conftest.$ac_objext \
17357 conftest$ac_exeext conftest.$ac_ext
17358if 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
17364cat confdefs.h >>conftest.$ac_ext
17365cat >>conftest.$ac_ext <<_ACEOF
17366/* end confdefs.h. */
17367
17368/* Override any gcc2 internal prototype to avoid an error. */
17369#ifdef __cplusplus
17370extern "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. */
17374char zlibVersion ();
17375int
17376main ()
17377{
17378zlibVersion ();
17379 ;
17380 return 0;
17381}
17382_ACEOF
17383rm -f conftest.$ac_objext conftest$ac_exeext
17384if { (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"
17405break
17406else
17407 echo "$as_me: failed program was:" >&5
17408sed 's/^/| /' conftest.$ac_ext >&5
17409
17410fi
17411rm -f conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 done
17414fi
17415LIBS=$ac_func_search_save_LIBS
17416fi
17417echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
17418echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
17419if test "$ac_cv_search_zlibVersion" != no; then
17420 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
17421
17422for ac_header in zlib.h
17423do
17424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17425if eval "test \"\${$as_ac_Header+set}\" = set"; then
17426 echo "$as_me:$LINENO: checking for $ac_header" >&5
17427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17428if eval "test \"\${$as_ac_Header+set}\" = set"; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430fi
17431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17433else
17434 # Is the header compilable?
17435echo "$as_me:$LINENO: checking $ac_header usability" >&5
17436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17437cat >conftest.$ac_ext <<_ACEOF
17438/* confdefs.h. */
17439_ACEOF
17440cat confdefs.h >>conftest.$ac_ext
17441cat >>conftest.$ac_ext <<_ACEOF
17442/* end confdefs.h. */
17443$ac_includes_default
17444#include <$ac_header>
17445_ACEOF
17446rm -f conftest.$ac_objext
17447if { (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
17468else
17469 echo "$as_me: failed program was:" >&5
17470sed 's/^/| /' conftest.$ac_ext >&5
17471
17472ac_header_compiler=no
17473fi
17474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17476echo "${ECHO_T}$ac_header_compiler" >&6
17477
17478# Is the header present?
17479echo "$as_me:$LINENO: checking $ac_header presence" >&5
17480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17481cat >conftest.$ac_ext <<_ACEOF
17482/* confdefs.h. */
17483_ACEOF
17484cat confdefs.h >>conftest.$ac_ext
17485cat >>conftest.$ac_ext <<_ACEOF
17486/* end confdefs.h. */
17487#include <$ac_header>
17488_ACEOF
17489if { (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
17503else
17504 ac_cpp_err=yes
17505fi
17506if test -z "$ac_cpp_err"; then
17507 ac_header_preproc=yes
17508else
17509 echo "$as_me: failed program was:" >&5
17510sed 's/^/| /' conftest.$ac_ext >&5
17511
17512 ac_header_preproc=no
17513fi
17514rm -f conftest.err conftest.$ac_ext
17515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17516echo "${ECHO_T}$ac_header_preproc" >&6
17517
17518# So? What about this header?
17519case $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
17522echo "$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
17524echo "$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
17529echo "$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
17531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17533echo "$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
17535echo "$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
17537echo "$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
17539echo "$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 ;;
17549esac
17550echo "$as_me:$LINENO: checking for $ac_header" >&5
17551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17552if eval "test \"\${$as_ac_Header+set}\" = set"; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
17554else
17555 eval "$as_ac_Header=\$ac_header_preproc"
17556fi
17557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17559
17560fi
17561if 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
17566fi
17567
17568done
17569
17570fi
17571
17572
252b5132
RH
17573# If we are configured native, pick a core file support file.
17574COREFILE=
17575COREFLAG=
17576TRAD_HEADER=
17577if test "${target}" = "${host}"; then
17578 case "${host}" in
13dfd2d0 17579 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
17580 COREFILE=''
17581 ;;
ed84e695 17582 alpha*-*-linux-*)
252b5132
RH
17583 COREFILE=trad-core.lo
17584 TRAD_HEADER='"hosts/alphalinux.h"'
17585 ;;
690cc98b
NC
17586 alpha*-*-netbsd* | alpha*-*-openbsd*)
17587 COREFILE=netbsd-core.lo
17588 ;;
252b5132 17589 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
17590 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17591 COREFILE='' ;;
e33533a4
MK
17592 arm-*-netbsd* | arm-*-openbsd*)
17593 COREFILE=netbsd-core.lo
17594 ;;
252b5132
RH
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" ;;
eef0f186
MK
17601 hppa*-*-netbsd* | hppa*-*-openbsd*)
17602 COREFILE=netbsd-core.lo
17603 ;;
17604
dc810e39 17605 i370-*-*)
5b93d8bb
AM
17606 COREFILE=trad-core.lo
17607 TRAD_HEADER='"hosts/i370linux.h"'
17608 ;;
17609
80c7c40a 17610 i[3-7]86-sequent-bsd*)
5b93d8bb 17611 COREFILE=trad-core.lo
252b5132
RH
17612 TRAD_HEADER='"hosts/symmetry.h"'
17613 ;;
80c7c40a
NC
17614 i[3-7]86-sequent-sysv4*) ;;
17615 i[3-7]86-sequent-sysv*)
252b5132
RH
17616 COREFILE=trad-core.lo
17617 TRAD_HEADER='"hosts/symmetry.h"'
17618 ;;
80c7c40a 17619 i[3-7]86-*-bsdi)
7e3b3466
NC
17620 COREFILE=
17621 ;;
d2bef492 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*)
252b5132
RH
17623 COREFILE=trad-core.lo
17624 TRAD_HEADER='"hosts/i386bsd.h"'
17625 ;;
0b3e17e9 17626 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
17627 COREFILE=''
17628 TRAD_HEADER='"hosts/i386bsd.h"'
17629 ;;
4615568e 17630 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
17631 COREFILE=netbsd-core.lo
17632 ;;
80c7c40a 17633 i[3-7]86-esix-sysv3*)
252b5132
RH
17634 COREFILE=trad-core.lo
17635 TRAD_HEADER='"hosts/esix.h"'
17636 ;;
80c7c40a 17637 i[3-7]86-*-sco3.2v5*)
252b5132
RH
17638 COREFILE=sco5-core.lo
17639 ;;
80c7c40a 17640 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
17641 COREFILE=trad-core.lo
17642 TRAD_HEADER='"hosts/i386sco.h"'
17643 ;;
80c7c40a 17644 i[3-7]86-*-mach3*)
252b5132
RH
17645 COREFILE=trad-core.lo
17646 TRAD_HEADER='"hosts/i386mach3.h"'
17647 ;;
ed84e695 17648 i[3-7]86-*-linux-*)
252b5132
RH
17649 COREFILE=trad-core.lo
17650 TRAD_HEADER='"hosts/i386linux.h"'
17651 ;;
80c7c40a
NC
17652 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17653 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
17654 i860-*-mach3* | i860-*-osf1*)
17655 COREFILE=trad-core.lo
17656 TRAD_HEADER='"hosts/i860mach3.h"'
17657 ;;
252b5132
RH
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 ;;
252b5132
RH
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 ;;
ed84e695 17686 m68*-*-linux-*)
252b5132
RH
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 ;;
eb1e0e80
NC
17705 m88*-*-sysv4*)
17706 ;;
17707 m88*-motorola-sysv*)
17708 COREFILE=ptrace-core.lo
17709 ;;
252b5132
RH
17710 m88*-*-mach3*)
17711 COREFILE=trad-core.lo
17712 TRAD_HEADER='"hosts/m88kmach3.h"'
17713 ;;
c6f8758f
NC
17714 m88*-*-openbsd*)
17715 COREFILE=netbsd-core.lo
17716 ;;
252b5132
RH
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 ;;
eb1e0e80
NC
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 ;;
83954261 17731 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
17732 COREFILE=rs6000-core.lo
17733 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
17734 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17735 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
17736 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17737echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17738 cat >conftest.$ac_ext <<_ACEOF
17739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
17743/* end confdefs.h. */
83954261 17744#include <core.h>
5464f5a1
NN
17745int
17746main ()
17747{
83954261 17748struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
17749 ;
17750 return 0;
17751}
17752_ACEOF
17753rm -f conftest.$ac_objext
17754if { (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); } &&
1b315056 17762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
17775cat >>confdefs.h <<\_ACEOF
83954261 17776#define HAVE_ST_C_IMPL 1
5464f5a1 17777_ACEOF
83954261 17778
5464f5a1
NN
17779 echo "$as_me:$LINENO: result: yes" >&5
17780echo "${ECHO_T}yes" >&6
83954261 17781else
5464f5a1
NN
17782 echo "$as_me: failed program was:" >&5
17783sed 's/^/| /' conftest.$ac_ext >&5
17784
17785echo "$as_me:$LINENO: result: no" >&5
17786echo "${ECHO_T}no" >&6
83954261 17787fi
5464f5a1 17788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 17789 ;;
252b5132
RH
17790 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17791 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
17792 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17793 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17794 powerpc-*-beos*) ;;
13dfd2d0
NC
17795 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17796 COREFILE='' ;;
252b5132 17797 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 17798 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 17799 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
17800 sh*-*-netbsd* | sh*-*-openbsd*)
17801 COREFILE=netbsd-core.lo
17802 ;;
a9bf1154 17803 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
17804 COREFILE=netbsd-core.lo
17805 ;;
17806 tahoe-*-*)
17807 COREFILE=trad-core.lo
17808 TRAD_HEADER='"hosts/tahoe.h"'
17809 ;;
de6e5e1a
NC
17810 vax-*-netbsd* | vax-*-openbsd*)
17811 COREFILE=netbsd-core.lo
17812 ;;
252b5132
RH
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 ;;
ed84e695 17821 vax-*-linux-*)
f8fc3443
NC
17822 COREFILE=trad-core.lo
17823 TRAD_HEADER='"hosts/vaxlinux.h"'
17824 ;;
252b5132
RH
17825 vax-*-*)
17826 COREFILE=trad-core.lo
17827 TRAD_HEADER='"hosts/vaxbsd.h"'
17828 ;;
85cfd8d3
MK
17829 x86_64-*-netbsd* | x86_64-*-openbsd*)
17830 COREFILE=netbsd-core.lo
17831 ;;
252b5132
RH
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>
5464f5a1
NN
17850
17851for ac_header in sys/procfs.h
252b5132 17852do
5464f5a1
NN
17853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17854if eval "test \"\${$as_ac_Header+set}\" = set"; then
17855 echo "$as_me:$LINENO: checking for $ac_header" >&5
17856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17857if eval "test \"\${$as_ac_Header+set}\" = set"; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17859fi
17860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17862else
17863 # Is the header compilable?
17864echo "$as_me:$LINENO: checking $ac_header usability" >&5
17865echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17866cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
17872$ac_includes_default
17873#include <$ac_header>
17874_ACEOF
17875rm -f conftest.$ac_objext
17876if { (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); } &&
1b315056 17884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901ac_header_compiler=no
17902fi
17903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17905echo "${ECHO_T}$ac_header_compiler" >&6
17906
17907# Is the header present?
17908echo "$as_me:$LINENO: checking $ac_header presence" >&5
17909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17910cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h. */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h. */
17916#include <$ac_header>
17917_ACEOF
17918if { (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
252b5132 17932else
5464f5a1 17933 ac_cpp_err=yes
252b5132 17934fi
5464f5a1
NN
17935if test -z "$ac_cpp_err"; then
17936 ac_header_preproc=yes
17937else
17938 echo "$as_me: failed program was:" >&5
17939sed 's/^/| /' conftest.$ac_ext >&5
17940
17941 ac_header_preproc=no
252b5132 17942fi
5464f5a1
NN
17943rm -f conftest.err conftest.$ac_ext
17944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17945echo "${ECHO_T}$ac_header_preproc" >&6
17946
17947# So? What about this header?
17948case $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
17951echo "$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
17953echo "$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
17958echo "$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
17960echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17962echo "$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
17964echo "$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
17966echo "$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
17968echo "$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 ;;
17978esac
17979echo "$as_me:$LINENO: checking for $ac_header" >&5
17980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17981if eval "test \"\${$as_ac_Header+set}\" = set"; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 17983else
5464f5a1
NN
17984 eval "$as_ac_Header=\$ac_header_preproc"
17985fi
17986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17988
252b5132 17989fi
5464f5a1
NN
17990if 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
17995fi
17996
252b5132
RH
17997done
17998
17999 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
18000 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
18001echo $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
18004else
18005 cat >conftest.$ac_ext <<_ACEOF
18006/* confdefs.h. */
18007_ACEOF
18008cat confdefs.h >>conftest.$ac_ext
18009cat >>conftest.$ac_ext <<_ACEOF
18010/* end confdefs.h. */
7ee38065
MS
18011
18012#define _SYSCALL32
252b5132 18013#include <sys/procfs.h>
5464f5a1
NN
18014int
18015main ()
18016{
252b5132 18017prstatus_t avar
5464f5a1
NN
18018 ;
18019 return 0;
18020}
18021_ACEOF
18022rm -f conftest.$ac_objext
18023if { (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); } &&
1b315056 18031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
252b5132
RH
18043 bfd_cv_have_sys_procfs_type_prstatus_t=yes
18044else
5464f5a1
NN
18045 echo "$as_me: failed program was:" >&5
18046sed 's/^/| /' conftest.$ac_ext >&5
18047
18048bfd_cv_have_sys_procfs_type_prstatus_t=no
18049
252b5132 18050fi
5464f5a1 18051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18052fi
18053
18054 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
18055
18056cat >>confdefs.h <<\_ACEOF
252b5132 18057#define HAVE_PRSTATUS_T 1
5464f5a1 18058_ACEOF
252b5132
RH
18059
18060 fi
5464f5a1
NN
18061 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
18062echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 18063
5464f5a1
NN
18064 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
18065echo $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
7ee38065 18068else
5464f5a1
NN
18069 cat >conftest.$ac_ext <<_ACEOF
18070/* confdefs.h. */
18071_ACEOF
18072cat confdefs.h >>conftest.$ac_ext
18073cat >>conftest.$ac_ext <<_ACEOF
18074/* end confdefs.h. */
7ee38065
MS
18075
18076#define _SYSCALL32
18077#include <sys/procfs.h>
5464f5a1
NN
18078int
18079main ()
18080{
7ee38065 18081prstatus32_t avar
5464f5a1
NN
18082 ;
18083 return 0;
18084}
18085_ACEOF
18086rm -f conftest.$ac_objext
18087if { (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); } &&
1b315056 18095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
7ee38065
MS
18107 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
18108else
5464f5a1
NN
18109 echo "$as_me: failed program was:" >&5
18110sed 's/^/| /' conftest.$ac_ext >&5
18111
18112bfd_cv_have_sys_procfs_type_prstatus32_t=no
18113
7ee38065 18114fi
5464f5a1 18115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18116fi
18117
18118 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
18119
18120cat >>confdefs.h <<\_ACEOF
7ee38065 18121#define HAVE_PRSTATUS32_T 1
5464f5a1 18122_ACEOF
7ee38065
MS
18123
18124 fi
5464f5a1
NN
18125 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
18126echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 18127
5464f5a1
NN
18128 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
18129echo $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
252b5132 18132else
5464f5a1
NN
18133 cat >conftest.$ac_ext <<_ACEOF
18134/* confdefs.h. */
18135_ACEOF
18136cat confdefs.h >>conftest.$ac_ext
18137cat >>conftest.$ac_ext <<_ACEOF
18138/* end confdefs.h. */
7ee38065
MS
18139
18140#define _SYSCALL32
252b5132 18141#include <sys/procfs.h>
5464f5a1
NN
18142int
18143main ()
18144{
252b5132 18145prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
18146 ;
18147 return 0;
18148}
18149_ACEOF
18150rm -f conftest.$ac_objext
18151if { (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); } &&
1b315056 18159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
252b5132
RH
18171 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18172else
5464f5a1
NN
18173 echo "$as_me: failed program was:" >&5
18174sed 's/^/| /' conftest.$ac_ext >&5
18175
18176bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18177
252b5132 18178fi
5464f5a1 18179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18180fi
18181
18182 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
18183
18184cat >>confdefs.h <<\_ACEOF
252b5132 18185#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 18186_ACEOF
252b5132
RH
18187
18188 fi
5464f5a1
NN
18189 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18190echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 18191
5464f5a1
NN
18192 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18193echo $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
7ee38065 18196else
5464f5a1
NN
18197 cat >conftest.$ac_ext <<_ACEOF
18198/* confdefs.h. */
18199_ACEOF
18200cat confdefs.h >>conftest.$ac_ext
18201cat >>conftest.$ac_ext <<_ACEOF
18202/* end confdefs.h. */
7ee38065
MS
18203
18204#define _SYSCALL32
18205#include <sys/procfs.h>
5464f5a1
NN
18206int
18207main ()
18208{
7ee38065 18209prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
18210 ;
18211 return 0;
18212}
18213_ACEOF
18214rm -f conftest.$ac_objext
18215if { (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); } &&
1b315056 18223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
7ee38065
MS
18235 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18236else
5464f5a1
NN
18237 echo "$as_me: failed program was:" >&5
18238sed 's/^/| /' conftest.$ac_ext >&5
18239
18240bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18241
7ee38065 18242fi
5464f5a1 18243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18244fi
18245
18246 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
18247
18248cat >>confdefs.h <<\_ACEOF
7ee38065 18249#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 18250_ACEOF
7ee38065
MS
18251
18252 fi
5464f5a1
NN
18253 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18254echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 18255
5464f5a1
NN
18256 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18257echo $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
252b5132 18260else
5464f5a1
NN
18261 cat >conftest.$ac_ext <<_ACEOF
18262/* confdefs.h. */
18263_ACEOF
18264cat confdefs.h >>conftest.$ac_ext
18265cat >>conftest.$ac_ext <<_ACEOF
18266/* end confdefs.h. */
7ee38065
MS
18267
18268#define _SYSCALL32
252b5132 18269#include <sys/procfs.h>
5464f5a1
NN
18270int
18271main ()
18272{
252b5132 18273pstatus_t avar
5464f5a1
NN
18274 ;
18275 return 0;
18276}
18277_ACEOF
18278rm -f conftest.$ac_objext
18279if { (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); } &&
1b315056 18287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
252b5132
RH
18299 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18300else
5464f5a1
NN
18301 echo "$as_me: failed program was:" >&5
18302sed 's/^/| /' conftest.$ac_ext >&5
18303
18304bfd_cv_have_sys_procfs_type_pstatus_t=no
18305
252b5132 18306fi
5464f5a1 18307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18308fi
18309
18310 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
18311
18312cat >>confdefs.h <<\_ACEOF
252b5132 18313#define HAVE_PSTATUS_T 1
5464f5a1 18314_ACEOF
252b5132
RH
18315
18316 fi
5464f5a1
NN
18317 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18318echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 18319
5464f5a1
NN
18320 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18321echo $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
f572a39d 18324else
5464f5a1
NN
18325 cat >conftest.$ac_ext <<_ACEOF
18326/* confdefs.h. */
18327_ACEOF
18328cat confdefs.h >>conftest.$ac_ext
18329cat >>conftest.$ac_ext <<_ACEOF
18330/* end confdefs.h. */
f572a39d
AM
18331
18332#define _SYSCALL32
18333#include <sys/procfs.h>
5464f5a1
NN
18334int
18335main ()
18336{
f572a39d 18337pxstatus_t avar
5464f5a1
NN
18338 ;
18339 return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext
18343if { (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); } &&
1b315056 18351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
f572a39d
AM
18363 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18364else
5464f5a1
NN
18365 echo "$as_me: failed program was:" >&5
18366sed 's/^/| /' conftest.$ac_ext >&5
18367
18368bfd_cv_have_sys_procfs_type_pxstatus_t=no
18369
f572a39d 18370fi
5464f5a1 18371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18372fi
18373
18374 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
18375
18376cat >>confdefs.h <<\_ACEOF
f572a39d 18377#define HAVE_PXSTATUS_T 1
5464f5a1 18378_ACEOF
f572a39d
AM
18379
18380 fi
5464f5a1
NN
18381 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18382echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 18383
5464f5a1
NN
18384 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18385echo $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
7ee38065 18388else
5464f5a1
NN
18389 cat >conftest.$ac_ext <<_ACEOF
18390/* confdefs.h. */
18391_ACEOF
18392cat confdefs.h >>conftest.$ac_ext
18393cat >>conftest.$ac_ext <<_ACEOF
18394/* end confdefs.h. */
7ee38065
MS
18395
18396#define _SYSCALL32
18397#include <sys/procfs.h>
5464f5a1
NN
18398int
18399main ()
18400{
7ee38065 18401pstatus32_t avar
5464f5a1
NN
18402 ;
18403 return 0;
18404}
18405_ACEOF
18406rm -f conftest.$ac_objext
18407if { (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); } &&
1b315056 18415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
7ee38065
MS
18427 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18428else
5464f5a1
NN
18429 echo "$as_me: failed program was:" >&5
18430sed 's/^/| /' conftest.$ac_ext >&5
18431
18432bfd_cv_have_sys_procfs_type_pstatus32_t=no
18433
7ee38065 18434fi
5464f5a1 18435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18436fi
18437
18438 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
18439
18440cat >>confdefs.h <<\_ACEOF
7ee38065 18441#define HAVE_PSTATUS32_T 1
5464f5a1 18442_ACEOF
7ee38065
MS
18443
18444 fi
5464f5a1
NN
18445 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18446echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 18447
5464f5a1
NN
18448 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18449echo $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
252b5132 18452else
5464f5a1
NN
18453 cat >conftest.$ac_ext <<_ACEOF
18454/* confdefs.h. */
18455_ACEOF
18456cat confdefs.h >>conftest.$ac_ext
18457cat >>conftest.$ac_ext <<_ACEOF
18458/* end confdefs.h. */
7ee38065
MS
18459
18460#define _SYSCALL32
252b5132 18461#include <sys/procfs.h>
5464f5a1
NN
18462int
18463main ()
18464{
252b5132 18465prpsinfo_t avar
5464f5a1
NN
18466 ;
18467 return 0;
18468}
18469_ACEOF
18470rm -f conftest.$ac_objext
18471if { (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); } &&
1b315056 18479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
252b5132
RH
18491 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18492else
5464f5a1
NN
18493 echo "$as_me: failed program was:" >&5
18494sed 's/^/| /' conftest.$ac_ext >&5
18495
18496bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18497
252b5132 18498fi
5464f5a1 18499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18500fi
18501
18502 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
18503
18504cat >>confdefs.h <<\_ACEOF
252b5132 18505#define HAVE_PRPSINFO_T 1
5464f5a1 18506_ACEOF
252b5132
RH
18507
18508 fi
5464f5a1
NN
18509 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18510echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 18511
5464f5a1
NN
18512 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18513echo $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
7ee38065 18516else
5464f5a1
NN
18517 cat >conftest.$ac_ext <<_ACEOF
18518/* confdefs.h. */
18519_ACEOF
18520cat confdefs.h >>conftest.$ac_ext
18521cat >>conftest.$ac_ext <<_ACEOF
18522/* end confdefs.h. */
7ee38065
MS
18523
18524#define _SYSCALL32
18525#include <sys/procfs.h>
5464f5a1
NN
18526int
18527main ()
18528{
7ee38065 18529prpsinfo32_t avar
5464f5a1
NN
18530 ;
18531 return 0;
18532}
18533_ACEOF
18534rm -f conftest.$ac_objext
18535if { (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); } &&
1b315056 18543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
7ee38065
MS
18555 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18556else
5464f5a1
NN
18557 echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
18560bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18561
7ee38065 18562fi
5464f5a1 18563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18564fi
18565
18566 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
18567
18568cat >>confdefs.h <<\_ACEOF
7ee38065 18569#define HAVE_PRPSINFO32_T 1
5464f5a1 18570_ACEOF
7ee38065
MS
18571
18572 fi
5464f5a1
NN
18573 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18574echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 18575
5464f5a1
NN
18576 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18577echo $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
252b5132 18580else
5464f5a1
NN
18581 cat >conftest.$ac_ext <<_ACEOF
18582/* confdefs.h. */
18583_ACEOF
18584cat confdefs.h >>conftest.$ac_ext
18585cat >>conftest.$ac_ext <<_ACEOF
18586/* end confdefs.h. */
7ee38065
MS
18587
18588#define _SYSCALL32
252b5132 18589#include <sys/procfs.h>
5464f5a1
NN
18590int
18591main ()
18592{
252b5132 18593psinfo_t avar
5464f5a1
NN
18594 ;
18595 return 0;
18596}
18597_ACEOF
18598rm -f conftest.$ac_objext
18599if { (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); } &&
1b315056 18607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
252b5132
RH
18619 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18620else
5464f5a1
NN
18621 echo "$as_me: failed program was:" >&5
18622sed 's/^/| /' conftest.$ac_ext >&5
18623
18624bfd_cv_have_sys_procfs_type_psinfo_t=no
18625
252b5132 18626fi
5464f5a1 18627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18628fi
18629
18630 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
18631
18632cat >>confdefs.h <<\_ACEOF
252b5132 18633#define HAVE_PSINFO_T 1
5464f5a1 18634_ACEOF
252b5132
RH
18635
18636 fi
5464f5a1
NN
18637 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18638echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 18639
5464f5a1
NN
18640 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18641echo $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
7ee38065 18644else
5464f5a1
NN
18645 cat >conftest.$ac_ext <<_ACEOF
18646/* confdefs.h. */
18647_ACEOF
18648cat confdefs.h >>conftest.$ac_ext
18649cat >>conftest.$ac_ext <<_ACEOF
18650/* end confdefs.h. */
7ee38065
MS
18651
18652#define _SYSCALL32
18653#include <sys/procfs.h>
5464f5a1
NN
18654int
18655main ()
18656{
7ee38065 18657psinfo32_t avar
5464f5a1
NN
18658 ;
18659 return 0;
18660}
18661_ACEOF
18662rm -f conftest.$ac_objext
18663if { (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); } &&
1b315056 18671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
7ee38065
MS
18683 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18684else
5464f5a1
NN
18685 echo "$as_me: failed program was:" >&5
18686sed 's/^/| /' conftest.$ac_ext >&5
18687
18688bfd_cv_have_sys_procfs_type_psinfo32_t=no
18689
7ee38065 18690fi
5464f5a1 18691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18692fi
18693
18694 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
18695
18696cat >>confdefs.h <<\_ACEOF
7ee38065 18697#define HAVE_PSINFO32_T 1
5464f5a1 18698_ACEOF
7ee38065
MS
18699
18700 fi
5464f5a1
NN
18701 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18702echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 18703
5464f5a1
NN
18704 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18705echo $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
252b5132 18708else
5464f5a1
NN
18709 cat >conftest.$ac_ext <<_ACEOF
18710/* confdefs.h. */
18711_ACEOF
18712cat confdefs.h >>conftest.$ac_ext
18713cat >>conftest.$ac_ext <<_ACEOF
18714/* end confdefs.h. */
7ee38065
MS
18715
18716#define _SYSCALL32
252b5132 18717#include <sys/procfs.h>
5464f5a1
NN
18718int
18719main ()
18720{
252b5132 18721lwpstatus_t avar
5464f5a1
NN
18722 ;
18723 return 0;
18724}
18725_ACEOF
18726rm -f conftest.$ac_objext
18727if { (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); } &&
1b315056 18735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
252b5132
RH
18747 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18748else
5464f5a1
NN
18749 echo "$as_me: failed program was:" >&5
18750sed 's/^/| /' conftest.$ac_ext >&5
18751
18752bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18753
252b5132 18754fi
5464f5a1 18755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18756fi
18757
18758 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
18759
18760cat >>confdefs.h <<\_ACEOF
252b5132 18761#define HAVE_LWPSTATUS_T 1
5464f5a1 18762_ACEOF
252b5132
RH
18763
18764 fi
5464f5a1
NN
18765 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18766echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 18767
5464f5a1
NN
18768 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18769echo $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
f572a39d 18772else
5464f5a1
NN
18773 cat >conftest.$ac_ext <<_ACEOF
18774/* confdefs.h. */
18775_ACEOF
18776cat confdefs.h >>conftest.$ac_ext
18777cat >>conftest.$ac_ext <<_ACEOF
18778/* end confdefs.h. */
f572a39d
AM
18779
18780#define _SYSCALL32
18781#include <sys/procfs.h>
5464f5a1
NN
18782int
18783main ()
18784{
f572a39d 18785lwpxstatus_t avar
5464f5a1
NN
18786 ;
18787 return 0;
18788}
18789_ACEOF
18790rm -f conftest.$ac_objext
18791if { (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); } &&
1b315056 18799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
f572a39d
AM
18811 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18812else
5464f5a1
NN
18813 echo "$as_me: failed program was:" >&5
18814sed 's/^/| /' conftest.$ac_ext >&5
18815
18816bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18817
f572a39d 18818fi
5464f5a1 18819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18820fi
18821
18822 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
18823
18824cat >>confdefs.h <<\_ACEOF
f572a39d 18825#define HAVE_LWPXSTATUS_T 1
5464f5a1 18826_ACEOF
f572a39d
AM
18827
18828 fi
5464f5a1
NN
18829 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18830echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 18831
5464f5a1
NN
18832 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18833echo $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
252b5132 18836else
5464f5a1
NN
18837 cat >conftest.$ac_ext <<_ACEOF
18838/* confdefs.h. */
18839_ACEOF
18840cat confdefs.h >>conftest.$ac_ext
18841cat >>conftest.$ac_ext <<_ACEOF
18842/* end confdefs.h. */
7ee38065
MS
18843
18844#define _SYSCALL32
252b5132 18845#include <sys/procfs.h>
5464f5a1
NN
18846int
18847main ()
18848{
252b5132 18849lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
18850 ;
18851 return 0;
18852}
18853_ACEOF
18854rm -f conftest.$ac_objext
18855if { (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); } &&
1b315056 18863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
252b5132
RH
18875 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18876else
5464f5a1
NN
18877 echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18881
252b5132 18882fi
5464f5a1 18883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18884fi
18885
18886 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
18887
18888cat >>confdefs.h <<\_ACEOF
252b5132 18889#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 18890_ACEOF
252b5132
RH
18891
18892 fi
5464f5a1
NN
18893 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18894echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 18895
5464f5a1
NN
18896 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18897echo $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
252b5132 18900else
5464f5a1
NN
18901 cat >conftest.$ac_ext <<_ACEOF
18902/* confdefs.h. */
18903_ACEOF
18904cat confdefs.h >>conftest.$ac_ext
18905cat >>conftest.$ac_ext <<_ACEOF
18906/* end confdefs.h. */
7ee38065
MS
18907
18908#define _SYSCALL32
252b5132 18909#include <sys/procfs.h>
5464f5a1
NN
18910int
18911main ()
18912{
252b5132 18913lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
18914 ;
18915 return 0;
18916}
18917_ACEOF
18918rm -f conftest.$ac_objext
18919if { (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); } &&
1b315056 18927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
252b5132
RH
18939 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18940else
5464f5a1
NN
18941 echo "$as_me: failed program was:" >&5
18942sed 's/^/| /' conftest.$ac_ext >&5
18943
18944bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18945
252b5132 18946fi
5464f5a1 18947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18948fi
18949
18950 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
18951
18952cat >>confdefs.h <<\_ACEOF
252b5132 18953#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 18954_ACEOF
252b5132
RH
18955
18956 fi
5464f5a1
NN
18957 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18958echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 18959
5464f5a1
NN
18960 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18961echo $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
e3c976c4 18964else
5464f5a1
NN
18965 cat >conftest.$ac_ext <<_ACEOF
18966/* confdefs.h. */
18967_ACEOF
18968cat confdefs.h >>conftest.$ac_ext
18969cat >>conftest.$ac_ext <<_ACEOF
18970/* end confdefs.h. */
7ee38065
MS
18971
18972#define _SYSCALL32
e3c976c4 18973#include <sys/procfs.h>
5464f5a1
NN
18974int
18975main ()
18976{
e3c976c4 18977win32_pstatus_t avar
5464f5a1
NN
18978 ;
18979 return 0;
18980}
18981_ACEOF
18982rm -f conftest.$ac_objext
18983if { (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); } &&
1b315056 18991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
e3c976c4
ILT
19003 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
19004else
5464f5a1
NN
19005 echo "$as_me: failed program was:" >&5
19006sed 's/^/| /' conftest.$ac_ext >&5
19007
19008bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
19009
e3c976c4 19010fi
5464f5a1 19011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19012fi
19013
e3c976c4 19014 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
19015
19016cat >>confdefs.h <<\_ACEOF
e3c976c4 19017#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 19018_ACEOF
16e9c715
NC
19019
19020 fi
5464f5a1
NN
19021 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
19022echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
19023
19024 fi
19025fi
16e9c715 19026
b3baf5d0 19027
6be7c12c 19028if test -n "$TRAD_HEADER"; then
5464f5a1
NN
19029
19030cat >>confdefs.h <<_ACEOF
252b5132 19031#define TRAD_HEADER $TRAD_HEADER
5464f5a1 19032_ACEOF
252b5132 19033
3f9b03b5 19034fi
252b5132
RH
19035
19036# Horrible hacks to build DLLs on Windows.
19037WIN32LDFLAGS=
19038WIN32LIBADD=
19039case "${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 ;;
78be1d6e 19046*-*-linux*)
39691762
L
19047 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
19048 # libiberty.a.
c5cb8442
TS
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
39691762 19053 ;;
252b5132
RH
19054esac
19055
6be7c12c
AO
19056
19057
252b5132
RH
19058# target stuff:
19059
19060# Canonicalize the secondary target names.
19061if test -n "$enable_targets" ; then
19062 for targ in `echo $enable_targets | sed 's/,/ /g'`
19063 do
6d83c84b 19064 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
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
19072fi
19073
19074all_targets=false
19075defvec=
19076selvecs=
08f74004 19077assocvecs=
252b5132
RH
19078selarchs=
19079TDEFINES=
19080for targ in $target $canon_targets
19081do
19082 if test "x$targ" = "xall"; then
19083 all_targets=true
08f74004 19084 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
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
19094done
19095
6be7c12c 19096
252b5132
RH
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
9eb7245e 19101# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
19102# used.
19103
19104# uniq the default and selected vectors in all the configured targets.
19105f=""
19106for i in $selvecs ; do
19107 case " $f " in
19108 *" $i "*) ;;
19109 *) f="$f $i" ;;
19110 esac
19111done
19112selvecs="$f"
19113
6be7c12c 19114
08f74004
AM
19115# uniq the associated vectors in all the configured targets.
19116f=""
19117for i in $assocvecs ; do
19118 case " $f " in
19119 *" $i "*) ;;
19120 *) f="$f $i" ;;
19121 esac
19122done
19123assocvecs="$f"
19124
19125
252b5132
RH
19126# uniq the architectures in all the configured targets.
19127f=""
19128for i in $selarchs ; do
19129 case " $f " in
19130 *" $i "*) ;;
19131 *) f="$f $i" ;;
19132 esac
19133done
19134selarchs="$f"
19135
19136# Target backend .o files.
19137tb=
19138
104d59d1 19139elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
19140
19141for vec in $selvecs
19142do
69263e90 19143 target_size=32
252b5132
RH
19144 case "$vec" in
19145 # This list is alphabetized to make it easy to compare
dc810e39
AM
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.
252b5132 19148 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 19149 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
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" ;;
252b5132 19153 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
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 " ;;
7148cc28
NC
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 " ;;
dc810e39
AM
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 " ;;
252b5132
RH
19169 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19170 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 19171 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
e81819a5
NC
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" ;;
faed74d6 19174 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
e81819a5
NC
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;;
dc810e39 19177 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
e81819a5
NC
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 ;;
73c3cd1c 19180 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 19181 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 19182 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 19183 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 19184 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 19185 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 19186 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 19187 bfd_elf32_bigarm_symbian_vec)
00a97672 19188 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19189 bfd_elf32_bigarm_vxworks_vec)
00a97672 19190 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
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" ;;
3d3d428f 19194 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 19195 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 19196 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 19197 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
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" ;;
d172d4ba 19200 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 19201 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 19202 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 19203 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 19204 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 19205 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 19206 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 19207 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 19208 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
19209 bfd_elf32_i386_dragonfly_vec)
19210 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
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" ;;
9d751335 19214 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 19215 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 19216 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 19217 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 19218 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 19219 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 19220 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 19221 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 19222 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 19223 bfd_elf32_littlearm_symbian_vec)
00a97672 19224 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19225 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
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" ;;
0a44bf69
RS
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" ;;
e729279b 19231 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 19232 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
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" ;;
f5a6f915
SC
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" ;;
252b5132
RH
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" ;;
d9352518
DB
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" ;;
252b5132
RH
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" ;;
d031aafb 19246 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 19247 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
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 ;;
b3baf5d0 19252 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 19253 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
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";;
9d8504b1
PB
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" ;;
a85d7ed0 19259 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
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" ;;
eb1e0e80
NC
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.
55e6e397
RS
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" ;;
7b12cedc 19278 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 19279 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
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" ;;
e9f53129 19282 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
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" ;;
dc810e39 19285 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 19286 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 19287 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 19288 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 19289 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
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" ;;
2238051f 19292 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
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 ;;
0a44bf69 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 ;;
dc810e39
AM
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 ;;
dc810e39 19298 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 19299 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
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 ;;
0a44bf69 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 ;;
3c3bdf30 19303 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
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 ;;
341ca622
AM
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 ;;
2bc3c89a
AM
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 ;;
910600e9 19313 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 19314 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
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 ;;
9d7cbccd 19317 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19318 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 19319 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
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" ;;
06c15ad7 19324 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 19325 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 19326 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 19327 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
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 ;;
252b5132
RH
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" ;;
99ad8390 19340 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19341 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19342 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
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" ;;
dc810e39 19347 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
19348 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19349 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
19350 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19351 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
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 ;;
252b5132
RH
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" ;;
dc810e39
AM
19358 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19359 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
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" ;;
252b5132 19363 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
19364 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19365 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 19366 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 19367 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 19368 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
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" ;;
277d1b5e
ILT
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" ;;
dc810e39
AM
19376 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19377 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 19378 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 19379 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 19380 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 19381 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 19382 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 19383 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 19384 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 19385 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
19386 pef_vec) tb="$tb pef.lo" ;;
19387 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 19388 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 19389 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19390 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 19391 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 19392 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 19393 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19394 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19395 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 19396 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19397 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
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" ;;
252b5132 19400 som_vec) tb="$tb som.lo" ;;
dc810e39 19401 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
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" ;;
252b5132 19407 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 19408 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
19409 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19410 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
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" ;;
81635ce4 19417 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19418 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19419 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19420 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19421 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19422 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 19423 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 19424 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 19425 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 19426 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 19427 versados_vec) tb="$tb versados.lo" ;;
dc810e39 19428 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
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" ;;
3c9b82ba 19432 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 19433 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 19434
341ca622
AM
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
252b5132 19442 "") ;;
5464f5a1
NN
19443 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19444echo "$as_me: error: *** unknown target vector $vec" >&2;}
19445 { (exit 1); exit 1; }; } ;;
252b5132 19446 esac
69263e90
AM
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
252b5132
RH
19454done
19455
19456# Target architecture .o files.
19457# A couple of CPUs use shorter file names to avoid problems on DOS
19458# filesystems.
d031aafb 19459ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
19460
19461# Weed out duplicate .o files.
19462f=""
19463for i in $tb ; do
19464 case " $f " in
19465 *" $i "*) ;;
19466 *) f="$f $i" ;;
19467 esac
19468done
19469tb="$f"
19470
19471f=""
19472for i in $ta ; do
19473 case " $f " in
19474 *" $i "*) ;;
19475 *) f="$f $i" ;;
19476 esac
19477done
19478ta="$f"
19479
19480bfd_backends="$tb"
19481bfd_machines="$ta"
19482
19483if 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=
08f74004
AM
19489 test -n "$assocvecs" &&
19490 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
19491else # all_targets is true
19492 # Only set these if they will be nonempty, for the clever echo.
19493 havevecs=
08f74004 19494 assocvecs=
252b5132
RH
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'`
19501fi # all_targets is true
19502
19503case ${host64}-${target64}-${want64} in
19504 *true*)
19505 wordsize=64
21e40a48 19506 bfd64_libs='$(BFD64_LIBS)'
252b5132 19507 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 19508 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
19509 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19510echo "$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
19512echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 19513 fi
966abd70
HPN
19514 if test -n "$GCC" ; then
19515 bad_64bit_gcc=no;
5464f5a1
NN
19516 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19517echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 19518 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
19519 cat >conftest.$ac_ext <<_ACEOF
19520/* confdefs.h. */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
19524/* end confdefs.h. */
966abd70 19525:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 19526_ACEOF
966abd70 19527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 19528 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 19529 bad_64bit_gcc=yes;
5464f5a1
NN
19530 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19531echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 19532else
5464f5a1
NN
19533 echo "$as_me:$LINENO: result: no" >&5
19534echo "${ECHO_T}no" >&6
966abd70
HPN
19535fi
19536rm -f conftest*
19537
19538 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
19539 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19540echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19541 { (exit 1); exit 1; }; }
966abd70
HPN
19542 fi
19543 fi
252b5132
RH
19544 ;;
19545 false-false-false)
19546 wordsize=32
19547 all_backends='$(BFD32_BACKENDS)'
19548 ;;
19549esac
19550
6be7c12c
AO
19551
19552
19553
19554
19555
69263e90 19556
2858ef35 19557
1012372a
AC
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.
5464f5a1
NN
19563
19564
19565
19566
2e6f4fae
DJ
19567
19568for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 19569do
5464f5a1
NN
19570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19571echo "$as_me:$LINENO: checking for $ac_func" >&5
19572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19573if eval "test \"\${$as_ac_var+set}\" = set"; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575else
2ba49b59
KC
19576 cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>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
19601extern "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. */
19606char $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)
19611choke me
19612#else
19613char (*f) () = $ac_func;
19614#endif
19615#ifdef __cplusplus
19616}
19617#endif
19618
19619int
19620main ()
19621{
19622return f != $ac_func;
19623 ;
19624 return 0;
19625}
19626_ACEOF
19627rm -f conftest.$ac_objext conftest$ac_exeext
19628if { (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); } &&
1b315056 19636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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"
19649else
19650 echo "$as_me: failed program was:" >&5
19651sed 's/^/| /' conftest.$ac_ext >&5
19652
19653eval "$as_ac_var=no"
19654fi
19655rm -f conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
19657fi
19658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19659echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19660if 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
19665fi
19666done
19667
19668if 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
19670echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19671if test "${ac_cv_type_off_t+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19673else
19674 cat >conftest.$ac_ext <<_ACEOF
19675/* confdefs.h. */
19676_ACEOF
19677cat confdefs.h >>conftest.$ac_ext
19678cat >>conftest.$ac_ext <<_ACEOF
19679/* end confdefs.h. */
19680$ac_includes_default
19681int
19682main ()
19683{
19684if ((off_t *) 0)
19685 return 0;
19686if (sizeof (off_t))
19687 return 0;
19688 ;
19689 return 0;
19690}
19691_ACEOF
19692rm -f conftest.$ac_objext
19693if { (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); } &&
1b315056 19701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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
19714else
19715 echo "$as_me: failed program was:" >&5
19716sed 's/^/| /' conftest.$ac_ext >&5
19717
19718ac_cv_type_off_t=no
19719fi
19720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19721fi
19722echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19723echo "${ECHO_T}$ac_cv_type_off_t" >&6
19724
19725echo "$as_me:$LINENO: checking size of off_t" >&5
19726echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19727if test "${ac_cv_sizeof_off_t+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19729else
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.
19737cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
19738/* confdefs.h. */
19739_ACEOF
19740cat confdefs.h >>conftest.$ac_ext
19741cat >>conftest.$ac_ext <<_ACEOF
19742/* end confdefs.h. */
2ba49b59
KC
19743$ac_includes_default
19744int
19745main ()
19746{
19747static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19748test_array [0] = 0
5464f5a1 19749
2ba49b59
KC
19750 ;
19751 return 0;
19752}
19753_ACEOF
19754rm -f conftest.$ac_objext
19755if { (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); } &&
1b315056 19763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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
19780cat confdefs.h >>conftest.$ac_ext
19781cat >>conftest.$ac_ext <<_ACEOF
19782/* end confdefs.h. */
19783$ac_includes_default
19784int
19785main ()
19786{
19787static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19788test_array [0] = 0
5464f5a1 19789
2ba49b59
KC
19790 ;
19791 return 0;
19792}
19793_ACEOF
19794rm -f conftest.$ac_objext
19795if { (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); } &&
1b315056 19803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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
19816else
19817 echo "$as_me: failed program was:" >&5
19818sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19819
2ba49b59
KC
19820ac_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`
19826fi
19827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19828 done
19829else
19830 echo "$as_me: failed program was:" >&5
19831sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19832
2ba49b59
KC
19833cat >conftest.$ac_ext <<_ACEOF
19834/* confdefs.h. */
19835_ACEOF
19836cat confdefs.h >>conftest.$ac_ext
19837cat >>conftest.$ac_ext <<_ACEOF
19838/* end confdefs.h. */
19839$ac_includes_default
19840int
19841main ()
5464f5a1 19842{
2ba49b59
KC
19843static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19844test_array [0] = 0
1012372a 19845
2ba49b59
KC
19846 ;
19847 return 0;
19848}
19849_ACEOF
19850rm -f conftest.$ac_objext
19851if { (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); } &&
1b315056 19859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
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
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
19878/* end confdefs.h. */
19879$ac_includes_default
5464f5a1
NN
19880int
19881main ()
19882{
2ba49b59
KC
19883static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19884test_array [0] = 0
19885
5464f5a1
NN
19886 ;
19887 return 0;
19888}
19889_ACEOF
2ba49b59
KC
19890rm -f conftest.$ac_objext
19891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19892 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
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); } &&
1b315056 19899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
2ba49b59 19905 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
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
2ba49b59 19911 ac_lo=$ac_mid; break
5464f5a1
NN
19912else
19913 echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
2ba49b59
KC
19916ac_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`
5464f5a1 19922fi
2ba49b59
KC
19923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19924 done
19925else
19926 echo "$as_me: failed program was:" >&5
19927sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19928
2ba49b59 19929ac_lo= ac_hi=
1012372a 19930fi
2ba49b59
KC
19931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19932fi
19933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19934# Binary search between lo and hi bounds.
19935while test "x$ac_lo" != "x$ac_hi"; do
19936 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
19937 cat >conftest.$ac_ext <<_ACEOF
19938/* confdefs.h. */
19939_ACEOF
19940cat confdefs.h >>conftest.$ac_ext
19941cat >>conftest.$ac_ext <<_ACEOF
19942/* end confdefs.h. */
2ba49b59 19943$ac_includes_default
5464f5a1
NN
19944int
19945main ()
19946{
2ba49b59
KC
19947static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19948test_array [0] = 0
19949
5464f5a1
NN
19950 ;
19951 return 0;
19952}
19953_ACEOF
19954rm -f conftest.$ac_objext
19955if { (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); } &&
1b315056 19963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
2ba49b59 19975 ac_hi=$ac_mid
1012372a 19976else
5464f5a1
NN
19977 echo "$as_me: failed program was:" >&5
19978sed 's/^/| /' conftest.$ac_ext >&5
19979
2ba49b59 19980ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 19981fi
5464f5a1 19982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 19983done
2ba49b59
KC
19984case $ac_lo in
19985?*) ac_cv_sizeof_off_t=$ac_lo;;
1b315056 19986'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
2ba49b59
KC
19987See \`config.log' for more details." >&5
19988echo "$as_me: error: cannot compute sizeof (off_t), 77
19989See \`config.log' for more details." >&2;}
1b315056 19990 { (exit 1); exit 1; }; } ;;
2ba49b59
KC
19991esac
19992else
19993 if test "$cross_compiling" = yes; then
1b315056
CS
19994 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19995echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19996 { (exit 1); exit 1; }; }
2ba49b59
KC
19997else
19998 cat >conftest.$ac_ext <<_ACEOF
19999/* confdefs.h. */
20000_ACEOF
20001cat confdefs.h >>conftest.$ac_ext
20002cat >>conftest.$ac_ext <<_ACEOF
20003/* end confdefs.h. */
20004$ac_includes_default
20005long longval () { return (long) (sizeof (off_t)); }
20006unsigned long ulongval () { return (long) (sizeof (off_t)); }
20007#include <stdio.h>
20008#include <stdlib.h>
20009int
20010main ()
20011{
1012372a 20012
2ba49b59
KC
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
20036rm -f conftest$ac_exeext
20037if { (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`
20048else
20049 echo "$as_me: program exited with status $ac_status" >&5
20050echo "$as_me: failed program was:" >&5
20051sed 's/^/| /' conftest.$ac_ext >&5
1012372a 20052
2ba49b59
KC
20053( exit $ac_status )
20054{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20055See \`config.log' for more details." >&5
20056echo "$as_me: error: cannot compute sizeof (off_t), 77
20057See \`config.log' for more details." >&2;}
1b315056 20058 { (exit 1); exit 1; }; }
1012372a 20059fi
2ba49b59
KC
20060rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20061fi
20062fi
20063rm -f conftest.val
20064else
20065 ac_cv_sizeof_off_t=0
20066fi
20067fi
5464f5a1
NN
20068echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
20069echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 20070cat >>confdefs.h <<_ACEOF
1012372a 20071#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 20072_ACEOF
1012372a
AC
20073
20074
1012372a 20075fi
5464f5a1
NN
20076echo "$as_me:$LINENO: checking file_ptr type" >&5
20077echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
20078bfd_file_ptr="long"
20079bfd_ufile_ptr="unsigned long"
20080if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
20081 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
20082 bfd_file_ptr=BFD_HOST_64_BIT
20083 bfd_ufile_ptr=BFD_HOST_U_64_BIT
20084fi
5464f5a1
NN
20085echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
20086echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
20087
20088
20089
20090
252b5132
RH
20091tdefaults=""
20092test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
20093test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 20094test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
20095test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
20096test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
20097
6be7c12c 20098
5464f5a1
NN
20099
20100
20101for ac_header in stdlib.h unistd.h
252b5132 20102do
5464f5a1
NN
20103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20104if eval "test \"\${$as_ac_Header+set}\" = set"; then
20105 echo "$as_me:$LINENO: checking for $ac_header" >&5
20106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20107if eval "test \"\${$as_ac_Header+set}\" = set"; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20109fi
20110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20112else
20113 # Is the header compilable?
20114echo "$as_me:$LINENO: checking $ac_header usability" >&5
20115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20116cat >conftest.$ac_ext <<_ACEOF
20117/* confdefs.h. */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h. */
20122$ac_includes_default
20123#include <$ac_header>
20124_ACEOF
20125rm -f conftest.$ac_objext
20126if { (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); } &&
1b315056 20134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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
20147else
20148 echo "$as_me: failed program was:" >&5
20149sed 's/^/| /' conftest.$ac_ext >&5
20150
20151ac_header_compiler=no
20152fi
20153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20154echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20155echo "${ECHO_T}$ac_header_compiler" >&6
20156
20157# Is the header present?
20158echo "$as_me:$LINENO: checking $ac_header presence" >&5
20159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20160cat >conftest.$ac_ext <<_ACEOF
20161/* confdefs.h. */
20162_ACEOF
20163cat confdefs.h >>conftest.$ac_ext
20164cat >>conftest.$ac_ext <<_ACEOF
20165/* end confdefs.h. */
20166#include <$ac_header>
20167_ACEOF
20168if { (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
252b5132 20182else
5464f5a1 20183 ac_cpp_err=yes
252b5132 20184fi
5464f5a1
NN
20185if test -z "$ac_cpp_err"; then
20186 ac_header_preproc=yes
20187else
20188 echo "$as_me: failed program was:" >&5
20189sed 's/^/| /' conftest.$ac_ext >&5
20190
20191 ac_header_preproc=no
252b5132 20192fi
5464f5a1
NN
20193rm -f conftest.err conftest.$ac_ext
20194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20195echo "${ECHO_T}$ac_header_preproc" >&6
20196
20197# So? What about this header?
20198case $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
20201echo "$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
20203echo "$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
20208echo "$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
20210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20212echo "$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
20214echo "$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
20216echo "$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
20218echo "$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 ;;
20228esac
20229echo "$as_me:$LINENO: checking for $ac_header" >&5
20230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20231if eval "test \"\${$as_ac_Header+set}\" = set"; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 20233else
5464f5a1
NN
20234 eval "$as_ac_Header=\$ac_header_preproc"
20235fi
20236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20238
20239fi
20240if 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
252b5132 20245fi
5464f5a1 20246
252b5132
RH
20247done
20248
5464f5a1 20249
252b5132
RH
20250for ac_func in getpagesize
20251do
5464f5a1
NN
20252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20253echo "$as_me:$LINENO: checking for $ac_func" >&5
20254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20255if eval "test \"\${$as_ac_var+set}\" = set"; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257else
20258 cat >conftest.$ac_ext <<_ACEOF
20259/* confdefs.h. */
20260_ACEOF
20261cat confdefs.h >>conftest.$ac_ext
20262cat >>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
252b5132 20268/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
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
6be7c12c 20278
5464f5a1 20279#undef $ac_func
252b5132 20280
5464f5a1
NN
20281/* Override any gcc2 internal prototype to avoid an error. */
20282#ifdef __cplusplus
20283extern "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. */
20288char $ac_func ();
252b5132
RH
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)
20293choke me
20294#else
5464f5a1
NN
20295char (*f) () = $ac_func;
20296#endif
20297#ifdef __cplusplus
20298}
252b5132
RH
20299#endif
20300
5464f5a1
NN
20301int
20302main ()
20303{
20304return f != $ac_func;
20305 ;
20306 return 0;
20307}
20308_ACEOF
20309rm -f conftest.$ac_objext conftest$ac_exeext
20310if { (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); } &&
1b315056 20318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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"
20331else
20332 echo "$as_me: failed program was:" >&5
20333sed 's/^/| /' conftest.$ac_ext >&5
20334
20335eval "$as_ac_var=no"
20336fi
20337rm -f conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20339fi
20340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20342if 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
252b5132 20346
252b5132
RH
20347fi
20348done
20349
5464f5a1
NN
20350echo "$as_me:$LINENO: checking for working mmap" >&5
20351echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20352if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
20354else
20355 if test "$cross_compiling" = yes; then
20356 ac_cv_func_mmap_fixed_mapped=no
20357else
5464f5a1
NN
20358 cat >conftest.$ac_ext <<_ACEOF
20359/* confdefs.h. */
20360_ACEOF
20361cat confdefs.h >>conftest.$ac_ext
20362cat >>conftest.$ac_ext <<_ACEOF
20363/* end confdefs.h. */
20364$ac_includes_default
20365/* malloc might have been renamed as rpl_malloc. */
20366#undef malloc
6be7c12c 20367
252b5132
RH
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
5464f5a1 20380 VM page cache was not coherent with the file system buffer cache
252b5132
RH
20381 like early versions of FreeBSD and possibly contemporary NetBSD.)
20382 For shared mappings, we should conversely verify that changes get
5464f5a1 20383 propagated back to all the places they're supposed to be.
252b5132
RH
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) */
5464f5a1 20389
252b5132
RH
20390#include <fcntl.h>
20391#include <sys/mman.h>
20392
5464f5a1
NN
20393#if !STDC_HEADERS && !HAVE_STDLIB_H
20394char *malloc ();
20395#endif
6be7c12c 20396
5464f5a1
NN
20397/* This mess was copied from the GNU getpagesize.h. */
20398#if !HAVE_GETPAGESIZE
252b5132 20399/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 20400# if !HAVE_SYS_PARAM_H
252b5132
RH
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 */
5464f5a1 20407# if HAVE_SYS_PARAM_H
252b5132
RH
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
5464f5a1
NN
20432#endif /* no HAVE_GETPAGESIZE */
20433
20434int
20435main ()
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
20491rm -f conftest$ac_exeext
20492if { (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
20503else
20504 echo "$as_me: program exited with status $ac_status" >&5
20505echo "$as_me: failed program was:" >&5
20506sed 's/^/| /' conftest.$ac_ext >&5
20507
20508( exit $ac_status )
20509ac_cv_func_mmap_fixed_mapped=no
20510fi
20511rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20512fi
20513fi
20514echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20515echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20516if test $ac_cv_func_mmap_fixed_mapped = yes; then
20517
20518cat >>confdefs.h <<\_ACEOF
20519#define HAVE_MMAP 1
20520_ACEOF
20521
20522fi
20523rm -f conftest.mmap
20524
20525
20526
20527for ac_func in madvise mprotect
20528do
20529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20530echo "$as_me:$LINENO: checking for $ac_func" >&5
20531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20532if eval "test \"\${$as_ac_var+set}\" = set"; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534else
20535 cat >conftest.$ac_ext <<_ACEOF
20536/* confdefs.h. */
20537_ACEOF
20538cat confdefs.h >>conftest.$ac_ext
20539cat >>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
20560extern "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. */
20565char $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)
20570choke me
20571#else
20572char (*f) () = $ac_func;
20573#endif
20574#ifdef __cplusplus
20575}
20576#endif
20577
20578int
20579main ()
20580{
20581return f != $ac_func;
20582 ;
20583 return 0;
20584}
20585_ACEOF
20586rm -f conftest.$ac_objext conftest$ac_exeext
20587if { (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); } &&
1b315056 20595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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"
20608else
20609 echo "$as_me: failed program was:" >&5
20610sed 's/^/| /' conftest.$ac_ext >&5
20611
20612eval "$as_ac_var=no"
20613fi
20614rm -f conftest.err conftest.$ac_objext \
20615 conftest$ac_exeext conftest.$ac_ext
20616fi
20617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20618echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20619if 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
20624fi
20625done
20626
20627case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20628 true+yes )
20629cat >>confdefs.h <<\_ACEOF
20630#define USE_MMAP 1
20631_ACEOF
20632 ;;
20633esac
20634
20635rm -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
20e95c23 20638
5464f5a1
NN
20639 ac_config_commands="$ac_config_commands default"
20640
108a6f8e
CD
20641
20642
20643
20644
20645
5464f5a1
NN
20646cat >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
20691if 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
20698fi
20699rm -f confcache
20700
20701test "x$prefix" = xNONE && prefix=$ac_default_prefix
20702# Let make expand exec_prefix.
20703test "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).
20709if test "x$srcdir" = x.; then
20710 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20711s/:*\$(srcdir):*/:/;
20712s/:*\${srcdir}:*/:/;
20713s/:*@srcdir@:*/:/;
20714s/^\([^=]*=[ ]*\):*/\1/;
20715s/:*$//;
20716s/^[^=]*=[ ]*$//;
20717}'
20718fi
20719
20720DEFS=-DHAVE_CONFIG_H
20721
20722ac_libobjs=
20723ac_ltlibobjs=
20724for 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'
20731done
20732LIBOBJS=$ac_libobjs
20733
20734LTLIBOBJS=$ac_ltlibobjs
20735
20736
f5385ebf
AM
20737if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20738 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20739Usually this means the macro was only invoked conditionally." >&5
20740echo "$as_me: error: conditional \"AMDEP\" was never defined.
20741Usually this means the macro was only invoked conditionally." >&2;}
20742 { (exit 1); exit 1; }; }
20743fi
20744if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20745 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20746Usually this means the macro was only invoked conditionally." >&5
20747echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20748Usually this means the macro was only invoked conditionally." >&2;}
20749 { (exit 1); exit 1; }; }
20750fi
20751if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20752 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20753Usually this means the macro was only invoked conditionally." >&5
20754echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20755Usually this means the macro was only invoked conditionally." >&2;}
20756 { (exit 1); exit 1; }; }
20757fi
d5fbea21
DJ
20758if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20759 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20760Usually this means the macro was only invoked conditionally." >&5
20761echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20762Usually this means the macro was only invoked conditionally." >&2;}
20763 { (exit 1); exit 1; }; }
20764fi
f5385ebf
AM
20765if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20766 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20767Usually this means the macro was only invoked conditionally." >&5
20768echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20769Usually this means the macro was only invoked conditionally." >&2;}
20770 { (exit 1); exit 1; }; }
20771fi
5464f5a1
NN
20772
20773: ${CONFIG_STATUS=./config.status}
20774ac_clean_files_save=$ac_clean_files
20775ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20776{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20777echo "$as_me: creating $CONFIG_STATUS" >&6;}
20778cat >$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
20785debug=false
20786ac_cs_recheck=false
20787ac_cs_silent=false
20788SHELL=\${CONFIG_SHELL-$SHELL}
20789_ACEOF
20790
20791cat >>$CONFIG_STATUS <<\_ACEOF
20792## --------------------- ##
20793## M4sh Initialization. ##
20794## --------------------- ##
20795
20796# Be Bourne compatible
20797if 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+"$@"}'='"$@"'
20803elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20804 set -o posix
20805fi
20806DUALCASE=1; export DUALCASE # for MKS sh
20807
20808# Support unset when possible.
20809if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20810 as_unset=unset
20811else
20812 as_unset=false
20813fi
20814
20815
20816# Work around bugs in pre-3.0 UWIN ksh.
20817$as_unset ENV MAIL MAILPATH
20818PS1='$ '
20819PS2='> '
20820PS4='+ '
20821
20822# NLS nuisances.
20823for 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
20827do
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
20833done
20834
20835# Required to use basename.
20836if expr a : '\(a\)' >/dev/null 2>&1; then
20837 as_expr=expr
20838else
20839 as_expr=false
20840fi
20841
20842if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20843 as_basename=basename
20844else
20845 as_basename=false
20846fi
252b5132 20847
6be7c12c 20848
5464f5a1
NN
20849# Name of the executable.
20850as_me=`$as_basename "$0" ||
20851$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20852 X"$0" : 'X\(//\)$' \| \
20853 X"$0" : 'X\(/\)$' \| \
20854 . : '\(.\)' 2>/dev/null ||
20855echo 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.
20864as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20865as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20866as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20867as_cr_digits='0123456789'
20868as_cr_alnum=$as_cr_Letters$as_cr_digits
20869
20870# The user is always right.
20871if 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
20881fi
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
20894for as_dir in $PATH
20895do
20896 IFS=$as_save_IFS
20897 test -z "$as_dir" && as_dir=.
20898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20899done
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
20910echo "$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
20916for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20917do
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
20937done
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
20961echo "$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
252b5132 20970}
6be7c12c 20971
5464f5a1
NN
20972
20973case `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= ;;
20978esac
20979
20980if expr a : '\(a\)' >/dev/null 2>&1; then
20981 as_expr=expr
252b5132 20982else
5464f5a1 20983 as_expr=false
252b5132 20984fi
5464f5a1
NN
20985
20986rm -f conf$$ conf$$.exe conf$$.file
20987echo >conf$$.file
20988if 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
20997elif ln conf$$.file conf$$ 2>/dev/null; then
20998 as_ln_s=ln
20999else
21000 as_ln_s='cp -p'
252b5132 21001fi
5464f5a1 21002rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 21003
5464f5a1
NN
21004if mkdir -p . 2>/dev/null; then
21005 as_mkdir_p=:
21006else
21007 test -d ./-p && rmdir ./-p
21008 as_mkdir_p=false
252b5132 21009fi
b3baf5d0 21010
5464f5a1 21011as_executable_p="test -f"
252b5132 21012
5464f5a1
NN
21013# Sed expression to map a string onto a valid CPP name.
21014as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 21015
5464f5a1
NN
21016# Sed expression to map a string onto a valid variable name.
21017as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 21018
252b5132 21019
5464f5a1
NN
21020# IFS
21021# We need space, tab and new line, in precisely that order.
21022as_nl='
21023'
21024IFS=" $as_nl"
252b5132 21025
5464f5a1
NN
21026# CDPATH.
21027$as_unset CDPATH
21028
21029exec 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.
21034exec 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
21041cat >&5 <<_CSEOF
21042
21043This file was extended by $as_me, which was
21044generated 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
21053echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21054echo >&5
21055_ACEOF
21056
21057# Files that config.status was made for.
21058if test -n "$ac_config_files"; then
21059 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 21060fi
5464f5a1
NN
21061
21062if test -n "$ac_config_headers"; then
21063 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 21064fi
252b5132 21065
5464f5a1
NN
21066if test -n "$ac_config_links"; then
21067 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 21068fi
252b5132 21069
5464f5a1
NN
21070if test -n "$ac_config_commands"; then
21071 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21072fi
252b5132 21073
5464f5a1
NN
21074cat >>$CONFIG_STATUS <<\_ACEOF
21075
21076ac_cs_usage="\
21077\`$as_me' instantiates files from templates according to the
21078current configuration.
21079
21080Usage: $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
21092Configuration files:
21093$config_files
21094
21095Configuration headers:
21096$config_headers
21097
21098Configuration commands:
21099$config_commands
21100
21101Report bugs to <bug-autoconf@gnu.org>."
21102_ACEOF
21103
21104cat >>$CONFIG_STATUS <<_ACEOF
21105ac_cs_version="\\
21106config.status
21107configured by $0, generated by GNU Autoconf 2.59,
21108 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21109
21110Copyright (C) 2003 Free Software Foundation, Inc.
21111This config.status script is free software; the Free Software Foundation
21112gives unlimited permission to copy, distribute and modify it."
21113srcdir=$srcdir
21114INSTALL="$INSTALL"
21115_ACEOF
21116
21117cat >>$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.
21120ac_need_defaults=:
21121while test $# != 0
21122do
21123 case $1 in
21124 --*=*)
21125 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21126 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21127 ac_shift=:
6be7c12c 21128 ;;
5464f5a1
NN
21129 -*)
21130 ac_option=$1
21131 ac_optarg=$2
21132 ac_shift=shift
6be7c12c 21133 ;;
5464f5a1
NN
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
252b5132 21139
5464f5a1
NN
21140 case $ac_option in
21141 # Handling of the options.
21142_ACEOF
21143cat >>$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
21151Try \`$0 --help' for more information." >&5
21152echo "$as_me: error: ambiguous option: $1
21153Try \`$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=: ;;
6be7c12c 21170
5464f5a1
NN
21171 # This is an error.
21172 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21173Try \`$0 --help' for more information." >&5
21174echo "$as_me: error: unrecognized option: $1
21175Try \`$0 --help' for more information." >&2;}
21176 { (exit 1); exit 1; }; } ;;
252b5132 21177
5464f5a1 21178 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 21179
5464f5a1
NN
21180 esac
21181 shift
21182done
6be7c12c 21183
5464f5a1 21184ac_configure_extra_args=
252b5132 21185
5464f5a1
NN
21186if $ac_cs_silent; then
21187 exec 6>/dev/null
21188 ac_configure_extra_args="$ac_configure_extra_args --silent"
21189fi
6be7c12c 21190
5464f5a1
NN
21191_ACEOF
21192cat >>$CONFIG_STATUS <<_ACEOF
21193if \$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
21196fi
21197
21198_ACEOF
21199
21200cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 21201#
5464f5a1 21202# INIT-COMMANDS section.
6be7c12c 21203#
b3baf5d0 21204
f5385ebf 21205AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
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
21212sed_quote_subst='$sed_quote_subst'
21213double_quote_subst='$double_quote_subst'
21214delay_variable_subst='$delay_variable_subst'
21215enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21216macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21217macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21218enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21219pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21220enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21221host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21222host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21223host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21224build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21225build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21226build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21227SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21228Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21229GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21230EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21231FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21232LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21233NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21234LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21235max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21236ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21237exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21238lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21239lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21240lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21241reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21242reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21243deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21244file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21245AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21246AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21247STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21248RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21249old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21250old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21251old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21252CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21253CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21254compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21255GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21256lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21257lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21258lt_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"`'
21259objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21260SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21261ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21262MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21263lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21264lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21265lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21266lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21267lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21268need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21269libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21270shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21271extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21272archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21273enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21274export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21275whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21276compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21277old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21278old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21279archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21280archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21281module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21282module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21283with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21284allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21285no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21286hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21287hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21288hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21289hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21290hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21291hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21292hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21293hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21294inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21295link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21296fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21297always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21298export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21299exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21300include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21301prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21302file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21303variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21304need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21305need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21306version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21307runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21308shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21309shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21310libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21311library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21312soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21313postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21314postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21315finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21316finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21317hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21318sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21319sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21320hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21321enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21322enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21323enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21324old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21325striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21326
21327LTCC='$LTCC'
21328LTCFLAGS='$LTCFLAGS'
21329compiler='$compiler_DEFAULT'
21330
21331# Quote evaled strings.
21332for var in SED \
21333GREP \
21334EGREP \
21335FGREP \
21336LD \
21337NM \
21338LN_S \
21339lt_SP2NL \
21340lt_NL2SP \
21341reload_flag \
21342deplibs_check_method \
21343file_magic_cmd \
21344AR \
21345AR_FLAGS \
21346STRIP \
21347RANLIB \
21348CC \
21349CFLAGS \
21350compiler \
21351lt_cv_sys_global_symbol_pipe \
21352lt_cv_sys_global_symbol_to_cdecl \
21353lt_cv_sys_global_symbol_to_c_name_address \
21354SHELL \
21355ECHO \
21356lt_prog_compiler_no_builtin_flag \
21357lt_prog_compiler_wl \
21358lt_prog_compiler_pic \
21359lt_prog_compiler_static \
21360lt_cv_prog_compiler_c_o \
21361need_locks \
21362shrext_cmds \
21363export_dynamic_flag_spec \
21364whole_archive_flag_spec \
21365compiler_needs_object \
21366with_gnu_ld \
21367allow_undefined_flag \
21368no_undefined_flag \
21369hardcode_libdir_flag_spec \
21370hardcode_libdir_flag_spec_ld \
21371hardcode_libdir_separator \
21372fix_srcfile_path \
21373exclude_expsyms \
21374include_expsyms \
21375file_list_spec \
21376variables_saved_for_relink \
21377libname_spec \
21378library_names_spec \
21379soname_spec \
21380finish_eval \
21381old_striplib \
21382striplib; 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
21391done
21392
21393# Double-quote double-evaled strings.
21394for var in reload_cmds \
21395old_postinstall_cmds \
21396old_postuninstall_cmds \
21397old_archive_cmds \
21398extract_expsyms_cmds \
21399old_archive_from_new_cmds \
21400old_archive_from_expsyms_cmds \
21401archive_cmds \
21402archive_expsym_cmds \
21403module_cmds \
21404module_expsym_cmds \
21405export_symbols_cmds \
21406prelink_cmds \
21407postinstall_cmds \
21408postuninstall_cmds \
21409finish_cmds \
21410sys_lib_search_path_spec \
21411sys_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
21420done
21421
21422# Fix-up fallback echo if it was mangled by the above quoting rules.
21423case \$lt_ECHO in
21424*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21425 ;;
21426esac
21427
21428ac_aux_dir='$ac_aux_dir'
21429xsi_shell='$xsi_shell'
21430lt_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.
21434if test -n "\${ZSH_VERSION+set}" ; then
21435 setopt NO_GLOB_SUBST
21436fi
21437
21438
21439 PACKAGE='$PACKAGE'
21440 VERSION='$VERSION'
21441 TIMESTAMP='$TIMESTAMP'
21442 RM='$RM'
21443 ofile='$ofile'
21444
21445
21446
20e95c23
DJ
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
5464f5a1 21454
d5efd9fc
AM
21455GCC="$GCC"
21456CC="$CC"
21457acx_cv_header_stdint="$acx_cv_header_stdint"
21458acx_cv_type_int8_t="$acx_cv_type_int8_t"
21459acx_cv_type_int16_t="$acx_cv_type_int16_t"
21460acx_cv_type_int32_t="$acx_cv_type_int32_t"
21461acx_cv_type_int64_t="$acx_cv_type_int64_t"
21462acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21463ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21464ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21465ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21466ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21467ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21468ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21469ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21470ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21471
21472
5464f5a1
NN
21473
21474_ACEOF
21475
21476
21477
21478cat >>$CONFIG_STATUS <<\_ACEOF
21479for ac_config_target in $ac_config_targets
252b5132 21480do
5464f5a1
NN
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" ;;
f5385ebf 21487 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 21488 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 21489 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 21490 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
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
21494echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21495 { (exit 1); exit 1; }; };;
252b5132
RH
21496 esac
21497done
21498
5464f5a1
NN
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.
21503if $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
21507fi
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}
b3baf5d0 21518
5464f5a1 21519# Create a (secure) tmp directory for tmp files.
b3baf5d0 21520
5464f5a1
NN
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
21536cat >>$CONFIG_STATUS <<_ACEOF
21537
21538#
21539# CONFIG_FILES section.
21540#
b3baf5d0 21541
5464f5a1
NN
21542# No need to generate the scripts if there are no CONFIG_FILES.
21543# This happens for instance when ./config.status config.h
21544if 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
21548s,@SHELL@,$SHELL,;t t
21549s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21550s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21551s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21552s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21553s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21554s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21555s,@exec_prefix@,$exec_prefix,;t t
21556s,@prefix@,$prefix,;t t
21557s,@program_transform_name@,$program_transform_name,;t t
21558s,@bindir@,$bindir,;t t
21559s,@sbindir@,$sbindir,;t t
21560s,@libexecdir@,$libexecdir,;t t
21561s,@datadir@,$datadir,;t t
21562s,@sysconfdir@,$sysconfdir,;t t
21563s,@sharedstatedir@,$sharedstatedir,;t t
21564s,@localstatedir@,$localstatedir,;t t
21565s,@libdir@,$libdir,;t t
21566s,@includedir@,$includedir,;t t
21567s,@oldincludedir@,$oldincludedir,;t t
21568s,@infodir@,$infodir,;t t
21569s,@mandir@,$mandir,;t t
21570s,@build_alias@,$build_alias,;t t
21571s,@host_alias@,$host_alias,;t t
21572s,@target_alias@,$target_alias,;t t
21573s,@DEFS@,$DEFS,;t t
21574s,@ECHO_C@,$ECHO_C,;t t
21575s,@ECHO_N@,$ECHO_N,;t t
21576s,@ECHO_T@,$ECHO_T,;t t
21577s,@LIBS@,$LIBS,;t t
21578s,@build@,$build,;t t
21579s,@build_cpu@,$build_cpu,;t t
21580s,@build_vendor@,$build_vendor,;t t
21581s,@build_os@,$build_os,;t t
21582s,@host@,$host,;t t
21583s,@host_cpu@,$host_cpu,;t t
21584s,@host_vendor@,$host_vendor,;t t
21585s,@host_os@,$host_os,;t t
21586s,@target@,$target,;t t
21587s,@target_cpu@,$target_cpu,;t t
21588s,@target_vendor@,$target_vendor,;t t
21589s,@target_os@,$target_os,;t t
21590s,@CC@,$CC,;t t
21591s,@CFLAGS@,$CFLAGS,;t t
21592s,@LDFLAGS@,$LDFLAGS,;t t
21593s,@CPPFLAGS@,$CPPFLAGS,;t t
21594s,@ac_ct_CC@,$ac_ct_CC,;t t
21595s,@EXEEXT@,$EXEEXT,;t t
21596s,@OBJEXT@,$OBJEXT,;t t
21597s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21598s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21599s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 21600s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
21601s,@PACKAGE@,$PACKAGE,;t t
21602s,@VERSION@,$VERSION,;t t
21603s,@ACLOCAL@,$ACLOCAL,;t t
21604s,@AUTOCONF@,$AUTOCONF,;t t
21605s,@AUTOMAKE@,$AUTOMAKE,;t t
21606s,@AUTOHEADER@,$AUTOHEADER,;t t
21607s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
21608s,@install_sh@,$install_sh,;t t
21609s,@STRIP@,$STRIP,;t t
21610s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21611s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21612s,@mkdir_p@,$mkdir_p,;t t
21613s,@AWK@,$AWK,;t t
5464f5a1 21614s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
21615s,@am__leading_dot@,$am__leading_dot,;t t
21616s,@AMTAR@,$AMTAR,;t t
21617s,@am__tar@,$am__tar,;t t
21618s,@am__untar@,$am__untar,;t t
21619s,@DEPDIR@,$DEPDIR,;t t
21620s,@am__include@,$am__include,;t t
21621s,@am__quote@,$am__quote,;t t
21622s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21623s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21624s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21625s,@CCDEPMODE@,$CCDEPMODE,;t t
21626s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21627s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
21628s,@AR@,$AR,;t t
21629s,@ac_ct_AR@,$ac_ct_AR,;t t
21630s,@RANLIB@,$RANLIB,;t t
21631s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5464f5a1 21632s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb
SE
21633s,@SED@,$SED,;t t
21634s,@EGREP@,$EGREP,;t t
21635s,@FGREP@,$FGREP,;t t
21636s,@GREP@,$GREP,;t t
21637s,@LD@,$LD,;t t
21638s,@DUMPBIN@,$DUMPBIN,;t t
21639s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21640s,@NM@,$NM,;t t
21641s,@LN_S@,$LN_S,;t t
21642s,@lt_ECHO@,$lt_ECHO,;t t
21643s,@CPP@,$CPP,;t t
0d4a1476 21644s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 21645s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
21646s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21647s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 21648s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 21649s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
21650s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21651s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21652s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
21653s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21654s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
21655s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21656s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
21657s,@host_noncanonical@,$host_noncanonical,;t t
21658s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
21659s,@bfdlibdir@,$bfdlibdir,;t t
21660s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 21661s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
21662s,@LIBINTL@,$LIBINTL,;t t
21663s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21664s,@INCINTL@,$INCINTL,;t t
5464f5a1 21665s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
21666s,@GMSGFMT@,$GMSGFMT,;t t
21667s,@POSUB@,$POSUB,;t t
5464f5a1 21668s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 21669s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 21670s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
21671s,@GENCAT@,$GENCAT,;t t
21672s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 21673s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
21674s,@MSGFMT@,$MSGFMT,;t t
21675s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
21676s,@HDEFINES@,$HDEFINES,;t t
21677s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 21678s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
21679s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21680s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21681s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 21682s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
21683s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21684s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21685s,@COREFILE@,$COREFILE,;t t
21686s,@COREFLAG@,$COREFLAG,;t t
21687s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21688s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21689s,@TDEFINES@,$TDEFINES,;t t
21690s,@wordsize@,$wordsize,;t t
21e40a48 21691s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
21692s,@all_backends@,$all_backends,;t t
21693s,@bfd_backends@,$bfd_backends,;t t
21694s,@bfd_machines@,$bfd_machines,;t t
21695s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21696s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21697s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21698s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
21699s,@datarootdir@,$datarootdir,;t t
21700s,@docdir@,$docdir,;t t
21701s,@htmldir@,$htmldir,;t t
5464f5a1
NN
21702s,@LIBOBJS@,$LIBOBJS,;t t
21703s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 21704CEOF
252b5132 21705
5464f5a1
NN
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
252b5132 21720 else
5464f5a1
NN
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`
252b5132 21740 fi
5464f5a1
NN
21741 done
21742 if test -z "$ac_sed_cmds"; then
21743 ac_sed_cmds=cat
252b5132 21744 fi
5464f5a1 21745fi # test -n "$CONFIG_FILES"
6be7c12c 21746
5464f5a1
NN
21747_ACEOF
21748cat >>$CONFIG_STATUS <<\_ACEOF
21749for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 21750 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
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 ;;
252b5132
RH
21759 esac
21760
5464f5a1
NN
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 ||
21768echo 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"
252b5132 21776 else
5464f5a1
NN
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 ||
21787echo 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
21796echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21797 { (exit 1); exit 1; }; }; }
21798
21799 ac_builddir=.
21800
21801if 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'`
21805else
21806 ac_dir_suffix= ac_top_builddir=
21807fi
252b5132 21808
5464f5a1
NN
21809case $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 ;;
252b5132 21820 *) # Relative path.
5464f5a1
NN
21821 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21822 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21823esac
252b5132 21824
5464f5a1
NN
21825# Do not use `cd foo && pwd` to compute absolute paths, because
21826# the directories may not exist.
21827case `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;;
21835esac
21836case $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;;
21844esac
21845case $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;;
21853esac
21854case $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;;
21862esac
252b5132 21863
5464f5a1
NN
21864
21865 case $INSTALL in
21866 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21867 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 21868 esac
252b5132 21869
5464f5a1
NN
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
21890echo "$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
21903echo "$as_me: error: cannot find input file: $f" >&2;}
21904 { (exit 1); exit 1; }; }
21905 fi;;
21906 esac
21907 done` || { (exit 1); exit 1; }
1b315056
CS
21908
21909 if test x"$ac_file" != x-; then
21910 { echo "$as_me:$LINENO: creating $ac_file" >&5
21911echo "$as_me: creating $ac_file" >&6;}
21912 rm -f "$ac_file"
21913 fi
5464f5a1
NN
21914_ACEOF
21915cat >>$CONFIG_STATUS <<_ACEOF
21916 sed "$ac_vpsub
21917$extrasub
21918_ACEOF
21919cat >>$CONFIG_STATUS <<\_ACEOF
21920:t
21921/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21922s,@configure_input@,$configure_input,;t t
21923s,@srcdir@,$ac_srcdir,;t t
21924s,@abs_srcdir@,$ac_abs_srcdir,;t t
21925s,@top_srcdir@,$ac_top_srcdir,;t t
21926s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21927s,@builddir@,$ac_builddir,;t t
21928s,@abs_builddir@,$ac_abs_builddir,;t t
21929s,@top_builddir@,$ac_top_builddir,;t t
21930s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21931s,@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
21941done
21942_ACEOF
21943cat >>$CONFIG_STATUS <<\_ACEOF
21944
21945#
21946# CONFIG_HEADER section.
21947#
252b5132
RH
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.
5464f5a1
NN
21953ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21954ac_dB='[ ].*$,\1#\2'
21955ac_dC=' '
21956ac_dD=',;t'
21957# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21958ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21959ac_uB='$,\1#\2define\3'
252b5132 21960ac_uC=' '
5464f5a1
NN
21961ac_uD=',;t'
21962
21963for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 21964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
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 ;;
252b5132
RH
21973 esac
21974
5464f5a1
NN
21975 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21976echo "$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
21987echo "$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
22001echo "$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.
22018rm -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'.
22025cat >confdef2sed.sed <<\_ACEOF
22026s/[\\&,]/\\&/g
22027s,[\\$`],\\&,g
22028t clear
22029: clear
22030s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22031t end
22032s,^[ ]*#[ ]*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.
22038uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22039sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22040rm -f confdef2sed.sed
252b5132
RH
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.
5464f5a1
NN
22045cat >>conftest.undefs <<\_ACEOF
22046s,^[ ]*#[ ]*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).
22051echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22052echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22053echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22054echo ' :' >>$CONFIG_STATUS
22055rm -f conftest.tail
22056while grep . conftest.defines >/dev/null
22057do
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
22074done
22075rm -f conftest.defines
22076echo ' fi # grep' >>$CONFIG_STATUS
22077echo >>$CONFIG_STATUS
252b5132 22078
5464f5a1
NN
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).
22081echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 22082rm -f conftest.tail
5464f5a1 22083while grep . conftest.undefs >/dev/null
252b5132 22084do
5464f5a1
NN
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
252b5132 22093 echo 'CEOF
5464f5a1
NN
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
252b5132 22101done
5464f5a1
NN
22102rm -f conftest.undefs
22103
22104cat >>$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
22118echo "$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 ||
22126echo 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"
252b5132 22134 else
5464f5a1
NN
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 ||
22145echo 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
22154echo "$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
252b5132 22159 fi
5464f5a1
NN
22160 else
22161 cat $tmp/config.h
22162 rm -f $tmp/config.h
252b5132 22163 fi
f5385ebf
AM
22164# Compute $ac_file's index in $config_headers.
22165_am_stamp_count=1
22166for _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
22173done
22174echo "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 ||
22180echo 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
5464f5a1
NN
22186done
22187_ACEOF
22188cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 22189
5464f5a1
NN
22190#
22191# CONFIG_COMMANDS section.
22192#
22193for 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 ||
22202echo 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 ||
22221echo 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
22230echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22231 { (exit 1); exit 1; }; }; }
b3baf5d0 22232
5464f5a1 22233 ac_builddir=.
b3baf5d0 22234
5464f5a1
NN
22235if 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'`
22239else
22240 ac_dir_suffix= ac_top_builddir=
22241fi
22242
22243case $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 ;;
22257esac
22258
22259# Do not use `cd foo && pwd` to compute absolute paths, because
22260# the directories may not exist.
22261case `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;;
22269esac
22270case $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;;
22278esac
22279case $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;;
22287esac
22288case $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;;
22296esac
22297
22298
22299 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22300echo "$as_me: executing $ac_dest commands" >&6;}
22301 case $ac_dest in
f5385ebf
AM
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 ||
22318echo 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 ||
22351echo 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 ||
22370echo 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
22379echo "$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
22385done
d7040cdb
SE
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
0b3e17e9 22415# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
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.
22436available_tags=""
22437
22438# ### BEGIN LIBTOOL CONFIG
22439
22440# Whether or not to build shared libraries.
22441build_libtool_libs=$enable_shared
22442
22443# Which release of libtool.m4 was used?
22444macro_version=$macro_version
22445macro_revision=$macro_revision
22446
22447# Whether or not to build static libraries.
22448build_old_libs=$enable_static
22449
22450# What type of objects to build.
22451pic_mode=$pic_mode
22452
22453# Whether or not to optimize for fast installation.
22454fast_install=$enable_fast_install
22455
22456# The host system.
22457host_alias=$host_alias
22458host=$host
22459host_os=$host_os
22460
22461# The build system.
22462build_alias=$build_alias
22463build=$build
22464build_os=$build_os
22465
22466# A sed program that does not truncate output.
22467SED=$lt_SED
22468
22469# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22470Xsed="\$SED -e 1s/^X//"
22471
22472# A grep program that handles long lines.
22473GREP=$lt_GREP
22474
22475# An ERE matcher.
22476EGREP=$lt_EGREP
22477
22478# A literal string matcher.
22479FGREP=$lt_FGREP
22480
22481# A BSD- or MS-compatible name lister.
22482NM=$lt_NM
22483
22484# Whether we need soft or hard links.
22485LN_S=$lt_LN_S
22486
22487# What is the maximum length of a command?
22488max_cmd_len=$max_cmd_len
22489
22490# Object file suffix (normally "o").
22491objext=$ac_objext
22492
22493# Executable file suffix (normally "").
22494exeext=$exeext
22495
22496# whether the shell understands "unset".
22497lt_unset=$lt_unset
22498
22499# turn spaces into newlines.
22500SP2NL=$lt_lt_SP2NL
22501
22502# turn newlines into spaces.
22503NL2SP=$lt_lt_NL2SP
22504
22505# How to create reloadable object files.
22506reload_flag=$lt_reload_flag
22507reload_cmds=$lt_reload_cmds
22508
22509# Method to check whether dependent libraries are shared objects.
22510deplibs_check_method=$lt_deplibs_check_method
22511
22512# Command to use when deplibs_check_method == "file_magic".
22513file_magic_cmd=$lt_file_magic_cmd
22514
22515# The archiver.
22516AR=$lt_AR
22517AR_FLAGS=$lt_AR_FLAGS
22518
22519# A symbol stripping program.
22520STRIP=$lt_STRIP
22521
22522# Commands used to install an old-style archive.
22523RANLIB=$lt_RANLIB
22524old_postinstall_cmds=$lt_old_postinstall_cmds
22525old_postuninstall_cmds=$lt_old_postuninstall_cmds
22526
22527# A C compiler.
22528LTCC=$lt_CC
22529
22530# LTCC compiler flags.
22531LTCFLAGS=$lt_CFLAGS
22532
22533# Take the output of nm and produce a listing of raw symbols and C names.
22534global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22535
22536# Transform the output of nm in a proper C declaration.
22537global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22538
22539# Transform the output of nm in a C name address pair.
22540global_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.
22543objdir=$objdir
22544
22545# Shell to use when invoking shell scripts.
22546SHELL=$lt_SHELL
22547
22548# An echo program that does not interpret backslashes.
22549ECHO=$lt_ECHO
22550
22551# Used to examine libraries when file_magic_cmd begins with "file".
22552MAGIC_CMD=$MAGIC_CMD
22553
22554# Must we lock files when doing compilation?
22555need_locks=$lt_need_locks
22556
22557# Old archive suffix (normally "a").
22558libext=$libext
22559
22560# Shared library suffix (normally ".so").
22561shrext_cmds=$lt_shrext_cmds
22562
22563# The commands to extract the exported symbol list from a shared archive.
22564extract_expsyms_cmds=$lt_extract_expsyms_cmds
22565
22566# Variables whose values should be saved in libtool wrapper scripts and
22567# restored at link time.
22568variables_saved_for_relink=$lt_variables_saved_for_relink
22569
22570# Do we need the "lib" prefix for modules?
22571need_lib_prefix=$need_lib_prefix
22572
22573# Do we need a version for libraries?
22574need_version=$need_version
22575
22576# Library versioning type.
22577version_type=$version_type
22578
22579# Shared library runtime path variable.
22580runpath_var=$runpath_var
22581
22582# Shared library path variable.
22583shlibpath_var=$shlibpath_var
22584
22585# Is shlibpath searched before the hard-coded library search path?
22586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22587
22588# Format of library name prefix.
22589libname_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
22593library_names_spec=$lt_library_names_spec
22594
22595# The coded name of the library, if different from the real name.
22596soname_spec=$lt_soname_spec
22597
22598# Command to use after installation of a shared archive.
22599postinstall_cmds=$lt_postinstall_cmds
22600
22601# Command to use after uninstallation of a shared archive.
22602postuninstall_cmds=$lt_postuninstall_cmds
22603
22604# Commands used to finish a libtool library installation in a directory.
22605finish_cmds=$lt_finish_cmds
22606
22607# As "finish_cmds", except a single script fragment to be evaled but
22608# not shown.
22609finish_eval=$lt_finish_eval
22610
22611# Whether we should hardcode library paths into libraries.
22612hardcode_into_libs=$hardcode_into_libs
22613
22614# Compile-time system search path for libraries.
22615sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22616
22617# Run-time system search path for libraries.
22618sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22619
22620# Whether dlopen is supported.
22621dlopen_support=$enable_dlopen
22622
22623# Whether dlopen of programs is supported.
22624dlopen_self=$enable_dlopen_self
22625
22626# Whether dlopen of statically linked programs is supported.
22627dlopen_self_static=$enable_dlopen_self_static
22628
22629# Commands to strip libraries.
22630old_striplib=$lt_old_striplib
22631striplib=$lt_striplib
22632
22633
22634# The linker used to build libraries.
22635LD=$lt_LD
22636
22637# Commands used to build an old-style archive.
22638old_archive_cmds=$lt_old_archive_cmds
22639
22640# A language specific compiler.
22641CC=$lt_compiler
22642
22643# Is the compiler the GNU compiler?
22644with_gcc=$GCC
22645
22646# Compiler flag to turn off builtin functions.
22647no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22648
22649# How to pass a linker flag through the compiler.
22650wl=$lt_lt_prog_compiler_wl
22651
22652# Additional compiler flags for building library objects.
22653pic_flag=$lt_lt_prog_compiler_pic
22654
22655# Compiler flag to prevent dynamic linking.
22656link_static_flag=$lt_lt_prog_compiler_static
22657
22658# Does compiler simultaneously support -c and -o options?
22659compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22660
22661# Whether or not to add -lc for building shared libraries.
22662build_libtool_need_lc=$archive_cmds_need_lc
22663
22664# Whether or not to disallow shared libs when runtime libs are static.
22665allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22666
22667# Compiler flag to allow reflexive dlopens.
22668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22669
22670# Compiler flag to generate shared objects directly from archives.
22671whole_archive_flag_spec=$lt_whole_archive_flag_spec
22672
22673# Whether the compiler copes with passing no objects directly.
22674compiler_needs_object=$lt_compiler_needs_object
22675
22676# Create an old-style archive from a shared archive.
22677old_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.
22680old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22681
22682# Commands used to build a shared archive.
22683archive_cmds=$lt_archive_cmds
22684archive_expsym_cmds=$lt_archive_expsym_cmds
22685
22686# Commands used to build a loadable module if different from building
22687# a shared archive.
22688module_cmds=$lt_module_cmds
22689module_expsym_cmds=$lt_module_expsym_cmds
22690
22691# Whether we are building with GNU ld or not.
22692with_gnu_ld=$lt_with_gnu_ld
22693
22694# Flag that allows shared libraries with undefined symbols to be built.
22695allow_undefined_flag=$lt_allow_undefined_flag
22696
22697# Flag that enforces no undefined symbols.
22698no_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
22702hardcode_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.
22706hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22707
22708# Whether we need a single "-rpath" flag with a separated argument.
22709hardcode_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.
22713hardcode_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.
22719hardcode_direct_absolute=$hardcode_direct_absolute
22720
22721# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22722# into the resulting binary.
22723hardcode_minus_L=$hardcode_minus_L
22724
22725# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22726# into the resulting binary.
22727hardcode_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.
22732hardcode_automatic=$hardcode_automatic
22733
22734# Set to yes if linker adds runtime paths of dependent libraries
22735# to runtime path list.
22736inherit_rpath=$inherit_rpath
22737
22738# Whether libtool must link a program against all its dependency libraries.
22739link_all_deplibs=$link_all_deplibs
22740
22741# Fix the shell variable \$srcfile for the compiler.
22742fix_srcfile_path=$lt_fix_srcfile_path
22743
22744# Set to "yes" if exported symbols are required.
22745always_export_symbols=$always_export_symbols
22746
22747# The commands to list exported symbols.
22748export_symbols_cmds=$lt_export_symbols_cmds
22749
22750# Symbols that should not be listed in the preloaded symbols.
22751exclude_expsyms=$lt_exclude_expsyms
22752
22753# Symbols that must always be exported.
22754include_expsyms=$lt_include_expsyms
22755
22756# Commands necessary for linking programs (against libraries) with templates.
22757prelink_cmds=$lt_prelink_cmds
22758
22759# Specify filename containing input files.
22760file_list_spec=$lt_file_list_spec
22761
22762# How to hardcode a shared library path into an executable.
22763hardcode_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.
22775if test "X${COLLECT_NAMES+set}" != Xset; then
22776 COLLECT_NAMES=
22777 export COLLECT_NAMES
22778fi
22779_LT_EOF
22780 ;;
22781 esac
22782
22783
22784ltmain="$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.
22800func_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
22809func_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).
22819func_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
22829func_opt_split ()
22830{
22831 func_opt_split_opt=${1%%=*}
22832 func_opt_split_arg=${1#*=}
22833}
22834
22835# func_lo2o object
22836func_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.
22850func_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
22862func_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
22873func_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:
22884my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22885my_sed_long_arg='1s/^-[^=]*=//'
22886
22887# func_opt_split
22888func_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
22895func_lo2o ()
22896{
22897 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22898}
22899_LT_EOF
22900esac
22901
22902case $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.
22908func_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.
22919func_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
f5385ebf 22935 ;;
20e95c23
DJ
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 ;;
d5efd9fc
AM
23037 bfd_stdint.h )
23038if test "$GCC" = yes; then
23039 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23040else
23041 echo "/* generated for $CC */" > tmp-stdint.h
23042fi
23043
23044sed '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>
23050EOF
23051
23052if test "$acx_cv_header_stdint" != stdint.h; then
23053 echo "#include <stddef.h>" >> tmp-stdint.h
23054fi
23055if test "$acx_cv_header_stdint" != stddef.h; then
23056 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23057fi
23058
23059sed '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
23070EOF
23071
23072# ----------------- done header, emit basic int types -------------
23073if 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
23123EOF
23124elif 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
23161EOF
23162else
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
23184EOF
23185fi
23186
23187# ------------- done basic int types, emit int64_t types ------------
23188if 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
23198EOF
23199elif 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
23213EOF
23214elif 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
23229EOF
23230else
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 */
23277EOF
23278fi
23279
23280# ------------- done int64_t types, emit intptr types ------------
23281if 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
23291EOF
23292fi
23293
23294# ------------- done intptr types, emit int_least types ------------
23295if 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
23312EOF
23313fi
23314
23315# ------------- done intptr types, emit int_fast types ------------
23316if 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
23333EOF
23334fi
23335
23336if 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
23350EOF
23351fi
23352
23353sed 's/^ *//' >> tmp-stdint.h <<EOF
23354
23355 #endif /* GCC_GENERATED_STDINT_H */
23356EOF
23357
23358if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23359 rm -f tmp-stdint.h
23360else
23361 mv -f tmp-stdint.h bfd_stdint.h
23362fi
23363
23364 ;;
20e95c23
DJ
23365 default )
23366case "$srcdir" in
23367 .) srcdirpre= ;;
23368 *) srcdirpre='$(srcdir)/' ;;
23369esac
23370POFILES=
23371GMOFILES=
23372for 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
23377done
23378sed -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 ;;
5464f5a1
NN
23383 esac
23384done
23385_ACEOF
23386
23387cat >>$CONFIG_STATUS <<\_ACEOF
23388
23389{ (exit 0); exit 0; }
23390_ACEOF
252b5132 23391chmod +x $CONFIG_STATUS
5464f5a1
NN
23392ac_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.
23403if 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; }
23414fi
252b5132 23415
55c80943 23416
This page took 1.772923 seconds and 4 git commands to generate.