2008-09-08 Tristan Gingold <gingold@adacore.com>
[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
7357c5b6 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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
5464f5a1 462ac_subst_files=''
7357c5b6 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
5464f5a1
NN
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
5464f5a1 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
5464f5a1
NN
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
5464f5a1 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
5464f5a1 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
5464f5a1 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
5464f5a1 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
5464f5a1 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
5464f5a1
NN
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
5464f5a1 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
5464f5a1
NN
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
5464f5a1 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
5464f5a1 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
5464f5a1
NN
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
5464f5a1 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
5464f5a1 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
5464f5a1 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
5464f5a1 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
5464f5a1 711 site=$ac_optarg ;;
6be7c12c 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
5464f5a1
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
5464f5a1 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
5464f5a1
NN
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
5464f5a1 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
5464f5a1 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
5464f5a1
NN
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 774 x_libraries=$ac_optarg ;;
252b5132 775
5464f5a1
NN
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
5464f5a1
NN
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
5464f5a1
NN
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
5464f5a1
NN
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
252b5132 806fi
252b5132 807
5464f5a1
NN
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
6be7c12c 818
5464f5a1
NN
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
5464f5a1
NN
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
5464f5a1
NN
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
252b5132 848
5464f5a1
NN
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
5464f5a1
NN
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
5464f5a1
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
5464f5a1
NN
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
b3baf5d0 923
5464f5a1
NN
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
252b5132 932
5464f5a1 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
5464f5a1
NN
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 937
5464f5a1 938Defaults for the options are specified in brackets.
6be7c12c 939
5464f5a1
NN
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
6be7c12c 959
5464f5a1
NN
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
6be7c12c 964
5464f5a1 965For better control, use the options below.
6be7c12c 966
5464f5a1
NN
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
6be7c12c 981
5464f5a1 982 cat <<\_ACEOF
6be7c12c 983
5464f5a1
NN
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 988
5464f5a1
NN
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
252b5132 994fi
252b5132 995
5464f5a1 996if test -n "$ac_init_help"; then
6be7c12c 997
5464f5a1 998 cat <<\_ACEOF
252b5132 999
5464f5a1
NN
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
5464f5a1
NN
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1013 --enable-targets alternative target configurations
1014 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 1015 --enable-secureplt Default to creating read-only plt entries
504b7d20 1016 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1017 --enable-werror treat compile warnings as errors
1018 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
5464f5a1
NN
1021 --enable-install-libbfd controls installation of libbfd and related headers
1022 --disable-nls do not use Native Language Support
1023
1024Optional Packages:
1025 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1026 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1027 --with-pic try to use only PIC/non-PIC objects [default=use
1028 both]
1029 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1030 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1031 --with-separate-debug-dir=DIR
1032 Look for global separate debug info in DIR
1033 [default=LIBDIR/debug]
a1ac8190
JM
1034 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1035 Binutils"
c428fa83 1036 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1037
1038Some influential environment variables:
1039 CC C compiler command
1040 CFLAGS C compiler flags
1041 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1042 nonstandard directory <lib dir>
1043 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1044 headers in a nonstandard directory <include dir>
1045 CPP C preprocessor
1046
1047Use these variables to override the choices made by `configure' or to help
1048it to find libraries and programs with nonstandard names/locations.
1049
1050_ACEOF
1051fi
1052
1053if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1055 ac_popdir=`pwd`
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1058 ac_builddir=.
1059
1060if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064else
1065 ac_dir_suffix= ac_top_builddir=
1066fi
1067
1068case $srcdir in
1069 .) # No --srcdir option. We are building in place.
1070 ac_srcdir=.
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
1082esac
1083
5464f5a1
NN
1084# Do not use `cd foo && pwd` to compute absolute paths, because
1085# the directories may not exist.
1086case `pwd` in
1087.) ac_abs_builddir="$ac_dir";;
1088*)
1089 case "$ac_dir" in
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_builddir=${ac_top_builddir}.;;
1097*)
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102 esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_srcdir=$ac_srcdir;;
1106*)
1107 case $ac_srcdir in
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_srcdir=$ac_top_srcdir;;
1115*)
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120 esac;;
1121esac
6be7c12c 1122
5464f5a1
NN
1123 cd $ac_dir
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1126 echo
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1129 echo
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1133 echo
1134 $ac_configure --help
1135 else
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137 fi
7357c5b6 1138 cd $ac_popdir
5464f5a1 1139 done
6be7c12c
AO
1140fi
1141
5464f5a1
NN
1142test -n "$ac_init_help" && exit 0
1143if $ac_init_version; then
1144 cat <<\_ACEOF
6be7c12c 1145
5464f5a1
NN
1146Copyright (C) 2003 Free Software Foundation, Inc.
1147This configure script is free software; the Free Software Foundation
1148gives unlimited permission to copy, distribute and modify it.
1149_ACEOF
1150 exit 0
1151fi
1152exec 5>config.log
1153cat >&5 <<_ACEOF
1154This file contains any messages produced by compilers while
1155running configure, to aid debugging if configure makes a mistake.
6be7c12c 1156
5464f5a1
NN
1157It was created by $as_me, which was
1158generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1159
5464f5a1 1160 $ $0 $@
6be7c12c 1161
5464f5a1
NN
1162_ACEOF
1163{
1164cat <<_ASUNAME
1165## --------- ##
1166## Platform. ##
1167## --------- ##
1168
1169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1177
1178/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185
1186_ASUNAME
1187
1188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189for as_dir in $PATH
1190do
1191 IFS=$as_save_IFS
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1194done
6be7c12c 1195
5464f5a1 1196} >&5
66e25bab 1197
5464f5a1 1198cat >&5 <<_ACEOF
b3baf5d0 1199
6be7c12c 1200
5464f5a1
NN
1201## ----------- ##
1202## Core tests. ##
1203## ----------- ##
252b5132 1204
5464f5a1 1205_ACEOF
c5d1701e 1206
6be7c12c 1207
5464f5a1
NN
1208# Keep a trace of the command line.
1209# Strip out --no-create and --no-recursion so they do not pile up.
1210# Strip out --silent because we don't want to record it for future runs.
1211# Also quote any args containing shell meta-characters.
1212# Make two passes to allow for proper duplicate-argument suppression.
1213ac_configure_args=
1214ac_configure_args0=
1215ac_configure_args1=
1216ac_sep=
1217ac_must_keep_next=false
1218for ac_pass in 1 2
1219do
1220 for ac_arg
1221 do
1222 case $ac_arg in
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 continue ;;
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 esac
1230 case $ac_pass in
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232 2)
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1236 else
1237 case $ac_arg in
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244 esac
1245 ;;
1246 -* ) ac_must_keep_next=true ;;
1247 esac
1248 fi
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1251 ac_sep=" "
1252 ;;
1253 esac
1254 done
1255done
1256$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259# When interrupted or exit'd, cleanup temporary files, and complete
1260# config.log. We remove comments because anyway the quotes in there
1261# would cause problems or look ugly.
1262# WARNING: Be sure not to use single quotes in there, as some shells,
1263# such as our DU 5.0 friend, will then `close' the trap.
1264trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1266 {
1267 echo
1268
1269 cat <<\_ASBOX
1270## ---------------- ##
1271## Cache variables. ##
1272## ---------------- ##
1273_ASBOX
1274 echo
1275 # The following way of writing the cache mishandles newlines in values,
1276{
1277 (set) 2>&1 |
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 *ac_space=\ *)
1280 sed -n \
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 ;;
1284 *)
1285 sed -n \
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287 ;;
1288 esac;
1289}
1290 echo
1291
1292 cat <<\_ASBOX
1293## ----------------- ##
1294## Output variables. ##
1295## ----------------- ##
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_vars
1299 do
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1304
1305 if test -n "$ac_subst_files"; then
1306 cat <<\_ASBOX
1307## ------------- ##
1308## Output files. ##
1309## ------------- ##
1310_ASBOX
1311 echo
1312 for ac_var in $ac_subst_files
1313 do
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1316 done | sort
1317 echo
1318 fi
1319
1320 if test -s confdefs.h; then
1321 cat <<\_ASBOX
1322## ----------- ##
1323## confdefs.h. ##
1324## ----------- ##
1325_ASBOX
1326 echo
1327 sed "/^$/d" confdefs.h | sort
1328 echo
1329 fi
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1333 } >&5
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336 exit $exit_status
1337 ' 0
1338for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340done
1341ac_signal=0
1342
1343# confdefs.h avoids OS command line length limits that DEFS can exceed.
1344rm -rf conftest* confdefs.h
1345# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346echo >confdefs.h
1347
1348# Predefined preprocessor variables.
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_NAME "$PACKAGE_NAME"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_VERSION "$PACKAGE_VERSION"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_STRING "$PACKAGE_STRING"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372_ACEOF
1373
1374
1375# Let the site file select an alternate cache file if it wants to.
1376# Prefer explicitly selected file to automatically selected ones.
1377if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380 else
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 fi
1383fi
1384for ac_site_file in $CONFIG_SITE; do
1385 if test -r "$ac_site_file"; then
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
1389 . "$ac_site_file"
1390 fi
1391done
1392
1393if test -r "$cache_file"; then
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398echo "$as_me: loading cache $cache_file" >&6;}
1399 case $cache_file in
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1402 esac
1403 fi
1404else
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406echo "$as_me: creating cache $cache_file" >&6;}
1407 >$cache_file
1408fi
1409
1410# Check that the precious variables saved in the cache have kept the same
1411# value.
1412ac_cache_corrupted=false
1413for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1419 case $ac_old_set,$ac_new_set in
1420 set,)
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1424 ,set)
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1428 ,);;
1429 *)
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1431 # differences in whitespace do not lead to failure.
1432 ac_old_val_w=`echo x $ac_old_val`
1433 ac_new_val_w=`echo x $ac_new_val`
1434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1435 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5464f5a1 1436echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1437 ac_cache_corrupted=:
1438 else
1439 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1440echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1441 eval $ac_var=\$ac_old_val
1442 fi
1443 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1444echo "$as_me: former value: \`$ac_old_val'" >&2;}
1445 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1446echo "$as_me: current value: \`$ac_new_val'" >&2;}
5464f5a1
NN
1447 fi;;
1448 esac
1449 # Pass precious variables to config.status.
1450 if test "$ac_new_set" = set; then
1451 case $ac_new_val in
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1455 esac
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459 esac
1460 fi
1461done
1462if $ac_cache_corrupted; then
7357c5b6
AM
1463 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1464echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
1465 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1466echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1467 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1468echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469 { (exit 1); exit 1; }; }
1470fi
1471
1472ac_ext=c
1473ac_cpp='$CPP $CPPFLAGS'
1474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
7357c5b6
AM
1494
1495
1496
5464f5a1
NN
1497
1498
1499
1500
1501ac_aux_dir=
1502for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1515 fi
1516done
1517if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1521fi
1522ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526# Make sure we can run config.sub.
1527$ac_config_sub sun4 >/dev/null 2>&1 ||
1528 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532echo "$as_me:$LINENO: checking build system type" >&5
1533echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534if test "${ac_cv_build+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 ac_cv_build_alias=$build_alias
1538test -z "$ac_cv_build_alias" &&
1539 ac_cv_build_alias=`$ac_config_guess`
1540test -z "$ac_cv_build_alias" &&
1541 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543 { (exit 1); exit 1; }; }
1544ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549fi
1550echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551echo "${ECHO_T}$ac_cv_build" >&6
1552build=$ac_cv_build
1553build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571fi
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1574host=$ac_cv_host
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
1593fi
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1596target=$ac_cv_target
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
1608ac_ext=c
1609ac_cpp='$CPP $CPPFLAGS'
1610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1612ac_compiler_gnu=$ac_cv_c_compiler_gnu
1613if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1615set dummy ${ac_tool_prefix}gcc; ac_word=$2
1616echo "$as_me:$LINENO: checking for $ac_word" >&5
1617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623else
1624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1634 fi
1635done
1636done
1637
1638fi
1639fi
1640CC=$ac_cv_prog_CC
1641if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643echo "${ECHO_T}$CC" >&6
1644else
1645 echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
1647fi
1648
1649fi
1650if test -z "$ac_cv_prog_CC"; then
1651 ac_ct_CC=$CC
1652 # Extract the first word of "gcc", so it can be a program name with args.
1653set dummy gcc; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CC="gcc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
1674done
1675
1676fi
1677fi
1678ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679if test -n "$ac_ct_CC"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681echo "${ECHO_T}$ac_ct_CC" >&6
1682else
1683 echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687 CC=$ac_ct_CC
1688else
1689 CC="$ac_cv_prog_CC"
1690fi
1691
1692if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1695set dummy ${ac_tool_prefix}cc; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_CC="${ac_tool_prefix}cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715done
1716done
1717
1718fi
1719fi
1720CC=$ac_cv_prog_CC
1721if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723echo "${ECHO_T}$CC" >&6
1724else
1725 echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729fi
1730if test -z "$ac_cv_prog_CC"; then
1731 ac_ct_CC=$CC
1732 # Extract the first word of "cc", so it can be a program name with args.
1733set dummy cc; ac_word=$2
1734echo "$as_me:$LINENO: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741else
1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743for as_dir in $PATH
1744do
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="cc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2
1752 fi
1753done
1754done
1755
1756fi
1757fi
1758ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761echo "${ECHO_T}$ac_ct_CC" >&6
1762else
1763 echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6
1765fi
1766
1767 CC=$ac_ct_CC
1768else
1769 CC="$ac_cv_prog_CC"
1770fi
1771
1772fi
1773if test -z "$CC"; then
1774 # Extract the first word of "cc", so it can be a program name with args.
1775set dummy cc; ac_word=$2
1776echo "$as_me:$LINENO: checking for $ac_word" >&5
1777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1783else
1784 ac_prog_rejected=no
1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1793 ac_prog_rejected=yes
1794 continue
1795 fi
1796 ac_cv_prog_CC="cc"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1799 fi
1800done
1801done
1802
1803if test $ac_prog_rejected = yes; then
1804 # We found a bogon in the path, so make sure we never use it.
1805 set dummy $ac_cv_prog_CC
1806 shift
1807 if test $# != 0; then
1808 # We chose a different compiler from the bogus one.
1809 # However, it has the same basename, so the bogon will be chosen
1810 # first if we set CC to just the basename; use the full file name.
1811 shift
1812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1813 fi
1814fi
1815fi
1816fi
1817CC=$ac_cv_prog_CC
1818if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820echo "${ECHO_T}$CC" >&6
1821else
1822 echo "$as_me:$LINENO: result: no" >&5
1823echo "${ECHO_T}no" >&6
1824fi
1825
1826fi
1827if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1829 for ac_prog in cl
1830 do
1831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1833echo "$as_me:$LINENO: checking for $ac_word" >&5
1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837else
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1840else
1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1851 fi
1852done
1853done
1854
1855fi
1856fi
1857CC=$ac_cv_prog_CC
1858if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860echo "${ECHO_T}$CC" >&6
1861else
1862 echo "$as_me:$LINENO: result: no" >&5
1863echo "${ECHO_T}no" >&6
1864fi
1865
1866 test -n "$CC" && break
1867 done
1868fi
1869if test -z "$CC"; then
1870 ac_ct_CC=$CC
1871 for ac_prog in cl
1872do
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874set dummy $ac_prog; ac_word=$2
1875echo "$as_me:$LINENO: checking for $ac_word" >&5
1876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882else
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_ac_ct_CC="$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1893 fi
1894done
1895done
1896
1897fi
1898fi
1899ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900if test -n "$ac_ct_CC"; then
1901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902echo "${ECHO_T}$ac_ct_CC" >&6
1903else
1904 echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908 test -n "$ac_ct_CC" && break
1909done
1910
1911 CC=$ac_ct_CC
1912fi
1913
1914fi
1915
1916
7357c5b6
AM
1917test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1918echo "$as_me: error: in \`$ac_pwd':" >&2;}
1919{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5464f5a1
NN
1920See \`config.log' for more details." >&5
1921echo "$as_me: error: no acceptable C compiler found in \$PATH
1922See \`config.log' for more details." >&2;}
7357c5b6 1923 { (exit 1); exit 1; }; }; }
5464f5a1
NN
1924
1925# Provide some information about the compiler.
1926echo "$as_me:$LINENO:" \
1927 "checking for C compiler version" >&5
1928ac_compiler=`set X $ac_compile; echo $2`
1929{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1930 (eval $ac_compiler --version </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1935 (eval $ac_compiler -v </dev/null >&5) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1940 (eval $ac_compiler -V </dev/null >&5) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1944
1945cat >conftest.$ac_ext <<_ACEOF
1946/* confdefs.h. */
1947_ACEOF
1948cat confdefs.h >>conftest.$ac_ext
1949cat >>conftest.$ac_ext <<_ACEOF
1950/* end confdefs.h. */
1951
1952int
1953main ()
1954{
1955
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960ac_clean_files_save=$ac_clean_files
1961ac_clean_files="$ac_clean_files a.out a.exe b.out"
1962# Try to create an executable without -o first, disregard a.out.
1963# It will help us diagnose broken compilers, and finding out an intuition
1964# of exeext.
1965echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1966echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1967ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1968if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1969 (eval $ac_link_default) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; then
1973 # Find the output, starting from the most likely. This scheme is
1974# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1975# resort.
1976
1977# Be careful to initialize this variable, since it used to be cached.
1978# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1979ac_cv_exeext=
1980# b.out is created by i960 compilers.
1981for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1982do
1983 test -f "$ac_file" || continue
1984 case $ac_file in
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1986 ;;
1987 conftest.$ac_ext )
1988 # This is the source file.
1989 ;;
1990 [ab].out )
1991 # We found the default executable, but exeext='' is most
1992 # certainly right.
1993 break;;
1994 *.* )
1995 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996 # FIXME: I believe we export ac_cv_exeext for Libtool,
1997 # but it would be cool to find out if it's true. Does anybody
1998 # maintain Libtool? --akim.
1999 export ac_cv_exeext
2000 break;;
2001 * )
2002 break;;
2003 esac
2004done
2005else
2006 echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
7357c5b6
AM
2009{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2010echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2011{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2012See \`config.log' for more details." >&5
2013echo "$as_me: error: C compiler cannot create executables
2014See \`config.log' for more details." >&2;}
7357c5b6 2015 { (exit 77); exit 77; }; }; }
5464f5a1
NN
2016fi
2017
2018ac_exeext=$ac_cv_exeext
2019echo "$as_me:$LINENO: result: $ac_file" >&5
2020echo "${ECHO_T}$ac_file" >&6
2021
2022# Check the compiler produces executables we can run. If not, either
2023# the compiler is broken, or we cross compile.
2024echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2025echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2026# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2027# If not cross compiling, check that we can run a simple program.
2028if test "$cross_compiling" != yes; then
2029 if { ac_try='./$ac_file'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 (eval $ac_try) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; }; then
2035 cross_compiling=no
2036 else
2037 if test "$cross_compiling" = maybe; then
2038 cross_compiling=yes
2039 else
7357c5b6
AM
2040 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2041echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5464f5a1
NN
2043If you meant to cross compile, use \`--host'.
2044See \`config.log' for more details." >&5
2045echo "$as_me: error: cannot run C compiled programs.
2046If you meant to cross compile, use \`--host'.
2047See \`config.log' for more details." >&2;}
7357c5b6 2048 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2049 fi
2050 fi
2051fi
2052echo "$as_me:$LINENO: result: yes" >&5
2053echo "${ECHO_T}yes" >&6
2054
2055rm -f a.out a.exe conftest$ac_cv_exeext b.out
2056ac_clean_files=$ac_clean_files_save
2057# Check the compiler produces executables we can run. If not, either
2058# the compiler is broken, or we cross compile.
2059echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062echo "${ECHO_T}$cross_compiling" >&6
2063
2064echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067 (eval $ac_link) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2073# work properly (i.e., refer to `conftest.exe'), while it won't with
2074# `rm'.
2075for ac_file in conftest.exe conftest conftest.*; do
2076 test -f "$ac_file" || continue
2077 case $ac_file in
2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080 export ac_cv_exeext
2081 break;;
2082 * ) break;;
2083 esac
2084done
2085else
7357c5b6
AM
2086 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2087echo "$as_me: error: in \`$ac_pwd':" >&2;}
2088{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5464f5a1
NN
2089See \`config.log' for more details." >&5
2090echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2091See \`config.log' for more details." >&2;}
7357c5b6 2092 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2093fi
2094
2095rm -f conftest$ac_cv_exeext
2096echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2097echo "${ECHO_T}$ac_cv_exeext" >&6
2098
2099rm -f conftest.$ac_ext
2100EXEEXT=$ac_cv_exeext
2101ac_exeext=$EXEEXT
2102echo "$as_me:$LINENO: checking for suffix of object files" >&5
2103echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2104if test "${ac_cv_objext+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107 cat >conftest.$ac_ext <<_ACEOF
2108/* confdefs.h. */
2109_ACEOF
2110cat confdefs.h >>conftest.$ac_ext
2111cat >>conftest.$ac_ext <<_ACEOF
2112/* end confdefs.h. */
2113
2114int
2115main ()
2116{
2117
2118 ;
2119 return 0;
2120}
2121_ACEOF
2122rm -f conftest.o conftest.obj
2123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124 (eval $ac_compile) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2129 case $ac_file in
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2132 break;;
2133 esac
2134done
2135else
2136 echo "$as_me: failed program was:" >&5
2137sed 's/^/| /' conftest.$ac_ext >&5
2138
7357c5b6
AM
2139{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2140echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2141{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144See \`config.log' for more details." >&2;}
7357c5b6 2145 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2146fi
2147
2148rm -f conftest.$ac_cv_objext conftest.$ac_ext
2149fi
2150echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151echo "${ECHO_T}$ac_cv_objext" >&6
2152OBJEXT=$ac_cv_objext
2153ac_objext=$OBJEXT
2154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159 cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h. */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h. */
2165
2166int
2167main ()
2168{
2169#ifndef __GNUC__
2170 choke me
2171#endif
2172
2173 ;
2174 return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>conftest.er1
2180 ac_status=$?
2181 grep -v '^ *+' conftest.er1 >conftest.err
2182 rm -f conftest.er1
2183 cat conftest.err >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
7357c5b6
AM
2186 { ac_try='test -z "$ac_c_werror_flag"
2187 || test ! -s conftest.err'
5464f5a1
NN
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; } &&
2193 { ac_try='test -s conftest.$ac_objext'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 (eval $ac_try) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2199 ac_compiler_gnu=yes
2200else
2201 echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204ac_compiler_gnu=no
2205fi
2206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207ac_cv_c_compiler_gnu=$ac_compiler_gnu
2208
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212GCC=`test $ac_compiler_gnu = yes && echo yes`
2213ac_test_CFLAGS=${CFLAGS+set}
2214ac_save_CFLAGS=$CFLAGS
2215CFLAGS="-g"
2216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218if test "${ac_cv_prog_cc_g+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221 cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h. */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h. */
2227
2228int
2229main ()
2230{
2231
2232 ;
2233 return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>conftest.er1
2239 ac_status=$?
2240 grep -v '^ *+' conftest.er1 >conftest.err
2241 rm -f conftest.er1
2242 cat conftest.err >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
7357c5b6
AM
2245 { ac_try='test -z "$ac_c_werror_flag"
2246 || test ! -s conftest.err'
5464f5a1
NN
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; } &&
2252 { ac_try='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2258 ac_cv_prog_cc_g=yes
2259else
2260 echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263ac_cv_prog_cc_g=no
2264fi
2265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269if test "$ac_test_CFLAGS" = set; then
2270 CFLAGS=$ac_save_CFLAGS
2271elif test $ac_cv_prog_cc_g = yes; then
2272 if test "$GCC" = yes; then
2273 CFLAGS="-g -O2"
2274 else
2275 CFLAGS="-g"
2276 fi
2277else
2278 if test "$GCC" = yes; then
2279 CFLAGS="-O2"
2280 else
2281 CFLAGS=
2282 fi
2283fi
2284echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289 ac_cv_prog_cc_stdc=no
2290ac_save_CC=$CC
2291cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h. */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h. */
2297#include <stdarg.h>
2298#include <stdio.h>
2299#include <sys/types.h>
2300#include <sys/stat.h>
2301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2302struct buf { int x; };
2303FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304static char *e (p, i)
2305 char **p;
2306 int i;
2307{
2308 return p[i];
2309}
2310static char *f (char * (*g) (char **, int), char **p, ...)
2311{
2312 char *s;
2313 va_list v;
2314 va_start (v,p);
2315 s = g (p, va_arg (v,int));
2316 va_end (v);
2317 return s;
2318}
2319
2320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2321 function prototypes and stuff, but not '\xHH' hex character constants.
2322 These don't provoke an error unfortunately, instead are silently treated
2323 as 'x'. The following induces an error, until -std1 is added to get
2324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2325 array size at least. It's necessary to write '\x00'==0 to get something
2326 that's true only with -std1. */
2327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328
2329int test (int i, double x);
2330struct s1 {int (*f) (int a);};
2331struct s2 {int (*f) (double a);};
2332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333int argc;
2334char **argv;
2335int
2336main ()
2337{
2338return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343# Don't try gcc -ansi; that turns off useful extensions and
2344# breaks some systems' header files.
2345# AIX -qlanglvl=ansi
2346# Ultrix and OSF/1 -std1
2347# HP-UX 10.20 and later -Ae
2348# HP-UX older versions -Aa -D_HPUX_SOURCE
2349# SVR4 -Xc -D__EXTENSIONS__
2350for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351do
2352 CC="$ac_save_CC $ac_arg"
2353 rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2356 ac_status=$?
2357 grep -v '^ *+' conftest.er1 >conftest.err
2358 rm -f conftest.er1
2359 cat conftest.err >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
7357c5b6
AM
2362 { ac_try='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
5464f5a1
NN
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_cv_prog_cc_stdc=$ac_arg
2376break
2377else
2378 echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.err conftest.$ac_objext
2383done
2384rm -f conftest.$ac_ext conftest.$ac_objext
2385CC=$ac_save_CC
2386
2387fi
2388
2389case "x$ac_cv_prog_cc_stdc" in
2390 x|xno)
2391 echo "$as_me:$LINENO: result: none needed" >&5
2392echo "${ECHO_T}none needed" >&6 ;;
2393 *)
2394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396 CC="$CC $ac_cv_prog_cc_stdc" ;;
2397esac
2398
2399# Some people use a C++ compiler to compile C. Since we use `exit',
2400# in C++ we need to declare it. In case someone uses the same compiler
2401# for both compiling C and C++ we need to have the C++ compiler decide
2402# the declaration of exit, since it's the most demanding environment.
2403cat >conftest.$ac_ext <<_ACEOF
2404#ifndef __cplusplus
2405 choke me
2406#endif
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
7357c5b6
AM
2417 { ac_try='test -z "$ac_c_werror_flag"
2418 || test ! -s conftest.err'
5464f5a1
NN
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 for ac_declaration in \
2431 '' \
2432 'extern "C" void std::exit (int) throw (); using std::exit;' \
2433 'extern "C" void std::exit (int); using std::exit;' \
2434 'extern "C" void exit (int) throw ();' \
2435 'extern "C" void exit (int);' \
2436 'void exit (int);'
2437do
2438 cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
2444$ac_declaration
2445#include <stdlib.h>
2446int
2447main ()
2448{
2449exit (42);
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
7357c5b6
AM
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
5464f5a1
NN
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 :
2477else
2478 echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484 cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490$ac_declaration
2491int
2492main ()
2493{
2494exit (42);
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499rm -f conftest.$ac_objext
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
7357c5b6
AM
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
5464f5a1
NN
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 break
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528done
2529rm -f conftest*
2530if test -n "$ac_declaration"; then
2531 echo '#ifdef __cplusplus' >>confdefs.h
2532 echo $ac_declaration >>confdefs.h
2533 echo '#endif' >>confdefs.h
2534fi
2535
2536else
2537 echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548
f5385ebf
AM
2549echo "$as_me:$LINENO: checking for library containing strerror" >&5
2550echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2551if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
f5385ebf
AM
2554 ac_func_search_save_LIBS=$LIBS
2555ac_cv_search_strerror=no
5464f5a1
NN
2556cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h. */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h. */
2562
2563/* Override any gcc2 internal prototype to avoid an error. */
2564#ifdef __cplusplus
2565extern "C"
2566#endif
2567/* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2569char strerror ();
2570int
2571main ()
2572{
2573strerror ();
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext conftest$ac_exeext
2579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
7357c5b6
AM
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
5464f5a1
NN
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
f5385ebf 2600 ac_cv_search_strerror="none required"
5464f5a1
NN
2601else
2602 echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
5464f5a1
NN
2605fi
2606rm -f conftest.err conftest.$ac_objext \
2607 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2608if test "$ac_cv_search_strerror" = no; then
2609 for ac_lib in cposix; do
2610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2611 cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
2617
2618/* Override any gcc2 internal prototype to avoid an error. */
2619#ifdef __cplusplus
2620extern "C"
2621#endif
2622/* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2624char strerror ();
2625int
2626main ()
2627{
2628strerror ();
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext conftest$ac_exeext
2634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635 (eval $ac_link) 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
7357c5b6
AM
2642 { ac_try='test -z "$ac_c_werror_flag"
2643 || test ! -s conftest.err'
f5385ebf
AM
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; } &&
2649 { ac_try='test -s conftest$ac_exeext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_cv_search_strerror="-l$ac_lib"
2656break
2657else
2658 echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
5464f5a1 2661fi
f5385ebf
AM
2662rm -f conftest.err conftest.$ac_objext \
2663 conftest$ac_exeext conftest.$ac_ext
2664 done
5464f5a1 2665fi
f5385ebf
AM
2666LIBS=$ac_func_search_save_LIBS
2667fi
2668echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2669echo "${ECHO_T}$ac_cv_search_strerror" >&6
2670if test "$ac_cv_search_strerror" != no; then
2671 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2672
f5385ebf 2673fi
5464f5a1
NN
2674
2675
f5385ebf 2676am__api_version="1.9"
5464f5a1
NN
2677# Find a good install program. We prefer a C program (faster),
2678# so one script is as good as another. But avoid the broken or
2679# incompatible versions:
2680# SysV /etc/install, /usr/sbin/install
2681# SunOS /usr/etc/install
2682# IRIX /sbin/install
2683# AIX /bin/install
2684# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2686# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2688# OS/2's system install, which has a completely different semantic
252b5132 2689# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2690# Reject install programs that cannot install multiple files.
5464f5a1
NN
2691echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2692echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2693if test -z "$INSTALL"; then
5464f5a1
NN
2694if test "${ac_cv_path_install+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2696else
5464f5a1
NN
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 # Account for people who put trailing slashes in PATH elements.
2703case $as_dir/ in
2704 ./ | .// | /cC/* | \
2705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2707 /usr/ucb/* ) ;;
2708 *)
2709 # OSF1 and SCO ODT 3.0 have their own names for install.
2710 # Don't use installbsd from OSF since it installs stuff as root
2711 # by default.
2712 for ac_prog in ginstall scoinst install; do
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2715 if test $ac_prog = install &&
5464f5a1 2716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2717 # AIX install. It has an incompatible calling convention.
2718 :
5464f5a1
NN
2719 elif test $ac_prog = install &&
2720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721 # program-specific install script used by HP pwplus--don't use.
2722 :
252b5132 2723 else
58c85be7
RW
2724 rm -rf conftest.one conftest.two conftest.dir
2725 echo one > conftest.one
2726 echo two > conftest.two
2727 mkdir conftest.dir
2728 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2729 test -s conftest.one && test -s conftest.two &&
2730 test -s conftest.dir/conftest.one &&
2731 test -s conftest.dir/conftest.two
2732 then
2733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2734 break 3
2735 fi
252b5132
RH
2736 fi
2737 fi
2738 done
5464f5a1
NN
2739 done
2740 ;;
2741esac
2742done
2743
58c85be7 2744rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2745
2746fi
2747 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2748 INSTALL=$ac_cv_path_install
252b5132 2749 else
58c85be7
RW
2750 # As a last resort, use the slow shell script. Don't cache a
2751 # value for INSTALL within a source directory, because that will
252b5132 2752 # break other packages using the cache if that directory is
58c85be7 2753 # removed, or if the value is a relative name.
5464f5a1 2754 INSTALL=$ac_install_sh
252b5132
RH
2755 fi
2756fi
5464f5a1
NN
2757echo "$as_me:$LINENO: result: $INSTALL" >&5
2758echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2759
2760# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761# It thinks the first close brace ends the variable substitution.
2762test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763
5464f5a1 2764test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2765
2766test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2767
5464f5a1
NN
2768echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2769echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2770# Just in case
2771sleep 1
f5385ebf 2772echo timestamp > conftest.file
252b5132
RH
2773# Do `set' in a subshell so we don't clobber the current shell's
2774# arguments. Must try -L first in case configure is actually a
2775# symlink; some systems play weird games with the mod time of symlinks
2776# (eg FreeBSD returns the mod time of the symlink's containing
2777# directory).
2778if (
f5385ebf 2779 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2780 if test "$*" = "X"; then
2781 # -L didn't work.
f5385ebf 2782 set X `ls -t $srcdir/configure conftest.file`
252b5132 2783 fi
f5385ebf
AM
2784 rm -f conftest.file
2785 if test "$*" != "X $srcdir/configure conftest.file" \
2786 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2787
2788 # If neither matched, then we have a broken ls. This can happen
2789 # if, for instance, CONFIG_SHELL is bash and it inherits a
2790 # broken ls alias from the environment. This has actually
2791 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2792 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2793alias in your environment" >&5
2794echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2795alias in your environment" >&2;}
2796 { (exit 1); exit 1; }; }
252b5132
RH
2797 fi
2798
f5385ebf 2799 test "$2" = conftest.file
252b5132
RH
2800 )
2801then
2802 # Ok.
2803 :
2804else
5464f5a1
NN
2805 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2806Check your system clock" >&5
2807echo "$as_me: error: newly created file is older than distributed files!
2808Check your system clock" >&2;}
2809 { (exit 1); exit 1; }; }
252b5132 2810fi
5464f5a1
NN
2811echo "$as_me:$LINENO: result: yes" >&5
2812echo "${ECHO_T}yes" >&6
252b5132 2813test "$program_prefix" != NONE &&
5464f5a1 2814 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2815# Use a double $ so make ignores it.
2816test "$program_suffix" != NONE &&
5464f5a1
NN
2817 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2818# Double any \ or $. echo might interpret backslashes.
2819# By default was `s,x,x', remove it if useless.
2820cat <<\_ACEOF >conftest.sed
2821s/[\\$]/&&/g;s/;s,x,x,$//
2822_ACEOF
2823program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2824rm conftest.sed
2825
f5385ebf
AM
2826# expand $ac_aux_dir to an absolute path
2827am_aux_dir=`cd $ac_aux_dir && pwd`
2828
2829test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2830# Use eval to expand $SHELL
2831if eval "$MISSING --run true"; then
2832 am_missing_run="$MISSING --run "
2833else
2834 am_missing_run=
2835 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2836echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2837fi
2838
2839if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2840 # We used to keeping the `.' as first argument, in order to
2841 # allow $(mkdir_p) to be used without argument. As in
2842 # $(mkdir_p) $(somedir)
2843 # where $(somedir) is conditionally defined. However this is wrong
2844 # for two reasons:
2845 # 1. if the package is installed by a user who cannot write `.'
2846 # make install will fail,
2847 # 2. the above comment should most certainly read
2848 # $(mkdir_p) $(DESTDIR)$(somedir)
2849 # so it does not work when $(somedir) is undefined and
2850 # $(DESTDIR) is not.
2851 # To support the latter case, we have to write
2852 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2853 # so the `.' trick is pointless.
2854 mkdir_p='mkdir -p --'
2855else
2856 # On NextStep and OpenStep, the `mkdir' command does not
2857 # recognize any option. It will interpret all options as
2858 # directories to create, and then abort because `.' already
2859 # exists.
2860 for d in ./-p ./--version;
2861 do
2862 test -d $d && rmdir $d
2863 done
2864 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2865 if test -f "$ac_aux_dir/mkinstalldirs"; then
2866 mkdir_p='$(mkinstalldirs)'
2867 else
2868 mkdir_p='$(install_sh) -d'
2869 fi
2870fi
2871
2872for ac_prog in gawk mawk nawk awk
2873do
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875set dummy $ac_prog; ac_word=$2
2876echo "$as_me:$LINENO: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878if test "${ac_cv_prog_AWK+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 if test -n "$AWK"; then
2882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_AWK="$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896done
2897
2898fi
2899fi
2900AWK=$ac_cv_prog_AWK
2901if test -n "$AWK"; then
2902 echo "$as_me:$LINENO: result: $AWK" >&5
2903echo "${ECHO_T}$AWK" >&6
2904else
2905 echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
2907fi
2908
2909 test -n "$AWK" && break
2910done
2911
5464f5a1
NN
2912echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2913echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2914set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2915if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 cat >conftest.make <<\_ACEOF
252b5132 2919all:
5464f5a1
NN
2920 @echo 'ac_maketemp="$(MAKE)"'
2921_ACEOF
252b5132 2922# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2923eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2924if test -n "$ac_maketemp"; then
2925 eval ac_cv_prog_make_${ac_make}_set=yes
2926else
2927 eval ac_cv_prog_make_${ac_make}_set=no
2928fi
5464f5a1 2929rm -f conftest.make
252b5132
RH
2930fi
2931if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2932 echo "$as_me:$LINENO: result: yes" >&5
2933echo "${ECHO_T}yes" >&6
252b5132
RH
2934 SET_MAKE=
2935else
5464f5a1
NN
2936 echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
252b5132
RH
2938 SET_MAKE="MAKE=${MAKE-make}"
2939fi
2940
f5385ebf
AM
2941rm -rf .tst 2>/dev/null
2942mkdir .tst 2>/dev/null
2943if test -d .tst; then
2944 am__leading_dot=.
2945else
2946 am__leading_dot=_
2947fi
2948rmdir .tst 2>/dev/null
2949
2950DEPDIR="${am__leading_dot}deps"
2951
2952 ac_config_commands="$ac_config_commands depfiles"
2953
2954
2955am_make=${MAKE-make}
2956cat > confinc << 'END'
2957am__doit:
2958 @echo done
2959.PHONY: am__doit
2960END
2961# If we don't find an include directive, just comment out the code.
2962echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2963echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2964am__include="#"
2965am__quote=
2966_am_result=none
2967# First try GNU make style include.
2968echo "include confinc" > confmf
2969# We grep out `Entering directory' and `Leaving directory'
2970# messages which can occur if `w' ends up in MAKEFLAGS.
2971# In particular we don't look at `^make:' because GNU make might
2972# be invoked under some other name (usually "gmake"), in which
2973# case it prints its new name instead of `make'.
2974if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2975 am__include=include
2976 am__quote=
2977 _am_result=GNU
2978fi
2979# Now try BSD make style include.
2980if test "$am__include" = "#"; then
2981 echo '.include "confinc"' > confmf
2982 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2983 am__include=.include
2984 am__quote="\""
2985 _am_result=BSD
2986 fi
2987fi
2988
2989
2990echo "$as_me:$LINENO: result: $_am_result" >&5
2991echo "${ECHO_T}$_am_result" >&6
2992rm -f confinc confmf
2993
2994# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2995if test "${enable_dependency_tracking+set}" = set; then
2996 enableval="$enable_dependency_tracking"
2997
2998fi;
2999if test "x$enable_dependency_tracking" != xno; then
3000 am_depcomp="$ac_aux_dir/depcomp"
3001 AMDEPBACKSLASH='\'
3002fi
3003
3004
3005if test "x$enable_dependency_tracking" != xno; then
3006 AMDEP_TRUE=
3007 AMDEP_FALSE='#'
3008else
3009 AMDEP_TRUE='#'
3010 AMDEP_FALSE=
3011fi
6be7c12c 3012
252b5132 3013
252b5132 3014
f5385ebf
AM
3015# test to see if srcdir already configured
3016if test "`cd $srcdir && pwd`" != "`pwd`" &&
3017 test -f $srcdir/config.status; then
5464f5a1
NN
3018 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3019echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3020 { (exit 1); exit 1; }; }
252b5132 3021fi
5464f5a1 3022
f5385ebf
AM
3023# test whether we have cygpath
3024if test -z "$CYGPATH_W"; then
3025 if (cygpath --version) >/dev/null 2>/dev/null; then
3026 CYGPATH_W='cygpath -w'
3027 else
3028 CYGPATH_W=echo
3029 fi
3030fi
3031
3032
3033# Define the identity of the package.
3034 PACKAGE=bfd
be118e79 3035 VERSION=2.18.50
f5385ebf
AM
3036
3037
5464f5a1 3038cat >>confdefs.h <<_ACEOF
252b5132 3039#define PACKAGE "$PACKAGE"
5464f5a1 3040_ACEOF
252b5132 3041
5464f5a1
NN
3042
3043cat >>confdefs.h <<_ACEOF
252b5132 3044#define VERSION "$VERSION"
5464f5a1 3045_ACEOF
252b5132 3046
f5385ebf
AM
3047# Some tools Automake needs.
3048
3049ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3050
3051
3052AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3053
3054
3055AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3056
3057
3058AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3059
3060
3061MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3062
f5385ebf 3063install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3064
f5385ebf
AM
3065# Installed binaries are usually stripped using `strip' when the user
3066# run `make install-strip'. However `strip' might not be the right
3067# tool to use in cross-compilation environments, therefore Automake
3068# will honor the `STRIP' environment variable to overrule this program.
3069if test "$cross_compiling" != no; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3072set dummy ${ac_tool_prefix}strip; ac_word=$2
3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075if test "${ac_cv_prog_STRIP+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078 if test -n "$STRIP"; then
3079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3080else
f5385ebf
AM
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093done
3094
3095fi
3096fi
3097STRIP=$ac_cv_prog_STRIP
3098if test -n "$STRIP"; then
3099 echo "$as_me:$LINENO: result: $STRIP" >&5
3100echo "${ECHO_T}$STRIP" >&6
3101else
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
3104fi
3105
252b5132 3106fi
f5385ebf
AM
3107if test -z "$ac_cv_prog_STRIP"; then
3108 ac_ct_STRIP=$STRIP
3109 # Extract the first word of "strip", so it can be a program name with args.
3110set dummy strip; ac_word=$2
3111echo "$as_me:$LINENO: checking for $ac_word" >&5
3112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3113if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115else
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_STRIP="strip"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130done
3131done
252b5132 3132
f5385ebf
AM
3133 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3134fi
3135fi
3136ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137if test -n "$ac_ct_STRIP"; then
3138 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3139echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3140else
f5385ebf
AM
3141 echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
252b5132
RH
3143fi
3144
f5385ebf 3145 STRIP=$ac_ct_STRIP
252b5132 3146else
f5385ebf
AM
3147 STRIP="$ac_cv_prog_STRIP"
3148fi
3149
252b5132 3150fi
f5385ebf
AM
3151INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3152
3153# We need awk for the "check" target. The system "awk" is bad on
3154# some platforms.
3155# Always define AMTAR for backward compatibility.
3156
3157AMTAR=${AMTAR-"${am_missing_run}tar"}
3158
3159am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3160
252b5132 3161
f5385ebf
AM
3162
3163
3164depcc="$CC" am_compiler_list=
3165
3166echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3167echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3168if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3170else
f5385ebf
AM
3171 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3172 # We make a subdir and do the tests there. Otherwise we can end up
3173 # making bogus files that we don't know about and never remove. For
3174 # instance it was reported that on HP-UX the gcc test will end up
3175 # making a dummy file named `D' -- because `-MD' means `put the output
3176 # in D'.
3177 mkdir conftest.dir
3178 # Copy depcomp to subdir because otherwise we won't find it if we're
3179 # using a relative directory.
3180 cp "$am_depcomp" conftest.dir
3181 cd conftest.dir
3182 # We will build objects and dependencies in a subdirectory because
3183 # it helps to detect inapplicable dependency modes. For instance
3184 # both Tru64's cc and ICC support -MD to output dependencies as a
3185 # side effect of compilation, but ICC will put the dependencies in
3186 # the current directory while Tru64 will put them in the object
3187 # directory.
3188 mkdir sub
3189
3190 am_cv_CC_dependencies_compiler_type=none
3191 if test "$am_compiler_list" = ""; then
3192 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3193 fi
3194 for depmode in $am_compiler_list; do
3195 # Setup a source with many dependencies, because some compilers
3196 # like to wrap large dependency lists on column 80 (with \), and
3197 # we should not choose a depcomp mode which is confused by this.
3198 #
3199 # We need to recreate these files for each test, as the compiler may
3200 # overwrite some of them when testing with obscure command lines.
3201 # This happens at least with the AIX C compiler.
3202 : > sub/conftest.c
3203 for i in 1 2 3 4 5 6; do
3204 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3205 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3206 # Solaris 8's {/usr,}/bin/sh.
3207 touch sub/conftst$i.h
3208 done
3209 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3210
3211 case $depmode in
3212 nosideeffect)
3213 # after this tag, mechanisms are not by side-effect, so they'll
3214 # only be used when explicitly requested
3215 if test "x$enable_dependency_tracking" = xyes; then
3216 continue
3217 else
3218 break
3219 fi
3220 ;;
3221 none) break ;;
3222 esac
3223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3224 # mode. It turns out that the SunPro C++ compiler does not properly
3225 # handle `-M -o', and we need to detect this.
3226 if depmode=$depmode \
3227 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3229 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3230 >/dev/null 2>conftest.err &&
3231 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3232 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3233 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3234 # icc doesn't choke on unknown options, it will just issue warnings
3235 # or remarks (even with -Werror). So we grep stderr for any message
3236 # that says an option was ignored or not supported.
3237 # When given -MP, icc 7.0 and 7.1 complain thusly:
3238 # icc: Command line warning: ignoring option '-M'; no argument required
3239 # The diagnosis changed in icc 8.0:
3240 # icc: Command line remark: option '-MP' not supported
3241 if (grep 'ignoring option' conftest.err ||
3242 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3243 am_cv_CC_dependencies_compiler_type=$depmode
3244 break
3245 fi
3246 fi
3247 done
3248
3249 cd ..
3250 rm -rf conftest.dir
3251else
3252 am_cv_CC_dependencies_compiler_type=none
3253fi
3254
252b5132 3255fi
f5385ebf
AM
3256echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3257echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3258CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3259
f5385ebf
AM
3260
3261
3262if
3263 test "x$enable_dependency_tracking" != xno \
3264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3265 am__fastdepCC_TRUE=
3266 am__fastdepCC_FALSE='#'
252b5132 3267else
f5385ebf
AM
3268 am__fastdepCC_TRUE='#'
3269 am__fastdepCC_FALSE=
252b5132
RH
3270fi
3271
6be7c12c 3272
e43d48cc 3273
f5385ebf 3274
5464f5a1
NN
3275if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3277set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280if test "${ac_cv_prog_AR+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3282else
3283 if test -n "$AR"; then
3284 ac_cv_prog_AR="$AR" # Let the user override the test.
3285else
5464f5a1
NN
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_AR="${ac_tool_prefix}ar"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297done
3298done
3299
252b5132
RH
3300fi
3301fi
5464f5a1 3302AR=$ac_cv_prog_AR
252b5132 3303if test -n "$AR"; then
5464f5a1
NN
3304 echo "$as_me:$LINENO: result: $AR" >&5
3305echo "${ECHO_T}$AR" >&6
252b5132 3306else
5464f5a1
NN
3307 echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
3309fi
3310
252b5132 3311fi
5464f5a1
NN
3312if test -z "$ac_cv_prog_AR"; then
3313 ac_ct_AR=$AR
3314 # Extract the first word of "ar", so it can be a program name with args.
3315set dummy ar; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 if test -n "$ac_ct_AR"; then
3322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_AR="ar"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
252b5132 3337
5464f5a1
NN
3338fi
3339fi
3340ac_ct_AR=$ac_cv_prog_ac_ct_AR
3341if test -n "$ac_ct_AR"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3343echo "${ECHO_T}$ac_ct_AR" >&6
3344else
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
252b5132 3348
5464f5a1
NN
3349 AR=$ac_ct_AR
3350else
3351 AR="$ac_cv_prog_AR"
3352fi
6be7c12c 3353
5464f5a1
NN
3354if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3356set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3357echo "$as_me:$LINENO: checking for $ac_word" >&5
3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3361else
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3364else
5464f5a1
NN
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376done
3377done
3378
252b5132
RH
3379fi
3380fi
5464f5a1 3381RANLIB=$ac_cv_prog_RANLIB
252b5132 3382if test -n "$RANLIB"; then
5464f5a1
NN
3383 echo "$as_me:$LINENO: result: $RANLIB" >&5
3384echo "${ECHO_T}$RANLIB" >&6
252b5132 3385else
5464f5a1
NN
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
252b5132
RH
3388fi
3389
5464f5a1 3390fi
252b5132 3391if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3392 ac_ct_RANLIB=$RANLIB
252b5132
RH
3393 # Extract the first word of "ranlib", so it can be a program name with args.
3394set dummy ranlib; ac_word=$2
5464f5a1
NN
3395echo "$as_me:$LINENO: checking for $ac_word" >&5
3396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3399else
5464f5a1
NN
3400 if test -n "$ac_ct_RANLIB"; then
3401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3402else
5464f5a1
NN
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_RANLIB="ranlib"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414done
3415done
3416
3417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3418fi
3419fi
5464f5a1
NN
3420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3421if test -n "$ac_ct_RANLIB"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3423echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3424else
5464f5a1
NN
3425 echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6
252b5132
RH
3427fi
3428
5464f5a1 3429 RANLIB=$ac_ct_RANLIB
252b5132 3430else
5464f5a1 3431 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3432fi
3433
252b5132
RH
3434
3435# Check whether --enable-shared or --disable-shared was given.
3436if test "${enable_shared+set}" = set; then
3437 enableval="$enable_shared"
3438 p=${PACKAGE-default}
d7040cdb
SE
3439 case $enableval in
3440 yes) enable_shared=yes ;;
3441 no) enable_shared=no ;;
3442 *)
3443 enable_shared=no
3444 # Look at the argument we got. We use all the common list separators.
3445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3446 for pkg in $enableval; do
3447 IFS="$lt_save_ifs"
3448 if test "X$pkg" = "X$p"; then
3449 enable_shared=yes
3450 fi
3451 done
3452 IFS="$lt_save_ifs"
3453 ;;
3454 esac
252b5132
RH
3455else
3456 enable_shared=no
5464f5a1 3457fi;
252b5132 3458
d7040cdb
SE
3459
3460
3461
3462
3463
3464
3465
3466
cfbc9945
SE
3467ac_ext=c
3468ac_cpp='$CPP $CPPFLAGS'
3469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475echo "$as_me:$LINENO: checking for $ac_word" >&5
3476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477if test "${ac_cv_prog_CC+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3479else
cfbc9945
SE
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3482else
cfbc9945
SE
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494done
3495done
c5d1701e 3496
cfbc9945
SE
3497fi
3498fi
3499CC=$ac_cv_prog_CC
3500if test -n "$CC"; then
3501 echo "$as_me:$LINENO: result: $CC" >&5
3502echo "${ECHO_T}$CC" >&6
252b5132 3503else
cfbc9945
SE
3504 echo "$as_me:$LINENO: result: no" >&5
3505echo "${ECHO_T}no" >&6
252b5132 3506fi
cfbc9945
SE
3507
3508fi
3509if test -z "$ac_cv_prog_CC"; then
3510 ac_ct_CC=$CC
3511 # Extract the first word of "gcc", so it can be a program name with args.
3512set dummy gcc; ac_word=$2
3513echo "$as_me:$LINENO: checking for $ac_word" >&5
3514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3516 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3517else
cfbc9945
SE
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3520else
cfbc9945
SE
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="gcc"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532done
3533done
3534
252b5132
RH
3535fi
3536fi
cfbc9945
SE
3537ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538if test -n "$ac_ct_CC"; then
3539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3541else
5464f5a1
NN
3542 echo "$as_me:$LINENO: result: no" >&5
3543echo "${ECHO_T}no" >&6
252b5132 3544fi
cfbc9945
SE
3545
3546 CC=$ac_ct_CC
3547else
3548 CC="$ac_cv_prog_CC"
3549fi
3550
3551if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3554set dummy ${ac_tool_prefix}cc; ac_word=$2
3555echo "$as_me:$LINENO: checking for $ac_word" >&5
3556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3558 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3559else
cfbc9945
SE
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3562else
cfbc9945
SE
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}cc"
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574done
3575done
3576
252b5132
RH
3577fi
3578fi
cfbc9945
SE
3579CC=$ac_cv_prog_CC
3580if test -n "$CC"; then
3581 echo "$as_me:$LINENO: result: $CC" >&5
3582echo "${ECHO_T}$CC" >&6
ac48eca1 3583else
cfbc9945
SE
3584 echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
ac48eca1 3586fi
ac48eca1 3587
cfbc9945
SE
3588fi
3589if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "cc", so it can be a program name with args.
3592set dummy cc; ac_word=$2
3593echo "$as_me:$LINENO: checking for $ac_word" >&5
3594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3596 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3597else
cfbc9945
SE
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3600else
cfbc9945
SE
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="cc"
3609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612done
3613done
3614
252b5132 3615fi
cfbc9945
SE
3616fi
3617ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618if test -n "$ac_ct_CC"; then
3619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3620echo "${ECHO_T}$ac_ct_CC" >&6
3621else
3622 echo "$as_me:$LINENO: result: no" >&5
3623echo "${ECHO_T}no" >&6
252b5132
RH
3624fi
3625
cfbc9945
SE
3626 CC=$ac_ct_CC
3627else
3628 CC="$ac_cv_prog_CC"
3629fi
252b5132 3630
cfbc9945
SE
3631fi
3632if test -z "$CC"; then
3633 # Extract the first word of "cc", so it can be a program name with args.
3634set dummy cc; ac_word=$2
3635echo "$as_me:$LINENO: checking for $ac_word" >&5
3636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637if test "${ac_cv_prog_CC+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3639else
cfbc9945
SE
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642else
3643 ac_prog_rejected=no
3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3652 ac_prog_rejected=yes
3653 continue
3654 fi
3655 ac_cv_prog_CC="cc"
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659done
3660done
3661
3662if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy $ac_cv_prog_CC
3665 shift
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3670 shift
3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672 fi
3673fi
3674fi
3675fi
3676CC=$ac_cv_prog_CC
3677if test -n "$CC"; then
3678 echo "$as_me:$LINENO: result: $CC" >&5
3679echo "${ECHO_T}$CC" >&6
3680else
3681 echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
252b5132
RH
3683fi
3684
cfbc9945
SE
3685fi
3686if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in cl
3689 do
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692echo "$as_me:$LINENO: checking for $ac_word" >&5
3693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3695 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3696else
cfbc9945
SE
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699else
3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3710 fi
3711done
3712done
ac48eca1 3713
cfbc9945
SE
3714fi
3715fi
3716CC=$ac_cv_prog_CC
3717if test -n "$CC"; then
3718 echo "$as_me:$LINENO: result: $CC" >&5
3719echo "${ECHO_T}$CC" >&6
3720else
3721 echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723fi
ac48eca1 3724
cfbc9945
SE
3725 test -n "$CC" && break
3726 done
3727fi
3728if test -z "$CC"; then
3729 ac_ct_CC=$CC
3730 for ac_prog in cl
3731do
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733set dummy $ac_prog; ac_word=$2
3734echo "$as_me:$LINENO: checking for $ac_word" >&5
3735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_ac_ct_CC="$ac_prog"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753done
3754done
ac48eca1 3755
cfbc9945
SE
3756fi
3757fi
3758ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759if test -n "$ac_ct_CC"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761echo "${ECHO_T}$ac_ct_CC" >&6
3762else
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
3765fi
ac48eca1 3766
cfbc9945
SE
3767 test -n "$ac_ct_CC" && break
3768done
ac48eca1 3769
cfbc9945
SE
3770 CC=$ac_ct_CC
3771fi
55c80943 3772
cfbc9945 3773fi
ac48eca1 3774
ac48eca1 3775
7357c5b6
AM
3776test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3777echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
cfbc9945
SE
3779See \`config.log' for more details." >&5
3780echo "$as_me: error: no acceptable C compiler found in \$PATH
3781See \`config.log' for more details." >&2;}
7357c5b6 3782 { (exit 1); exit 1; }; }; }
ac48eca1 3783
cfbc9945
SE
3784# Provide some information about the compiler.
3785echo "$as_me:$LINENO:" \
3786 "checking for C compiler version" >&5
3787ac_compiler=`set X $ac_compile; echo $2`
3788{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3789 (eval $ac_compiler --version </dev/null >&5) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }
3793{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3794 (eval $ac_compiler -v </dev/null >&5) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }
3798{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3799 (eval $ac_compiler -V </dev/null >&5) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }
ac48eca1 3803
cfbc9945
SE
3804echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3805echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3806if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3807 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3808else
cfbc9945
SE
3809 cat >conftest.$ac_ext <<_ACEOF
3810/* confdefs.h. */
3811_ACEOF
3812cat confdefs.h >>conftest.$ac_ext
3813cat >>conftest.$ac_ext <<_ACEOF
3814/* end confdefs.h. */
ac48eca1 3815
cfbc9945
SE
3816int
3817main ()
3818{
3819#ifndef __GNUC__
3820 choke me
3821#endif
5464f5a1 3822
cfbc9945
SE
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext
3828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
7357c5b6
AM
3836 { ac_try='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
cfbc9945
SE
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 ac_compiler_gnu=yes
ac48eca1 3850else
cfbc9945
SE
3851 echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854ac_compiler_gnu=no
ac48eca1 3855fi
cfbc9945
SE
3856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3858
5464f5a1 3859fi
cfbc9945
SE
3860echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3862GCC=`test $ac_compiler_gnu = yes && echo yes`
3863ac_test_CFLAGS=${CFLAGS+set}
3864ac_save_CFLAGS=$CFLAGS
3865CFLAGS="-g"
3866echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3868if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3869 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3870else
cfbc9945
SE
3871 cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
3877
3878int
3879main ()
3880{
3881
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886rm -f conftest.$ac_objext
3887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
7357c5b6
AM
3895 { ac_try='test -z "$ac_c_werror_flag"
3896 || test ! -s conftest.err'
cfbc9945
SE
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3908 ac_cv_prog_cc_g=yes
6be7c12c 3909else
cfbc9945
SE
3910 echo "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3912
cfbc9945 3913ac_cv_prog_cc_g=no
ac48eca1 3914fi
cfbc9945 3915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3916fi
cfbc9945
SE
3917echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3918echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3919if test "$ac_test_CFLAGS" = set; then
3920 CFLAGS=$ac_save_CFLAGS
3921elif test $ac_cv_prog_cc_g = yes; then
3922 if test "$GCC" = yes; then
3923 CFLAGS="-g -O2"
3924 else
3925 CFLAGS="-g"
3926 fi
ac48eca1 3927else
cfbc9945
SE
3928 if test "$GCC" = yes; then
3929 CFLAGS="-O2"
3930 else
3931 CFLAGS=
3932 fi
ac48eca1 3933fi
cfbc9945
SE
3934echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3935echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3936if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3937 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3938else
cfbc9945
SE
3939 ac_cv_prog_cc_stdc=no
3940ac_save_CC=$CC
3941cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h. */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h. */
3947#include <stdarg.h>
3948#include <stdio.h>
3949#include <sys/types.h>
3950#include <sys/stat.h>
3951/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3952struct buf { int x; };
3953FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954static char *e (p, i)
3955 char **p;
3956 int i;
3957{
3958 return p[i];
3959}
3960static char *f (char * (*g) (char **, int), char **p, ...)
3961{
3962 char *s;
3963 va_list v;
3964 va_start (v,p);
3965 s = g (p, va_arg (v,int));
3966 va_end (v);
3967 return s;
3968}
5464f5a1 3969
cfbc9945
SE
3970/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3971 function prototypes and stuff, but not '\xHH' hex character constants.
3972 These don't provoke an error unfortunately, instead are silently treated
3973 as 'x'. The following induces an error, until -std1 is added to get
3974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3975 array size at least. It's necessary to write '\x00'==0 to get something
3976 that's true only with -std1. */
3977int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3978
3979int test (int i, double x);
3980struct s1 {int (*f) (int a);};
3981struct s2 {int (*f) (double a);};
3982int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3983int argc;
3984char **argv;
3985int
3986main ()
3987{
3988return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3989 ;
3990 return 0;
3991}
3992_ACEOF
3993# Don't try gcc -ansi; that turns off useful extensions and
3994# breaks some systems' header files.
3995# AIX -qlanglvl=ansi
3996# Ultrix and OSF/1 -std1
3997# HP-UX 10.20 and later -Ae
3998# HP-UX older versions -Aa -D_HPUX_SOURCE
3999# SVR4 -Xc -D__EXTENSIONS__
4000for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4001do
4002 CC="$ac_save_CC $ac_arg"
4003 rm -f conftest.$ac_objext
4004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
7357c5b6
AM
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
cfbc9945
SE
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_prog_cc_stdc=$ac_arg
4026break
ac48eca1 4027else
cfbc9945
SE
4028 echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4030
5464f5a1 4031fi
cfbc9945 4032rm -f conftest.err conftest.$ac_objext
5464f5a1 4033done
cfbc9945
SE
4034rm -f conftest.$ac_ext conftest.$ac_objext
4035CC=$ac_save_CC
5464f5a1 4036
ac48eca1 4037fi
252b5132 4038
cfbc9945
SE
4039case "x$ac_cv_prog_cc_stdc" in
4040 x|xno)
4041 echo "$as_me:$LINENO: result: none needed" >&5
4042echo "${ECHO_T}none needed" >&6 ;;
4043 *)
4044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4045echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4046 CC="$CC $ac_cv_prog_cc_stdc" ;;
4047esac
6be7c12c 4048
cfbc9945
SE
4049# Some people use a C++ compiler to compile C. Since we use `exit',
4050# in C++ we need to declare it. In case someone uses the same compiler
4051# for both compiling C and C++ we need to have the C++ compiler decide
4052# the declaration of exit, since it's the most demanding environment.
4053cat >conftest.$ac_ext <<_ACEOF
4054#ifndef __cplusplus
4055 choke me
4056#endif
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
5464f5a1 4061 ac_status=$?
cfbc9945
SE
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
5464f5a1 4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945 4066 (exit $ac_status); } &&
7357c5b6
AM
4067 { ac_try='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
cfbc9945
SE
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
5464f5a1
NN
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
d70c5fc7
NC
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4079 (exit $ac_status); }; }; then
4080 for ac_declaration in \
4081 '' \
4082 'extern "C" void std::exit (int) throw (); using std::exit;' \
4083 'extern "C" void std::exit (int); using std::exit;' \
4084 'extern "C" void exit (int) throw ();' \
4085 'extern "C" void exit (int);' \
4086 'void exit (int);'
4087do
4088 cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h. */
4094$ac_declaration
4095#include <stdlib.h>
4096int
4097main ()
4098{
4099exit (42);
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104rm -f conftest.$ac_objext
4105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
7357c5b6
AM
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
cfbc9945
SE
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 :
b2ef150d 4127else
cfbc9945
SE
4128 echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4130
cfbc9945
SE
4131continue
4132fi
4133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h. */
cfbc9945 4140$ac_declaration
5464f5a1
NN
4141int
4142main ()
4143{
cfbc9945 4144exit (42);
5464f5a1
NN
4145 ;
4146 return 0;
4147}
4148_ACEOF
cfbc9945
SE
4149rm -f conftest.$ac_objext
4150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
7357c5b6
AM
4158 { ac_try='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
5464f5a1
NN
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
cfbc9945 4165 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
cfbc9945 4171 break
b2ef150d 4172else
5464f5a1
NN
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
4175
b2ef150d 4176fi
cfbc9945
SE
4177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178done
4179rm -f conftest*
4180if test -n "$ac_declaration"; then
4181 echo '#ifdef __cplusplus' >>confdefs.h
4182 echo $ac_declaration >>confdefs.h
4183 echo '#endif' >>confdefs.h
6ec7057a 4184fi
cfbc9945 4185
92f01d61 4186else
cfbc9945
SE
4187 echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4189
cfbc9945
SE
4190fi
4191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192ac_ext=c
4193ac_cpp='$CPP $CPPFLAGS'
4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4197
4198
cfbc9945
SE
4199cat >>confdefs.h <<\_ACEOF
4200#define _GNU_SOURCE 1
4201_ACEOF
a1ac8190 4202
c428fa83 4203
7357c5b6
AM
4204ac_ext=c
4205ac_cpp='$CPP $CPPFLAGS'
4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4210echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4211# On Suns, sometimes $CPP names a directory.
4212if test -n "$CPP" && test -d "$CPP"; then
4213 CPP=
4214fi
4215if test -z "$CPP"; then
4216 if test "${ac_cv_prog_CPP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219 # Double quotes because CPP needs to be expanded
4220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4221 do
4222 ac_preproc_ok=false
4223for ac_c_preproc_warn_flag in '' yes
4224do
4225 # Use a header file that comes with gcc, so configuring glibc
4226 # with a fresh cross-compiler works.
4227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228 # <limits.h> exists even on freestanding compilers.
4229 # On the NeXT, cc -E runs the code through the compiler's parser,
4230 # not just through cpp. "Syntax error" is here to catch this case.
4231 cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
4237#ifdef __STDC__
4238# include <limits.h>
4239#else
4240# include <assert.h>
4241#endif
4242 Syntax error
4243_ACEOF
4244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null; then
4252 if test -s conftest.err; then
4253 ac_cpp_err=$ac_c_preproc_warn_flag
4254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4255 else
4256 ac_cpp_err=
4257 fi
4258else
4259 ac_cpp_err=yes
4260fi
4261if test -z "$ac_cpp_err"; then
4262 :
4263else
4264 echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
cfbc9945 4266
7357c5b6
AM
4267 # Broken: fails on valid input.
4268continue
4269fi
4270rm -f conftest.err conftest.$ac_ext
d7040cdb 4271
7357c5b6
AM
4272 # OK, works on sane cases. Now check whether non-existent headers
4273 # can be detected and how.
4274 cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h. */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h. */
4280#include <ac_nonexistent.h>
4281_ACEOF
4282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev/null; then
4290 if test -s conftest.err; then
4291 ac_cpp_err=$ac_c_preproc_warn_flag
4292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4293 else
4294 ac_cpp_err=
4295 fi
4296else
4297 ac_cpp_err=yes
4298fi
4299if test -z "$ac_cpp_err"; then
4300 # Broken: success on invalid input.
4301continue
4302else
4303 echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4305
7357c5b6
AM
4306 # Passes both tests.
4307ac_preproc_ok=:
4308break
4309fi
4310rm -f conftest.err conftest.$ac_ext
d7040cdb 4311
7357c5b6
AM
4312done
4313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314rm -f conftest.err conftest.$ac_ext
4315if $ac_preproc_ok; then
4316 break
4317fi
d7040cdb 4318
7357c5b6
AM
4319 done
4320 ac_cv_prog_CPP=$CPP
d7040cdb 4321
7357c5b6
AM
4322fi
4323 CPP=$ac_cv_prog_CPP
4324else
4325 ac_cv_prog_CPP=$CPP
4326fi
4327echo "$as_me:$LINENO: result: $CPP" >&5
4328echo "${ECHO_T}$CPP" >&6
4329ac_preproc_ok=false
4330for ac_c_preproc_warn_flag in '' yes
4331do
4332 # Use a header file that comes with gcc, so configuring glibc
4333 # with a fresh cross-compiler works.
4334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 # <limits.h> exists even on freestanding compilers.
4336 # On the NeXT, cc -E runs the code through the compiler's parser,
4337 # not just through cpp. "Syntax error" is here to catch this case.
4338 cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h. */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h. */
4344#ifdef __STDC__
4345# include <limits.h>
4346#else
4347# include <assert.h>
4348#endif
4349 Syntax error
4350_ACEOF
4351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } >/dev/null; then
4359 if test -s conftest.err; then
4360 ac_cpp_err=$ac_c_preproc_warn_flag
4361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4362 else
4363 ac_cpp_err=
4364 fi
4365else
4366 ac_cpp_err=yes
4367fi
4368if test -z "$ac_cpp_err"; then
4369 :
4370else
4371 echo "$as_me: failed program was:" >&5
4372sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4373
7357c5b6
AM
4374 # Broken: fails on valid input.
4375continue
4376fi
4377rm -f conftest.err conftest.$ac_ext
d7040cdb 4378
7357c5b6
AM
4379 # OK, works on sane cases. Now check whether non-existent headers
4380 # can be detected and how.
4381 cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h. */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h. */
4387#include <ac_nonexistent.h>
4388_ACEOF
4389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null; then
4397 if test -s conftest.err; then
4398 ac_cpp_err=$ac_c_preproc_warn_flag
4399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400 else
4401 ac_cpp_err=
4402 fi
4403else
4404 ac_cpp_err=yes
4405fi
4406if test -z "$ac_cpp_err"; then
4407 # Broken: success on invalid input.
4408continue
4409else
4410 echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4412
7357c5b6
AM
4413 # Passes both tests.
4414ac_preproc_ok=:
4415break
4416fi
4417rm -f conftest.err conftest.$ac_ext
d7040cdb 4418
7357c5b6
AM
4419done
4420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421rm -f conftest.err conftest.$ac_ext
4422if $ac_preproc_ok; then
4423 :
4424else
4425 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4426echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4428See \`config.log' for more details." >&5
4429echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4430See \`config.log' for more details." >&2;}
4431 { (exit 1); exit 1; }; }; }
4432fi
d7040cdb 4433
7357c5b6
AM
4434ac_ext=c
4435ac_cpp='$CPP $CPPFLAGS'
4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4439
d7040cdb 4440
7357c5b6
AM
4441echo "$as_me:$LINENO: checking for egrep" >&5
4442echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4443if test "${ac_cv_prog_egrep+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4447 then ac_cv_prog_egrep='grep -E'
4448 else ac_cv_prog_egrep='egrep'
4449 fi
4450fi
4451echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4452echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4453 EGREP=$ac_cv_prog_egrep
d7040cdb
SE
4454
4455
7357c5b6
AM
4456echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4457echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4458if test "${ac_cv_header_stdc+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h. */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h. */
4467#include <stdlib.h>
4468#include <stdarg.h>
4469#include <string.h>
4470#include <float.h>
d7040cdb 4471
7357c5b6
AM
4472int
4473main ()
4474{
d7040cdb 4475
7357c5b6
AM
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480rm -f conftest.$ac_objext
4481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4483 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_header_stdc=yes
c428fa83 4503else
7357c5b6
AM
4504 echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4506
7357c5b6
AM
4507ac_cv_header_stdc=no
4508fi
4509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4510
7357c5b6
AM
4511if test $ac_cv_header_stdc = yes; then
4512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4513 cat >conftest.$ac_ext <<_ACEOF
4514/* confdefs.h. */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
4518/* end confdefs.h. */
4519#include <string.h>
d7040cdb 4520
7357c5b6
AM
4521_ACEOF
4522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "memchr" >/dev/null 2>&1; then
4524 :
4525else
4526 ac_cv_header_stdc=no
4527fi
4528rm -f conftest*
d7040cdb 4529
7357c5b6 4530fi
d7040cdb 4531
7357c5b6
AM
4532if test $ac_cv_header_stdc = yes; then
4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534 cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h. */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
4539/* end confdefs.h. */
4540#include <stdlib.h>
d7040cdb 4541
7357c5b6
AM
4542_ACEOF
4543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 $EGREP "free" >/dev/null 2>&1; then
4545 :
4546else
4547 ac_cv_header_stdc=no
4548fi
4549rm -f conftest*
d7040cdb 4550
7357c5b6 4551fi
d7040cdb 4552
7357c5b6
AM
4553if test $ac_cv_header_stdc = yes; then
4554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4555 if test "$cross_compiling" = yes; then
4556 :
4557else
4558 cat >conftest.$ac_ext <<_ACEOF
4559/* confdefs.h. */
4560_ACEOF
4561cat confdefs.h >>conftest.$ac_ext
4562cat >>conftest.$ac_ext <<_ACEOF
4563/* end confdefs.h. */
4564#include <ctype.h>
4565#if ((' ' & 0x0FF) == 0x020)
4566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4568#else
4569# define ISLOWER(c) \
4570 (('a' <= (c) && (c) <= 'i') \
4571 || ('j' <= (c) && (c) <= 'r') \
4572 || ('s' <= (c) && (c) <= 'z'))
4573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4574#endif
d7040cdb 4575
7357c5b6
AM
4576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4577int
4578main ()
4579{
4580 int i;
4581 for (i = 0; i < 256; i++)
4582 if (XOR (islower (i), ISLOWER (i))
4583 || toupper (i) != TOUPPER (i))
4584 exit(2);
4585 exit (0);
4586}
4587_ACEOF
4588rm -f conftest$ac_exeext
4589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590 (eval $ac_link) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 :
d7040cdb 4600else
7357c5b6
AM
4601 echo "$as_me: program exited with status $ac_status" >&5
4602echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4604
7357c5b6
AM
4605( exit $ac_status )
4606ac_cv_header_stdc=no
4607fi
4608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4609fi
4610fi
4611fi
4612echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4613echo "${ECHO_T}$ac_cv_header_stdc" >&6
4614if test $ac_cv_header_stdc = yes; then
d7040cdb 4615
7357c5b6
AM
4616cat >>confdefs.h <<\_ACEOF
4617#define STDC_HEADERS 1
4618_ACEOF
d7040cdb 4619
7357c5b6 4620fi
d7040cdb 4621
7357c5b6 4622# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4623
4624
4625
4626
c428fa83 4627
d7040cdb
SE
4628
4629
4630
4631
7357c5b6
AM
4632for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633 inttypes.h stdint.h unistd.h
4634do
4635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636echo "$as_me:$LINENO: checking for $ac_header" >&5
4637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640else
4641 cat >conftest.$ac_ext <<_ACEOF
4642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
4647$ac_includes_default
d7040cdb 4648
7357c5b6
AM
4649#include <$ac_header>
4650_ACEOF
4651rm -f conftest.$ac_objext
4652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 eval "$as_ac_Header=yes"
4674else
4675 echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4677
7357c5b6
AM
4678eval "$as_ac_Header=no"
4679fi
4680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681fi
4682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4684if test `eval echo '${'$as_ac_Header'}'` = yes; then
4685 cat >>confdefs.h <<_ACEOF
4686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687_ACEOF
d7040cdb 4688
7357c5b6
AM
4689fi
4690
4691done
4692
4693
4694
4695 if test "${ac_cv_header_minix_config_h+set}" = set; then
4696 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4697echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4698if test "${ac_cv_header_minix_config_h+set}" = set; then
d7040cdb 4699 echo $ECHO_N "(cached) $ECHO_C" >&6
7357c5b6
AM
4700fi
4701echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4702echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4703else
7357c5b6
AM
4704 # Is the header compilable?
4705echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4706echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4707cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h. */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h. */
4713$ac_includes_default
4714#include <minix/config.h>
4715_ACEOF
4716rm -f conftest.$ac_objext
4717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_header_compiler=yes
4739else
4740 echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4742
7357c5b6 4743ac_header_compiler=no
d7040cdb 4744fi
7357c5b6
AM
4745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4747echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4748
7357c5b6
AM
4749# Is the header present?
4750echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4751echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4752cat >conftest.$ac_ext <<_ACEOF
4753/* confdefs.h. */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h. */
4758#include <minix/config.h>
4759_ACEOF
4760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null; then
4768 if test -s conftest.err; then
4769 ac_cpp_err=$ac_c_preproc_warn_flag
4770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4771 else
4772 ac_cpp_err=
4773 fi
4774else
4775 ac_cpp_err=yes
4776fi
4777if test -z "$ac_cpp_err"; then
4778 ac_header_preproc=yes
4779else
4780 echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4782
7357c5b6
AM
4783 ac_header_preproc=no
4784fi
4785rm -f conftest.err conftest.$ac_ext
4786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4787echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4788
7357c5b6
AM
4789# So? What about this header?
4790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4791 yes:no: )
4792 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4793echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4794 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4795echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4796 ac_header_preproc=yes
4797 ;;
4798 no:yes:* )
4799 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4800echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4802echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4804echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4805 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4806echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4807 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4808echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4809 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4810echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4811 (
4812 cat <<\_ASBOX
4813## ------------------------------------------ ##
4814## Report this to the AC_PACKAGE_NAME lists. ##
4815## ------------------------------------------ ##
4816_ASBOX
4817 ) |
4818 sed "s/^/$as_me: WARNING: /" >&2
4819 ;;
4820esac
4821echo "$as_me:$LINENO: checking for minix/config.h" >&5
4822echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4823if test "${ac_cv_header_minix_config_h+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826 ac_cv_header_minix_config_h=$ac_header_preproc
4827fi
4828echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4829echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4830
4831fi
4832if test $ac_cv_header_minix_config_h = yes; then
4833 MINIX=yes
4834else
4835 MINIX=
4836fi
d7040cdb
SE
4837
4838
7357c5b6 4839 if test "$MINIX" = yes; then
d7040cdb 4840
7357c5b6
AM
4841cat >>confdefs.h <<\_ACEOF
4842#define _POSIX_SOURCE 1
4843_ACEOF
d7040cdb
SE
4844
4845
7357c5b6
AM
4846cat >>confdefs.h <<\_ACEOF
4847#define _POSIX_1_SOURCE 2
4848_ACEOF
d7040cdb
SE
4849
4850
7357c5b6
AM
4851cat >>confdefs.h <<\_ACEOF
4852#define _MINIX 1
4853_ACEOF
d7040cdb 4854
7357c5b6 4855 fi
d7040cdb
SE
4856
4857
4858
7357c5b6
AM
4859 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4860echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4861if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
d7040cdb
SE
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
7357c5b6
AM
4864 cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
d7040cdb 4870
7357c5b6
AM
4871# define __EXTENSIONS__ 1
4872 $ac_includes_default
4873int
4874main ()
4875{
d7040cdb 4876
7357c5b6
AM
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext
4882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4904else
7357c5b6
AM
4905 echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908ac_cv_safe_to_define___extensions__=no
d7040cdb 4909fi
7357c5b6
AM
4910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911fi
4912echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4913echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4914 test $ac_cv_safe_to_define___extensions__ = yes &&
4915 cat >>confdefs.h <<\_ACEOF
4916#define __EXTENSIONS__ 1
4917_ACEOF
d7040cdb 4918
7357c5b6
AM
4919 cat >>confdefs.h <<\_ACEOF
4920#define _ALL_SOURCE 1
4921_ACEOF
d7040cdb 4922
7357c5b6
AM
4923 cat >>confdefs.h <<\_ACEOF
4924#define _GNU_SOURCE 1
4925_ACEOF
d7040cdb 4926
7357c5b6
AM
4927 cat >>confdefs.h <<\_ACEOF
4928#define _POSIX_PTHREAD_SEMANTICS 1
4929_ACEOF
d7040cdb 4930
7357c5b6
AM
4931 cat >>confdefs.h <<\_ACEOF
4932#define _TANDEM_SOURCE 1
4933_ACEOF
d7040cdb
SE
4934
4935
4936
4937
4938
7357c5b6
AM
4939macro_version='2.1a'
4940macro_revision='1.2435'
d7040cdb
SE
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
7357c5b6
AM
4953ltmain="$ac_aux_dir/ltmain.sh"
4954
4955# Set options
4956
4957enable_dlopen=no
4958
4959
4960enable_win32_dll=no
4961
4962
4963
4964# Check whether --enable-static or --disable-static was given.
4965if test "${enable_static+set}" = set; then
4966 enableval="$enable_static"
4967 p=${PACKAGE-default}
4968 case $enableval in
4969 yes) enable_static=yes ;;
4970 no) enable_static=no ;;
4971 *)
4972 enable_static=no
4973 # Look at the argument we got. We use all the common list separators.
4974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4975 for pkg in $enableval; do
4976 IFS="$lt_save_ifs"
4977 if test "X$pkg" = "X$p"; then
4978 enable_static=yes
4979 fi
4980 done
4981 IFS="$lt_save_ifs"
4982 ;;
4983 esac
4984else
4985 enable_static=yes
4986fi;
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996# Check whether --with-pic or --without-pic was given.
4997if test "${with_pic+set}" = set; then
4998 withval="$with_pic"
4999 pic_mode="$withval"
5000else
5001 pic_mode=default
5002fi;
5003
5004test -z "$pic_mode" && pic_mode=default
5005
5006
5007
5008
5009
5010
5011
5012# Check whether --enable-fast-install or --disable-fast-install was given.
5013if test "${enable_fast_install+set}" = set; then
5014 enableval="$enable_fast_install"
5015 p=${PACKAGE-default}
5016 case $enableval in
5017 yes) enable_fast_install=yes ;;
5018 no) enable_fast_install=no ;;
5019 *)
5020 enable_fast_install=no
5021 # Look at the argument we got. We use all the common list separators.
5022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5023 for pkg in $enableval; do
5024 IFS="$lt_save_ifs"
5025 if test "X$pkg" = "X$p"; then
5026 enable_fast_install=yes
5027 fi
5028 done
5029 IFS="$lt_save_ifs"
5030 ;;
5031 esac
5032else
5033 enable_fast_install=yes
5034fi;
5035
5036
5037
5038
5039
5040
5041
5042
5043echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5044echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5045if test "${lt_cv_path_SED+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048 # Loop through the user's path and test for sed and gsed.
5049# Then use that list of sed's as ones to test for truncation.
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for lt_ac_prog in sed gsed; do
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5058 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5059 fi
5060 done
5061 done
5062done
5063IFS=$as_save_IFS
5064lt_ac_max=0
5065lt_ac_count=0
5066# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5067# along with /bin/sed that truncates output.
5068for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5069 test ! -f $lt_ac_sed && continue
5070 cat /dev/null > conftest.in
5071 lt_ac_count=0
5072 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5073 # Check for GNU sed and select it if it is found.
5074 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5075 lt_cv_path_SED=$lt_ac_sed
5076 break
5077 fi
5078 while true; do
5079 cat conftest.in conftest.in >conftest.tmp
5080 mv conftest.tmp conftest.in
5081 cp conftest.in conftest.nl
5082 echo >>conftest.nl
5083 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5084 cmp -s conftest.out conftest.nl || break
5085 # 10000 chars as input seems more than enough
5086 test $lt_ac_count -gt 10 && break
5087 lt_ac_count=`expr $lt_ac_count + 1`
5088 if test $lt_ac_count -gt $lt_ac_max; then
5089 lt_ac_max=$lt_ac_count
5090 lt_cv_path_SED=$lt_ac_sed
5091 fi
5092 done
5093done
5094
5095fi
5096
5097SED=$lt_cv_path_SED
5098
5099echo "$as_me:$LINENO: result: $SED" >&5
5100echo "${ECHO_T}$SED" >&6
5101
5102test -z "$SED" && SED=sed
5103Xsed="$SED -e 1s/^X//"
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115echo "$as_me:$LINENO: checking for fgrep" >&5
5116echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5117if test "${ac_cv_prog_fgrep+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119else
5120 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5121 then ac_cv_prog_fgrep='grep -F'
5122 else ac_cv_prog_fgrep='fgrep'
5123 fi
5124fi
5125echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5126echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5127 FGREP=$ac_cv_prog_fgrep
5128
5129
5130test -z "$GREP" && GREP=grep
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150# Check whether --with-gnu-ld or --without-gnu-ld was given.
5151if test "${with_gnu_ld+set}" = set; then
5152 withval="$with_gnu_ld"
5153 test "$withval" = no || with_gnu_ld=yes
5154else
5155 with_gnu_ld=no
5156fi;
5157ac_prog=ld
5158if test "$GCC" = yes; then
5159 # Check if gcc -print-prog-name=ld gives a path.
5160 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5161echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5162 case $host in
5163 *-*-mingw*)
5164 # gcc leaves a trailing carriage return which upsets mingw
5165 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5166 *)
5167 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5168 esac
5169 case $ac_prog in
5170 # Accept absolute paths.
5171 [\\/]* | ?:[\\/]*)
5172 re_direlt='/[^/][^/]*/\.\./'
5173 # Canonicalize the pathname of ld
5174 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5175 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5176 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5177 done
5178 test -z "$LD" && LD="$ac_prog"
5179 ;;
5bd8253d 5180 "")
cfbc9945
SE
5181 # If it fails, then pretend we aren't using GCC.
5182 ac_prog=ld
5bd8253d
L
5183 ;;
5184 *)
cfbc9945
SE
5185 # If it is relative, then search for the first ld in PATH.
5186 with_gnu_ld=unknown
5bd8253d 5187 ;;
cfbc9945
SE
5188 esac
5189elif test "$with_gnu_ld" = yes; then
5190 echo "$as_me:$LINENO: checking for GNU ld" >&5
5191echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5192else
5193 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5194echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5195fi
5196if test "${lt_cv_path_LD+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199 if test -z "$LD"; then
d7040cdb 5200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5201 for ac_dir in $PATH; do
d7040cdb 5202 IFS="$lt_save_ifs"
cfbc9945
SE
5203 test -z "$ac_dir" && ac_dir=.
5204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5205 lt_cv_path_LD="$ac_dir/$ac_prog"
5206 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5207 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5208 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5209 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5210 *GNU* | *'with BFD'*)
cfbc9945 5211 test "$with_gnu_ld" != no && break
d7040cdb
SE
5212 ;;
5213 *)
cfbc9945 5214 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5215 ;;
5216 esac
cfbc9945
SE
5217 fi
5218 done
d7040cdb 5219 IFS="$lt_save_ifs"
cfbc9945
SE
5220else
5221 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5222fi
1ad12f97
NC
5223fi
5224
cfbc9945
SE
5225LD="$lt_cv_path_LD"
5226if test -n "$LD"; then
5227 echo "$as_me:$LINENO: result: $LD" >&5
5228echo "${ECHO_T}$LD" >&6
5229else
5230 echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
5232fi
5233test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5234echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5235 { (exit 1); exit 1; }; }
5236echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5237echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5238if test "${lt_cv_prog_gnu_ld+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
d7040cdb
SE
5241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5242case `$LD -v 2>&1 </dev/null` in
5243*GNU* | *'with BFD'*)
cfbc9945 5244 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5245 ;;
5246*)
cfbc9945 5247 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5248 ;;
5249esac
49c96104 5250fi
cfbc9945
SE
5251echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5252echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5253with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5254
9e9b66a9 5255
cfbc9945 5256
d7040cdb
SE
5257
5258
5259
5260
5261
5262
5263
5264echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5265echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
5266if test "${lt_cv_path_NM+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
5269 if test -n "$NM"; then
5270 # Let the user override the test.
5271 lt_cv_path_NM="$NM"
5272else
d7040cdb
SE
5273 lt_nm_to_check="${ac_tool_prefix}nm"
5274 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5275 lt_nm_to_check="$lt_nm_to_check nm"
5276 fi
5277 for lt_tmp_nm in $lt_nm_to_check; do
5278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5279 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5280 IFS="$lt_save_ifs"
5281 test -z "$ac_dir" && ac_dir=.
5282 tmp_nm="$ac_dir/$lt_tmp_nm"
5283 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5284 # Check to see if the nm accepts a BSD-compat flag.
5285 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5286 # nm: unknown option "B" ignored
5287 # Tru64's nm complains that /dev/null is an invalid object file
5288 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5289 */dev/null* | *'Invalid file or object type'*)
5290 lt_cv_path_NM="$tmp_nm -B"
5291 break
5292 ;;
5293 *)
5294 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5295 */dev/null*)
5296 lt_cv_path_NM="$tmp_nm -p"
5297 break
5298 ;;
5299 *)
5300 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5301 continue # so that we can try to find one that supports BSD flags
5302 ;;
5303 esac
5304 ;;
5305 esac
cfbc9945 5306 fi
d7040cdb
SE
5307 done
5308 IFS="$lt_save_ifs"
cfbc9945 5309 done
d7040cdb 5310 : ${lt_cv_path_NM=no}
cfbc9945 5311fi
a2d91340 5312fi
d7040cdb
SE
5313echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5314echo "${ECHO_T}$lt_cv_path_NM" >&6
5315if test "$lt_cv_path_NM" != "no"; then
5316 NM="$lt_cv_path_NM"
cfbc9945 5317else
d7040cdb
SE
5318 # Didn't find any BSD compatible name lister, look for dumpbin.
5319 if test -n "$ac_tool_prefix"; then
5320 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5321 do
5322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5323set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5324echo "$as_me:$LINENO: checking for $ac_word" >&5
5325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 5327 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5328else
d7040cdb
SE
5329 if test -n "$DUMPBIN"; then
5330 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5342 fi
5343done
5344done
5464f5a1 5345
d7040cdb
SE
5346fi
5347fi
5348DUMPBIN=$ac_cv_prog_DUMPBIN
5349if test -n "$DUMPBIN"; then
5350 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5351echo "${ECHO_T}$DUMPBIN" >&6
5352else
5353 echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355fi
d5fbea21 5356
d7040cdb
SE
5357 test -n "$DUMPBIN" && break
5358 done
5359fi
5360if test -z "$DUMPBIN"; then
5361 ac_ct_DUMPBIN=$DUMPBIN
5362 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5363do
5364 # Extract the first word of "$ac_prog", so it can be a program name with args.
5365set dummy $ac_prog; ac_word=$2
5366echo "$as_me:$LINENO: checking for $ac_word" >&5
5367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5368if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370else
5371 if test -n "$ac_ct_DUMPBIN"; then
5372 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
cfbc9945 5384 fi
d7040cdb
SE
5385done
5386done
d5fbea21 5387
d7040cdb
SE
5388fi
5389fi
5390ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5391if test -n "$ac_ct_DUMPBIN"; then
5392 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5393echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5394else
5395 echo "$as_me:$LINENO: result: no" >&5
5396echo "${ECHO_T}no" >&6
5397fi
d5fbea21 5398
d7040cdb
SE
5399 test -n "$ac_ct_DUMPBIN" && break
5400done
5401test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 5402
d7040cdb
SE
5403 DUMPBIN=$ac_ct_DUMPBIN
5404fi
24443139 5405
24443139 5406
d7040cdb
SE
5407 if test "$DUMPBIN" != ":"; then
5408 NM="$DUMPBIN"
cfbc9945 5409 fi
d7040cdb
SE
5410fi
5411test -z "$NM" && NM=nm
a703a6ea 5412
f5385ebf 5413
cfbc9945 5414
24443139
AS
5415
5416
5417
d7040cdb
SE
5418echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5419echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5420if test "${lt_cv_nm_interface+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423 lt_cv_nm_interface="BSD nm"
5424 echo "int some_variable = 0;" > conftest.$ac_ext
7357c5b6 5425 (eval echo "\"\$as_me:5425: $ac_compile\"" >&5)
d7040cdb
SE
5426 (eval "$ac_compile" 2>conftest.err)
5427 cat conftest.err >&5
7357c5b6 5428 (eval echo "\"\$as_me:5428: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5429 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5430 cat conftest.err >&5
7357c5b6 5431 (eval echo "\"\$as_me:5431: output\"" >&5)
d7040cdb
SE
5432 cat conftest.out >&5
5433 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5434 lt_cv_nm_interface="MS dumpbin"
5435 fi
5436 rm -f conftest*
cfbc9945 5437fi
d7040cdb
SE
5438echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5439echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 5440
d7040cdb
SE
5441echo "$as_me:$LINENO: checking whether ln -s works" >&5
5442echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5443LN_S=$as_ln_s
5444if test "$LN_S" = "ln -s"; then
5445 echo "$as_me:$LINENO: result: yes" >&5
5446echo "${ECHO_T}yes" >&6
5447else
5448 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5449echo "${ECHO_T}no, using $LN_S" >&6
5450fi
252b5132 5451
cfbc9945
SE
5452# find the maximum length of command line arguments
5453echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5454echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5455if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458 i=0
5459 teststring="ABCD"
5464f5a1 5460
cfbc9945
SE
5461 case $build_os in
5462 msdosdjgpp*)
5463 # On DJGPP, this test can blow up pretty badly due to problems in libc
5464 # (any single argument exceeding 2000 bytes causes a buffer overrun
5465 # during glob expansion). Even if it were fixed, the result of this
5466 # check would be larger than it should be.
5467 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5468 ;;
5464f5a1 5469
d7040cdb
SE
5470 gnu*)
5471 # Under GNU Hurd, this test is not required because there is
5472 # no limit to the length of command line arguments.
5473 # Libtool will interpret -1 as no limit whatsoever
5474 lt_cv_sys_max_cmd_len=-1;
5475 ;;
5476
cfbc9945
SE
5477 cygwin* | mingw*)
5478 # On Win9x/ME, this test blows up -- it succeeds, but takes
5479 # about 5 minutes as the teststring grows exponentially.
5480 # Worse, since 9x/ME are not pre-emptively multitasking,
5481 # you end up with a "frozen" computer, even though with patience
5482 # the test eventually succeeds (with a max line length of 256k).
5483 # Instead, let's just punt: use the minimum linelength reported by
5484 # all of the supported platforms: 8192 (on NT/2K/XP).
5485 lt_cv_sys_max_cmd_len=8192;
5486 ;;
5464f5a1 5487
cfbc9945
SE
5488 amigaos*)
5489 # On AmigaOS with pdksh, this test takes hours, literally.
5490 # So we just punt and use a minimum line length of 8192.
5491 lt_cv_sys_max_cmd_len=8192;
5492 ;;
5464f5a1 5493
cfbc9945
SE
5494 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5495 # This has been around since 386BSD, at least. Likely further.
5496 if test -x /sbin/sysctl; then
5497 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5498 elif test -x /usr/sbin/sysctl; then
5499 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5500 else
d7040cdb 5501 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
5502 fi
5503 # And add a safety zone
5504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5506 ;;
d7040cdb
SE
5507
5508 interix*)
5509 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5510 lt_cv_sys_max_cmd_len=196608
5511 ;;
5512
5513 osf*)
5514 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5515 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5516 # nice to cause kernel panics so lets avoid the loop below.
5517 # First set a reasonable default.
5518 lt_cv_sys_max_cmd_len=16384
5519 #
5520 if test -x /sbin/sysconfig; then
5521 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5522 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5523 esac
5524 fi
5525 ;;
5526 sco3.2v5*)
5527 lt_cv_sys_max_cmd_len=102400
5528 ;;
5529 sysv5* | sco5v6* | sysv4.2uw2*)
5530 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5531 if test -n "$kargmax"; then
5532 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5533 else
5534 lt_cv_sys_max_cmd_len=32768
5535 fi
5536 ;;
5537 *)
79887925
L
5538 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5539 if test -n $lt_cv_sys_max_cmd_len; then
5540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5542 else
5543 # Make teststring a little bigger before we do anything with it.
5544 # a 1K string should be a reasonable start.
5545 for i in 1 2 3 4 5 6 7 8 ; do
5546 teststring=$teststring$teststring
5547 done
5548 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5549 # If test is not a shell built-in, we'll probably end up computing a
5550 # maximum length that is only half of the actual maximum length, but
5551 # we can't tell.
5552 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5553 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5554 test $i != 17 # 1/2 MB should be enough
5555 do
5556 i=`expr $i + 1`
5557 teststring=$teststring$teststring
5558 done
5559 # Only check the string length outside the loop.
5560 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5561 teststring=
5562 # Add a significant safety factor because C++ compilers can tack on
5563 # massive amounts of additional arguments before passing them to the
5564 # linker. It appears as though 1/2 is a usable value.
5565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5566 fi
d7040cdb 5567 ;;
cfbc9945 5568 esac
5464f5a1 5569
252b5132 5570fi
cfbc9945 5571
d7040cdb 5572if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
5573 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5574echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 5575else
cfbc9945
SE
5576 echo "$as_me:$LINENO: result: none" >&5
5577echo "${ECHO_T}none" >&6
5464f5a1 5578fi
d7040cdb 5579max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5580
cfbc9945 5581
252b5132 5582
cfbc9945 5583
cfbc9945 5584
d7040cdb
SE
5585
5586
5587: ${CP="cp -f"}
5588: ${MV="mv -f"}
5589: ${RM="rm -f"}
5590
5591echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5592echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5593# Try some XSI features
5594xsi_shell=no
5595( _lt_dummy="a/b/c"
5596 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5597 = c,a/b,, ) >/dev/null 2>&1 \
5598 && xsi_shell=yes
5599echo "$as_me:$LINENO: result: $xsi_shell" >&5
5600echo "${ECHO_T}$xsi_shell" >&6
5601
5602
5603echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5604echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5605lt_shell_append=no
5606( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5607 >/dev/null 2>&1 \
5608 && lt_shell_append=yes
5609echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5610echo "${ECHO_T}$lt_shell_append" >&6
5611
5612
5613if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5614 lt_unset=unset
5464f5a1 5615else
d7040cdb 5616 lt_unset=false
5464f5a1 5617fi
252b5132 5618
d7040cdb
SE
5619
5620
5621
5622
5623# test EBCDIC or ASCII
5624case `echo X|tr X '\101'` in
5625 A) # ASCII based system
5626 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5627 lt_SP2NL='tr \040 \012'
5628 lt_NL2SP='tr \015\012 \040\040'
5629 ;;
5630 *) # EBCDIC based system
5631 lt_SP2NL='tr \100 \n'
5632 lt_NL2SP='tr \r\n \100\100'
5633 ;;
5634esac
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5645echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5646if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
d7040cdb
SE
5649 lt_cv_ld_reload_flag='-r'
5650fi
5651echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5652echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5653reload_flag=$lt_cv_ld_reload_flag
5654case $reload_flag in
5655"" | " "*) ;;
5656*) reload_flag=" $reload_flag" ;;
5657esac
5658reload_cmds='$LD$reload_flag -o $output$reload_objs'
5659case $host_os in
5660 darwin*)
5661 if test "$GCC" = yes; then
5662 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5663 else
5664 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5665 fi
5666 ;;
5667esac
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5679echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5680if test "${lt_cv_deplibs_check_method+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682else
5683 lt_cv_file_magic_cmd='$MAGIC_CMD'
5684lt_cv_file_magic_test_file=
5685lt_cv_deplibs_check_method='unknown'
5686# Need to set the preceding variable on all platforms that support
5687# interlibrary dependencies.
5688# 'none' -- dependencies not supported.
5689# `unknown' -- same as none, but documents that we really don't know.
5690# 'pass_all' -- all dependencies passed with no checks.
5691# 'test_compile' -- check by making test program.
5692# 'file_magic [[regex]]' -- check by looking for files in library path
5693# which responds to the $file_magic_cmd with a given extended regex.
5694# If you have `file' or equivalent on your system and you're not sure
5695# whether `pass_all' will *always* work, you probably want this one.
5696
5697case $host_os in
e81819a5 5698aix[4-9]*)
d7040cdb
SE
5699 lt_cv_deplibs_check_method=pass_all
5700 ;;
5701
5702beos*)
5703 lt_cv_deplibs_check_method=pass_all
5704 ;;
5705
5706bsdi[45]*)
5707 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5708 lt_cv_file_magic_cmd='/usr/bin/file -L'
5709 lt_cv_file_magic_test_file=/shlib/libc.so
5710 ;;
5711
5712cygwin*)
5713 # func_win32_libid is a shell function defined in ltmain.sh
5714 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5715 lt_cv_file_magic_cmd='func_win32_libid'
5716 ;;
5717
5718mingw* | pw32*)
5719 # Base MSYS/MinGW do not provide the 'file' command needed by
5720 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5721 # unless we find 'file', for example because we are cross-compiling.
5722 if ( file / ) >/dev/null 2>&1; then
5723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5724 lt_cv_file_magic_cmd='func_win32_libid'
5725 else
5726 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5727 lt_cv_file_magic_cmd='$OBJDUMP -f'
5728 fi
5729 ;;
5730
5731darwin* | rhapsody*)
5732 lt_cv_deplibs_check_method=pass_all
cfbc9945 5733 ;;
d7040cdb
SE
5734
5735freebsd* | dragonfly*)
5736 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5737 case $host_cpu in
5738 i*86 )
5739 # Not sure whether the presence of OpenBSD here was a mistake.
5740 # Let's accept both of them until this is cleared up.
5741 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5742 lt_cv_file_magic_cmd=/usr/bin/file
5743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5744 ;;
5745 esac
5746 else
5747 lt_cv_deplibs_check_method=pass_all
5748 fi
5749 ;;
5750
5751gnu*)
5752 lt_cv_deplibs_check_method=pass_all
cfbc9945 5753 ;;
d7040cdb
SE
5754
5755hpux10.20* | hpux11*)
5756 lt_cv_file_magic_cmd=/usr/bin/file
5757 case $host_cpu in
5758 ia64*)
5759 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5760 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5761 ;;
5762 hppa*64*)
5763 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]'
5764 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5765 ;;
cfbc9945 5766 *)
d7040cdb
SE
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5768 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5769 ;;
5770 esac
5771 ;;
6be7c12c 5772
d7040cdb
SE
5773interix[3-9]*)
5774 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5776 ;;
cfbc9945 5777
d7040cdb
SE
5778irix5* | irix6* | nonstopux*)
5779 case $LD in
5780 *-32|*"-32 ") libmagic=32-bit;;
5781 *-n32|*"-n32 ") libmagic=N32;;
5782 *-64|*"-64 ") libmagic=64-bit;;
5783 *) libmagic=never-match;;
5784 esac
5785 lt_cv_deplibs_check_method=pass_all
cfbc9945 5786 ;;
cfbc9945 5787
d7040cdb
SE
5788# This must be Linux ELF.
5789linux* | k*bsd*-gnu)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5464f5a1 5792
d7040cdb
SE
5793netbsd*)
5794 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 5796 else
d7040cdb 5797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 5798 fi
d7040cdb
SE
5799 ;;
5800
5801newos6*)
5802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5803 lt_cv_file_magic_cmd=/usr/bin/file
5804 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5805 ;;
5806
5807*nto* | *qnx*)
5808 lt_cv_deplibs_check_method=pass_all
5809 ;;
cfbc9945 5810
d7040cdb
SE
5811openbsd*)
5812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5814 else
5815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
5816 fi
5817 ;;
d7040cdb
SE
5818
5819osf3* | osf4* | osf5*)
5820 lt_cv_deplibs_check_method=pass_all
5821 ;;
5822
5823rdos*)
5824 lt_cv_deplibs_check_method=pass_all
5825 ;;
5826
5827solaris*)
5828 lt_cv_deplibs_check_method=pass_all
5829 ;;
5830
5831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835sysv4 | sysv4.3*)
5836 case $host_vendor in
5837 motorola)
5838 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]'
5839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5840 ;;
5841 ncr)
5842 lt_cv_deplibs_check_method=pass_all
5843 ;;
5844 sequent)
5845 lt_cv_file_magic_cmd='/bin/file'
5846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5847 ;;
5848 sni)
5849 lt_cv_file_magic_cmd='/bin/file'
5850 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5851 lt_cv_file_magic_test_file=/lib/libc.so
5852 ;;
5853 siemens)
5854 lt_cv_deplibs_check_method=pass_all
5855 ;;
5856 pc)
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859 esac
5860 ;;
5861
5862tpf*)
5863 lt_cv_deplibs_check_method=pass_all
5864 ;;
cfbc9945
SE
5865esac
5866
d7040cdb
SE
5867fi
5868echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5869echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5870file_magic_cmd=$lt_cv_file_magic_cmd
5871deplibs_check_method=$lt_cv_deplibs_check_method
5872test -z "$deplibs_check_method" && deplibs_check_method=unknown
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
cfbc9945 5885if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5886 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5887set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
5888echo "$as_me:$LINENO: checking for $ac_word" >&5
5889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5890if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892else
d7040cdb
SE
5893 if test -n "$AR"; then
5894 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5903 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908done
5909
5910fi
5911fi
d7040cdb
SE
5912AR=$ac_cv_prog_AR
5913if test -n "$AR"; then
5914 echo "$as_me:$LINENO: result: $AR" >&5
5915echo "${ECHO_T}$AR" >&6
5464f5a1
NN
5916else
5917 echo "$as_me:$LINENO: result: no" >&5
5918echo "${ECHO_T}no" >&6
5919fi
5920
5464f5a1 5921fi
d7040cdb
SE
5922if test -z "$ac_cv_prog_AR"; then
5923 ac_ct_AR=$AR
5924 # Extract the first word of "ar", so it can be a program name with args.
5925set dummy ar; ac_word=$2
5464f5a1
NN
5926echo "$as_me:$LINENO: checking for $ac_word" >&5
5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5928if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 5929 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5930else
d7040cdb
SE
5931 if test -n "$ac_ct_AR"; then
5932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 5933else
5464f5a1
NN
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5941 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945done
5946done
5947
d7040cdb 5948 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
5949fi
5950fi
d7040cdb
SE
5951ac_ct_AR=$ac_cv_prog_ac_ct_AR
5952if test -n "$ac_ct_AR"; then
5953 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5954echo "${ECHO_T}$ac_ct_AR" >&6
5955else
5956 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
5957echo "${ECHO_T}no" >&6
5958fi
5959
d7040cdb 5960 AR=$ac_ct_AR
cfbc9945 5961else
d7040cdb 5962 AR="$ac_cv_prog_AR"
5464f5a1 5963fi
cfbc9945 5964
d7040cdb
SE
5965test -z "$AR" && AR=ar
5966test -z "$AR_FLAGS" && AR_FLAGS=cru
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
cfbc9945
SE
5978if test -n "$ac_tool_prefix"; then
5979 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5980set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
5981echo "$as_me:$LINENO: checking for $ac_word" >&5
5982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5983if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
cfbc9945
SE
5986 if test -n "$STRIP"; then
5987 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
5988else
5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH
5991do
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5996 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
5999 fi
6000done
6001done
6002
6003fi
6004fi
cfbc9945
SE
6005STRIP=$ac_cv_prog_STRIP
6006if test -n "$STRIP"; then
6007 echo "$as_me:$LINENO: result: $STRIP" >&5
6008echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
6009else
6010 echo "$as_me:$LINENO: result: no" >&5
6011echo "${ECHO_T}no" >&6
6012fi
6013
252b5132 6014fi
cfbc9945
SE
6015if test -z "$ac_cv_prog_STRIP"; then
6016 ac_ct_STRIP=$STRIP
6017 # Extract the first word of "strip", so it can be a program name with args.
6018set dummy strip; ac_word=$2
5464f5a1
NN
6019echo "$as_me:$LINENO: checking for $ac_word" >&5
6020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6021if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
cfbc9945
SE
6024 if test -n "$ac_ct_STRIP"; then
6025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6026else
6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6034 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038done
6039done
6040
cfbc9945 6041 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
6042fi
6043fi
cfbc9945
SE
6044ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6045if test -n "$ac_ct_STRIP"; then
6046 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6047echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
6048else
6049 echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6
6051fi
6052
cfbc9945
SE
6053 STRIP=$ac_ct_STRIP
6054else
6055 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6056fi
6057
d7040cdb 6058test -z "$STRIP" && STRIP=:
5464f5a1 6059
cfbc9945
SE
6060
6061
cfbc9945 6062
cfbc9945
SE
6063
6064
d7040cdb
SE
6065if test -n "$ac_tool_prefix"; then
6066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6067set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6068echo "$as_me:$LINENO: checking for $ac_word" >&5
6069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070if test "${ac_cv_prog_RANLIB+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 6072else
d7040cdb
SE
6073 if test -n "$RANLIB"; then
6074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6075else
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
cfbc9945 6086 fi
d7040cdb
SE
6087done
6088done
cfbc9945 6089
d7040cdb
SE
6090fi
6091fi
6092RANLIB=$ac_cv_prog_RANLIB
6093if test -n "$RANLIB"; then
6094 echo "$as_me:$LINENO: result: $RANLIB" >&5
6095echo "${ECHO_T}$RANLIB" >&6
6096else
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099fi
cfbc9945 6100
d7040cdb
SE
6101fi
6102if test -z "$ac_cv_prog_RANLIB"; then
6103 ac_ct_RANLIB=$RANLIB
6104 # Extract the first word of "ranlib", so it can be a program name with args.
6105set dummy ranlib; ac_word=$2
6106echo "$as_me:$LINENO: checking for $ac_word" >&5
6107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 if test -n "$ac_ct_RANLIB"; then
6112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_ac_ct_RANLIB="ranlib"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
cfbc9945 6124 fi
d7040cdb
SE
6125done
6126done
cfbc9945 6127
d7040cdb
SE
6128 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6129fi
6130fi
6131ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6132if test -n "$ac_ct_RANLIB"; then
6133 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6134echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 6135else
d7040cdb
SE
6136 echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
6138fi
5464f5a1 6139
d7040cdb
SE
6140 RANLIB=$ac_ct_RANLIB
6141else
6142 RANLIB="$ac_cv_prog_RANLIB"
6143fi
5464f5a1 6144
d7040cdb 6145test -z "$RANLIB" && RANLIB=:
5464f5a1 6146
5464f5a1 6147
5464f5a1 6148
cfbc9945 6149
cfbc9945 6150
d7040cdb
SE
6151
6152# Determine commands to create old-style static archives.
6153old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6154old_postinstall_cmds='chmod 644 $oldlib'
6155old_postuninstall_cmds=
6156
6157if test -n "$RANLIB"; then
6158 case $host_os in
6159 openbsd*)
6160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6161 ;;
6162 *)
6163 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6164 ;;
6165 esac
6166 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6167fi
cfbc9945
SE
6168
6169
cfbc9945
SE
6170
6171
cfbc9945 6172
cfbc9945 6173
cfbc9945 6174
cfbc9945 6175
cfbc9945
SE
6176
6177
cfbc9945 6178
cfbc9945 6179
cfbc9945
SE
6180
6181
6182
6183
6184
6185
6186
5464f5a1 6187
5464f5a1 6188
cfbc9945
SE
6189
6190
6191
5464f5a1 6192
5464f5a1 6193
cfbc9945
SE
6194
6195
6196
5464f5a1 6197
cfbc9945
SE
6198
6199
6200
6201
d7040cdb
SE
6202# If no C compiler was specified, use CC.
6203LTCC=${LTCC-"$CC"}
cfbc9945 6204
d7040cdb
SE
6205# If no C compiler flags were specified, use CFLAGS.
6206LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6207
d7040cdb
SE
6208# Allow CC to be a program name with arguments.
6209compiler=$CC
cfbc9945 6210
cfbc9945 6211
d7040cdb
SE
6212# Check for command to grab the raw symbol name followed by C symbol from nm.
6213echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6214echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6215if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
5464f5a1 6218
d7040cdb
SE
6219# These are sane defaults that work on at least a few old systems.
6220# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6221
d7040cdb
SE
6222# Character class describing NM global symbol codes.
6223symcode='[BCDEGRST]'
6224
6225# Regexp to match symbols that can be accessed directly from C.
6226sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6227
6228# Define system-specific variables.
6229case $host_os in
6230aix*)
6231 symcode='[BCDT]'
6232 ;;
6233cygwin* | mingw* | pw32*)
6234 symcode='[ABCDGISTW]'
6235 ;;
6236hpux*)
6237 if test "$host_cpu" = ia64; then
6238 symcode='[ABCDEGRST]'
6239 fi
6240 ;;
6241irix* | nonstopux*)
6242 symcode='[BCDEGRST]'
6243 ;;
6244osf*)
6245 symcode='[BCDEGQRST]'
6246 ;;
6247solaris*)
6248 symcode='[BDRT]'
6249 ;;
6250sco3.2v5*)
6251 symcode='[DT]'
6252 ;;
6253sysv4.2uw2*)
6254 symcode='[DT]'
6255 ;;
6256sysv5* | sco5v6* | unixware* | OpenUNIX*)
6257 symcode='[ABDT]'
6258 ;;
6259sysv4)
6260 symcode='[DFNSTU]'
6261 ;;
cfbc9945 6262esac
5464f5a1 6263
d7040cdb
SE
6264# If we're using GNU nm, then use its standard symbol codes.
6265case `$NM -V 2>&1` in
6266*GNU* | *'with BFD'*)
6267 symcode='[ABCDGIRSTW]' ;;
6268esac
5464f5a1 6269
d7040cdb
SE
6270# Transform an extracted symbol line into a proper C declaration.
6271# Some systems (esp. on ia64) link data and code symbols differently,
6272# so use this general approach.
6273lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6274
d7040cdb
SE
6275# Transform an extracted symbol line into symbol name and symbol address
6276lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5464f5a1 6277
d7040cdb
SE
6278# Handle CRLF in mingw tool chain
6279opt_cr=
6280case $build_os in
6281mingw*)
6282 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6283 ;;
6284esac
5464f5a1 6285
d7040cdb
SE
6286# Try without a prefix underscore, then with it.
6287for ac_symprfx in "" "_"; do
6288
6289 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290 symxfrm="\\1 $ac_symprfx\\2 \\2"
6291
6292 # Write the raw and C identifiers.
6293 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6294 # Fake it for dumpbin and say T for any non-static function
6295 # and D for any global variable.
6296 # Also find C++ and __fastcall symbols from MSVC++,
6297 # which start with @ or ?.
6298 lt_cv_sys_global_symbol_pipe="$AWK '"\
6299" {last_section=section; section=\$ 3};"\
6300" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6301" \$ 0!~/External *\|/{next};"\
6302" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6303" {if(hide[section]) next};"\
6304" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6305" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6306" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6307" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6308" ' prfx=^$ac_symprfx"
6309 else
6310 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6311 fi
cfbc9945 6312
d7040cdb
SE
6313 # Check to see that the pipe works correctly.
6314 pipe_works=no
cfbc9945 6315
d7040cdb
SE
6316 rm -f conftest*
6317 cat > conftest.$ac_ext <<_LT_EOF
6318#ifdef __cplusplus
6319extern "C" {
6320#endif
6321char nm_test_var;
6322void nm_test_func(void);
6323void nm_test_func(void){}
6324#ifdef __cplusplus
6325}
6326#endif
6327int main(){nm_test_var='a';nm_test_func();return(0);}
6328_LT_EOF
cfbc9945 6329
d7040cdb
SE
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; then
6335 # Now try to grab the symbols.
6336 nlist=conftest.nm
6337 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6338 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && test -s "$nlist"; then
6342 # Try sorting and uniquifying the output.
6343 if sort "$nlist" | uniq > "$nlist"T; then
6344 mv -f "$nlist"T "$nlist"
6345 else
6346 rm -f "$nlist"T
6347 fi
cfbc9945 6348
d7040cdb
SE
6349 # Make sure that we snagged all the symbols we need.
6350 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6351 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6352 cat <<_LT_EOF > conftest.$ac_ext
6353#ifdef __cplusplus
6354extern "C" {
6355#endif
cfbc9945 6356
d7040cdb
SE
6357_LT_EOF
6358 # Now generate the symbol file.
6359 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 6360
d7040cdb 6361 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 6362
d7040cdb
SE
6363/* The mapping between symbol names and symbols. */
6364const struct {
6365 const char *name;
6366 void *address;
6367}
6368lt__PROGRAM__LTX_preloaded_symbols[] =
6369{
6370 { "@PROGRAM@", (void *) 0 },
6371_LT_EOF
6372 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6373 cat <<\_LT_EOF >> conftest.$ac_ext
6374 {0, (void *) 0}
6375};
6376
6377/* This works around a problem in FreeBSD linker */
6378#ifdef FREEBSD_WORKAROUND
6379static const void *lt_preloaded_setup() {
6380 return lt__PROGRAM__LTX_preloaded_symbols;
6381}
6382#endif
cfbc9945 6383
d7040cdb
SE
6384#ifdef __cplusplus
6385}
6386#endif
6387_LT_EOF
6388 # Now try linking the two files.
6389 mv conftest.$ac_objext conftstm.$ac_objext
6390 lt_save_LIBS="$LIBS"
6391 lt_save_CFLAGS="$CFLAGS"
6392 LIBS="conftstm.$ac_objext"
6393 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6399 pipe_works=yes
6400 fi
6401 LIBS="$lt_save_LIBS"
6402 CFLAGS="$lt_save_CFLAGS"
6403 else
6404 echo "cannot find nm_test_func in $nlist" >&5
6405 fi
6406 else
6407 echo "cannot find nm_test_var in $nlist" >&5
6408 fi
6409 else
6410 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6411 fi
6412 else
6413 echo "$progname: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6415 fi
6416 rm -f conftest* conftst*
cfbc9945 6417
d7040cdb
SE
6418 # Do not use the global_symbol_pipe unless it works.
6419 if test "$pipe_works" = yes; then
6420 break
6421 else
6422 lt_cv_sys_global_symbol_pipe=
6423 fi
6424done
cfbc9945 6425
252b5132 6426fi
5464f5a1 6427
d7040cdb
SE
6428if test -z "$lt_cv_sys_global_symbol_pipe"; then
6429 lt_cv_sys_global_symbol_to_cdecl=
6430fi
6431if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6432 echo "$as_me:$LINENO: result: failed" >&5
6433echo "${ECHO_T}failed" >&6
b3baf5d0 6434else
d7040cdb
SE
6435 echo "$as_me:$LINENO: result: ok" >&5
6436echo "${ECHO_T}ok" >&6
6437fi
5464f5a1 6438
cfbc9945 6439
b3baf5d0 6440
cfbc9945
SE
6441
6442
6443
6444
5464f5a1 6445
4a2a2686
HPN
6446
6447
6448
cfbc9945
SE
6449
6450
cfbc9945 6451
cfbc9945 6452
9d7cbccd 6453
20e95c23 6454
d7040cdb
SE
6455# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6456if test "${enable_libtool_lock+set}" = set; then
6457 enableval="$enable_libtool_lock"
20e95c23 6458
d7040cdb
SE
6459fi;
6460test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 6461
d7040cdb
SE
6462# Some flags need to be propagated to the compiler or linker for good
6463# libtool support.
6464case $host in
6465ia64-*-hpux*)
6466 # Find out which ABI we are using.
6467 echo 'int i;' > conftest.$ac_ext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469 (eval $ac_compile) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; then
6473 case `/usr/bin/file conftest.$ac_objext` in
6474 *ELF-32*)
6475 HPUX_IA64_MODE="32"
6476 ;;
6477 *ELF-64*)
6478 HPUX_IA64_MODE="64"
6479 ;;
20e95c23 6480 esac
d7040cdb
SE
6481 fi
6482 rm -rf conftest*
6483 ;;
6484*-*-irix6*)
6485 # Find out which ABI we are using.
7357c5b6 6486 echo '#line 6486 "configure"' > conftest.$ac_ext
d7040cdb
SE
6487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488 (eval $ac_compile) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; then
6492 if test "$lt_cv_prog_gnu_ld" = yes; then
6493 case `/usr/bin/file conftest.$ac_objext` in
6494 *32-bit*)
6495 LD="${LD-ld} -melf32bsmip"
6496 ;;
6497 *N32*)
6498 LD="${LD-ld} -melf32bmipn32"
6499 ;;
6500 *64-bit*)
6501 LD="${LD-ld} -melf64bmip"
6502 ;;
6503 esac
20e95c23 6504 else
d7040cdb
SE
6505 case `/usr/bin/file conftest.$ac_objext` in
6506 *32-bit*)
6507 LD="${LD-ld} -32"
6508 ;;
6509 *N32*)
6510 LD="${LD-ld} -n32"
6511 ;;
6512 *64-bit*)
6513 LD="${LD-ld} -64"
6514 ;;
20e95c23
DJ
6515 esac
6516 fi
d7040cdb
SE
6517 fi
6518 rm -rf conftest*
6519 ;;
20e95c23 6520
d7040cdb
SE
6521x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6522s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6523 # Find out which ABI we are using.
6524 echo 'int i;' > conftest.$ac_ext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; then
6530 case `/usr/bin/file conftest.o` in
6531 *32-bit*)
6532 case $host in
6533 x86_64-*kfreebsd*-gnu)
6534 LD="${LD-ld} -m elf_i386_fbsd"
6535 ;;
6536 x86_64-*linux*)
6537 LD="${LD-ld} -m elf_i386"
6538 ;;
6539 ppc64-*linux*|powerpc64-*linux*)
6540 LD="${LD-ld} -m elf32ppclinux"
6541 ;;
6542 s390x-*linux*)
6543 LD="${LD-ld} -m elf_s390"
6544 ;;
6545 sparc64-*linux*)
6546 LD="${LD-ld} -m elf32_sparc"
6547 ;;
6548 esac
6549 ;;
6550 *64-bit*)
6551 case $host in
6552 x86_64-*kfreebsd*-gnu)
6553 LD="${LD-ld} -m elf_x86_64_fbsd"
6554 ;;
6555 x86_64-*linux*)
6556 LD="${LD-ld} -m elf_x86_64"
6557 ;;
6558 ppc*-*linux*|powerpc*-*linux*)
6559 LD="${LD-ld} -m elf64ppc"
6560 ;;
6561 s390*-*linux*|s390*-*tpf*)
6562 LD="${LD-ld} -m elf64_s390"
6563 ;;
6564 sparc*-*linux*)
6565 LD="${LD-ld} -m elf64_sparc"
6566 ;;
6567 esac
6568 ;;
20e95c23
DJ
6569 esac
6570 fi
d7040cdb 6571 rm -rf conftest*
7357c5b6 6572 ;;
d7040cdb 6573
7357c5b6
AM
6574*-*-sco3.2v5*)
6575 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6576 SAVE_CFLAGS="$CFLAGS"
6577 CFLAGS="$CFLAGS -belf"
6578 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6579echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6580if test "${lt_cv_cc_needs_belf+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 6582else
7357c5b6
AM
6583 ac_ext=c
6584ac_cpp='$CPP $CPPFLAGS'
6585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6588
7357c5b6 6589 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6590/* confdefs.h. */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h. */
d7040cdb 6595
d7040cdb
SE
6596int
6597main ()
6598{
7357c5b6
AM
6599
6600 ;
6601 return 0;
d7040cdb
SE
6602}
6603_ACEOF
7357c5b6 6604rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb 6605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357c5b6 6606 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
7357c5b6
AM
6613 { ac_try='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
d7040cdb
SE
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
7357c5b6 6620 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
7357c5b6 6626 lt_cv_cc_needs_belf=yes
d7040cdb
SE
6627else
6628 echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
7357c5b6 6631lt_cv_cc_needs_belf=no
d7040cdb 6632fi
7357c5b6
AM
6633rm -f conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 ac_ext=c
6636ac_cpp='$CPP $CPPFLAGS'
6637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6640
6641fi
7357c5b6
AM
6642echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6643echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6644 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6646 CFLAGS="$SAVE_CFLAGS"
6647 fi
6648 ;;
6649sparc*-*solaris*)
6650 # Find out which ABI we are using.
6651 echo 'int i;' > conftest.$ac_ext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; then
6657 case `/usr/bin/file conftest.o` in
6658 *64-bit*)
6659 case $lt_cv_prog_gnu_ld in
6660 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6661 *) LD="${LD-ld} -64" ;;
6662 esac
6663 ;;
6664 esac
6665 fi
6666 rm -rf conftest*
6667 ;;
6668esac
d7040cdb 6669
7357c5b6 6670need_locks="$enable_libtool_lock"
d7040cdb
SE
6671
6672
6673for ac_header in dlfcn.h
6674do
6675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676echo "$as_me:$LINENO: checking for $ac_header" >&5
6677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6678if eval "test \"\${$as_ac_Header+set}\" = set"; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6680else
6681 cat >conftest.$ac_ext <<_ACEOF
6682/* confdefs.h. */
6683_ACEOF
6684cat confdefs.h >>conftest.$ac_ext
6685cat >>conftest.$ac_ext <<_ACEOF
6686/* end confdefs.h. */
6687$ac_includes_default
6688
6689#include <$ac_header>
6690_ACEOF
6691rm -f conftest.$ac_objext
6692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
7357c5b6
AM
6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
d7040cdb
SE
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 eval "$as_ac_Header=yes"
6714else
6715 echo "$as_me: failed program was:" >&5
6716sed 's/^/| /' conftest.$ac_ext >&5
6717
6718eval "$as_ac_Header=no"
6719fi
6720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6721fi
6722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6724if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725 cat >>confdefs.h <<_ACEOF
6726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727_ACEOF
6728
6729fi
6730
6731done
6732
6733
6734
6735# This can be used to rebuild libtool when needed
6736LIBTOOL_DEPS="$ltmain"
6737
6738# Always use our own libtool.
6739LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765test -z "$LN_S" && LN_S="ln -s"
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780if test -n "${ZSH_VERSION+set}" ; then
6781 setopt NO_GLOB_SUBST
6782fi
6783
6784echo "$as_me:$LINENO: checking for objdir" >&5
6785echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6786if test "${lt_cv_objdir+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788else
6789 rm -f .libs 2>/dev/null
6790mkdir .libs 2>/dev/null
6791if test -d .libs; then
6792 lt_cv_objdir=.libs
6793else
6794 # MS-DOS does not allow filenames that begin with a dot.
6795 lt_cv_objdir=_libs
6796fi
6797rmdir .libs 2>/dev/null
6798fi
6799echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6800echo "${ECHO_T}$lt_cv_objdir" >&6
6801objdir=$lt_cv_objdir
6802
6803
6804
6805
6806
6807cat >>confdefs.h <<_ACEOF
6808#define LT_OBJDIR "$lt_cv_objdir/"
6809_ACEOF
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827case $host_os in
6828aix3*)
6829 # AIX sometimes has problems with the GCC collect2 program. For some
6830 # reason, if we set the COLLECT_NAMES environment variable, the problems
6831 # vanish in a puff of smoke.
6832 if test "X${COLLECT_NAMES+set}" != Xset; then
6833 COLLECT_NAMES=
6834 export COLLECT_NAMES
6835 fi
6836 ;;
6837esac
6838
6839# Sed substitution that helps us do robust quoting. It backslashifies
6840# metacharacters that are still active within double-quoted strings.
6841sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6842
6843# Same as above, but do not quote variable references.
6844double_quote_subst='s/\(["`\\]\)/\\\1/g'
6845
6846# Sed substitution to delay expansion of an escaped shell variable in a
6847# double_quote_subst'ed string.
6848delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6849
6850# Sed substitution to delay expansion of an escaped single quote.
6851delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6852
6853# Sed substitution to avoid accidental globbing in evaled expressions
6854no_glob_subst='s/\*/\\\*/g'
6855
6856# Global variables:
6857ofile=libtool
6858can_build_shared=yes
6859
6860# All known linkers require a `.a' archive for static linking (except MSVC,
6861# which needs '.lib').
6862libext=a
6863
6864with_gnu_ld="$lt_cv_prog_gnu_ld"
6865
6866old_CC="$CC"
6867old_CFLAGS="$CFLAGS"
6868
6869# Set sane defaults for various variables
6870test -z "$CC" && CC=cc
6871test -z "$LTCC" && LTCC=$CC
6872test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6873test -z "$LD" && LD=ld
6874test -z "$ac_objext" && ac_objext=o
6875
6876for cc_temp in $compiler""; do
6877 case $cc_temp in
6878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6880 \-*) ;;
6881 *) break;;
6882 esac
6883done
6884cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6885
6886
6887# Only perform the check for file, if the check method requires it
6888test -z "$MAGIC_CMD" && MAGIC_CMD=file
6889case $deplibs_check_method in
6890file_magic*)
6891 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6892 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6893echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6894if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6896else
6897 case $MAGIC_CMD in
6898[\\/*] | ?:[\\/]*)
6899 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6900 ;;
6901*)
6902 lt_save_MAGIC_CMD="$MAGIC_CMD"
6903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6904 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6905 for ac_dir in $ac_dummy; do
6906 IFS="$lt_save_ifs"
6907 test -z "$ac_dir" && ac_dir=.
6908 if test -f $ac_dir/${ac_tool_prefix}file; then
6909 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6910 if test -n "$file_magic_test_file"; then
6911 case $deplibs_check_method in
6912 "file_magic "*)
6913 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6915 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6916 $EGREP "$file_magic_regex" > /dev/null; then
6917 :
6918 else
6919 cat <<_LT_EOF 1>&2
6920
6921*** Warning: the command libtool uses to detect shared libraries,
6922*** $file_magic_cmd, produces output that libtool cannot recognize.
6923*** The result is that libtool may fail to recognize shared libraries
6924*** as such. This will affect the creation of libtool libraries that
6925*** depend on shared libraries, but programs linked with such libtool
6926*** libraries will work regardless of this problem. Nevertheless, you
6927*** may want to report the problem to your system manager and/or to
6928*** bug-libtool@gnu.org
6929
6930_LT_EOF
6931 fi ;;
6932 esac
6933 fi
6934 break
6935 fi
6936 done
6937 IFS="$lt_save_ifs"
6938 MAGIC_CMD="$lt_save_MAGIC_CMD"
6939 ;;
6940esac
6941fi
6942
6943MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6944if test -n "$MAGIC_CMD"; then
6945 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6946echo "${ECHO_T}$MAGIC_CMD" >&6
6947else
6948 echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6
6950fi
6951
6952
6953
6954
6955
6956if test -z "$lt_cv_path_MAGIC_CMD"; then
6957 if test -n "$ac_tool_prefix"; then
6958 echo "$as_me:$LINENO: checking for file" >&5
6959echo $ECHO_N "checking for file... $ECHO_C" >&6
6960if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963 case $MAGIC_CMD in
6964[\\/*] | ?:[\\/]*)
6965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6966 ;;
6967*)
6968 lt_save_MAGIC_CMD="$MAGIC_CMD"
6969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971 for ac_dir in $ac_dummy; do
6972 IFS="$lt_save_ifs"
6973 test -z "$ac_dir" && ac_dir=.
6974 if test -f $ac_dir/file; then
6975 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6976 if test -n "$file_magic_test_file"; then
6977 case $deplibs_check_method in
6978 "file_magic "*)
6979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982 $EGREP "$file_magic_regex" > /dev/null; then
6983 :
6984 else
6985 cat <<_LT_EOF 1>&2
6986
6987*** Warning: the command libtool uses to detect shared libraries,
6988*** $file_magic_cmd, produces output that libtool cannot recognize.
6989*** The result is that libtool may fail to recognize shared libraries
6990*** as such. This will affect the creation of libtool libraries that
6991*** depend on shared libraries, but programs linked with such libtool
6992*** libraries will work regardless of this problem. Nevertheless, you
6993*** may want to report the problem to your system manager and/or to
6994*** bug-libtool@gnu.org
6995
6996_LT_EOF
6997 fi ;;
6998 esac
6999 fi
7000 break
7001 fi
7002 done
7003 IFS="$lt_save_ifs"
7004 MAGIC_CMD="$lt_save_MAGIC_CMD"
7005 ;;
7006esac
7007fi
7008
7009MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010if test -n "$MAGIC_CMD"; then
7011 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012echo "${ECHO_T}$MAGIC_CMD" >&6
7013else
7014 echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6
7016fi
7017
7018
7019 else
7020 MAGIC_CMD=:
7021 fi
7022fi
7023
7024 fi
7025 ;;
7026esac
7027
7028# Use C for the default configuration in the libtool script
7029
7030lt_save_CC="$CC"
7031ac_ext=c
7032ac_cpp='$CPP $CPPFLAGS'
7033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
7037
7038# Source file extension for C test sources.
7039ac_ext=c
7040
7041# Object file extension for compiled C test sources.
7042objext=o
7043objext=$objext
7044
7045# Code to be used in simple compile tests
7046lt_simple_compile_test_code="int some_variable = 0;"
7047
7048# Code to be used in simple link tests
7049lt_simple_link_test_code='int main(){return(0);}'
7050
7051
7052
7053
7054
7055
7056
7057# If no C compiler was specified, use CC.
7058LTCC=${LTCC-"$CC"}
7059
7060# If no C compiler flags were specified, use CFLAGS.
7061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7062
7063# Allow CC to be a program name with arguments.
7064compiler=$CC
7065
7066# Save the default compiler, since it gets overwritten when the other
7067# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7068compiler_DEFAULT=$CC
7069
7070# save warnings/boilerplate of simple test code
7071ac_outfile=conftest.$ac_objext
7072echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7073eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7074_lt_compiler_boilerplate=`cat conftest.err`
7075$RM conftest*
7076
7077ac_outfile=conftest.$ac_objext
7078echo "$lt_simple_link_test_code" >conftest.$ac_ext
7079eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7080_lt_linker_boilerplate=`cat conftest.err`
7081$RM conftest*
7082
7083
7084## CAVEAT EMPTOR:
7085## There is no encapsulation within the following macros, do not change
7086## the running order or otherwise move them around unless you know exactly
7087## what you are doing...
7088if test -n "$compiler"; then
7089
7090lt_prog_compiler_no_builtin_flag=
7091
7092if test "$GCC" = yes; then
7093 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7094
7095 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7096echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7097if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100 lt_cv_prog_compiler_rtti_exceptions=no
7101 ac_outfile=conftest.$ac_objext
7102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7103 lt_compiler_flag="-fno-rtti -fno-exceptions"
7104 # Insert the option either (1) after the last *FLAGS variable, or
7105 # (2) before a word containing "conftest.", or (3) at the end.
7106 # Note that $ac_compile itself does not contain backslashes and begins
7107 # with a dollar sign (not a hyphen), so the echo should work correctly.
7108 # The option is referenced via a variable to avoid confusing sed.
7109 lt_compile=`echo "$ac_compile" | $SED \
7110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7112 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7113 (eval echo "\"\$as_me:7113: $lt_compile\"" >&5)
d7040cdb
SE
7114 (eval "$lt_compile" 2>conftest.err)
7115 ac_status=$?
7116 cat conftest.err >&5
7357c5b6 7117 echo "$as_me:7117: \$? = $ac_status" >&5
d7040cdb
SE
7118 if (exit $ac_status) && test -s "$ac_outfile"; then
7119 # The compiler can only warn and ignore the option if not recognized
7120 # So say no if there are warnings other than the usual output.
7121 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7124 lt_cv_prog_compiler_rtti_exceptions=yes
7125 fi
7126 fi
7127 $RM conftest*
7128
7129fi
7130echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7131echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7132
7133if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7134 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7135else
7136 :
7137fi
7138
7139fi
7140
7141
7142
7143
7144
7145
7146 lt_prog_compiler_wl=
7147lt_prog_compiler_pic=
7148lt_prog_compiler_static=
7149
7150echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7151echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7152
7153 if test "$GCC" = yes; then
7154 lt_prog_compiler_wl='-Wl,'
7155 lt_prog_compiler_static='-static'
7156
7157 case $host_os in
7158 aix*)
7159 # All AIX code is PIC.
7160 if test "$host_cpu" = ia64; then
7161 # AIX 5 now supports IA64 processor
7162 lt_prog_compiler_static='-Bstatic'
7163 fi
7164 ;;
7165
7166 amigaos*)
7167 if test "$host_cpu" = m68k; then
7168 # FIXME: we need at least 68020 code to build shared libraries, but
7169 # adding the `-m68020' flag to GCC prevents building anything better,
7170 # like `-m68040'.
7171 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7172 fi
7173 ;;
7174
7175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7176 # PIC is the default for these OSes.
7177 ;;
7178
7179 mingw* | cygwin* | pw32* | os2*)
7180 # This hack is so that the source file can tell whether it is being
7181 # built for inclusion in a dll (and should export symbols for example).
7182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7183 # (--disable-auto-import) libraries
7184 lt_prog_compiler_pic='-DDLL_EXPORT'
7185 ;;
7186
7187 darwin* | rhapsody*)
7188 # PIC is the default on this platform
7189 # Common symbols not allowed in MH_DYLIB files
7190 lt_prog_compiler_pic='-fno-common'
7191 ;;
7192
7193 hpux*)
7194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7195 # not for PA HP-UX.
7196 case $host_cpu in
7197 hppa*64*|ia64*)
7198 # +Z the default
7199 ;;
7200 *)
7201 lt_prog_compiler_pic='-fPIC'
7202 ;;
7203 esac
7204 ;;
7205
7206 interix[3-9]*)
7207 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7208 # Instead, we relocate shared libraries at runtime.
7209 ;;
7210
7211 msdosdjgpp*)
7212 # Just because we use GCC doesn't mean we suddenly get shared libraries
7213 # on systems that don't support them.
7214 lt_prog_compiler_can_build_shared=no
7215 enable_shared=no
7216 ;;
7217
7218 *nto* | *qnx*)
7219 # QNX uses GNU C++, but need to define -shared option too, otherwise
7220 # it will coredump.
7221 lt_prog_compiler_pic='-fPIC -shared'
7222 ;;
7223
7224 sysv4*MP*)
7225 if test -d /usr/nec; then
7226 lt_prog_compiler_pic=-Kconform_pic
7227 fi
7228 ;;
7229
7230 *)
7231 lt_prog_compiler_pic='-fPIC'
7232 ;;
7233 esac
7234 else
7235 # PORTME Check for flag to pass linker flags through the system compiler.
7236 case $host_os in
7237 aix*)
7238 lt_prog_compiler_wl='-Wl,'
7239 if test "$host_cpu" = ia64; then
7240 # AIX 5 now supports IA64 processor
7241 lt_prog_compiler_static='-Bstatic'
7242 else
7243 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7244 fi
7245 ;;
7246 darwin*)
7247 # PIC is the default on this platform
7248 # Common symbols not allowed in MH_DYLIB files
7249 case $cc_basename in
7250 xlc*)
7251 lt_prog_compiler_pic='-qnocommon'
7252 lt_prog_compiler_wl='-Wl,'
7253 ;;
7254 esac
7255 ;;
7256
7257 mingw* | cygwin* | pw32* | os2*)
7258 # This hack is so that the source file can tell whether it is being
7259 # built for inclusion in a dll (and should export symbols for example).
7260 lt_prog_compiler_pic='-DDLL_EXPORT'
7261 ;;
7262
7263 hpux9* | hpux10* | hpux11*)
7264 lt_prog_compiler_wl='-Wl,'
7265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7266 # not for PA HP-UX.
7267 case $host_cpu in
7268 hppa*64*|ia64*)
7269 # +Z the default
7270 ;;
7271 *)
7272 lt_prog_compiler_pic='+Z'
7273 ;;
7274 esac
7275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7276 lt_prog_compiler_static='${wl}-a ${wl}archive'
7277 ;;
7278
7279 irix5* | irix6* | nonstopux*)
7280 lt_prog_compiler_wl='-Wl,'
7281 # PIC (with -KPIC) is the default.
7282 lt_prog_compiler_static='-non_shared'
7283 ;;
7284
7285 linux* | k*bsd*-gnu)
7286 case $cc_basename in
7287 icc* | ecc*)
7288 lt_prog_compiler_wl='-Wl,'
7289 lt_prog_compiler_pic='-KPIC'
7290 lt_prog_compiler_static='-static'
7291 ;;
7292 pgcc* | pgf77* | pgf90* | pgf95*)
7293 # Portland Group compilers (*not* the Pentium gcc compiler,
7294 # which looks to be a dead project)
7295 lt_prog_compiler_wl='-Wl,'
7296 lt_prog_compiler_pic='-fpic'
7297 lt_prog_compiler_static='-Bstatic'
7298 ;;
7299 ccc*)
7300 lt_prog_compiler_wl='-Wl,'
7301 # All Alpha code is PIC.
7302 lt_prog_compiler_static='-non_shared'
7303 ;;
7304 *)
7305 case `$CC -V 2>&1 | sed 5q` in
7306 *Sun\ C*)
7307 # Sun C 5.9
7308 lt_prog_compiler_pic='-KPIC'
7309 lt_prog_compiler_static='-Bstatic'
7310 lt_prog_compiler_wl='-Wl,'
7311 ;;
7312 *Sun\ F*)
7313 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7314 lt_prog_compiler_pic='-KPIC'
7315 lt_prog_compiler_static='-Bstatic'
7316 lt_prog_compiler_wl=''
7317 ;;
7318 esac
7319 ;;
7320 esac
7321 ;;
7322
7323 newsos6)
7324 lt_prog_compiler_pic='-KPIC'
7325 lt_prog_compiler_static='-Bstatic'
7326 ;;
7327
7328 *nto* | *qnx*)
7329 # QNX uses GNU C++, but need to define -shared option too, otherwise
7330 # it will coredump.
7331 lt_prog_compiler_pic='-fPIC -shared'
7332 ;;
7333
7334 osf3* | osf4* | osf5*)
7335 lt_prog_compiler_wl='-Wl,'
7336 # All OSF/1 code is PIC.
7337 lt_prog_compiler_static='-non_shared'
7338 ;;
7339
7340 rdos*)
7341 lt_prog_compiler_static='-non_shared'
7342 ;;
7343
7344 solaris*)
7345 lt_prog_compiler_pic='-KPIC'
7346 lt_prog_compiler_static='-Bstatic'
7347 case $cc_basename in
7348 f77* | f90* | f95*)
7349 lt_prog_compiler_wl='-Qoption ld ';;
7350 *)
7351 lt_prog_compiler_wl='-Wl,';;
7352 esac
7353 ;;
7354
7355 sunos4*)
7356 lt_prog_compiler_wl='-Qoption ld '
7357 lt_prog_compiler_pic='-PIC'
7358 lt_prog_compiler_static='-Bstatic'
7359 ;;
7360
7361 sysv4 | sysv4.2uw2* | sysv4.3*)
7362 lt_prog_compiler_wl='-Wl,'
7363 lt_prog_compiler_pic='-KPIC'
7364 lt_prog_compiler_static='-Bstatic'
7365 ;;
7366
7367 sysv4*MP*)
7368 if test -d /usr/nec ;then
7369 lt_prog_compiler_pic='-Kconform_pic'
7370 lt_prog_compiler_static='-Bstatic'
7371 fi
7372 ;;
7373
7374 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7375 lt_prog_compiler_wl='-Wl,'
7376 lt_prog_compiler_pic='-KPIC'
7377 lt_prog_compiler_static='-Bstatic'
7378 ;;
7379
7380 unicos*)
7381 lt_prog_compiler_wl='-Wl,'
7382 lt_prog_compiler_can_build_shared=no
7383 ;;
7384
7385 uts4*)
7386 lt_prog_compiler_pic='-pic'
7387 lt_prog_compiler_static='-Bstatic'
7388 ;;
7389
7390 *)
7391 lt_prog_compiler_can_build_shared=no
7392 ;;
7393 esac
7394 fi
7395
7396case $host_os in
7397 # For platforms which do not support PIC, -DPIC is meaningless:
7398 *djgpp*)
7399 lt_prog_compiler_pic=
7400 ;;
7401 *)
7402 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7403 ;;
7404esac
7405echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7406echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7407
7408
7409
7410
7411
7412
7413#
7414# Check to make sure the PIC flag actually works.
7415#
7416if test -n "$lt_prog_compiler_pic"; then
7417 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7418echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7419if test "${lt_prog_compiler_pic_works+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422 lt_prog_compiler_pic_works=no
7423 ac_outfile=conftest.$ac_objext
7424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7425 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7426 # Insert the option either (1) after the last *FLAGS variable, or
7427 # (2) before a word containing "conftest.", or (3) at the end.
7428 # Note that $ac_compile itself does not contain backslashes and begins
7429 # with a dollar sign (not a hyphen), so the echo should work correctly.
7430 # The option is referenced via a variable to avoid confusing sed.
7431 lt_compile=`echo "$ac_compile" | $SED \
7432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7434 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7435 (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
d7040cdb
SE
7436 (eval "$lt_compile" 2>conftest.err)
7437 ac_status=$?
7438 cat conftest.err >&5
7357c5b6 7439 echo "$as_me:7439: \$? = $ac_status" >&5
d7040cdb
SE
7440 if (exit $ac_status) && test -s "$ac_outfile"; then
7441 # The compiler can only warn and ignore the option if not recognized
7442 # So say no if there are warnings other than the usual output.
7443 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7446 lt_prog_compiler_pic_works=yes
7447 fi
7448 fi
7449 $RM conftest*
7450
7451fi
7452echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7453echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7454
7455if test x"$lt_prog_compiler_pic_works" = xyes; then
7456 case $lt_prog_compiler_pic in
7457 "" | " "*) ;;
7458 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7459 esac
7460else
7461 lt_prog_compiler_pic=
7462 lt_prog_compiler_can_build_shared=no
7463fi
7464
7465fi
7466
7467
7468
7469
7470
7471
7472#
7473# Check to make sure the static flag actually works.
7474#
7475wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7476echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7477echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7478if test "${lt_prog_compiler_static_works+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481 lt_prog_compiler_static_works=no
7482 save_LDFLAGS="$LDFLAGS"
7483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7484 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7486 # The linker can only warn and ignore the option if not recognized
7487 # So say no if there are warnings
7488 if test -s conftest.err; then
7489 # Append any errors to the config.log.
7490 cat conftest.err 1>&5
7491 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7493 if diff conftest.exp conftest.er2 >/dev/null; then
7494 lt_prog_compiler_static_works=yes
7495 fi
7496 else
7497 lt_prog_compiler_static_works=yes
7498 fi
7499 fi
7500 $RM conftest*
7501 LDFLAGS="$save_LDFLAGS"
7502
7503fi
7504echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7505echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7506
7507if test x"$lt_prog_compiler_static_works" = xyes; then
7508 :
7509else
7510 lt_prog_compiler_static=
7511fi
7512
7513
7514
7515
7516
7517
7518
7519 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7520echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7521if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524 lt_cv_prog_compiler_c_o=no
7525 $RM -r conftest 2>/dev/null
7526 mkdir conftest
7527 cd conftest
7528 mkdir out
7529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7530
7531 lt_compiler_flag="-o out/conftest2.$ac_objext"
7532 # Insert the option either (1) after the last *FLAGS variable, or
7533 # (2) before a word containing "conftest.", or (3) at the end.
7534 # Note that $ac_compile itself does not contain backslashes and begins
7535 # with a dollar sign (not a hyphen), so the echo should work correctly.
7536 lt_compile=`echo "$ac_compile" | $SED \
7537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7539 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7540 (eval echo "\"\$as_me:7540: $lt_compile\"" >&5)
d7040cdb
SE
7541 (eval "$lt_compile" 2>out/conftest.err)
7542 ac_status=$?
7543 cat out/conftest.err >&5
7357c5b6 7544 echo "$as_me:7544: \$? = $ac_status" >&5
d7040cdb
SE
7545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7546 then
7547 # The compiler can only warn and ignore the option if not recognized
7548 # So say no if there are warnings
7549 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7552 lt_cv_prog_compiler_c_o=yes
7553 fi
7554 fi
7555 chmod u+w . 2>&5
7556 $RM conftest*
7557 # SGI C++ compiler will create directory out/ii_files/ for
7558 # template instantiation
7559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7560 $RM out/* && rmdir out
7561 cd ..
7562 $RM -r conftest
7563 $RM conftest*
7564
7565fi
7566echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7567echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7568
7569
7570
7571
7572
7573
7574 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7576if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578else
7579 lt_cv_prog_compiler_c_o=no
7580 $RM -r conftest 2>/dev/null
7581 mkdir conftest
7582 cd conftest
7583 mkdir out
7584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7585
7586 lt_compiler_flag="-o out/conftest2.$ac_objext"
7587 # Insert the option either (1) after the last *FLAGS variable, or
7588 # (2) before a word containing "conftest.", or (3) at the end.
7589 # Note that $ac_compile itself does not contain backslashes and begins
7590 # with a dollar sign (not a hyphen), so the echo should work correctly.
7591 lt_compile=`echo "$ac_compile" | $SED \
7592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7595 (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
d7040cdb
SE
7596 (eval "$lt_compile" 2>out/conftest.err)
7597 ac_status=$?
7598 cat out/conftest.err >&5
7357c5b6 7599 echo "$as_me:7599: \$? = $ac_status" >&5
d7040cdb
SE
7600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7601 then
7602 # The compiler can only warn and ignore the option if not recognized
7603 # So say no if there are warnings
7604 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7607 lt_cv_prog_compiler_c_o=yes
7608 fi
7609 fi
7610 chmod u+w . 2>&5
7611 $RM conftest*
7612 # SGI C++ compiler will create directory out/ii_files/ for
7613 # template instantiation
7614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7615 $RM out/* && rmdir out
7616 cd ..
7617 $RM -r conftest
7618 $RM conftest*
7619
7620fi
7621echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7622echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7623
7624
7625
7626
7627hard_links="nottested"
7628if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7629 # do not overwrite the value of need_locks provided by the user
7630 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7631echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7632 hard_links=yes
7633 $RM conftest*
7634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7635 touch conftest.a
7636 ln conftest.a conftest.b 2>&5 || hard_links=no
7637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7638 echo "$as_me:$LINENO: result: $hard_links" >&5
7639echo "${ECHO_T}$hard_links" >&6
7640 if test "$hard_links" = no; then
7641 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7642echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7643 need_locks=warn
7644 fi
7645else
7646 need_locks=no
7647fi
7648
7649
7650
7651
7652
7653
7654 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7655echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7656
7657 runpath_var=
7658 allow_undefined_flag=
7659 always_export_symbols=no
7660 archive_cmds=
7661 archive_expsym_cmds=
7662 compiler_needs_object=no
7663 enable_shared_with_static_runtimes=no
7664 export_dynamic_flag_spec=
7665 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7666 hardcode_automatic=no
7667 hardcode_direct=no
7668 hardcode_direct_absolute=no
7669 hardcode_libdir_flag_spec=
7670 hardcode_libdir_flag_spec_ld=
7671 hardcode_libdir_separator=
7672 hardcode_minus_L=no
7673 hardcode_shlibpath_var=unsupported
7674 inherit_rpath=no
7675 link_all_deplibs=unknown
7676 module_cmds=
7677 module_expsym_cmds=
7678 old_archive_from_new_cmds=
7679 old_archive_from_expsyms_cmds=
7680 thread_safe_flag_spec=
7681 whole_archive_flag_spec=
7682 # include_expsyms should be a list of space-separated symbols to be *always*
7683 # included in the symbol list
7684 include_expsyms=
7685 # exclude_expsyms can be an extended regexp of symbols to exclude
7686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7688 # as well as any symbol that contains `d'.
7689 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7691 # platforms (ab)use it in PIC code, but their linkers get confused if
7692 # the symbol is explicitly referenced. Since portable code cannot
7693 # rely on this symbol name, it's probably fine to never include it in
7694 # preloaded symbol tables.
7695 extract_expsyms_cmds=
7696
7697 case $host_os in
7698 cygwin* | mingw* | pw32*)
7699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7700 # When not using gcc, we currently assume that we are using
7701 # Microsoft Visual C++.
7702 if test "$GCC" != yes; then
7703 with_gnu_ld=no
7704 fi
7705 ;;
7706 interix*)
7707 # we just hope/assume this is gcc and not c89 (= MSVC++)
7708 with_gnu_ld=yes
7709 ;;
7710 openbsd*)
7711 with_gnu_ld=no
7712 ;;
7713 esac
7714
7715 ld_shlibs=yes
7716 if test "$with_gnu_ld" = yes; then
7717 # If archive_cmds runs LD, not CC, wlarc should be empty
7718 wlarc='${wl}'
7719
7720 # Set some defaults for GNU ld with shared library support. These
7721 # are reset later if shared libraries are not supported. Putting them
7722 # here allows them to be overridden if necessary.
7723 runpath_var=LD_RUN_PATH
7724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7725 export_dynamic_flag_spec='${wl}--export-dynamic'
7726 # ancient GNU ld didn't support --whole-archive et. al.
7727 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7728 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7729 else
7730 whole_archive_flag_spec=
7731 fi
7732 supports_anon_versioning=no
7733 case `$LD -v 2>&1` in
7734 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7737 *\ 2.11.*) ;; # other 2.11 versions
7738 *) supports_anon_versioning=yes ;;
7739 esac
7740
7741 # See if GNU ld supports shared libraries.
7742 case $host_os in
e81819a5 7743 aix[3-9]*)
d7040cdb
SE
7744 # On AIX/PPC, the GNU linker is very broken
7745 if test "$host_cpu" != ia64; then
7746 ld_shlibs=no
7747 cat <<_LT_EOF 1>&2
7748
7749*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7750*** to be unable to reliably create shared libraries on AIX.
7751*** Therefore, libtool is disabling shared libraries support. If you
7752*** really care for shared libraries, you may want to modify your PATH
7753*** so that a non-GNU linker is found, and then restart.
7754
7755_LT_EOF
7756 fi
7757 ;;
7758
7759 amigaos*)
7760 if test "$host_cpu" = m68k; then
7761 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)'
7762 hardcode_libdir_flag_spec='-L$libdir'
7763 hardcode_minus_L=yes
7764 fi
7765
7766 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7767 # that the semantics of dynamic libraries on AmigaOS, at least up
7768 # to version 4, is to share data among multiple programs linked
7769 # with the same dynamic library. Since this doesn't match the
7770 # behavior of shared libraries on other platforms, we can't use
7771 # them.
7772 ld_shlibs=no
7773 ;;
7774
7775 beos*)
7776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7777 allow_undefined_flag=unsupported
7778 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7779 # support --undefined. This deserves some investigation. FIXME
7780 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7781 else
7782 ld_shlibs=no
7783 fi
7784 ;;
7785
7786 cygwin* | mingw* | pw32*)
7787 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7788 # as there is no search path for DLLs.
7789 hardcode_libdir_flag_spec='-L$libdir'
7790 allow_undefined_flag=unsupported
7791 always_export_symbols=no
7792 enable_shared_with_static_runtimes=yes
7793 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7794
7795 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7797 # If the export-symbols file already is a .def file (1st line
7798 # is EXPORTS), use it as is; otherwise, prepend...
7799 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7800 cp $export_symbols $output_objdir/$soname.def;
7801 else
7802 echo EXPORTS > $output_objdir/$soname.def;
7803 cat $export_symbols >> $output_objdir/$soname.def;
7804 fi~
7805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7806 else
7807 ld_shlibs=no
7808 fi
7809 ;;
7810
7811 interix[3-9]*)
7812 hardcode_direct=no
7813 hardcode_shlibpath_var=no
7814 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7815 export_dynamic_flag_spec='${wl}-E'
7816 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7817 # Instead, shared libraries are loaded at an image base (0x10000000 by
7818 # default) and relocated if they conflict, which is a slow very memory
7819 # consuming and fragmenting process. To avoid this, we pick a random,
7820 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7821 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7822 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7823 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'
7824 ;;
7825
7826 gnu* | linux* | tpf* | k*bsd*-gnu)
7827 tmp_diet=no
7828 if test "$host_os" = linux-dietlibc; then
7829 case $cc_basename in
7830 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7831 esac
7832 fi
7833 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7834 && test "$tmp_diet" = no
7835 then
7836 tmp_addflag=
7837 case $cc_basename,$host_cpu in
7838 pgcc*) # Portland Group C compiler
7839 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'
7840 tmp_addflag=' $pic_flag'
7841 ;;
7842 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7843 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'
7844 tmp_addflag=' $pic_flag -Mnomain' ;;
7845 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7846 tmp_addflag=' -i_dynamic' ;;
7847 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7848 tmp_addflag=' -i_dynamic -nofor_main' ;;
7849 ifc* | ifort*) # Intel Fortran compiler
7850 tmp_addflag=' -nofor_main' ;;
7851 esac
7852 case `$CC -V 2>&1 | sed 5q` in
7853 *Sun\ C*) # Sun C 5.9
7854 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'
7855 compiler_needs_object=yes
7856 tmp_sharedflag='-G' ;;
7857 *Sun\ F*) # Sun Fortran 8.3
7858 tmp_sharedflag='-G' ;;
7859 *)
7860 tmp_sharedflag='-shared' ;;
7861 esac
7862 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7863
7864 if test "x$supports_anon_versioning" = xyes; then
7865 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7867 echo "local: *; };" >> $output_objdir/$libname.ver~
7868 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7869 fi
7870 else
7871 ld_shlibs=no
7872 fi
7873 ;;
7874
7875 netbsd*)
7876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7877 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7878 wlarc=
7879 else
7880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7882 fi
7883 ;;
7884
7885 solaris*)
7886 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7887 ld_shlibs=no
7888 cat <<_LT_EOF 1>&2
7889
7890*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7891*** create shared libraries on Solaris systems. Therefore, libtool
7892*** is disabling shared libraries support. We urge you to upgrade GNU
7893*** binutils to release 2.9.1 or newer. Another option is to modify
7894*** your PATH or compiler configuration so that the native linker is
7895*** used, and then restart.
7896
7897_LT_EOF
7898 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7901 else
7902 ld_shlibs=no
7903 fi
7904 ;;
7905
7906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7907 case `$LD -v 2>&1` in
7908 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7909 ld_shlibs=no
7910 cat <<_LT_EOF 1>&2
7911
7912*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7913*** reliably create shared libraries on SCO systems. Therefore, libtool
7914*** is disabling shared libraries support. We urge you to upgrade GNU
7915*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7916*** your PATH or compiler configuration so that the native linker is
7917*** used, and then restart.
7918
7919_LT_EOF
7920 ;;
7921 *)
7922 # For security reasons, it is highly recommended that you always
7923 # use absolute paths for naming shared libraries, and exclude the
7924 # DT_RUNPATH tag from executables and libraries. But doing so
7925 # requires that you compile everything twice, which is a pain.
7926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7930 else
7931 ld_shlibs=no
7932 fi
7933 ;;
7934 esac
7935 ;;
7936
7937 sunos4*)
7938 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7939 wlarc=
7940 hardcode_direct=yes
7941 hardcode_shlibpath_var=no
7942 ;;
7943
7944 *)
7945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7948 else
7949 ld_shlibs=no
7950 fi
7951 ;;
7952 esac
7953
7954 if test "$ld_shlibs" = no; then
7955 runpath_var=
7956 hardcode_libdir_flag_spec=
7957 export_dynamic_flag_spec=
7958 whole_archive_flag_spec=
7959 fi
7960 else
7961 # PORTME fill in a description of your system's linker (not GNU ld)
7962 case $host_os in
7963 aix3*)
7964 allow_undefined_flag=unsupported
7965 always_export_symbols=yes
7966 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'
7967 # Note: this linker hardcodes the directories in LIBPATH if there
7968 # are no directories specified by -L.
7969 hardcode_minus_L=yes
7970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7971 # Neither direct hardcoding nor static linking is supported with a
7972 # broken collect2.
7973 hardcode_direct=unsupported
7974 fi
7975 ;;
7976
e81819a5 7977 aix[4-9]*)
d7040cdb
SE
7978 if test "$host_cpu" = ia64; then
7979 # On IA64, the linker does run time linking by default, so we don't
7980 # have to do anything special.
7981 aix_use_runtimelinking=no
7982 exp_sym_flag='-Bexport'
7983 no_entry_flag=""
7984 else
7985 # If we're using GNU nm, then we don't want the "-C" option.
7986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7988 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'
7989 else
7990 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'
7991 fi
7992 aix_use_runtimelinking=no
7993
7994 # Test if we are trying to use run time linking or normal
7995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7996 # need to do runtime linking.
e81819a5 7997 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
7998 for ld_flag in $LDFLAGS; do
7999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8000 aix_use_runtimelinking=yes
8001 break
8002 fi
8003 done
8004 ;;
8005 esac
8006
8007 exp_sym_flag='-bexport'
8008 no_entry_flag='-bnoentry'
8009 fi
8010
8011 # When large executables or shared objects are built, AIX ld can
8012 # have problems creating the table of contents. If linking a library
8013 # or program results in "error TOC overflow" add -mminimal-toc to
8014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8016
8017 archive_cmds=''
8018 hardcode_direct=yes
8019 hardcode_direct_absolute=yes
8020 hardcode_libdir_separator=':'
8021 link_all_deplibs=yes
8022 file_list_spec='${wl}-f,'
8023
8024 if test "$GCC" = yes; then
8025 case $host_os in aix4.[012]|aix4.[012].*)
8026 # We only want to do this on AIX 4.2 and lower, the check
8027 # below for broken collect2 doesn't work under 4.3+
8028 collect2name=`${CC} -print-prog-name=collect2`
8029 if test -f "$collect2name" &&
8030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8031 then
8032 # We have reworked collect2
8033 :
8034 else
8035 # We have old collect2
8036 hardcode_direct=unsupported
8037 # It fails to find uninstalled libraries when the uninstalled
8038 # path is not listed in the libpath. Setting hardcode_minus_L
8039 # to unsupported forces relinking
8040 hardcode_minus_L=yes
8041 hardcode_libdir_flag_spec='-L$libdir'
8042 hardcode_libdir_separator=
8043 fi
8044 ;;
8045 esac
8046 shared_flag='-shared'
8047 if test "$aix_use_runtimelinking" = yes; then
8048 shared_flag="$shared_flag "'${wl}-G'
8049 fi
8050 else
8051 # not using gcc
8052 if test "$host_cpu" = ia64; then
8053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8054 # chokes on -Wl,-G. The following line is correct:
8055 shared_flag='-G'
8056 else
8057 if test "$aix_use_runtimelinking" = yes; then
8058 shared_flag='${wl}-G'
8059 else
8060 shared_flag='${wl}-bM:SRE'
8061 fi
8062 fi
8063 fi
8064
8065 # It seems that -bexpall does not export symbols beginning with
8066 # underscore (_), so it is better to generate a list of symbols to export.
8067 always_export_symbols=yes
8068 if test "$aix_use_runtimelinking" = yes; then
8069 # Warning - without using the other runtime loading flags (-brtl),
8070 # -berok will link without error, but may produce a broken library.
8071 allow_undefined_flag='-berok'
8072 # Determine the default libpath from the value encoded in an
8073 # empty executable.
8074 cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h. */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h. */
8080
8081int
8082main ()
8083{
8084
8085 ;
8086 return 0;
8087}
8088_ACEOF
8089rm -f conftest.$ac_objext conftest$ac_exeext
8090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
7357c5b6
AM
8098 { ac_try='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
d7040cdb
SE
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest$ac_exeext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8111
8112lt_aix_libpath_sed='
8113 /Import File Strings/,/^$/ {
8114 /^0/ {
8115 s/^0 *\(.*\)$/\1/
8116 p
8117 }
8118 }'
8119aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8120# Check for a 64-bit object if we didn't find anything.
8121if test -z "$aix_libpath"; then
8122 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8123fi
8124else
8125 echo "$as_me: failed program was:" >&5
8126sed 's/^/| /' conftest.$ac_ext >&5
8127
8128fi
8129rm -f conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
8131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8132
8133 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8134 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"
8135 else
8136 if test "$host_cpu" = ia64; then
8137 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8138 allow_undefined_flag="-z nodefs"
8139 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"
8140 else
8141 # Determine the default libpath from the value encoded in an
8142 # empty executable.
8143 cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h. */
8149
8150int
8151main ()
8152{
8153
8154 ;
8155 return 0;
8156}
8157_ACEOF
8158rm -f conftest.$ac_objext conftest$ac_exeext
8159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>conftest.er1
8161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
7357c5b6
AM
8167 { ac_try='test -z "$ac_c_werror_flag"
8168 || test ! -s conftest.err'
d7040cdb
SE
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; } &&
8174 { ac_try='test -s conftest$ac_exeext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180
8181lt_aix_libpath_sed='
8182 /Import File Strings/,/^$/ {
8183 /^0/ {
8184 s/^0 *\(.*\)$/\1/
8185 p
8186 }
8187 }'
8188aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8189# Check for a 64-bit object if we didn't find anything.
8190if test -z "$aix_libpath"; then
8191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8192fi
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
8200if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8201
8202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8203 # Warning - without using the other run time loading flags,
8204 # -berok will link without error, but may produce a broken library.
8205 no_undefined_flag=' ${wl}-bernotok'
8206 allow_undefined_flag=' ${wl}-berok'
8207 # Exported symbols can be pulled into shared objects from archives
8208 whole_archive_flag_spec='$convenience'
8209 archive_cmds_need_lc=yes
8210 # This is similar to how AIX traditionally builds its shared libraries.
8211 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'
8212 fi
8213 fi
8214 ;;
8215
8216 amigaos*)
8217 if test "$host_cpu" = m68k; then
8218 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)'
8219 hardcode_libdir_flag_spec='-L$libdir'
8220 hardcode_minus_L=yes
8221 fi
8222 # see comment about different semantics on the GNU ld section
8223 ld_shlibs=no
8224 ;;
8225
8226 bsdi[45]*)
8227 export_dynamic_flag_spec=-rdynamic
8228 ;;
8229
8230 cygwin* | mingw* | pw32*)
8231 # When not using gcc, we currently assume that we are using
8232 # Microsoft Visual C++.
8233 # hardcode_libdir_flag_spec is actually meaningless, as there is
8234 # no search path for DLLs.
8235 hardcode_libdir_flag_spec=' '
8236 allow_undefined_flag=unsupported
8237 # Tell ltmain to make .lib files, not .a files.
8238 libext=lib
8239 # Tell ltmain to make .dll files, not .so files.
8240 shrext_cmds=".dll"
8241 # FIXME: Setting linknames here is a bad hack.
8242 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8243 # The linker will automatically build a .lib file if we build a DLL.
8244 old_archive_from_new_cmds='true'
8245 # FIXME: Should let the user specify the lib program.
8246 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8247 fix_srcfile_path='`cygpath -w "$srcfile"`'
8248 enable_shared_with_static_runtimes=yes
8249 ;;
8250
8251 darwin* | rhapsody*)
8252 case $host_os in
8253 rhapsody* | darwin1.[012])
8254 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8255 ;;
8256 *) # Darwin 1.3 on
8257 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8258 10.[012])
8259 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8260 ;;
8261 10.*)
8262 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8263 ;;
8264 esac
8265 ;;
8266 esac
8267 archive_cmds_need_lc=no
8268 hardcode_direct=no
8269 hardcode_automatic=yes
8270 hardcode_shlibpath_var=unsupported
8271 whole_archive_flag_spec=''
8272 link_all_deplibs=yes
8273 if test "$GCC" = yes ; then
8274 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277 lt_cv_apple_cc_single_mod=no
8278 if test -z "${LT_MULTI_MODULE}"; then
8279 # By default we will add the -single_module flag. You can override
8280 # by either setting the environment variable LT_MULTI_MODULE
8281 # non-empty at configure time, or by adding -multi-module to the
8282 # link flags.
8283 echo "int foo(void){return 1;}" > conftest.c
8284 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8285 -dynamiclib ${wl}-single_module conftest.c
8286 if test -f libconftest.dylib; then
8287 lt_cv_apple_cc_single_mod=yes
8288 rm libconftest.dylib
8289 fi
8290 rm conftest.$ac_ext
8291 fi
8292fi
8293
8294 output_verbose_link_cmd=echo
8295 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8296 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8297 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}'
8298 else
8299 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8300 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}'
8301 fi
8302 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8303 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}'
8304 else
8305 case $cc_basename in
8306 xlc*)
8307 output_verbose_link_cmd=echo
8308 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8309 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8310 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8311 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}'
8312 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}'
8313 ;;
8314 *)
8315 ld_shlibs=no
8316 ;;
8317 esac
8318 fi
8319 ;;
8320
8321 dgux*)
8322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8323 hardcode_libdir_flag_spec='-L$libdir'
8324 hardcode_shlibpath_var=no
8325 ;;
8326
8327 freebsd1*)
8328 ld_shlibs=no
8329 ;;
8330
8331 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8332 # support. Future versions do this automatically, but an explicit c++rt0.o
8333 # does not break anything, and helps significantly (at the cost of a little
8334 # extra space).
8335 freebsd2.2*)
8336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8337 hardcode_libdir_flag_spec='-R$libdir'
8338 hardcode_direct=yes
8339 hardcode_shlibpath_var=no
8340 ;;
8341
8342 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8343 freebsd2*)
8344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8345 hardcode_direct=yes
8346 hardcode_minus_L=yes
8347 hardcode_shlibpath_var=no
8348 ;;
8349
8350 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8351 freebsd* | dragonfly*)
8352 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8353 hardcode_libdir_flag_spec='-R$libdir'
8354 hardcode_direct=yes
8355 hardcode_shlibpath_var=no
8356 ;;
8357
8358 hpux9*)
8359 if test "$GCC" = yes; then
8360 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'
8361 else
8362 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'
8363 fi
8364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8365 hardcode_libdir_separator=:
8366 hardcode_direct=yes
8367
8368 # hardcode_minus_L: Not really in the search PATH,
8369 # but as the default location of the library.
8370 hardcode_minus_L=yes
8371 export_dynamic_flag_spec='${wl}-E'
8372 ;;
8373
8374 hpux10*)
8375 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8376 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8377 else
8378 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8379 fi
8380 if test "$with_gnu_ld" = no; then
8381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8382 hardcode_libdir_flag_spec_ld='+b $libdir'
8383 hardcode_libdir_separator=:
8384 hardcode_direct=yes
8385 hardcode_direct_absolute=yes
8386 export_dynamic_flag_spec='${wl}-E'
8387 # hardcode_minus_L: Not really in the search PATH,
8388 # but as the default location of the library.
8389 hardcode_minus_L=yes
8390 fi
8391 ;;
8392
8393 hpux11*)
8394 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8395 case $host_cpu in
8396 hppa*64*)
8397 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 ;;
8399 ia64*)
8400 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8401 ;;
8402 *)
8403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8404 ;;
8405 esac
8406 else
8407 case $host_cpu in
8408 hppa*64*)
8409 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8410 ;;
8411 ia64*)
8412 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8413 ;;
8414 *)
8415 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8416 ;;
8417 esac
8418 fi
8419 if test "$with_gnu_ld" = no; then
8420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8421 hardcode_libdir_separator=:
8422
8423 case $host_cpu in
8424 hppa*64*|ia64*)
8425 hardcode_direct=no
8426 hardcode_shlibpath_var=no
8427 ;;
8428 *)
8429 hardcode_direct=yes
8430 hardcode_direct_absolute=yes
8431 export_dynamic_flag_spec='${wl}-E'
8432
8433 # hardcode_minus_L: Not really in the search PATH,
8434 # but as the default location of the library.
8435 hardcode_minus_L=yes
8436 ;;
8437 esac
8438 fi
8439 ;;
8440
8441 irix5* | irix6* | nonstopux*)
8442 if test "$GCC" = yes; then
8443 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'
8444 # Try to use the -exported_symbol ld option, if it does not
8445 # work, assume that -exports_file does not work either and
8446 # implicitly export all symbols.
8447 save_LDFLAGS="$LDFLAGS"
8448 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8449 cat >conftest.$ac_ext <<_ACEOF
8450int foo(void) {}
8451_ACEOF
8452rm -f conftest.$ac_objext conftest$ac_exeext
8453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454 (eval $ac_link) 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
7357c5b6
AM
8461 { ac_try='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
d7040cdb
SE
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 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'
8475
8476else
8477 echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
8480fi
8481rm -f conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8483 LDFLAGS="$save_LDFLAGS"
8484 else
8485 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'
8486 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'
8487 fi
8488 archive_cmds_need_lc='no'
8489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8490 hardcode_libdir_separator=:
8491 inherit_rpath=yes
8492 link_all_deplibs=yes
8493 ;;
8494
8495 netbsd*)
8496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8498 else
8499 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8500 fi
8501 hardcode_libdir_flag_spec='-R$libdir'
8502 hardcode_direct=yes
8503 hardcode_shlibpath_var=no
8504 ;;
8505
8506 newsos6)
8507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508 hardcode_direct=yes
8509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8510 hardcode_libdir_separator=:
8511 hardcode_shlibpath_var=no
8512 ;;
8513
8514 *nto* | *qnx*)
8515 ;;
8516
8517 openbsd*)
8518 hardcode_direct=yes
8519 hardcode_shlibpath_var=no
8520 hardcode_direct_absolute=yes
8521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8525 export_dynamic_flag_spec='${wl}-E'
8526 else
8527 case $host_os in
8528 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_libdir_flag_spec='-R$libdir'
8531 ;;
8532 *)
8533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8535 ;;
8536 esac
8537 fi
8538 ;;
8539
8540 os2*)
8541 hardcode_libdir_flag_spec='-L$libdir'
8542 hardcode_minus_L=yes
8543 allow_undefined_flag=unsupported
8544 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'
8545 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8546 ;;
8547
8548 osf3*)
8549 if test "$GCC" = yes; then
8550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8551 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'
8552 else
8553 allow_undefined_flag=' -expect_unresolved \*'
8554 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'
8555 fi
8556 archive_cmds_need_lc='no'
8557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8558 hardcode_libdir_separator=:
8559 ;;
8560
8561 osf4* | osf5*) # as osf3* with the addition of -msym flag
8562 if test "$GCC" = yes; then
8563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8564 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'
8565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8566 else
8567 allow_undefined_flag=' -expect_unresolved \*'
8568 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'
8569 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~
8570 $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'
8571
8572 # Both c and cxx compiler support -rpath directly
8573 hardcode_libdir_flag_spec='-rpath $libdir'
8574 fi
8575 archive_cmds_need_lc='no'
8576 hardcode_libdir_separator=:
8577 ;;
8578
8579 solaris*)
8580 no_undefined_flag=' -z defs'
8581 if test "$GCC" = yes; then
8582 wlarc='${wl}'
8583 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8585 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8586 else
8587 case `$CC -V 2>&1` in
8588 *"Compilers 5.0"*)
8589 wlarc=''
8590 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8592 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8593 ;;
8594 *)
8595 wlarc='${wl}'
8596 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8598 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8599 ;;
8600 esac
8601 fi
8602 hardcode_libdir_flag_spec='-R$libdir'
8603 hardcode_shlibpath_var=no
8604 case $host_os in
8605 solaris2.[0-5] | solaris2.[0-5].*) ;;
8606 *)
8607 # The compiler driver will combine and reorder linker options,
8608 # but understands `-z linker_flag'. GCC discards it without `$wl',
8609 # but is careful enough not to reorder.
8610 # Supported since Solaris 2.6 (maybe 2.5.1?)
8611 if test "$GCC" = yes; then
8612 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8613 else
8614 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8615 fi
8616 ;;
8617 esac
8618 link_all_deplibs=yes
8619 ;;
8620
8621 sunos4*)
8622 if test "x$host_vendor" = xsequent; then
8623 # Use $CC to link under sequent, because it throws in some extra .o
8624 # files that make .init and .fini sections work.
8625 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8626 else
8627 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8628 fi
8629 hardcode_libdir_flag_spec='-L$libdir'
8630 hardcode_direct=yes
8631 hardcode_minus_L=yes
8632 hardcode_shlibpath_var=no
8633 ;;
8634
8635 sysv4)
8636 case $host_vendor in
8637 sni)
8638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639 hardcode_direct=yes # is this really true???
8640 ;;
8641 siemens)
8642 ## LD is ld it makes a PLAMLIB
8643 ## CC just makes a GrossModule.
8644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8645 reload_cmds='$CC -r -o $output$reload_objs'
8646 hardcode_direct=no
8647 ;;
8648 motorola)
8649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8651 ;;
8652 esac
8653 runpath_var='LD_RUN_PATH'
8654 hardcode_shlibpath_var=no
8655 ;;
8656
8657 sysv4.3*)
8658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8659 hardcode_shlibpath_var=no
8660 export_dynamic_flag_spec='-Bexport'
8661 ;;
8662
8663 sysv4*MP*)
8664 if test -d /usr/nec; then
8665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666 hardcode_shlibpath_var=no
8667 runpath_var=LD_RUN_PATH
8668 hardcode_runpath_var=yes
8669 ld_shlibs=yes
8670 fi
8671 ;;
8672
8673 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8674 no_undefined_flag='${wl}-z,text'
8675 archive_cmds_need_lc=no
8676 hardcode_shlibpath_var=no
8677 runpath_var='LD_RUN_PATH'
8678
8679 if test "$GCC" = yes; then
8680 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8682 else
8683 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8684 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8685 fi
8686 ;;
8687
8688 sysv5* | sco3.2v5* | sco5v6*)
8689 # Note: We can NOT use -z defs as we might desire, because we do not
8690 # link with -lc, and that would cause any symbols used from libc to
8691 # always be unresolved, which means just about no library would
8692 # ever link correctly. If we're not using GNU ld we use -z text
8693 # though, which does catch some bad symbols but isn't as heavy-handed
8694 # as -z defs.
8695 no_undefined_flag='${wl}-z,text'
8696 allow_undefined_flag='${wl}-z,nodefs'
8697 archive_cmds_need_lc=no
8698 hardcode_shlibpath_var=no
8699 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8700 hardcode_libdir_separator=':'
8701 link_all_deplibs=yes
8702 export_dynamic_flag_spec='${wl}-Bexport'
8703 runpath_var='LD_RUN_PATH'
8704
8705 if test "$GCC" = yes; then
8706 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8707 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8708 else
8709 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8711 fi
8712 ;;
8713
8714 uts4*)
8715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_shlibpath_var=no
8718 ;;
8719
8720 *)
8721 ld_shlibs=no
8722 ;;
8723 esac
8724
8725 if test x$host_vendor = xsni; then
8726 case $host in
8727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8728 export_dynamic_flag_spec='${wl}-Blargedynsym'
8729 ;;
8730 esac
8731 fi
8732 fi
8733
8734echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8735echo "${ECHO_T}$ld_shlibs" >&6
8736test "$ld_shlibs" = no && can_build_shared=no
8737
8738with_gnu_ld=$with_gnu_ld
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754#
8755# Do we need to explicitly link libc?
8756#
8757case "x$archive_cmds_need_lc" in
8758x|xyes)
8759 # Assume -lc should be added
8760 archive_cmds_need_lc=yes
8761
8762 if test "$enable_shared" = yes && test "$GCC" = yes; then
8763 case $archive_cmds in
8764 *'~'*)
8765 # FIXME: we may have to deal with multi-command sequences.
8766 ;;
8767 '$CC '*)
8768 # Test whether the compiler implicitly links with -lc since on some
8769 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8770 # to ld, don't add -lc before -lgcc.
8771 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8772echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8773 $RM conftest*
8774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777 (eval $ac_compile) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } 2>conftest.err; then
8781 soname=conftest
8782 lib=conftest
8783 libobjs=conftest.$ac_objext
8784 deplibs=
8785 wl=$lt_prog_compiler_wl
8786 pic_flag=$lt_prog_compiler_pic
8787 compiler_flags=-v
8788 linker_flags=-v
8789 verstring=
8790 output_objdir=.
8791 libname=conftest
8792 lt_save_allow_undefined_flag=$allow_undefined_flag
8793 allow_undefined_flag=
8794 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8795 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }
8799 then
8800 archive_cmds_need_lc=no
8801 else
8802 archive_cmds_need_lc=yes
8803 fi
8804 allow_undefined_flag=$lt_save_allow_undefined_flag
8805 else
8806 cat conftest.err 1>&5
8807 fi
8808 $RM conftest*
8809 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8810echo "${ECHO_T}$archive_cmds_need_lc" >&6
8811 ;;
8812 esac
8813 fi
8814 ;;
8815esac
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8974echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8975withGCC=$GCC
8976if test "$withGCC" = yes; then
8977 case $host_os in
8978 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8979 *) lt_awk_arg="/^libraries:/" ;;
8980 esac
8981 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8982 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8983 # if the path contains ";" then we assume it to be the separator
8984 # otherwise default to the standard path separator (i.e. ":") - it is
8985 # assumed that no part of a normal pathname contains ";" but that should
8986 # okay in the real world where ";" in dirpaths is itself problematic.
8987 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8988 else
8989 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8990 fi
8991 # Ok, now we have the path, separated by spaces, we can step through it
8992 # and add multilib dir if necessary.
8993 lt_tmp_lt_search_path_spec=
8994 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8995 for lt_sys_path in $lt_search_path_spec; do
8996 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8997 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8998 else
8999 test -d "$lt_sys_path" && \
9000 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9001 fi
9002 done
9003 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9004BEGIN {RS=" "; FS="/|\n";} {
9005 lt_foo="";
9006 lt_count=0;
9007 for (lt_i = NF; lt_i > 0; lt_i--) {
9008 if ($lt_i != "" && $lt_i != ".") {
9009 if ($lt_i == "..") {
9010 lt_count++;
9011 } else {
9012 if (lt_count == 0) {
9013 lt_foo="/" $lt_i lt_foo;
9014 } else {
9015 lt_count--;
9016 }
9017 }
9018 }
9019 }
9020 if (lt_foo != "") { lt_freq[lt_foo]++; }
9021 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9022}'`
9023 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9024else
9025 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9026fi
9027library_names_spec=
9028libname_spec='lib$name'
9029soname_spec=
9030shrext_cmds=".so"
9031postinstall_cmds=
9032postuninstall_cmds=
9033finish_cmds=
9034finish_eval=
9035shlibpath_var=
9036shlibpath_overrides_runpath=unknown
9037version_type=none
9038dynamic_linker="$host_os ld.so"
9039sys_lib_dlsearch_path_spec="/lib /usr/lib"
9040need_lib_prefix=unknown
9041hardcode_into_libs=no
9042
9043# when you set need_version to no, make sure it does not cause -set_version
9044# flags to be left without arguments
9045need_version=unknown
9046
9047case $host_os in
9048aix3*)
9049 version_type=linux
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9051 shlibpath_var=LIBPATH
9052
9053 # AIX 3 has no versioning support, so we append a major version to the name.
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 ;;
9056
e81819a5 9057aix[4-9]*)
d7040cdb
SE
9058 version_type=linux
9059 need_lib_prefix=no
9060 need_version=no
9061 hardcode_into_libs=yes
9062 if test "$host_cpu" = ia64; then
9063 # AIX 5 supports IA64
9064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 else
9067 # With GCC up to 2.95.x, collect2 would create an import file
9068 # for dependence libraries. The import file would start with
9069 # the line `#! .'. This would cause the generated library to
9070 # depend on `.', always an invalid library. This was fixed in
9071 # development snapshots of GCC prior to 3.0.
9072 case $host_os in
9073 aix4 | aix4.[01] | aix4.[01].*)
9074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9075 echo ' yes '
9076 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9077 :
9078 else
9079 can_build_shared=no
9080 fi
9081 ;;
9082 esac
9083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9084 # soname into executable. Probably we can add versioning support to
9085 # collect2, so additional links can be useful in future.
9086 if test "$aix_use_runtimelinking" = yes; then
9087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9088 # instead of lib<name>.a to let people know that these are not
9089 # typical AIX shared libraries.
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 else
9092 # We preserve .a as extension for shared libraries through AIX4.2
9093 # and later when we are not doing run time linking.
9094 library_names_spec='${libname}${release}.a $libname.a'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 fi
9097 shlibpath_var=LIBPATH
9098 fi
9099 ;;
9100
9101amigaos*)
9102 if test "$host_cpu" = m68k; then
9103 library_names_spec='$libname.ixlibrary $libname.a'
9104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105 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'
9106 else
9107 dynamic_linker=no
9108 fi
9109 ;;
9110
9111beos*)
9112 library_names_spec='${libname}${shared_ext}'
9113 dynamic_linker="$host_os ld.so"
9114 shlibpath_var=LIBRARY_PATH
9115 ;;
9116
9117bsdi[45]*)
9118 version_type=linux
9119 need_version=no
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9125 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9126 # the default ld.so.conf also contains /usr/contrib/lib and
9127 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9128 # libtool to hard-code these into programs
9129 ;;
9130
9131cygwin* | mingw* | pw32*)
9132 version_type=windows
9133 shrext_cmds=".dll"
9134 need_version=no
9135 need_lib_prefix=no
9136
9137 case $withGCC,$host_os in
9138 yes,cygwin* | yes,mingw* | yes,pw32*)
9139 library_names_spec='$libname.dll.a'
9140 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9141 postinstall_cmds='base_file=`basename \${file}`~
9142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9143 dldir=$destdir/`dirname \$dlpath`~
9144 test -d \$dldir || mkdir -p \$dldir~
9145 $install_prog $dir/$dlname \$dldir/$dlname~
9146 chmod a+x \$dldir/$dlname~
9147 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9148 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9149 fi'
9150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9151 dlpath=$dir/\$dldll~
9152 $RM \$dlpath'
9153 shlibpath_overrides_runpath=yes
9154
9155 case $host_os in
9156 cygwin*)
9157 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9159 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9160 ;;
9161 mingw*)
9162 # MinGW DLLs use traditional 'lib' prefix
9163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9164 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9165 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9166 # It is most probably a Windows format PATH printed by
9167 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9168 # path with ; separators, and with drive letters. We can handle the
9169 # drive letters (cygwin fileutils understands them), so leave them,
9170 # especially as we might pass files found there to a mingw objdump,
9171 # which wouldn't understand a cygwinified path. Ahh.
9172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9173 else
9174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9175 fi
9176 ;;
9177 pw32*)
9178 # pw32 DLLs use 'pw' prefix rather than 'lib'
9179 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180 ;;
9181 esac
9182 ;;
9183
9184 *)
9185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9186 ;;
9187 esac
9188 dynamic_linker='Win32 ld.exe'
9189 # FIXME: first we should search . and the directory the executable is in
9190 shlibpath_var=PATH
9191 ;;
9192
9193darwin* | rhapsody*)
9194 dynamic_linker="$host_os dyld"
9195 version_type=darwin
9196 need_lib_prefix=no
9197 need_version=no
9198 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9199 soname_spec='${libname}${release}${major}$shared_ext'
9200 shlibpath_overrides_runpath=yes
9201 shlibpath_var=DYLD_LIBRARY_PATH
9202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9203
9204 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9206 ;;
9207
9208dgux*)
9209 version_type=linux
9210 need_lib_prefix=no
9211 need_version=no
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 ;;
9216
9217freebsd1*)
9218 dynamic_linker=no
9219 ;;
9220
9221freebsd* | dragonfly*)
9222 # DragonFly does not have aout. When/if they implement a new
9223 # versioning mechanism, adjust this.
9224 if test -x /usr/bin/objformat; then
9225 objformat=`/usr/bin/objformat`
9226 else
9227 case $host_os in
9228 freebsd[123]*) objformat=aout ;;
9229 *) objformat=elf ;;
9230 esac
9231 fi
9232 version_type=freebsd-$objformat
9233 case $version_type in
9234 freebsd-elf*)
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9236 need_version=no
9237 need_lib_prefix=no
9238 ;;
9239 freebsd-*)
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9241 need_version=yes
9242 ;;
9243 esac
9244 shlibpath_var=LD_LIBRARY_PATH
9245 case $host_os in
9246 freebsd2*)
9247 shlibpath_overrides_runpath=yes
9248 ;;
9249 freebsd3.[01]* | freebsdelf3.[01]*)
9250 shlibpath_overrides_runpath=yes
9251 hardcode_into_libs=yes
9252 ;;
9253 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9254 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9255 shlibpath_overrides_runpath=no
9256 hardcode_into_libs=yes
9257 ;;
9258 *) # from 4.6 on, and DragonFly
9259 shlibpath_overrides_runpath=yes
9260 hardcode_into_libs=yes
9261 ;;
9262 esac
9263 ;;
9264
9265gnu*)
9266 version_type=linux
9267 need_lib_prefix=no
9268 need_version=no
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 hardcode_into_libs=yes
9273 ;;
9274
9275hpux9* | hpux10* | hpux11*)
9276 # Give a soname corresponding to the major version so that dld.sl refuses to
9277 # link against other versions.
9278 version_type=sunos
9279 need_lib_prefix=no
9280 need_version=no
9281 case $host_cpu in
9282 ia64*)
9283 shrext_cmds='.so'
9284 hardcode_into_libs=yes
9285 dynamic_linker="$host_os dld.so"
9286 shlibpath_var=LD_LIBRARY_PATH
9287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 if test "X$HPUX_IA64_MODE" = X32; then
9291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9292 else
9293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9294 fi
9295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9296 ;;
9297 hppa*64*)
9298 shrext_cmds='.sl'
9299 hardcode_into_libs=yes
9300 dynamic_linker="$host_os dld.sl"
9301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9307 ;;
9308 *)
9309 shrext_cmds='.sl'
9310 dynamic_linker="$host_os dld.sl"
9311 shlibpath_var=SHLIB_PATH
9312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 ;;
9316 esac
9317 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9318 postinstall_cmds='chmod 555 $lib'
9319 ;;
9320
9321interix[3-9]*)
9322 version_type=linux
9323 need_lib_prefix=no
9324 need_version=no
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=no
9330 hardcode_into_libs=yes
9331 ;;
9332
9333irix5* | irix6* | nonstopux*)
9334 case $host_os in
9335 nonstopux*) version_type=nonstopux ;;
9336 *)
9337 if test "$lt_cv_prog_gnu_ld" = yes; then
9338 version_type=linux
9339 else
9340 version_type=irix
9341 fi ;;
9342 esac
9343 need_lib_prefix=no
9344 need_version=no
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9347 case $host_os in
9348 irix5* | nonstopux*)
9349 libsuff= shlibsuff=
9350 ;;
9351 *)
9352 case $LD in # libtool.m4 will add one of these switches to LD
9353 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9354 libsuff= shlibsuff= libmagic=32-bit;;
9355 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9356 libsuff=32 shlibsuff=N32 libmagic=N32;;
9357 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9358 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9359 *) libsuff= shlibsuff= libmagic=never-match;;
9360 esac
9361 ;;
9362 esac
9363 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9364 shlibpath_overrides_runpath=no
9365 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9366 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9367 hardcode_into_libs=yes
9368 ;;
9369
9370# No shared lib support for Linux oldld, aout, or coff.
9371linux*oldld* | linux*aout* | linux*coff*)
9372 dynamic_linker=no
9373 ;;
9374
9375# This must be Linux ELF.
9376linux* | k*bsd*-gnu)
9377 version_type=linux
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=no
9385 # Some binutils ld are patched to set DT_RUNPATH
9386 save_LDFLAGS=$LDFLAGS
9387 save_libdir=$libdir
9388 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9389 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9390 cat >conftest.$ac_ext <<_ACEOF
9391/* confdefs.h. */
9392_ACEOF
9393cat confdefs.h >>conftest.$ac_ext
9394cat >>conftest.$ac_ext <<_ACEOF
9395/* end confdefs.h. */
9396
9397int
9398main ()
9399{
9400
9401 ;
9402 return 0;
9403}
9404_ACEOF
9405rm -f conftest.$ac_objext conftest$ac_exeext
9406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
7357c5b6
AM
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
d7040cdb
SE
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9428 shlibpath_overrides_runpath=yes
9429fi
9430
9431else
9432 echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435fi
9436rm -f conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 LDFLAGS=$save_LDFLAGS
9439 libdir=$save_libdir
9440
9441 # This implies no fast_install, which is unacceptable.
9442 # Some rework will be needed to allow for fast_install
9443 # before this can be enabled.
9444 hardcode_into_libs=yes
9445
9446 # Append ld.so.conf contents to the search path
9447 if test -f /etc/ld.so.conf; then
9448 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' ' '`
9449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9450 fi
9451
9452 # We used to test for /lib/ld.so.1 and disable shared libraries on
9453 # powerpc, because MkLinux only supported shared libraries with the
9454 # GNU dynamic linker. Since this was broken with cross compilers,
9455 # most powerpc-linux boxes support dynamic linking these days and
9456 # people can always --disable-shared, the test was removed, and we
9457 # assume the GNU/Linux dynamic linker is in use.
9458 dynamic_linker='GNU/Linux ld.so'
9459 ;;
9460
9461netbsd*)
9462 version_type=sunos
9463 need_lib_prefix=no
9464 need_version=no
9465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9468 dynamic_linker='NetBSD (a.out) ld.so'
9469 else
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 dynamic_linker='NetBSD ld.elf_so'
9473 fi
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9476 hardcode_into_libs=yes
9477 ;;
9478
9479newsos6)
9480 version_type=linux
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes
9484 ;;
9485
9486*nto* | *qnx*)
9487 version_type=qnx
9488 need_lib_prefix=no
9489 need_version=no
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=no
9494 hardcode_into_libs=yes
9495 dynamic_linker='ldqnx.so'
9496 ;;
9497
9498openbsd*)
9499 version_type=sunos
9500 sys_lib_dlsearch_path_spec="/usr/lib"
9501 need_lib_prefix=no
9502 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9503 case $host_os in
9504 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9505 *) need_version=no ;;
9506 esac
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9511 case $host_os in
9512 openbsd2.[89] | openbsd2.[89].*)
9513 shlibpath_overrides_runpath=no
9514 ;;
9515 *)
9516 shlibpath_overrides_runpath=yes
9517 ;;
9518 esac
9519 else
9520 shlibpath_overrides_runpath=yes
9521 fi
9522 ;;
9523
9524os2*)
9525 libname_spec='$name'
9526 shrext_cmds=".dll"
9527 need_lib_prefix=no
9528 library_names_spec='$libname${shared_ext} $libname.a'
9529 dynamic_linker='OS/2 ld.exe'
9530 shlibpath_var=LIBPATH
9531 ;;
9532
9533osf3* | osf4* | osf5*)
9534 version_type=osf
9535 need_lib_prefix=no
9536 need_version=no
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539 shlibpath_var=LD_LIBRARY_PATH
9540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9541 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9542 ;;
9543
9544rdos*)
9545 dynamic_linker=no
9546 ;;
9547
9548solaris*)
9549 version_type=linux
9550 need_lib_prefix=no
9551 need_version=no
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 shlibpath_overrides_runpath=yes
9556 hardcode_into_libs=yes
9557 # ldd complains unless libraries are executable
9558 postinstall_cmds='chmod +x $lib'
9559 ;;
9560
9561sunos4*)
9562 version_type=sunos
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes
9567 if test "$with_gnu_ld" = yes; then
9568 need_lib_prefix=no
9569 fi
9570 need_version=yes
9571 ;;
9572
9573sysv4 | sysv4.3*)
9574 version_type=linux
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9578 case $host_vendor in
9579 sni)
9580 shlibpath_overrides_runpath=no
9581 need_lib_prefix=no
9582 runpath_var=LD_RUN_PATH
9583 ;;
9584 siemens)
9585 need_lib_prefix=no
9586 ;;
9587 motorola)
9588 need_lib_prefix=no
9589 need_version=no
9590 shlibpath_overrides_runpath=no
9591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9592 ;;
9593 esac
9594 ;;
9595
9596sysv4*MP*)
9597 if test -d /usr/nec ;then
9598 version_type=linux
9599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9600 soname_spec='$libname${shared_ext}.$major'
9601 shlibpath_var=LD_LIBRARY_PATH
9602 fi
9603 ;;
9604
9605sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9606 version_type=freebsd-elf
9607 need_lib_prefix=no
9608 need_version=no
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9610 soname_spec='${libname}${release}${shared_ext}$major'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 shlibpath_overrides_runpath=yes
9613 hardcode_into_libs=yes
9614 if test "$with_gnu_ld" = yes; then
9615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9616 else
9617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9618 case $host_os in
9619 sco3.2v5*)
9620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9621 ;;
9622 esac
9623 fi
9624 sys_lib_dlsearch_path_spec='/usr/lib'
9625 ;;
9626
9627tpf*)
9628 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9629 version_type=linux
9630 need_lib_prefix=no
9631 need_version=no
9632 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 shlibpath_overrides_runpath=no
9635 hardcode_into_libs=yes
9636 ;;
9637
9638uts4*)
9639 version_type=linux
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 ;;
9644
9645*)
9646 dynamic_linker=no
9647 ;;
9648esac
9649echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9650echo "${ECHO_T}$dynamic_linker" >&6
9651test "$dynamic_linker" = no && can_build_shared=no
9652
9653variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9654if test "$GCC" = yes; then
9655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9656fi
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9745echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9746hardcode_action=
9747if test -n "$hardcode_libdir_flag_spec" ||
9748 test -n "$runpath_var" ||
9749 test "X$hardcode_automatic" = "Xyes" ; then
9750
9751 # We can hardcode non-existent directories.
9752 if test "$hardcode_direct" != no &&
9753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9754 # have to relink, otherwise we might link with an installed library
9755 # when we should be linking with a yet-to-be-installed one
9756 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9757 test "$hardcode_minus_L" != no; then
9758 # Linking always hardcodes the temporary library directory.
9759 hardcode_action=relink
9760 else
9761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9762 hardcode_action=immediate
9763 fi
9764else
9765 # We cannot hardcode anything, or else we can only hardcode existing
9766 # directories.
9767 hardcode_action=unsupported
9768fi
9769echo "$as_me:$LINENO: result: $hardcode_action" >&5
9770echo "${ECHO_T}$hardcode_action" >&6
9771
9772if test "$hardcode_action" = relink ||
9773 test "$inherit_rpath" = yes; then
9774 # Fast installation is not supported
9775 enable_fast_install=no
9776elif test "$shlibpath_overrides_runpath" = yes ||
9777 test "$enable_shared" = no; then
9778 # Fast installation is not necessary
9779 enable_fast_install=needless
9780fi
9781
9782
9783
9784
9785
9786
9787 if test "x$enable_dlopen" != xyes; then
9788 enable_dlopen=unknown
9789 enable_dlopen_self=unknown
9790 enable_dlopen_self_static=unknown
9791else
9792 lt_cv_dlopen=no
9793 lt_cv_dlopen_libs=
9794
9795 case $host_os in
9796 beos*)
9797 lt_cv_dlopen="load_add_on"
9798 lt_cv_dlopen_libs=
9799 lt_cv_dlopen_self=yes
9800 ;;
9801
9802 mingw* | pw32*)
9803 lt_cv_dlopen="LoadLibrary"
9804 lt_cv_dlopen_libs=
9805 ;;
9806
9807 cygwin*)
9808 lt_cv_dlopen="dlopen"
9809 lt_cv_dlopen_libs=
9810 ;;
9811
9812 darwin*)
9813 # if libdl is installed we need to link against it
9814 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9815echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9816if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819 ac_check_lib_save_LIBS=$LIBS
9820LIBS="-ldl $LIBS"
9821cat >conftest.$ac_ext <<_ACEOF
9822/* confdefs.h. */
9823_ACEOF
9824cat confdefs.h >>conftest.$ac_ext
9825cat >>conftest.$ac_ext <<_ACEOF
9826/* end confdefs.h. */
9827
9828/* Override any gcc2 internal prototype to avoid an error. */
9829#ifdef __cplusplus
9830extern "C"
9831#endif
9832/* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9834char dlopen ();
9835int
9836main ()
9837{
9838dlopen ();
9839 ;
9840 return 0;
9841}
9842_ACEOF
9843rm -f conftest.$ac_objext conftest$ac_exeext
9844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845 (eval $ac_link) 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
7357c5b6
AM
9852 { ac_try='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
d7040cdb
SE
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_lib_dl_dlopen=yes
9866else
9867 echo "$as_me: failed program was:" >&5
9868sed 's/^/| /' conftest.$ac_ext >&5
9869
9870ac_cv_lib_dl_dlopen=no
9871fi
9872rm -f conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874LIBS=$ac_check_lib_save_LIBS
9875fi
9876echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9877echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9878if test $ac_cv_lib_dl_dlopen = yes; then
9879 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9880else
9881
9882 lt_cv_dlopen="dyld"
9883 lt_cv_dlopen_libs=
9884 lt_cv_dlopen_self=yes
9885
9886fi
9887
9888 ;;
9889
9890 *)
9891 echo "$as_me:$LINENO: checking for shl_load" >&5
9892echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9893if test "${ac_cv_func_shl_load+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895else
9896 cat >conftest.$ac_ext <<_ACEOF
9897/* confdefs.h. */
9898_ACEOF
9899cat confdefs.h >>conftest.$ac_ext
9900cat >>conftest.$ac_ext <<_ACEOF
9901/* end confdefs.h. */
9902/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9904#define shl_load innocuous_shl_load
9905
9906/* System header to define __stub macros and hopefully few prototypes,
9907 which can conflict with char shl_load (); below.
9908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909 <limits.h> exists even on freestanding compilers. */
9910
9911#ifdef __STDC__
9912# include <limits.h>
9913#else
9914# include <assert.h>
9915#endif
9916
9917#undef shl_load
9918
9919/* Override any gcc2 internal prototype to avoid an error. */
9920#ifdef __cplusplus
9921extern "C"
9922{
9923#endif
9924/* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9926char shl_load ();
9927/* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930#if defined (__stub_shl_load) || defined (__stub___shl_load)
9931choke me
9932#else
9933char (*f) () = shl_load;
9934#endif
9935#ifdef __cplusplus
9936}
9937#endif
9938
9939int
9940main ()
9941{
9942return f != shl_load;
9943 ;
9944 return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext conftest$ac_exeext
9948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
7357c5b6
AM
9956 { ac_try='test -z "$ac_c_werror_flag"
9957 || test ! -s conftest.err'
d7040cdb
SE
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 (eval $ac_try) 2>&5
9960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 (eval $ac_try) 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_func_shl_load=yes
9970else
9971 echo "$as_me: failed program was:" >&5
9972sed 's/^/| /' conftest.$ac_ext >&5
9973
9974ac_cv_func_shl_load=no
9975fi
9976rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978fi
9979echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9981if test $ac_cv_func_shl_load = yes; then
9982 lt_cv_dlopen="shl_load"
9983else
9984 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9986if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989 ac_check_lib_save_LIBS=$LIBS
9990LIBS="-ldld $LIBS"
9991cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h. */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
9996/* end confdefs.h. */
9997
9998/* Override any gcc2 internal prototype to avoid an error. */
9999#ifdef __cplusplus
10000extern "C"
10001#endif
10002/* We use char because int might match the return type of a gcc2
10003 builtin and then its argument prototype would still apply. */
10004char shl_load ();
10005int
10006main ()
10007{
10008shl_load ();
10009 ;
10010 return 0;
10011}
10012_ACEOF
10013rm -f conftest.$ac_objext conftest$ac_exeext
10014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
7357c5b6
AM
10022 { ac_try='test -z "$ac_c_werror_flag"
10023 || test ! -s conftest.err'
d7040cdb
SE
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; } &&
10029 { ac_try='test -s conftest$ac_exeext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 ac_cv_lib_dld_shl_load=yes
10036else
10037 echo "$as_me: failed program was:" >&5
10038sed 's/^/| /' conftest.$ac_ext >&5
10039
10040ac_cv_lib_dld_shl_load=no
10041fi
10042rm -f conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044LIBS=$ac_check_lib_save_LIBS
10045fi
10046echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10047echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10048if test $ac_cv_lib_dld_shl_load = yes; then
10049 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10050else
10051 echo "$as_me:$LINENO: checking for dlopen" >&5
10052echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10053if test "${ac_cv_func_dlopen+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055else
10056 cat >conftest.$ac_ext <<_ACEOF
10057/* confdefs.h. */
10058_ACEOF
10059cat confdefs.h >>conftest.$ac_ext
10060cat >>conftest.$ac_ext <<_ACEOF
10061/* end confdefs.h. */
10062/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10064#define dlopen innocuous_dlopen
10065
10066/* System header to define __stub macros and hopefully few prototypes,
10067 which can conflict with char dlopen (); below.
10068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10069 <limits.h> exists even on freestanding compilers. */
10070
10071#ifdef __STDC__
10072# include <limits.h>
10073#else
10074# include <assert.h>
10075#endif
10076
10077#undef dlopen
10078
10079/* Override any gcc2 internal prototype to avoid an error. */
10080#ifdef __cplusplus
10081extern "C"
10082{
10083#endif
10084/* We use char because int might match the return type of a gcc2
10085 builtin and then its argument prototype would still apply. */
10086char dlopen ();
10087/* The GNU C library defines this for functions which it implements
10088 to always fail with ENOSYS. Some functions are actually named
10089 something starting with __ and the normal name is an alias. */
10090#if defined (__stub_dlopen) || defined (__stub___dlopen)
10091choke me
10092#else
10093char (*f) () = dlopen;
10094#endif
10095#ifdef __cplusplus
10096}
10097#endif
10098
10099int
10100main ()
10101{
10102return f != dlopen;
10103 ;
10104 return 0;
10105}
10106_ACEOF
10107rm -f conftest.$ac_objext conftest$ac_exeext
10108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
7357c5b6
AM
10116 { ac_try='test -z "$ac_c_werror_flag"
10117 || test ! -s conftest.err'
d7040cdb
SE
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_func_dlopen=yes
10130else
10131 echo "$as_me: failed program was:" >&5
10132sed 's/^/| /' conftest.$ac_ext >&5
10133
10134ac_cv_func_dlopen=no
10135fi
10136rm -f conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138fi
10139echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10140echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10141if test $ac_cv_func_dlopen = yes; then
10142 lt_cv_dlopen="dlopen"
10143else
10144 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10145echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10146if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148else
10149 ac_check_lib_save_LIBS=$LIBS
10150LIBS="-ldl $LIBS"
10151cat >conftest.$ac_ext <<_ACEOF
10152/* confdefs.h. */
10153_ACEOF
10154cat confdefs.h >>conftest.$ac_ext
10155cat >>conftest.$ac_ext <<_ACEOF
10156/* end confdefs.h. */
10157
10158/* Override any gcc2 internal prototype to avoid an error. */
10159#ifdef __cplusplus
10160extern "C"
10161#endif
10162/* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10164char dlopen ();
10165int
10166main ()
10167{
10168dlopen ();
10169 ;
10170 return 0;
10171}
10172_ACEOF
10173rm -f conftest.$ac_objext conftest$ac_exeext
10174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
7357c5b6
AM
10182 { ac_try='test -z "$ac_c_werror_flag"
10183 || test ! -s conftest.err'
d7040cdb
SE
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest$ac_exeext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_cv_lib_dl_dlopen=yes
10196else
10197 echo "$as_me: failed program was:" >&5
10198sed 's/^/| /' conftest.$ac_ext >&5
10199
10200ac_cv_lib_dl_dlopen=no
10201fi
10202rm -f conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204LIBS=$ac_check_lib_save_LIBS
10205fi
10206echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10207echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10208if test $ac_cv_lib_dl_dlopen = yes; then
10209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10210else
10211 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10212echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10213if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216 ac_check_lib_save_LIBS=$LIBS
10217LIBS="-lsvld $LIBS"
10218cat >conftest.$ac_ext <<_ACEOF
10219/* confdefs.h. */
10220_ACEOF
10221cat confdefs.h >>conftest.$ac_ext
10222cat >>conftest.$ac_ext <<_ACEOF
10223/* end confdefs.h. */
10224
10225/* Override any gcc2 internal prototype to avoid an error. */
10226#ifdef __cplusplus
10227extern "C"
10228#endif
10229/* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10231char dlopen ();
10232int
10233main ()
10234{
10235dlopen ();
10236 ;
10237 return 0;
10238}
10239_ACEOF
10240rm -f conftest.$ac_objext conftest$ac_exeext
10241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
7357c5b6
AM
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
d7040cdb
SE
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest$ac_exeext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_lib_svld_dlopen=yes
10263else
10264 echo "$as_me: failed program was:" >&5
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
10267ac_cv_lib_svld_dlopen=no
10268fi
10269rm -f conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271LIBS=$ac_check_lib_save_LIBS
10272fi
10273echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10275if test $ac_cv_lib_svld_dlopen = yes; then
10276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10277else
10278 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10279echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10280if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282else
10283 ac_check_lib_save_LIBS=$LIBS
10284LIBS="-ldld $LIBS"
10285cat >conftest.$ac_ext <<_ACEOF
10286/* confdefs.h. */
10287_ACEOF
10288cat confdefs.h >>conftest.$ac_ext
10289cat >>conftest.$ac_ext <<_ACEOF
10290/* end confdefs.h. */
10291
10292/* Override any gcc2 internal prototype to avoid an error. */
10293#ifdef __cplusplus
10294extern "C"
10295#endif
10296/* We use char because int might match the return type of a gcc2
10297 builtin and then its argument prototype would still apply. */
10298char dld_link ();
10299int
10300main ()
10301{
10302dld_link ();
10303 ;
10304 return 0;
10305}
10306_ACEOF
10307rm -f conftest.$ac_objext conftest$ac_exeext
10308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
7357c5b6
AM
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
d7040cdb
SE
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_cv_lib_dld_dld_link=yes
10330else
10331 echo "$as_me: failed program was:" >&5
10332sed 's/^/| /' conftest.$ac_ext >&5
10333
10334ac_cv_lib_dld_dld_link=no
10335fi
10336rm -f conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338LIBS=$ac_check_lib_save_LIBS
10339fi
10340echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10342if test $ac_cv_lib_dld_dld_link = yes; then
10343 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10344fi
10345
10346
10347fi
10348
10349
10350fi
10351
10352
10353fi
10354
10355
10356fi
10357
10358
10359fi
10360
10361 ;;
10362 esac
10363
10364 if test "x$lt_cv_dlopen" != xno; then
10365 enable_dlopen=yes
20e95c23 10366 else
d7040cdb 10367 enable_dlopen=no
252b5132 10368 fi
5464f5a1 10369
d7040cdb
SE
10370 case $lt_cv_dlopen in
10371 dlopen)
10372 save_CPPFLAGS="$CPPFLAGS"
10373 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10374
10375 save_LDFLAGS="$LDFLAGS"
10376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10377
10378 save_LIBS="$LIBS"
10379 LIBS="$lt_cv_dlopen_libs $LIBS"
10380
10381 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10382echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10383if test "${lt_cv_dlopen_self+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10385else
d7040cdb
SE
10386 if test "$cross_compiling" = yes; then :
10387 lt_cv_dlopen_self=cross
10388else
10389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390 lt_status=$lt_dlunknown
10391 cat > conftest.$ac_ext <<_LT_EOF
7357c5b6 10392#line 10392 "configure"
d7040cdb
SE
10393#include "confdefs.h"
10394
10395#if HAVE_DLFCN_H
10396#include <dlfcn.h>
10397#endif
10398
10399#include <stdio.h>
10400
10401#ifdef RTLD_GLOBAL
10402# define LT_DLGLOBAL RTLD_GLOBAL
10403#else
10404# ifdef DL_GLOBAL
10405# define LT_DLGLOBAL DL_GLOBAL
10406# else
10407# define LT_DLGLOBAL 0
10408# endif
10409#endif
10410
10411/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412 find out it does not work in some platform. */
10413#ifndef LT_DLLAZY_OR_NOW
10414# ifdef RTLD_LAZY
10415# define LT_DLLAZY_OR_NOW RTLD_LAZY
10416# else
10417# ifdef DL_LAZY
10418# define LT_DLLAZY_OR_NOW DL_LAZY
10419# else
10420# ifdef RTLD_NOW
10421# define LT_DLLAZY_OR_NOW RTLD_NOW
10422# else
10423# ifdef DL_NOW
10424# define LT_DLLAZY_OR_NOW DL_NOW
10425# else
10426# define LT_DLLAZY_OR_NOW 0
10427# endif
10428# endif
10429# endif
10430# endif
10431#endif
10432
10433#ifdef __cplusplus
10434extern "C" void exit (int);
10435#endif
10436
10437void fnord() { int i=42;}
10438int main ()
10439{
10440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441 int status = $lt_dlunknown;
10442
10443 if (self)
10444 {
10445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447 /* dlclose (self); */
10448 }
10449 else
10450 puts (dlerror ());
10451
10452 exit (status);
10453}
10454_LT_EOF
10455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456 (eval $ac_link) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10460 (./conftest; exit; ) >&5 2>/dev/null
10461 lt_status=$?
10462 case x$lt_status in
10463 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10464 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10465 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10466 esac
10467 else :
10468 # compilation failed
10469 lt_cv_dlopen_self=no
10470 fi
252b5132 10471fi
d7040cdb 10472rm -fr conftest*
20e95c23 10473
d7040cdb
SE
10474
10475fi
10476echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10477echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10478
10479 if test "x$lt_cv_dlopen_self" = xyes; then
10480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10481 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10482echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10483if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
d7040cdb
SE
10486 if test "$cross_compiling" = yes; then :
10487 lt_cv_dlopen_self_static=cross
10488else
10489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490 lt_status=$lt_dlunknown
10491 cat > conftest.$ac_ext <<_LT_EOF
7357c5b6 10492#line 10492 "configure"
d7040cdb
SE
10493#include "confdefs.h"
10494
10495#if HAVE_DLFCN_H
10496#include <dlfcn.h>
10497#endif
10498
10499#include <stdio.h>
10500
10501#ifdef RTLD_GLOBAL
10502# define LT_DLGLOBAL RTLD_GLOBAL
10503#else
10504# ifdef DL_GLOBAL
10505# define LT_DLGLOBAL DL_GLOBAL
10506# else
10507# define LT_DLGLOBAL 0
10508# endif
10509#endif
10510
10511/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512 find out it does not work in some platform. */
10513#ifndef LT_DLLAZY_OR_NOW
10514# ifdef RTLD_LAZY
10515# define LT_DLLAZY_OR_NOW RTLD_LAZY
10516# else
10517# ifdef DL_LAZY
10518# define LT_DLLAZY_OR_NOW DL_LAZY
10519# else
10520# ifdef RTLD_NOW
10521# define LT_DLLAZY_OR_NOW RTLD_NOW
10522# else
10523# ifdef DL_NOW
10524# define LT_DLLAZY_OR_NOW DL_NOW
10525# else
10526# define LT_DLLAZY_OR_NOW 0
10527# endif
10528# endif
10529# endif
10530# endif
10531#endif
10532
10533#ifdef __cplusplus
10534extern "C" void exit (int);
10535#endif
10536
10537void fnord() { int i=42;}
10538int main ()
10539{
10540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541 int status = $lt_dlunknown;
10542
10543 if (self)
10544 {
10545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10546 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547 /* dlclose (self); */
10548 }
10549 else
10550 puts (dlerror ());
10551
10552 exit (status);
10553}
10554_LT_EOF
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556 (eval $ac_link) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560 (./conftest; exit; ) >&5 2>/dev/null
10561 lt_status=$?
10562 case x$lt_status in
10563 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10564 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10565 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10566 esac
10567 else :
10568 # compilation failed
10569 lt_cv_dlopen_self_static=no
10570 fi
10571fi
10572rm -fr conftest*
10573
10574
10575fi
10576echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10577echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10578 fi
10579
10580 CPPFLAGS="$save_CPPFLAGS"
10581 LDFLAGS="$save_LDFLAGS"
10582 LIBS="$save_LIBS"
10583 ;;
10584 esac
10585
10586 case $lt_cv_dlopen_self in
10587 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10588 *) enable_dlopen_self=unknown ;;
10589 esac
10590
10591 case $lt_cv_dlopen_self_static in
10592 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10593 *) enable_dlopen_self_static=unknown ;;
10594 esac
10595fi
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613striplib=
10614old_striplib=
10615echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10616echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10617if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10618 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10619 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10620 echo "$as_me:$LINENO: result: yes" >&5
10621echo "${ECHO_T}yes" >&6
10622else
10623# FIXME - insert some real tests, host_os isn't really good enough
10624 case $host_os in
10625 darwin*)
10626 if test -n "$STRIP" ; then
10627 striplib="$STRIP -x"
10628 old_striplib="$STRIP -S"
10629 echo "$as_me:$LINENO: result: yes" >&5
10630echo "${ECHO_T}yes" >&6
10631 else
10632 echo "$as_me:$LINENO: result: no" >&5
10633echo "${ECHO_T}no" >&6
10634 fi
20e95c23
DJ
10635 ;;
10636 *)
d7040cdb
SE
10637 echo "$as_me:$LINENO: result: no" >&5
10638echo "${ECHO_T}no" >&6
10639 ;;
10640 esac
10641fi
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654 # Report which library types will actually be built
10655 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10656echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10657 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10658echo "${ECHO_T}$can_build_shared" >&6
10659
10660 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10661echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10662 test "$can_build_shared" = "no" && enable_shared=no
10663
10664 # On AIX, shared libraries and static libraries use the same namespace, and
10665 # are all built from PIC.
10666 case $host_os in
10667 aix3*)
10668 test "$enable_shared" = yes && enable_static=no
10669 if test -n "$RANLIB"; then
10670 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10671 postinstall_cmds='$RANLIB $lib'
10672 fi
10673 ;;
10674
e81819a5 10675 aix[4-9]*)
d7040cdb
SE
10676 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10677 test "$enable_shared" = yes && enable_static=no
10678 fi
20e95c23 10679 ;;
d7040cdb
SE
10680 esac
10681 echo "$as_me:$LINENO: result: $enable_shared" >&5
10682echo "${ECHO_T}$enable_shared" >&6
10683
10684 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10685echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10686 # Make sure either enable_shared or enable_static is yes.
10687 test "$enable_shared" = yes || enable_static=yes
10688 echo "$as_me:$LINENO: result: $enable_static" >&5
10689echo "${ECHO_T}$enable_static" >&6
10690
10691
10692
10693
10694fi
10695ac_ext=c
10696ac_cpp='$CPP $CPPFLAGS'
10697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10699ac_compiler_gnu=$ac_cv_c_compiler_gnu
10700
10701CC="$lt_save_CC"
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715 ac_config_commands="$ac_config_commands libtool"
10716
10717
10718
10719
10720# Only expand once:
10721
10722
10723
10724# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10725if test "${enable_64_bit_bfd+set}" = set; then
10726 enableval="$enable_64_bit_bfd"
10727 case "${enableval}" in
10728 yes) want64=true ;;
10729 no) want64=false ;;
10730 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10731echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10732 { (exit 1); exit 1; }; } ;;
10733esac
10734else
10735 want64=false
504b7d20
NC
10736fi;
10737# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
10738if test "${enable_targets+set}" = set; then
10739 enableval="$enable_targets"
10740 case "${enableval}" in
10741 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10742echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10743 { (exit 1); exit 1; }; }
10744 ;;
10745 no) enable_targets= ;;
10746 *) enable_targets=$enableval ;;
10747esac
504b7d20
NC
10748fi;
10749# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
d7040cdb
SE
10750if test "${enable_commonbfdlib+set}" = set; then
10751 enableval="$enable_commonbfdlib"
10752 case "${enableval}" in
10753 yes) commonbfdlib=true ;;
10754 no) commonbfdlib=false ;;
10755 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10756echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10757 { (exit 1); exit 1; }; } ;;
10758esac
10759fi;
504b7d20 10760
d7040cdb
SE
10761# Check whether --with-mmap or --without-mmap was given.
10762if test "${with_mmap+set}" = set; then
10763 withval="$with_mmap"
10764 case "${withval}" in
10765 yes) want_mmap=true ;;
10766 no) want_mmap=false ;;
10767 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10768echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10769 { (exit 1); exit 1; }; } ;;
20e95c23 10770esac
252b5132 10771else
d7040cdb
SE
10772 want_mmap=false
10773fi;
10774# Check whether --enable-secureplt or --disable-secureplt was given.
10775if test "${enable_secureplt+set}" = set; then
10776 enableval="$enable_secureplt"
10777 case "${enableval}" in
10778 yes) use_secureplt=true ;;
10779 no) use_secureplt=false ;;
10780 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10781echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10782 { (exit 1); exit 1; }; } ;;
10783esac
252b5132 10784else
d7040cdb
SE
10785 use_secureplt=false
10786fi; if test $use_secureplt = true; then
10787
10788cat >>confdefs.h <<\_ACEOF
10789#define USE_SECUREPLT 1
10790_ACEOF
5464f5a1 10791
252b5132 10792fi
20e95c23 10793
0d4a1476
AS
10794DEBUGDIR=${libdir}/debug
10795
0d4a1476
AS
10796# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10797if test "${with_separate_debug_dir+set}" = set; then
10798 withval="$with_separate_debug_dir"
10799 DEBUGDIR="${withval}"
10800fi;
10801
10802
504b7d20
NC
10803# Check to see if we should allow the generation of
10804# symbols with the ELF standard's STT_COMMON type.
10805# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10806if test "${enable_elf_stt_common+set}" = set; then
10807 enableval="$enable_elf_stt_common"
10808 case "${enableval}" in
10809 yes) want_elf_stt_common=true ;;
10810 no) want_elf_stt_common=false ;;
10811 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10812echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10813 { (exit 1); exit 1; }; } ;;
10814 esac
10815else
10816 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
10817# test whether the loader supports the STT_COMMON type, but that would
10818# mean that built binaries could not be exported to older systems where
10819# the loader does not support it. So by default we always choose to
10820# disable this feature.
504b7d20 10821 want_elf_stt_common=false
504b7d20
NC
10822fi; if test $want_elf_stt_common = true; then
10823
10824cat >>confdefs.h <<\_ACEOF
10825#define USE_STT_COMMON 1
10826_ACEOF
10827
10828fi
10829
10830
d7040cdb 10831
d7040cdb
SE
10832# Check whether --with-pkgversion or --without-pkgversion was given.
10833if test "${with_pkgversion+set}" = set; then
10834 withval="$with_pkgversion"
10835 case "$withval" in
10836 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10837echo "$as_me: error: package version not specified" >&2;}
10838 { (exit 1); exit 1; }; } ;;
10839 no) PKGVERSION= ;;
10840 *) PKGVERSION="($withval) " ;;
10841 esac
252b5132 10842else
d7040cdb 10843 PKGVERSION="(GNU Binutils) "
252b5132 10844
d7040cdb 10845fi;
20e95c23
DJ
10846
10847
5464f5a1 10848
20e95c23 10849
d7040cdb
SE
10850# Check whether --with-bugurl or --without-bugurl was given.
10851if test "${with_bugurl+set}" = set; then
10852 withval="$with_bugurl"
10853 case "$withval" in
10854 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10855echo "$as_me: error: bug URL not specified" >&2;}
10856 { (exit 1); exit 1; }; } ;;
10857 no) BUGURL=
10858 ;;
10859 *) BUGURL="$withval"
10860 ;;
10861 esac
252b5132 10862else
d7040cdb
SE
10863 BUGURL="http://www.sourceware.org/bugzilla/"
10864
10865fi;
10866 case ${BUGURL} in
10867 "")
10868 REPORT_BUGS_TO=
10869 REPORT_BUGS_TEXI=
20e95c23
DJ
10870 ;;
10871 *)
d7040cdb
SE
10872 REPORT_BUGS_TO="<$BUGURL>"
10873 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 10874 ;;
d7040cdb
SE
10875 esac;
10876
10877
10878
10879
10880
10881GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10882
10883# Check whether --enable-werror or --disable-werror was given.
10884if test "${enable_werror+set}" = set; then
10885 enableval="$enable_werror"
10886 case "${enableval}" in
10887 yes | y) ERROR_ON_WARNING="yes" ;;
10888 no | n) ERROR_ON_WARNING="no" ;;
10889 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10890echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10891 { (exit 1); exit 1; }; } ;;
10892 esac
10893fi;
10894
bb8541b9
L
10895# Enable -Wno-format by default when using gcc on mingw
10896case "${host}" in
10897 *-*-mingw32*)
10898 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10899 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10900 fi
10901 ;;
10902 *) ;;
10903esac
10904
d7040cdb
SE
10905# Enable -Werror by default when using gcc
10906if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10907 ERROR_ON_WARNING=yes
10908fi
10909
10910NO_WERROR=
10911if test "${ERROR_ON_WARNING}" = yes ; then
10912 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10913 NO_WERROR="-Wno-error"
10914fi
10915
10916if test "${GCC}" = yes ; then
10917 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10918fi
10919
10920# Check whether --enable-build-warnings or --disable-build-warnings was given.
10921if test "${enable_build_warnings+set}" = set; then
10922 enableval="$enable_build_warnings"
10923 case "${enableval}" in
10924 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10925 no) if test "${GCC}" = yes ; then
10926 WARN_CFLAGS="-w"
10927 fi;;
10928 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10929 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10930 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10931 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10932 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 10933esac
d7040cdb
SE
10934fi;
10935
10936if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10937 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 10938fi
d7040cdb
SE
10939
10940
10941
10942
10943
10944 ac_config_headers="$ac_config_headers config.h:config.in"
10945
10946
10947if test -z "$target" ; then
10948 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10949echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10950 { (exit 1); exit 1; }; }
20e95c23
DJ
10951fi
10952
d7040cdb
SE
10953echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10954echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10955 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10956if test "${enable_maintainer_mode+set}" = set; then
10957 enableval="$enable_maintainer_mode"
10958 USE_MAINTAINER_MODE=$enableval
10959else
10960 USE_MAINTAINER_MODE=no
10961fi;
10962 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10963echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
10964
10965
d7040cdb
SE
10966if test $USE_MAINTAINER_MODE = yes; then
10967 MAINTAINER_MODE_TRUE=
10968 MAINTAINER_MODE_FALSE='#'
10969else
10970 MAINTAINER_MODE_TRUE='#'
10971 MAINTAINER_MODE_FALSE=
6be7c12c 10972fi
5464f5a1 10973
d7040cdb
SE
10974 MAINT=$MAINTAINER_MODE_TRUE
10975
10976
10977
10978
10979if false; then
10980 GENINSRC_NEVER_TRUE=
10981 GENINSRC_NEVER_FALSE='#'
20e95c23 10982else
d7040cdb
SE
10983 GENINSRC_NEVER_TRUE='#'
10984 GENINSRC_NEVER_FALSE=
5464f5a1 10985fi
5464f5a1 10986
d7040cdb
SE
10987 case ${build_alias} in
10988 "") build_noncanonical=${build} ;;
10989 *) build_noncanonical=${build_alias} ;;
20e95c23 10990esac
d7040cdb
SE
10991
10992 case ${host_alias} in
10993 "") host_noncanonical=${build_noncanonical} ;;
10994 *) host_noncanonical=${host_alias} ;;
10995esac
10996
10997 case ${target_alias} in
10998 "") target_noncanonical=${host_noncanonical} ;;
10999 *) target_noncanonical=${target_alias} ;;
11000esac
11001
11002echo "$as_me:$LINENO: checking whether to install libbfd" >&5
11003echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
11004 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
11005if test "${enable_install_libbfd+set}" = set; then
11006 enableval="$enable_install_libbfd"
11007 install_libbfd_p=$enableval
252b5132 11008else
d7040cdb
SE
11009 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11010 install_libbfd_p=yes
11011 else
11012 install_libbfd_p=no
11013 fi
11014fi;
11015 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
11016echo "${ECHO_T}$install_libbfd_p" >&6
11017
11018
11019if test $install_libbfd_p = yes; then
11020 INSTALL_LIBBFD_TRUE=
11021 INSTALL_LIBBFD_FALSE='#'
11022else
11023 INSTALL_LIBBFD_TRUE='#'
11024 INSTALL_LIBBFD_FALSE=
5464f5a1 11025fi
5464f5a1 11026
d7040cdb 11027 # Need _noncanonical variables for this.
5464f5a1 11028
5464f5a1 11029
d7040cdb
SE
11030
11031
11032 # libbfd.a is a host library containing target dependent code
11033 bfdlibdir='$(libdir)'
11034 bfdincludedir='$(includedir)'
11035 if test "${host}" != "${target}"; then
11036 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11037 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 11038 fi
6be7c12c 11039
5464f5a1 11040
5464f5a1
NN
11041
11042
5464f5a1 11043
ac48eca1 11044
d7040cdb
SE
11045host64=false
11046target64=false
11047bfd_default_target_size=32
252b5132 11048
d7040cdb 11049# host stuff:
20e95c23 11050
041a1845 11051ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
d7040cdb
SE
11052# If we haven't got the data from the intl directory,
11053# assume NLS is disabled.
11054USE_NLS=no
11055LIBINTL=
11056LIBINTL_DEP=
11057INCINTL=
11058XGETTEXT=
11059GMSGFMT=
11060POSUB=
11061
11062if test -f ../intl/config.intl; then
11063 . ../intl/config.intl
252b5132 11064fi
d7040cdb
SE
11065echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11066echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11067if test x"$USE_NLS" != xyes; then
11068 echo "$as_me:$LINENO: result: no" >&5
11069echo "${ECHO_T}no" >&6
11070else
11071 echo "$as_me:$LINENO: result: yes" >&5
11072echo "${ECHO_T}yes" >&6
5464f5a1 11073
d7040cdb
SE
11074cat >>confdefs.h <<\_ACEOF
11075#define ENABLE_NLS 1
11076_ACEOF
252b5132 11077
6be7c12c 11078
d7040cdb
SE
11079 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11080echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11081 # Look for .po and .gmo files in the source directory.
11082 CATALOGS=
11083 XLINGUAS=
11084 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11085 # If there aren't any .gmo files the shell will give us the
11086 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11087 # weeded out.
11088 case "$cat" in *\**)
11089 continue;;
11090 esac
11091 # The quadruple backslash is collapsed to a double backslash
11092 # by the backticks, then collapsed again by the double quotes,
11093 # leaving us with one backslash in the sed expression (right
11094 # before the dot that mustn't act as a wildcard).
11095 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11096 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11097 # The user is allowed to set LINGUAS to a list of languages to
11098 # install catalogs for. If it's empty that means "all of them."
11099 if test "x$LINGUAS" = x; then
11100 CATALOGS="$CATALOGS $cat"
11101 XLINGUAS="$XLINGUAS $lang"
11102 else
11103 case "$LINGUAS" in *$lang*)
11104 CATALOGS="$CATALOGS $cat"
11105 XLINGUAS="$XLINGUAS $lang"
11106 ;;
11107 esac
11108 fi
11109 done
11110 LINGUAS="$XLINGUAS"
11111 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11112echo "${ECHO_T}$LINGUAS" >&6
11113
252b5132 11114
d7040cdb 11115 DATADIRNAME=share
252b5132 11116
d7040cdb 11117 INSTOBJEXT=.mo
5464f5a1 11118
d7040cdb 11119 GENCAT=gencat
20e95c23 11120
d7040cdb 11121 CATOBJEXT=.gmo
5464f5a1 11122
20e95c23 11123fi
5464f5a1 11124
d7040cdb
SE
11125 MKINSTALLDIRS=
11126 if test -n "$ac_aux_dir"; then
11127 case "$ac_aux_dir" in
11128 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11129 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11130 esac
11131 fi
11132 if test -z "$MKINSTALLDIRS"; then
11133 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 11134 fi
5464f5a1 11135
5464f5a1 11136
d7040cdb
SE
11137
11138 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11139echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11140 # Check whether --enable-nls or --disable-nls was given.
11141if test "${enable_nls+set}" = set; then
11142 enableval="$enable_nls"
11143 USE_NLS=$enableval
252b5132 11144else
d7040cdb
SE
11145 USE_NLS=yes
11146fi;
11147 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11148echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 11149
252b5132 11150
5464f5a1 11151
252b5132 11152
d7040cdb
SE
11153
11154
11155# Prepare PATH_SEPARATOR.
11156# The user is always right.
11157if test "${PATH_SEPARATOR+set}" != set; then
11158 echo "#! /bin/sh" >conf$$.sh
11159 echo "exit 0" >>conf$$.sh
11160 chmod +x conf$$.sh
11161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11162 PATH_SEPARATOR=';'
20e95c23 11163 else
d7040cdb 11164 PATH_SEPARATOR=:
20e95c23 11165 fi
d7040cdb
SE
11166 rm -f conf$$.sh
11167fi
11168
11169# Find out how to test for executable files. Don't use a zero-byte file,
11170# as systems may use methods other than mode bits to determine executability.
11171cat >conf$$.file <<_ASEOF
11172#! /bin/sh
11173exit 0
11174_ASEOF
11175chmod +x conf$$.file
11176if test -x conf$$.file >/dev/null 2>&1; then
11177 ac_executable_p="test -x"
20e95c23 11178else
d7040cdb 11179 ac_executable_p="test -f"
20e95c23 11180fi
d7040cdb 11181rm -f conf$$.file
5464f5a1 11182
d7040cdb
SE
11183# Extract the first word of "msgfmt", so it can be a program name with args.
11184set dummy msgfmt; ac_word=$2
11185echo "$as_me:$LINENO: checking for $ac_word" >&5
11186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11187if test "${ac_cv_path_MSGFMT+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189else
11190 case "$MSGFMT" in
11191 [\\/]* | ?:[\\/]*)
11192 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11193 ;;
11194 *)
11195 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11196 for ac_dir in $PATH; do
11197 IFS="$ac_save_IFS"
11198 test -z "$ac_dir" && ac_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11201 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11202 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11203 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11204 break 2
11205 fi
11206 fi
11207 done
11208 done
11209 IFS="$ac_save_IFS"
11210 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11211 ;;
11212esac
5464f5a1 11213fi
d7040cdb
SE
11214MSGFMT="$ac_cv_path_MSGFMT"
11215if test "$MSGFMT" != ":"; then
11216 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11217echo "${ECHO_T}$MSGFMT" >&6
20e95c23 11218else
d7040cdb
SE
11219 echo "$as_me:$LINENO: result: no" >&5
11220echo "${ECHO_T}no" >&6
252b5132 11221fi
d7040cdb
SE
11222
11223 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11224set dummy gmsgfmt; ac_word=$2
11225echo "$as_me:$LINENO: checking for $ac_word" >&5
11226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11227if test "${ac_cv_path_GMSGFMT+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11229else
d7040cdb
SE
11230 case $GMSGFMT in
11231 [\\/]* | ?:[\\/]*)
11232 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11233 ;;
11234 *)
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236for as_dir in $PATH
11237do
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11242 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11245 fi
11246done
11247done
5464f5a1 11248
d7040cdb
SE
11249 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11250 ;;
11251esac
252b5132 11252fi
d7040cdb 11253GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 11254
d7040cdb
SE
11255if test -n "$GMSGFMT"; then
11256 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11257echo "${ECHO_T}$GMSGFMT" >&6
252b5132 11258else
d7040cdb
SE
11259 echo "$as_me:$LINENO: result: no" >&5
11260echo "${ECHO_T}no" >&6
252b5132
RH
11261fi
11262
20e95c23
DJ
11263
11264
d7040cdb
SE
11265# Prepare PATH_SEPARATOR.
11266# The user is always right.
11267if test "${PATH_SEPARATOR+set}" != set; then
11268 echo "#! /bin/sh" >conf$$.sh
11269 echo "exit 0" >>conf$$.sh
11270 chmod +x conf$$.sh
11271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11272 PATH_SEPARATOR=';'
11273 else
11274 PATH_SEPARATOR=:
11275 fi
11276 rm -f conf$$.sh
252b5132 11277fi
20e95c23 11278
d7040cdb
SE
11279# Find out how to test for executable files. Don't use a zero-byte file,
11280# as systems may use methods other than mode bits to determine executability.
11281cat >conf$$.file <<_ASEOF
11282#! /bin/sh
11283exit 0
11284_ASEOF
11285chmod +x conf$$.file
11286if test -x conf$$.file >/dev/null 2>&1; then
11287 ac_executable_p="test -x"
11288else
11289 ac_executable_p="test -f"
11290fi
11291rm -f conf$$.file
252b5132 11292
d7040cdb
SE
11293# Extract the first word of "xgettext", so it can be a program name with args.
11294set dummy xgettext; ac_word=$2
11295echo "$as_me:$LINENO: checking for $ac_word" >&5
11296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299else
d7040cdb
SE
11300 case "$XGETTEXT" in
11301 [\\/]* | ?:[\\/]*)
11302 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11303 ;;
11304 *)
11305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11306 for ac_dir in $PATH; do
11307 IFS="$ac_save_IFS"
11308 test -z "$ac_dir" && ac_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11311 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11312 (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
11313 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11314 break 2
11315 fi
11316 fi
11317 done
11318 done
11319 IFS="$ac_save_IFS"
11320 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11321 ;;
11322esac
11323fi
11324XGETTEXT="$ac_cv_path_XGETTEXT"
11325if test "$XGETTEXT" != ":"; then
11326 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11327echo "${ECHO_T}$XGETTEXT" >&6
252b5132 11328else
d7040cdb
SE
11329 echo "$as_me:$LINENO: result: no" >&5
11330echo "${ECHO_T}no" >&6
252b5132
RH
11331fi
11332
d7040cdb 11333 rm -f messages.po
5464f5a1 11334
252b5132 11335
d7040cdb
SE
11336# Prepare PATH_SEPARATOR.
11337# The user is always right.
11338if test "${PATH_SEPARATOR+set}" != set; then
11339 echo "#! /bin/sh" >conf$$.sh
11340 echo "exit 0" >>conf$$.sh
11341 chmod +x conf$$.sh
11342 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11343 PATH_SEPARATOR=';'
11344 else
11345 PATH_SEPARATOR=:
11346 fi
11347 rm -f conf$$.sh
252b5132
RH
11348fi
11349
d7040cdb
SE
11350# Find out how to test for executable files. Don't use a zero-byte file,
11351# as systems may use methods other than mode bits to determine executability.
11352cat >conf$$.file <<_ASEOF
11353#! /bin/sh
11354exit 0
11355_ASEOF
11356chmod +x conf$$.file
11357if test -x conf$$.file >/dev/null 2>&1; then
11358 ac_executable_p="test -x"
5464f5a1 11359else
d7040cdb 11360 ac_executable_p="test -f"
20e95c23 11361fi
d7040cdb 11362rm -f conf$$.file
5464f5a1 11363
d7040cdb
SE
11364# Extract the first word of "msgmerge", so it can be a program name with args.
11365set dummy msgmerge; ac_word=$2
11366echo "$as_me:$LINENO: checking for $ac_word" >&5
11367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11368if test "${ac_cv_path_MSGMERGE+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371 case "$MSGMERGE" in
11372 [\\/]* | ?:[\\/]*)
11373 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11374 ;;
11375 *)
11376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11377 for ac_dir in $PATH; do
11378 IFS="$ac_save_IFS"
11379 test -z "$ac_dir" && ac_dir=.
11380 for ac_exec_ext in '' $ac_executable_extensions; do
11381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11382 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11383 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11384 break 2
11385 fi
11386 fi
11387 done
11388 done
11389 IFS="$ac_save_IFS"
11390 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11391 ;;
11392esac
5464f5a1 11393fi
d7040cdb
SE
11394MSGMERGE="$ac_cv_path_MSGMERGE"
11395if test "$MSGMERGE" != ":"; then
11396 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11397echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 11398else
d7040cdb
SE
11399 echo "$as_me:$LINENO: result: no" >&5
11400echo "${ECHO_T}no" >&6
11401fi
20e95c23 11402
5464f5a1 11403
d7040cdb
SE
11404 if test "$GMSGFMT" != ":"; then
11405 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11406 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11407 : ;
11408 else
11409 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11410 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11411echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11412 GMSGFMT=":"
11413 fi
11414 fi
252b5132 11415
d7040cdb
SE
11416 if test "$XGETTEXT" != ":"; then
11417 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11418 (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
11419 : ;
11420 else
11421 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11422echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11423 XGETTEXT=":"
11424 fi
11425 rm -f messages.po
11426 fi
6be7c12c 11427
d7040cdb 11428 ac_config_commands="$ac_config_commands default-1"
5464f5a1 11429
252b5132 11430
5464f5a1 11431
d7040cdb
SE
11432# Permit host specific settings.
11433. ${srcdir}/configure.host
11434
11435
11436# Find a good install program. We prefer a C program (faster),
11437# so one script is as good as another. But avoid the broken or
11438# incompatible versions:
11439# SysV /etc/install, /usr/sbin/install
11440# SunOS /usr/etc/install
11441# IRIX /sbin/install
11442# AIX /bin/install
11443# AmigaOS /C/install, which installs bootblocks on floppy discs
11444# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11445# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11446# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11447# OS/2's system install, which has a completely different semantic
11448# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11449# Reject install programs that cannot install multiple files.
d7040cdb
SE
11450echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11451echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11452if test -z "$INSTALL"; then
11453if test "${ac_cv_path_install+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455else
11456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457for as_dir in $PATH
11458do
11459 IFS=$as_save_IFS
11460 test -z "$as_dir" && as_dir=.
11461 # Account for people who put trailing slashes in PATH elements.
11462case $as_dir/ in
11463 ./ | .// | /cC/* | \
11464 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11465 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11466 /usr/ucb/* ) ;;
11467 *)
11468 # OSF1 and SCO ODT 3.0 have their own names for install.
11469 # Don't use installbsd from OSF since it installs stuff as root
11470 # by default.
11471 for ac_prog in ginstall scoinst install; do
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11474 if test $ac_prog = install &&
11475 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11476 # AIX install. It has an incompatible calling convention.
11477 :
11478 elif test $ac_prog = install &&
11479 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11480 # program-specific install script used by HP pwplus--don't use.
11481 :
11482 else
58c85be7
RW
11483 rm -rf conftest.one conftest.two conftest.dir
11484 echo one > conftest.one
11485 echo two > conftest.two
11486 mkdir conftest.dir
11487 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11488 test -s conftest.one && test -s conftest.two &&
11489 test -s conftest.dir/conftest.one &&
11490 test -s conftest.dir/conftest.two
11491 then
11492 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11493 break 3
11494 fi
d7040cdb
SE
11495 fi
11496 fi
11497 done
11498 done
11499 ;;
11500esac
11501done
11502
58c85be7 11503rm -rf conftest.one conftest.two conftest.dir
252b5132 11504
d7040cdb
SE
11505fi
11506 if test "${ac_cv_path_install+set}" = set; then
11507 INSTALL=$ac_cv_path_install
11508 else
58c85be7
RW
11509 # As a last resort, use the slow shell script. Don't cache a
11510 # value for INSTALL within a source directory, because that will
d7040cdb 11511 # break other packages using the cache if that directory is
58c85be7 11512 # removed, or if the value is a relative name.
d7040cdb
SE
11513 INSTALL=$ac_install_sh
11514 fi
11515fi
11516echo "$as_me:$LINENO: result: $INSTALL" >&5
11517echo "${ECHO_T}$INSTALL" >&6
5464f5a1 11518
d7040cdb
SE
11519# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11520# It thinks the first close brace ends the variable substitution.
11521test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 11522
d7040cdb 11523test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 11524
d7040cdb 11525test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 11526
252b5132 11527
d7040cdb 11528BFD_HOST_64BIT_LONG=0
d2df793a 11529BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
11530BFD_HOST_64_BIT_DEFINED=0
11531BFD_HOST_64_BIT=
11532BFD_HOST_U_64_BIT=
d2df793a 11533BFD_HOSTPTR_T="unsigned long"
6be7c12c 11534
d7040cdb
SE
11535echo "$as_me:$LINENO: checking for long long" >&5
11536echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 11537if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 11538 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11539else
5464f5a1
NN
11540 cat >conftest.$ac_ext <<_ACEOF
11541/* confdefs.h. */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h. */
2ba49b59 11546$ac_includes_default
5464f5a1
NN
11547int
11548main ()
11549{
2ba49b59
KC
11550if ((long long *) 0)
11551 return 0;
11552if (sizeof (long long))
11553 return 0;
5464f5a1
NN
11554 ;
11555 return 0;
11556}
11557_ACEOF
11558rm -f conftest.$ac_objext
11559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
7357c5b6
AM
11567 { ac_try='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
5464f5a1
NN
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
2ba49b59 11580 ac_cv_type_long_long=yes
6726e1ea 11581else
5464f5a1
NN
11582 echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
2ba49b59 11585ac_cv_type_long_long=no
6726e1ea 11586fi
5464f5a1 11587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 11588fi
2ba49b59
KC
11589echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11590echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 11591
2ba49b59
KC
11592echo "$as_me:$LINENO: checking size of long long" >&5
11593echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11594if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 11595 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11596else
2ba49b59
KC
11597 if test "$ac_cv_type_long_long" = yes; then
11598 # The cast to unsigned long works around a bug in the HP C Compiler
11599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11601 # This bug is HP SR number 8606223364.
11602 if test "$cross_compiling" = yes; then
11603 # Depending upon the size, compute the lo and hi bounds.
11604cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
2ba49b59
KC
11610$ac_includes_default
11611int
11612main ()
11613{
11614static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11615test_array [0] = 0
6726e1ea 11616
2ba49b59
KC
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext
11622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
7357c5b6
AM
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
2ba49b59
KC
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_lo=0 ac_mid=0
11644 while :; do
11645 cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
11651$ac_includes_default
5464f5a1
NN
11652int
11653main ()
11654{
2ba49b59
KC
11655static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11656test_array [0] = 0
11657
5464f5a1
NN
11658 ;
11659 return 0;
11660}
11661_ACEOF
11662rm -f conftest.$ac_objext
11663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11664 (eval $ac_compile) 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
7357c5b6
AM
11671 { ac_try='test -z "$ac_c_werror_flag"
11672 || test ! -s conftest.err'
5464f5a1
NN
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
2ba49b59 11684 ac_hi=$ac_mid; break
6726e1ea 11685else
5464f5a1
NN
11686 echo "$as_me: failed program was:" >&5
11687sed 's/^/| /' conftest.$ac_ext >&5
11688
2ba49b59
KC
11689ac_lo=`expr $ac_mid + 1`
11690 if test $ac_lo -le $ac_mid; then
11691 ac_lo= ac_hi=
11692 break
11693 fi
11694 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 11695fi
5464f5a1 11696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 11697 done
252b5132 11698else
2ba49b59
KC
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 11701
5464f5a1
NN
11702cat >conftest.$ac_ext <<_ACEOF
11703/* confdefs.h. */
11704_ACEOF
11705cat confdefs.h >>conftest.$ac_ext
11706cat >>conftest.$ac_ext <<_ACEOF
11707/* end confdefs.h. */
11708$ac_includes_default
2ba49b59
KC
11709int
11710main ()
11711{
11712static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11713test_array [0] = 0
11714
11715 ;
11716 return 0;
11717}
5464f5a1
NN
11718_ACEOF
11719rm -f conftest.$ac_objext
11720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11721 (eval $ac_compile) 2>conftest.er1
11722 ac_status=$?
11723 grep -v '^ *+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
7357c5b6
AM
11728 { ac_try='test -z "$ac_c_werror_flag"
11729 || test ! -s conftest.err'
5464f5a1
NN
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest.$ac_objext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
2ba49b59
KC
11741 ac_hi=-1 ac_mid=-1
11742 while :; do
11743 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
2ba49b59
KC
11749$ac_includes_default
11750int
11751main ()
11752{
11753static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11754test_array [0] = 0
11755
11756 ;
11757 return 0;
11758}
5464f5a1 11759_ACEOF
2ba49b59
KC
11760rm -f conftest.$ac_objext
11761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11762 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 11768 (exit $ac_status); } &&
7357c5b6
AM
11769 { ac_try='test -z "$ac_c_werror_flag"
11770 || test ! -s conftest.err'
2ba49b59
KC
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; } &&
11776 { ac_try='test -s conftest.$ac_objext'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 ac_lo=$ac_mid; break
252b5132 11783else
2ba49b59
KC
11784 echo "$as_me: failed program was:" >&5
11785sed 's/^/| /' conftest.$ac_ext >&5
11786
11787ac_hi=`expr '(' $ac_mid ')' - 1`
11788 if test $ac_mid -le $ac_hi; then
11789 ac_lo= ac_hi=
11790 break
11791 fi
11792 ac_mid=`expr 2 '*' $ac_mid`
252b5132 11793fi
2ba49b59
KC
11794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11795 done
5464f5a1
NN
11796else
11797 echo "$as_me: failed program was:" >&5
11798sed 's/^/| /' conftest.$ac_ext >&5
11799
2ba49b59 11800ac_lo= ac_hi=
252b5132 11801fi
2ba49b59
KC
11802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11803fi
11804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11805# Binary search between lo and hi bounds.
11806while test "x$ac_lo" != "x$ac_hi"; do
11807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11808 cat >conftest.$ac_ext <<_ACEOF
11809/* confdefs.h. */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h. */
11814$ac_includes_default
11815int
11816main ()
11817{
11818static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11819test_array [0] = 0
5464f5a1 11820
2ba49b59
KC
11821 ;
11822 return 0;
11823}
5464f5a1
NN
11824_ACEOF
11825rm -f conftest.$ac_objext
11826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11827 (eval $ac_compile) 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
7357c5b6
AM
11834 { ac_try='test -z "$ac_c_werror_flag"
11835 || test ! -s conftest.err'
5464f5a1
NN
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } &&
11841 { ac_try='test -s conftest.$ac_objext'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; }; then
2ba49b59 11847 ac_hi=$ac_mid
5464f5a1
NN
11848else
11849 echo "$as_me: failed program was:" >&5
11850sed 's/^/| /' conftest.$ac_ext >&5
11851
2ba49b59 11852ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
11853fi
11854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
11855done
11856case $ac_lo in
11857?*) ac_cv_sizeof_long_long=$ac_lo;;
7357c5b6
AM
11858'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11859echo "$as_me: error: in \`$ac_pwd':" >&2;}
11860{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
2ba49b59
KC
11861See \`config.log' for more details." >&5
11862echo "$as_me: error: cannot compute sizeof (long long), 77
11863See \`config.log' for more details." >&2;}
7357c5b6 11864 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
11865esac
11866else
11867 if test "$cross_compiling" = yes; then
7357c5b6
AM
11868 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11869echo "$as_me: error: in \`$ac_pwd':" >&2;}
11870{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11871See \`config.log' for more details." >&5
11872echo "$as_me: error: cannot run test program while cross compiling
11873See \`config.log' for more details." >&2;}
11874 { (exit 1); exit 1; }; }; }
2ba49b59
KC
11875else
11876 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11877/* confdefs.h. */
11878_ACEOF
11879cat confdefs.h >>conftest.$ac_ext
11880cat >>conftest.$ac_ext <<_ACEOF
11881/* end confdefs.h. */
2ba49b59
KC
11882$ac_includes_default
11883long longval () { return (long) (sizeof (long long)); }
11884unsigned long ulongval () { return (long) (sizeof (long long)); }
11885#include <stdio.h>
11886#include <stdlib.h>
11887int
11888main ()
11889{
11890
11891 FILE *f = fopen ("conftest.val", "w");
11892 if (! f)
11893 exit (1);
11894 if (((long) (sizeof (long long))) < 0)
11895 {
11896 long i = longval ();
11897 if (i != ((long) (sizeof (long long))))
11898 exit (1);
11899 fprintf (f, "%ld\n", i);
11900 }
11901 else
11902 {
11903 unsigned long i = ulongval ();
11904 if (i != ((long) (sizeof (long long))))
11905 exit (1);
11906 fprintf (f, "%lu\n", i);
11907 }
11908 exit (ferror (f) || fclose (f) != 0);
11909
11910 ;
11911 return 0;
11912}
5464f5a1 11913_ACEOF
2ba49b59
KC
11914rm -f conftest$ac_exeext
11915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916 (eval $ac_link) 2>&5
5464f5a1 11917 ac_status=$?
5464f5a1 11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
11919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 11926else
2ba49b59
KC
11927 echo "$as_me: program exited with status $ac_status" >&5
11928echo "$as_me: failed program was:" >&5
5464f5a1
NN
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
2ba49b59 11931( exit $ac_status )
7357c5b6
AM
11932{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11933echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
11934{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11935See \`config.log' for more details." >&5
11936echo "$as_me: error: cannot compute sizeof (long long), 77
11937See \`config.log' for more details." >&2;}
7357c5b6 11938 { (exit 1); exit 1; }; }; }
252b5132 11939fi
2ba49b59
KC
11940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11941fi
11942fi
11943rm -f conftest.val
6be7c12c 11944else
2ba49b59 11945 ac_cv_sizeof_long_long=0
5464f5a1 11946fi
5464f5a1 11947fi
2ba49b59
KC
11948echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11949echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11950cat >>confdefs.h <<_ACEOF
11951#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
11952_ACEOF
11953
5464f5a1 11954
d2df793a
NC
11955echo "$as_me:$LINENO: checking for void *" >&5
11956echo $ECHO_N "checking for void *... $ECHO_C" >&6
11957if test "${ac_cv_type_void_p+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959else
11960 cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h. */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h. */
11966$ac_includes_default
11967int
11968main ()
11969{
11970if ((void * *) 0)
11971 return 0;
11972if (sizeof (void *))
11973 return 0;
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext
11979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11980 (eval $ac_compile) 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
7357c5b6
AM
11987 { ac_try='test -z "$ac_c_werror_flag"
11988 || test ! -s conftest.err'
d2df793a
NC
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest.$ac_objext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_cv_type_void_p=yes
12001else
12002 echo "$as_me: failed program was:" >&5
12003sed 's/^/| /' conftest.$ac_ext >&5
12004
12005ac_cv_type_void_p=no
12006fi
12007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12008fi
12009echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12010echo "${ECHO_T}$ac_cv_type_void_p" >&6
12011
12012echo "$as_me:$LINENO: checking size of void *" >&5
12013echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12014if test "${ac_cv_sizeof_void_p+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016else
12017 if test "$ac_cv_type_void_p" = yes; then
12018 # The cast to unsigned long works around a bug in the HP C Compiler
12019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12021 # This bug is HP SR number 8606223364.
12022 if test "$cross_compiling" = yes; then
12023 # Depending upon the size, compute the lo and hi bounds.
12024cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h. */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h. */
12030$ac_includes_default
12031int
12032main ()
12033{
12034static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12035test_array [0] = 0
12036
12037 ;
12038 return 0;
12039}
12040_ACEOF
12041rm -f conftest.$ac_objext
12042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12043 (eval $ac_compile) 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
7357c5b6
AM
12050 { ac_try='test -z "$ac_c_werror_flag"
12051 || test ! -s conftest.err'
d2df793a
NC
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; } &&
12057 { ac_try='test -s conftest.$ac_objext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_lo=0 ac_mid=0
12064 while :; do
12065 cat >conftest.$ac_ext <<_ACEOF
12066/* confdefs.h. */
12067_ACEOF
12068cat confdefs.h >>conftest.$ac_ext
12069cat >>conftest.$ac_ext <<_ACEOF
12070/* end confdefs.h. */
12071$ac_includes_default
12072int
12073main ()
12074{
12075static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12076test_array [0] = 0
12077
12078 ;
12079 return 0;
12080}
12081_ACEOF
12082rm -f conftest.$ac_objext
12083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084 (eval $ac_compile) 2>conftest.er1
12085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
7357c5b6
AM
12091 { ac_try='test -z "$ac_c_werror_flag"
12092 || test ! -s conftest.err'
d2df793a
NC
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_hi=$ac_mid; break
12105else
12106 echo "$as_me: failed program was:" >&5
12107sed 's/^/| /' conftest.$ac_ext >&5
12108
12109ac_lo=`expr $ac_mid + 1`
12110 if test $ac_lo -le $ac_mid; then
12111 ac_lo= ac_hi=
12112 break
12113 fi
12114 ac_mid=`expr 2 '*' $ac_mid + 1`
12115fi
12116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12117 done
12118else
12119 echo "$as_me: failed program was:" >&5
12120sed 's/^/| /' conftest.$ac_ext >&5
12121
12122cat >conftest.$ac_ext <<_ACEOF
12123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
12128$ac_includes_default
12129int
12130main ()
12131{
12132static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12133test_array [0] = 0
12134
12135 ;
12136 return 0;
12137}
12138_ACEOF
12139rm -f conftest.$ac_objext
12140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141 (eval $ac_compile) 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
7357c5b6
AM
12148 { ac_try='test -z "$ac_c_werror_flag"
12149 || test ! -s conftest.err'
d2df793a
NC
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest.$ac_objext'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12158 ac_status=$?
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12161 ac_hi=-1 ac_mid=-1
12162 while :; do
12163 cat >conftest.$ac_ext <<_ACEOF
12164/* confdefs.h. */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h. */
12169$ac_includes_default
12170int
12171main ()
12172{
12173static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12174test_array [0] = 0
12175
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
7357c5b6
AM
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
d2df793a
NC
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_lo=$ac_mid; break
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
12207ac_hi=`expr '(' $ac_mid ')' - 1`
12208 if test $ac_mid -le $ac_hi; then
12209 ac_lo= ac_hi=
12210 break
12211 fi
12212 ac_mid=`expr 2 '*' $ac_mid`
12213fi
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
12220ac_lo= ac_hi=
12221fi
12222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12223fi
12224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12225# Binary search between lo and hi bounds.
12226while test "x$ac_lo" != "x$ac_hi"; do
12227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12228 cat >conftest.$ac_ext <<_ACEOF
12229/* confdefs.h. */
12230_ACEOF
12231cat confdefs.h >>conftest.$ac_ext
12232cat >>conftest.$ac_ext <<_ACEOF
12233/* end confdefs.h. */
12234$ac_includes_default
12235int
12236main ()
12237{
12238static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12239test_array [0] = 0
12240
12241 ;
12242 return 0;
12243}
12244_ACEOF
12245rm -f conftest.$ac_objext
12246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12247 (eval $ac_compile) 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
7357c5b6
AM
12254 { ac_try='test -z "$ac_c_werror_flag"
12255 || test ! -s conftest.err'
d2df793a
NC
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; } &&
12261 { ac_try='test -s conftest.$ac_objext'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267 ac_hi=$ac_mid
12268else
12269 echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
12272ac_lo=`expr '(' $ac_mid ')' + 1`
12273fi
12274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12275done
12276case $ac_lo in
12277?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
12278'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12279echo "$as_me: error: in \`$ac_pwd':" >&2;}
12280{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d2df793a
NC
12281See \`config.log' for more details." >&5
12282echo "$as_me: error: cannot compute sizeof (void *), 77
12283See \`config.log' for more details." >&2;}
7357c5b6 12284 { (exit 1); exit 1; }; }; } ;;
d2df793a
NC
12285esac
12286else
12287 if test "$cross_compiling" = yes; then
7357c5b6
AM
12288 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12289echo "$as_me: error: in \`$ac_pwd':" >&2;}
12290{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12291See \`config.log' for more details." >&5
12292echo "$as_me: error: cannot run test program while cross compiling
12293See \`config.log' for more details." >&2;}
12294 { (exit 1); exit 1; }; }; }
d2df793a
NC
12295else
12296 cat >conftest.$ac_ext <<_ACEOF
12297/* confdefs.h. */
12298_ACEOF
12299cat confdefs.h >>conftest.$ac_ext
12300cat >>conftest.$ac_ext <<_ACEOF
12301/* end confdefs.h. */
12302$ac_includes_default
12303long longval () { return (long) (sizeof (void *)); }
12304unsigned long ulongval () { return (long) (sizeof (void *)); }
12305#include <stdio.h>
12306#include <stdlib.h>
12307int
12308main ()
12309{
12310
12311 FILE *f = fopen ("conftest.val", "w");
12312 if (! f)
12313 exit (1);
12314 if (((long) (sizeof (void *))) < 0)
12315 {
12316 long i = longval ();
12317 if (i != ((long) (sizeof (void *))))
12318 exit (1);
12319 fprintf (f, "%ld\n", i);
12320 }
12321 else
12322 {
12323 unsigned long i = ulongval ();
12324 if (i != ((long) (sizeof (void *))))
12325 exit (1);
12326 fprintf (f, "%lu\n", i);
12327 }
12328 exit (ferror (f) || fclose (f) != 0);
12329
12330 ;
12331 return 0;
12332}
12333_ACEOF
12334rm -f conftest$ac_exeext
12335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_sizeof_void_p=`cat conftest.val`
12346else
12347 echo "$as_me: program exited with status $ac_status" >&5
12348echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
12350
12351( exit $ac_status )
7357c5b6
AM
12352{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12353echo "$as_me: error: in \`$ac_pwd':" >&2;}
d2df793a
NC
12354{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12355See \`config.log' for more details." >&5
12356echo "$as_me: error: cannot compute sizeof (void *), 77
12357See \`config.log' for more details." >&2;}
7357c5b6 12358 { (exit 1); exit 1; }; }; }
d2df793a
NC
12359fi
12360rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12361fi
12362fi
12363rm -f conftest.val
12364else
12365 ac_cv_sizeof_void_p=0
12366fi
12367fi
12368echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12369echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12370cat >>confdefs.h <<_ACEOF
12371#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12372_ACEOF
12373
12374
2ba49b59
KC
12375echo "$as_me:$LINENO: checking for long" >&5
12376echo $ECHO_N "checking for long... $ECHO_C" >&6
12377if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379else
12380 cat >conftest.$ac_ext <<_ACEOF
12381/* confdefs.h. */
12382_ACEOF
12383cat confdefs.h >>conftest.$ac_ext
12384cat >>conftest.$ac_ext <<_ACEOF
12385/* end confdefs.h. */
2ba49b59 12386$ac_includes_default
5464f5a1
NN
12387int
12388main ()
12389{
2ba49b59
KC
12390if ((long *) 0)
12391 return 0;
12392if (sizeof (long))
12393 return 0;
5464f5a1
NN
12394 ;
12395 return 0;
12396}
12397_ACEOF
12398rm -f conftest.$ac_objext
12399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400 (eval $ac_compile) 2>conftest.er1
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
7357c5b6
AM
12407 { ac_try='test -z "$ac_c_werror_flag"
12408 || test ! -s conftest.err'
5464f5a1
NN
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest.$ac_objext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
2ba49b59 12420 ac_cv_type_long=yes
252b5132 12421else
5464f5a1
NN
12422 echo "$as_me: failed program was:" >&5
12423sed 's/^/| /' conftest.$ac_ext >&5
12424
2ba49b59 12425ac_cv_type_long=no
252b5132 12426fi
5464f5a1 12427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12428fi
2ba49b59
KC
12429echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12430echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 12431
2ba49b59
KC
12432echo "$as_me:$LINENO: checking size of long" >&5
12433echo $ECHO_N "checking size of long... $ECHO_C" >&6
12434if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12436else
2ba49b59
KC
12437 if test "$ac_cv_type_long" = yes; then
12438 # The cast to unsigned long works around a bug in the HP C Compiler
12439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12441 # This bug is HP SR number 8606223364.
12442 if test "$cross_compiling" = yes; then
12443 # Depending upon the size, compute the lo and hi bounds.
12444cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h. */
2ba49b59 12450$ac_includes_default
5464f5a1
NN
12451int
12452main ()
12453{
2ba49b59
KC
12454static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12455test_array [0] = 0
12456
5464f5a1
NN
12457 ;
12458 return 0;
12459}
12460_ACEOF
12461rm -f conftest.$ac_objext
12462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12463 (eval $ac_compile) 2>conftest.er1
12464 ac_status=$?
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
7357c5b6
AM
12470 { ac_try='test -z "$ac_c_werror_flag"
12471 || test ! -s conftest.err'
5464f5a1
NN
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; } &&
12477 { ac_try='test -s conftest.$ac_objext'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
2ba49b59
KC
12483 ac_lo=0 ac_mid=0
12484 while :; do
12485 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12486/* confdefs.h. */
12487_ACEOF
12488cat confdefs.h >>conftest.$ac_ext
12489cat >>conftest.$ac_ext <<_ACEOF
12490/* end confdefs.h. */
2ba49b59 12491$ac_includes_default
5464f5a1
NN
12492int
12493main ()
12494{
2ba49b59
KC
12495static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12496test_array [0] = 0
12497
5464f5a1
NN
12498 ;
12499 return 0;
12500}
12501_ACEOF
2ba49b59
KC
12502rm -f conftest.$ac_objext
12503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
7357c5b6
AM
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
5464f5a1
NN
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
2ba49b59 12518 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
2ba49b59 12524 ac_hi=$ac_mid; break
5464f5a1
NN
12525else
12526 echo "$as_me: failed program was:" >&5
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
2ba49b59
KC
12529ac_lo=`expr $ac_mid + 1`
12530 if test $ac_lo -le $ac_mid; then
12531 ac_lo= ac_hi=
12532 break
12533 fi
12534 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 12535fi
2ba49b59
KC
12536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12537 done
12538else
12539 echo "$as_me: failed program was:" >&5
12540sed 's/^/| /' conftest.$ac_ext >&5
12541
12542cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
2ba49b59 12548$ac_includes_default
5464f5a1
NN
12549int
12550main ()
12551{
2ba49b59
KC
12552static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12553test_array [0] = 0
12554
5464f5a1
NN
12555 ;
12556 return 0;
12557}
12558_ACEOF
2ba49b59
KC
12559rm -f conftest.$ac_objext
12560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
7357c5b6
AM
12568 { ac_try='test -z "$ac_c_werror_flag"
12569 || test ! -s conftest.err'
5464f5a1
NN
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
2ba49b59 12575 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
2ba49b59
KC
12581 ac_hi=-1 ac_mid=-1
12582 while :; do
12583 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
2ba49b59 12589$ac_includes_default
5464f5a1
NN
12590int
12591main ()
12592{
2ba49b59
KC
12593static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12594test_array [0] = 0
12595
5464f5a1
NN
12596 ;
12597 return 0;
12598}
12599_ACEOF
2ba49b59
KC
12600rm -f conftest.$ac_objext
12601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
7357c5b6
AM
12609 { ac_try='test -z "$ac_c_werror_flag"
12610 || test ! -s conftest.err'
5464f5a1
NN
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
2ba49b59 12616 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
2ba49b59 12622 ac_lo=$ac_mid; break
5464f5a1
NN
12623else
12624 echo "$as_me: failed program was:" >&5
12625sed 's/^/| /' conftest.$ac_ext >&5
12626
2ba49b59
KC
12627ac_hi=`expr '(' $ac_mid ')' - 1`
12628 if test $ac_mid -le $ac_hi; then
12629 ac_lo= ac_hi=
12630 break
12631 fi
12632 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 12633fi
2ba49b59
KC
12634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635 done
12636else
12637 echo "$as_me: failed program was:" >&5
12638sed 's/^/| /' conftest.$ac_ext >&5
12639
12640ac_lo= ac_hi=
12641fi
12642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12643fi
12644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645# Binary search between lo and hi bounds.
12646while test "x$ac_lo" != "x$ac_hi"; do
12647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12648 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
2ba49b59 12654$ac_includes_default
5464f5a1
NN
12655int
12656main ()
12657{
2ba49b59
KC
12658static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12659test_array [0] = 0
12660
5464f5a1
NN
12661 ;
12662 return 0;
12663}
12664_ACEOF
2ba49b59
KC
12665rm -f conftest.$ac_objext
12666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
7357c5b6
AM
12674 { ac_try='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
5464f5a1
NN
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
2ba49b59 12681 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
2ba49b59 12687 ac_hi=$ac_mid
5464f5a1
NN
12688else
12689 echo "$as_me: failed program was:" >&5
12690sed 's/^/| /' conftest.$ac_ext >&5
12691
2ba49b59 12692ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 12693fi
2ba49b59
KC
12694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695done
12696case $ac_lo in
12697?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
12698'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12699echo "$as_me: error: in \`$ac_pwd':" >&2;}
12700{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2ba49b59
KC
12701See \`config.log' for more details." >&5
12702echo "$as_me: error: cannot compute sizeof (long), 77
12703See \`config.log' for more details." >&2;}
7357c5b6 12704 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
12705esac
12706else
12707 if test "$cross_compiling" = yes; then
7357c5b6
AM
12708 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12709echo "$as_me: error: in \`$ac_pwd':" >&2;}
12710{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12711See \`config.log' for more details." >&5
12712echo "$as_me: error: cannot run test program while cross compiling
12713See \`config.log' for more details." >&2;}
12714 { (exit 1); exit 1; }; }; }
2e0fbf77
JW
12715else
12716 cat >conftest.$ac_ext <<_ACEOF
12717/* confdefs.h. */
12718_ACEOF
12719cat confdefs.h >>conftest.$ac_ext
12720cat >>conftest.$ac_ext <<_ACEOF
12721/* end confdefs.h. */
2ba49b59
KC
12722$ac_includes_default
12723long longval () { return (long) (sizeof (long)); }
12724unsigned long ulongval () { return (long) (sizeof (long)); }
12725#include <stdio.h>
12726#include <stdlib.h>
2e0fbf77
JW
12727int
12728main ()
12729{
12730
2ba49b59
KC
12731 FILE *f = fopen ("conftest.val", "w");
12732 if (! f)
12733 exit (1);
12734 if (((long) (sizeof (long))) < 0)
12735 {
12736 long i = longval ();
12737 if (i != ((long) (sizeof (long))))
12738 exit (1);
12739 fprintf (f, "%ld\n", i);
12740 }
12741 else
12742 {
12743 unsigned long i = ulongval ();
12744 if (i != ((long) (sizeof (long))))
12745 exit (1);
12746 fprintf (f, "%lu\n", i);
12747 }
12748 exit (ferror (f) || fclose (f) != 0);
12749
2e0fbf77
JW
12750 ;
12751 return 0;
12752}
12753_ACEOF
2ba49b59
KC
12754rm -f conftest$ac_exeext
12755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>&5
2e0fbf77
JW
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
2ba49b59 12765 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 12766else
2ba49b59
KC
12767 echo "$as_me: program exited with status $ac_status" >&5
12768echo "$as_me: failed program was:" >&5
2e0fbf77
JW
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
2ba49b59 12771( exit $ac_status )
7357c5b6
AM
12772{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12773echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
12774{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12775See \`config.log' for more details." >&5
12776echo "$as_me: error: cannot compute sizeof (long), 77
12777See \`config.log' for more details." >&2;}
7357c5b6 12778 { (exit 1); exit 1; }; }; }
2e0fbf77 12779fi
2ba49b59 12780rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 12781fi
2ba49b59
KC
12782fi
12783rm -f conftest.val
12784else
12785 ac_cv_sizeof_long=0
12786fi
12787fi
12788echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12789echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12790cat >>confdefs.h <<_ACEOF
12791#define SIZEOF_LONG $ac_cv_sizeof_long
12792_ACEOF
12793
12794
d2df793a
NC
12795
12796if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 12797 host64=true
bce5e5c9
AM
12798fi
12799
12800if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
12801 BFD_HOST_64BIT_LONG=1
12802 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12803 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12804elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 12805 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
12806 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12807 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
12808 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12809 BFD_HOSTPTR_T="unsigned long long"
12810 fi
2ba49b59
KC
12811fi
12812
12813if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12814 BFD_HOST_64_BIT_DEFINED=1
12815 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12816 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12817fi
12818
12819
12820
12821
12822
12823
12824
d2df793a 12825
2ba49b59
KC
12826# Put a plausible default for CC_FOR_BUILD in Makefile.
12827if test -z "$CC_FOR_BUILD"; then
12828 if test "x$cross_compiling" = "xno"; then
12829 CC_FOR_BUILD='$(CC)'
12830 else
12831 CC_FOR_BUILD=gcc
12832 fi
12833fi
12834
12835# Also set EXEEXT_FOR_BUILD.
12836if test "x$cross_compiling" = "xno"; then
12837 EXEEXT_FOR_BUILD='$(EXEEXT)'
12838else
12839 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12840echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12841if test "${bfd_cv_build_exeext+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12843else
12844 rm -f conftest*
12845 echo 'int main () { return 0; }' > conftest.c
12846 bfd_cv_build_exeext=
12847 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12848 for file in conftest.*; do
12849 case $file in
12850 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12851 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12852 esac
12853 done
12854 rm -f conftest*
12855 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12856fi
12857echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12858echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12859 EXEEXT_FOR_BUILD=""
12860 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12861fi
12862
12863
12864
12865
12866
12867
12868
12869
8bc9c892
NC
12870
12871for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
12872do
12873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12874if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875 echo "$as_me:$LINENO: checking for $ac_header" >&5
12876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12877if eval "test \"\${$as_ac_Header+set}\" = set"; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879fi
12880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12882else
12883 # Is the header compilable?
12884echo "$as_me:$LINENO: checking $ac_header usability" >&5
12885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12886cat >conftest.$ac_ext <<_ACEOF
12887/* confdefs.h. */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
12891/* end confdefs.h. */
12892$ac_includes_default
12893#include <$ac_header>
12894_ACEOF
12895rm -f conftest.$ac_objext
12896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
7357c5b6
AM
12904 { ac_try='test -z "$ac_c_werror_flag"
12905 || test ! -s conftest.err'
2ba49b59
KC
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest.$ac_objext'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 ac_header_compiler=yes
12918else
12919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922ac_header_compiler=no
12923fi
12924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12926echo "${ECHO_T}$ac_header_compiler" >&6
12927
12928# Is the header present?
12929echo "$as_me:$LINENO: checking $ac_header presence" >&5
12930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12931cat >conftest.$ac_ext <<_ACEOF
12932/* confdefs.h. */
12933_ACEOF
12934cat confdefs.h >>conftest.$ac_ext
12935cat >>conftest.$ac_ext <<_ACEOF
12936/* end confdefs.h. */
12937#include <$ac_header>
12938_ACEOF
12939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12940 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
12947 if test -s conftest.err; then
12948 ac_cpp_err=$ac_c_preproc_warn_flag
12949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12950 else
12951 ac_cpp_err=
12952 fi
12953else
12954 ac_cpp_err=yes
12955fi
12956if test -z "$ac_cpp_err"; then
12957 ac_header_preproc=yes
12958else
12959 echo "$as_me: failed program was:" >&5
12960sed 's/^/| /' conftest.$ac_ext >&5
12961
12962 ac_header_preproc=no
12963fi
12964rm -f conftest.err conftest.$ac_ext
12965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12966echo "${ECHO_T}$ac_header_preproc" >&6
12967
12968# So? What about this header?
12969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12970 yes:no: )
12971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12975 ac_header_preproc=yes
12976 ;;
12977 no:yes:* )
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12981echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12985echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12990 (
12991 cat <<\_ASBOX
12992## ------------------------------------------ ##
12993## Report this to the AC_PACKAGE_NAME lists. ##
12994## ------------------------------------------ ##
12995_ASBOX
12996 ) |
12997 sed "s/^/$as_me: WARNING: /" >&2
12998 ;;
12999esac
13000echo "$as_me:$LINENO: checking for $ac_header" >&5
13001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13002if eval "test \"\${$as_ac_Header+set}\" = set"; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004else
13005 eval "$as_ac_Header=\$ac_header_preproc"
13006fi
13007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13009
13010fi
13011if test `eval echo '${'$as_ac_Header'}'` = yes; then
13012 cat >>confdefs.h <<_ACEOF
13013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13014_ACEOF
13015
13016fi
13017
13018done
13019
13020
13021
13022
13023for ac_header in fcntl.h sys/file.h sys/time.h
13024do
13025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13026if eval "test \"\${$as_ac_Header+set}\" = set"; then
13027 echo "$as_me:$LINENO: checking for $ac_header" >&5
13028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13029if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031fi
13032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13034else
13035 # Is the header compilable?
13036echo "$as_me:$LINENO: checking $ac_header usability" >&5
13037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13038cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h. */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h. */
13044$ac_includes_default
13045#include <$ac_header>
13046_ACEOF
13047rm -f conftest.$ac_objext
13048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049 (eval $ac_compile) 2>conftest.er1
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
7357c5b6
AM
13056 { ac_try='test -z "$ac_c_werror_flag"
13057 || test ! -s conftest.err'
2ba49b59
KC
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest.$ac_objext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_header_compiler=yes
13070else
13071 echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
13074ac_header_compiler=no
13075fi
13076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13078echo "${ECHO_T}$ac_header_compiler" >&6
13079
13080# Is the header present?
13081echo "$as_me:$LINENO: checking $ac_header presence" >&5
13082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13083cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089#include <$ac_header>
13090_ACEOF
13091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } >/dev/null; then
13099 if test -s conftest.err; then
13100 ac_cpp_err=$ac_c_preproc_warn_flag
13101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13102 else
13103 ac_cpp_err=
13104 fi
13105else
13106 ac_cpp_err=yes
13107fi
13108if test -z "$ac_cpp_err"; then
13109 ac_header_preproc=yes
13110else
13111 echo "$as_me: failed program was:" >&5
13112sed 's/^/| /' conftest.$ac_ext >&5
13113
13114 ac_header_preproc=no
13115fi
13116rm -f conftest.err conftest.$ac_ext
13117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13118echo "${ECHO_T}$ac_header_preproc" >&6
13119
13120# So? What about this header?
13121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13122 yes:no: )
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13127 ac_header_preproc=yes
13128 ;;
13129 no:yes:* )
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13142 (
13143 cat <<\_ASBOX
13144## ------------------------------------------ ##
13145## Report this to the AC_PACKAGE_NAME lists. ##
13146## ------------------------------------------ ##
13147_ASBOX
13148 ) |
13149 sed "s/^/$as_me: WARNING: /" >&2
13150 ;;
13151esac
13152echo "$as_me:$LINENO: checking for $ac_header" >&5
13153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13154if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156else
13157 eval "$as_ac_Header=\$ac_header_preproc"
13158fi
13159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13161
13162fi
13163if test `eval echo '${'$as_ac_Header'}'` = yes; then
13164 cat >>confdefs.h <<_ACEOF
13165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13166_ACEOF
13167
13168fi
13169
13170done
13171
d5efd9fc
AM
13172
13173
13174inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13175
13176acx_cv_header_stdint=stddef.h
13177acx_cv_header_stdint_kind="(already complete)"
13178for i in stdint.h $inttype_headers; do
13179 unset ac_cv_type_uintptr_t
13180 unset ac_cv_type_uintmax_t
13181 unset ac_cv_type_int_least32_t
13182 unset ac_cv_type_int_fast32_t
13183 unset ac_cv_type_uint64_t
13184 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13185 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13186echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13187if test "${ac_cv_type_uintmax_t+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189else
13190 cat >conftest.$ac_ext <<_ACEOF
13191/* confdefs.h. */
13192_ACEOF
13193cat confdefs.h >>conftest.$ac_ext
13194cat >>conftest.$ac_ext <<_ACEOF
13195/* end confdefs.h. */
13196#include <sys/types.h>
13197#include <$i>
13198
13199int
13200main ()
13201{
13202if ((uintmax_t *) 0)
13203 return 0;
13204if (sizeof (uintmax_t))
13205 return 0;
13206 ;
13207 return 0;
13208}
13209_ACEOF
13210rm -f conftest.$ac_objext
13211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13212 (eval $ac_compile) 2>conftest.er1
13213 ac_status=$?
13214 grep -v '^ *+' conftest.er1 >conftest.err
13215 rm -f conftest.er1
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
7357c5b6
AM
13219 { ac_try='test -z "$ac_c_werror_flag"
13220 || test ! -s conftest.err'
d5efd9fc
AM
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest.$ac_objext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_type_uintmax_t=yes
13233else
13234 echo "$as_me: failed program was:" >&5
13235sed 's/^/| /' conftest.$ac_ext >&5
13236
13237ac_cv_type_uintmax_t=no
13238fi
13239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13240fi
13241echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13242echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13243if test $ac_cv_type_uintmax_t = yes; then
13244 acx_cv_header_stdint=$i
13245else
13246 continue
13247fi
13248
13249 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13250echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13251if test "${ac_cv_type_uintptr_t+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13253else
13254 cat >conftest.$ac_ext <<_ACEOF
13255/* confdefs.h. */
13256_ACEOF
13257cat confdefs.h >>conftest.$ac_ext
13258cat >>conftest.$ac_ext <<_ACEOF
13259/* end confdefs.h. */
13260#include <sys/types.h>
13261#include <$i>
13262
13263int
13264main ()
13265{
13266if ((uintptr_t *) 0)
13267 return 0;
13268if (sizeof (uintptr_t))
13269 return 0;
13270 ;
13271 return 0;
13272}
13273_ACEOF
13274rm -f conftest.$ac_objext
13275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13276 (eval $ac_compile) 2>conftest.er1
13277 ac_status=$?
13278 grep -v '^ *+' conftest.er1 >conftest.err
13279 rm -f conftest.er1
13280 cat conftest.err >&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
7357c5b6
AM
13283 { ac_try='test -z "$ac_c_werror_flag"
13284 || test ! -s conftest.err'
d5efd9fc
AM
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; } &&
13290 { ac_try='test -s conftest.$ac_objext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_cv_type_uintptr_t=yes
13297else
13298 echo "$as_me: failed program was:" >&5
13299sed 's/^/| /' conftest.$ac_ext >&5
13300
13301ac_cv_type_uintptr_t=no
13302fi
13303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13304fi
13305echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13306echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13307if test $ac_cv_type_uintptr_t = yes; then
13308 :
13309else
13310 acx_cv_header_stdint_kind="(mostly complete)"
13311fi
13312
13313 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13314echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13315if test "${ac_cv_type_int_least32_t+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317else
13318 cat >conftest.$ac_ext <<_ACEOF
13319/* confdefs.h. */
13320_ACEOF
13321cat confdefs.h >>conftest.$ac_ext
13322cat >>conftest.$ac_ext <<_ACEOF
13323/* end confdefs.h. */
13324#include <sys/types.h>
13325#include <$i>
13326
13327int
13328main ()
13329{
13330if ((int_least32_t *) 0)
13331 return 0;
13332if (sizeof (int_least32_t))
13333 return 0;
13334 ;
13335 return 0;
13336}
13337_ACEOF
13338rm -f conftest.$ac_objext
13339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13340 (eval $ac_compile) 2>conftest.er1
13341 ac_status=$?
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
7357c5b6
AM
13347 { ac_try='test -z "$ac_c_werror_flag"
13348 || test ! -s conftest.err'
d5efd9fc
AM
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest.$ac_objext'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_cv_type_int_least32_t=yes
13361else
13362 echo "$as_me: failed program was:" >&5
13363sed 's/^/| /' conftest.$ac_ext >&5
13364
13365ac_cv_type_int_least32_t=no
13366fi
13367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13368fi
13369echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13370echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13371if test $ac_cv_type_int_least32_t = yes; then
13372 :
13373else
13374 acx_cv_header_stdint_kind="(mostly complete)"
13375fi
13376
13377 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13378echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13379if test "${ac_cv_type_int_fast32_t+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381else
13382 cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h. */
13388#include <sys/types.h>
13389#include <$i>
13390
13391int
13392main ()
13393{
13394if ((int_fast32_t *) 0)
13395 return 0;
13396if (sizeof (int_fast32_t))
13397 return 0;
13398 ;
13399 return 0;
13400}
13401_ACEOF
13402rm -f conftest.$ac_objext
13403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404 (eval $ac_compile) 2>conftest.er1
13405 ac_status=$?
13406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } &&
7357c5b6
AM
13411 { ac_try='test -z "$ac_c_werror_flag"
13412 || test ! -s conftest.err'
d5efd9fc
AM
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 ac_cv_type_int_fast32_t=yes
13425else
13426 echo "$as_me: failed program was:" >&5
13427sed 's/^/| /' conftest.$ac_ext >&5
13428
13429ac_cv_type_int_fast32_t=no
13430fi
13431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13432fi
13433echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13434echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13435if test $ac_cv_type_int_fast32_t = yes; then
13436 :
13437else
13438 acx_cv_header_stdint_kind="(mostly complete)"
13439fi
13440
13441 echo "$as_me:$LINENO: checking for uint64_t" >&5
13442echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13443if test "${ac_cv_type_uint64_t+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445else
13446 cat >conftest.$ac_ext <<_ACEOF
13447/* confdefs.h. */
13448_ACEOF
13449cat confdefs.h >>conftest.$ac_ext
13450cat >>conftest.$ac_ext <<_ACEOF
13451/* end confdefs.h. */
13452#include <sys/types.h>
13453#include <$i>
13454
13455int
13456main ()
13457{
13458if ((uint64_t *) 0)
13459 return 0;
13460if (sizeof (uint64_t))
13461 return 0;
13462 ;
13463 return 0;
13464}
13465_ACEOF
13466rm -f conftest.$ac_objext
13467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468 (eval $ac_compile) 2>conftest.er1
13469 ac_status=$?
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
7357c5b6
AM
13475 { ac_try='test -z "$ac_c_werror_flag"
13476 || test ! -s conftest.err'
d5efd9fc
AM
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest.$ac_objext'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 ac_cv_type_uint64_t=yes
13489else
13490 echo "$as_me: failed program was:" >&5
13491sed 's/^/| /' conftest.$ac_ext >&5
13492
13493ac_cv_type_uint64_t=no
13494fi
13495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13496fi
13497echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13498echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13499if test $ac_cv_type_uint64_t = yes; then
13500 :
13501else
13502 acx_cv_header_stdint_kind="(lacks uint64_t)"
13503fi
13504
13505 break
13506done
13507if test "$acx_cv_header_stdint" = stddef.h; then
13508 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13509 for i in stdint.h $inttype_headers; do
13510 unset ac_cv_type_uintptr_t
13511 unset ac_cv_type_uint32_t
13512 unset ac_cv_type_uint64_t
13513 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13514 echo "$as_me:$LINENO: checking for uint32_t" >&5
13515echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13516if test "${ac_cv_type_uint32_t+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518else
13519 cat >conftest.$ac_ext <<_ACEOF
13520/* confdefs.h. */
13521_ACEOF
13522cat confdefs.h >>conftest.$ac_ext
13523cat >>conftest.$ac_ext <<_ACEOF
13524/* end confdefs.h. */
13525#include <sys/types.h>
13526#include <$i>
13527
13528int
13529main ()
13530{
13531if ((uint32_t *) 0)
13532 return 0;
13533if (sizeof (uint32_t))
13534 return 0;
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext
13540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
7357c5b6
AM
13548 { ac_try='test -z "$ac_c_werror_flag"
13549 || test ! -s conftest.err'
d5efd9fc
AM
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; } &&
13555 { ac_try='test -s conftest.$ac_objext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_type_uint32_t=yes
13562else
13563 echo "$as_me: failed program was:" >&5
13564sed 's/^/| /' conftest.$ac_ext >&5
13565
13566ac_cv_type_uint32_t=no
13567fi
13568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569fi
13570echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13571echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13572if test $ac_cv_type_uint32_t = yes; then
13573 acx_cv_header_stdint=$i
13574else
13575 continue
13576fi
13577
13578 echo "$as_me:$LINENO: checking for uint64_t" >&5
13579echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13580if test "${ac_cv_type_uint64_t+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582else
13583 cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h. */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
13588/* end confdefs.h. */
13589#include <sys/types.h>
13590#include <$i>
13591
13592int
13593main ()
13594{
13595if ((uint64_t *) 0)
13596 return 0;
13597if (sizeof (uint64_t))
13598 return 0;
13599 ;
13600 return 0;
13601}
13602_ACEOF
13603rm -f conftest.$ac_objext
13604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
7357c5b6
AM
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
d5efd9fc
AM
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13625 ac_cv_type_uint64_t=yes
13626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630ac_cv_type_uint64_t=no
13631fi
13632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13633fi
13634echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13635echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13636
13637 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13638echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13639if test "${ac_cv_type_uintptr_t+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641else
13642 cat >conftest.$ac_ext <<_ACEOF
13643/* confdefs.h. */
13644_ACEOF
13645cat confdefs.h >>conftest.$ac_ext
13646cat >>conftest.$ac_ext <<_ACEOF
13647/* end confdefs.h. */
13648#include <sys/types.h>
13649#include <$i>
13650
13651int
13652main ()
13653{
13654if ((uintptr_t *) 0)
13655 return 0;
13656if (sizeof (uintptr_t))
13657 return 0;
13658 ;
13659 return 0;
13660}
13661_ACEOF
13662rm -f conftest.$ac_objext
13663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13664 (eval $ac_compile) 2>conftest.er1
13665 ac_status=$?
13666 grep -v '^ *+' conftest.er1 >conftest.err
13667 rm -f conftest.er1
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
7357c5b6
AM
13671 { ac_try='test -z "$ac_c_werror_flag"
13672 || test ! -s conftest.err'
d5efd9fc
AM
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest.$ac_objext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 ac_cv_type_uintptr_t=yes
13685else
13686 echo "$as_me: failed program was:" >&5
13687sed 's/^/| /' conftest.$ac_ext >&5
13688
13689ac_cv_type_uintptr_t=no
13690fi
13691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13692fi
13693echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13694echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13695
13696 break
13697 done
13698fi
13699if test "$acx_cv_header_stdint" = stddef.h; then
13700 acx_cv_header_stdint_kind="(u_intXX_t style)"
13701 for i in sys/types.h $inttype_headers; do
13702 unset ac_cv_type_u_int32_t
13703 unset ac_cv_type_u_int64_t
13704 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13705 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13706echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13707if test "${ac_cv_type_u_int32_t+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709else
13710 cat >conftest.$ac_ext <<_ACEOF
13711/* confdefs.h. */
13712_ACEOF
13713cat confdefs.h >>conftest.$ac_ext
13714cat >>conftest.$ac_ext <<_ACEOF
13715/* end confdefs.h. */
13716#include <sys/types.h>
13717#include <$i>
13718
13719int
13720main ()
13721{
13722if ((u_int32_t *) 0)
13723 return 0;
13724if (sizeof (u_int32_t))
13725 return 0;
13726 ;
13727 return 0;
13728}
13729_ACEOF
13730rm -f conftest.$ac_objext
13731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13732 (eval $ac_compile) 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
7357c5b6
AM
13739 { ac_try='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
d5efd9fc
AM
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest.$ac_objext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_type_u_int32_t=yes
13753else
13754 echo "$as_me: failed program was:" >&5
13755sed 's/^/| /' conftest.$ac_ext >&5
13756
13757ac_cv_type_u_int32_t=no
13758fi
13759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13760fi
13761echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13762echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13763if test $ac_cv_type_u_int32_t = yes; then
13764 acx_cv_header_stdint=$i
13765else
13766 continue
13767fi
13768
13769 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13770echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13771if test "${ac_cv_type_u_int64_t+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773else
13774 cat >conftest.$ac_ext <<_ACEOF
13775/* confdefs.h. */
13776_ACEOF
13777cat confdefs.h >>conftest.$ac_ext
13778cat >>conftest.$ac_ext <<_ACEOF
13779/* end confdefs.h. */
13780#include <sys/types.h>
13781#include <$i>
13782
13783int
13784main ()
13785{
13786if ((u_int64_t *) 0)
13787 return 0;
13788if (sizeof (u_int64_t))
13789 return 0;
13790 ;
13791 return 0;
13792}
13793_ACEOF
13794rm -f conftest.$ac_objext
13795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
7357c5b6
AM
13803 { ac_try='test -z "$ac_c_werror_flag"
13804 || test ! -s conftest.err'
d5efd9fc
AM
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; } &&
13810 { ac_try='test -s conftest.$ac_objext'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816 ac_cv_type_u_int64_t=yes
13817else
13818 echo "$as_me: failed program was:" >&5
13819sed 's/^/| /' conftest.$ac_ext >&5
13820
13821ac_cv_type_u_int64_t=no
13822fi
13823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13824fi
13825echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13826echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13827
13828 break
13829 done
13830fi
13831if test "$acx_cv_header_stdint" = stddef.h; then
13832 acx_cv_header_stdint_kind="(using manual detection)"
13833fi
13834
13835test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13836test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13837test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13838test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13839test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13840
13841# ----------------- Summarize what we found so far
13842
13843echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13844echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13845
13846case `$as_basename bfd_stdint.h ||
13847$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13848 Xbfd_stdint.h : 'X\(//\)$' \| \
13849 Xbfd_stdint.h : 'X\(/\)$' \| \
13850 . : '\(.\)' 2>/dev/null ||
13851echo X/bfd_stdint.h |
13852 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13853 /^X\/\(\/\/\)$/{ s//\1/; q; }
13854 /^X\/\(\/\).*/{ s//\1/; q; }
13855 s/.*/./; q'` in
13856 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13857echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13858 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13859echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13860 *) ;;
13861esac
13862
13863echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13864echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13865
13866# ----------------- done included file, check C basic types --------
13867
13868# Lacking an uintptr_t? Test size of void *
13869case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13870 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13871echo $ECHO_N "checking for void *... $ECHO_C" >&6
13872if test "${ac_cv_type_void_p+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874else
13875 cat >conftest.$ac_ext <<_ACEOF
13876/* confdefs.h. */
13877_ACEOF
13878cat confdefs.h >>conftest.$ac_ext
13879cat >>conftest.$ac_ext <<_ACEOF
13880/* end confdefs.h. */
13881$ac_includes_default
13882int
13883main ()
13884{
13885if ((void * *) 0)
13886 return 0;
13887if (sizeof (void *))
13888 return 0;
13889 ;
13890 return 0;
13891}
13892_ACEOF
13893rm -f conftest.$ac_objext
13894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13895 (eval $ac_compile) 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
7357c5b6
AM
13902 { ac_try='test -z "$ac_c_werror_flag"
13903 || test ! -s conftest.err'
d5efd9fc
AM
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_type_void_p=yes
13916else
13917 echo "$as_me: failed program was:" >&5
13918sed 's/^/| /' conftest.$ac_ext >&5
13919
13920ac_cv_type_void_p=no
13921fi
13922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13923fi
13924echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13925echo "${ECHO_T}$ac_cv_type_void_p" >&6
13926
13927echo "$as_me:$LINENO: checking size of void *" >&5
13928echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13929if test "${ac_cv_sizeof_void_p+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13931else
13932 if test "$ac_cv_type_void_p" = yes; then
13933 # The cast to unsigned long works around a bug in the HP C Compiler
13934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13936 # This bug is HP SR number 8606223364.
13937 if test "$cross_compiling" = yes; then
13938 # Depending upon the size, compute the lo and hi bounds.
13939cat >conftest.$ac_ext <<_ACEOF
13940/* confdefs.h. */
13941_ACEOF
13942cat confdefs.h >>conftest.$ac_ext
13943cat >>conftest.$ac_ext <<_ACEOF
13944/* end confdefs.h. */
13945$ac_includes_default
13946int
13947main ()
13948{
13949static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13950test_array [0] = 0
13951
13952 ;
13953 return 0;
13954}
13955_ACEOF
13956rm -f conftest.$ac_objext
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
7357c5b6
AM
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
d5efd9fc
AM
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_lo=0 ac_mid=0
13979 while :; do
13980 cat >conftest.$ac_ext <<_ACEOF
13981/* confdefs.h. */
13982_ACEOF
13983cat confdefs.h >>conftest.$ac_ext
13984cat >>conftest.$ac_ext <<_ACEOF
13985/* end confdefs.h. */
13986$ac_includes_default
13987int
13988main ()
13989{
13990static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13991test_array [0] = 0
13992
13993 ;
13994 return 0;
13995}
13996_ACEOF
13997rm -f conftest.$ac_objext
13998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999 (eval $ac_compile) 2>conftest.er1
14000 ac_status=$?
14001 grep -v '^ *+' conftest.er1 >conftest.err
14002 rm -f conftest.er1
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
7357c5b6
AM
14006 { ac_try='test -z "$ac_c_werror_flag"
14007 || test ! -s conftest.err'
d5efd9fc
AM
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_hi=$ac_mid; break
14020else
14021 echo "$as_me: failed program was:" >&5
14022sed 's/^/| /' conftest.$ac_ext >&5
14023
14024ac_lo=`expr $ac_mid + 1`
14025 if test $ac_lo -le $ac_mid; then
14026 ac_lo= ac_hi=
14027 break
14028 fi
14029 ac_mid=`expr 2 '*' $ac_mid + 1`
14030fi
14031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14032 done
14033else
14034 echo "$as_me: failed program was:" >&5
14035sed 's/^/| /' conftest.$ac_ext >&5
14036
14037cat >conftest.$ac_ext <<_ACEOF
14038/* confdefs.h. */
14039_ACEOF
14040cat confdefs.h >>conftest.$ac_ext
14041cat >>conftest.$ac_ext <<_ACEOF
14042/* end confdefs.h. */
14043$ac_includes_default
14044int
14045main ()
14046{
14047static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14048test_array [0] = 0
14049
14050 ;
14051 return 0;
14052}
14053_ACEOF
14054rm -f conftest.$ac_objext
14055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
7357c5b6
AM
14063 { ac_try='test -z "$ac_c_werror_flag"
14064 || test ! -s conftest.err'
d5efd9fc
AM
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest.$ac_objext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076 ac_hi=-1 ac_mid=-1
14077 while :; do
14078 cat >conftest.$ac_ext <<_ACEOF
14079/* confdefs.h. */
14080_ACEOF
14081cat confdefs.h >>conftest.$ac_ext
14082cat >>conftest.$ac_ext <<_ACEOF
14083/* end confdefs.h. */
14084$ac_includes_default
14085int
14086main ()
14087{
14088static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14089test_array [0] = 0
14090
14091 ;
14092 return 0;
14093}
14094_ACEOF
14095rm -f conftest.$ac_objext
14096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
7357c5b6
AM
14104 { ac_try='test -z "$ac_c_werror_flag"
14105 || test ! -s conftest.err'
d5efd9fc
AM
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_lo=$ac_mid; break
14118else
14119 echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
14121
14122ac_hi=`expr '(' $ac_mid ')' - 1`
14123 if test $ac_mid -le $ac_hi; then
14124 ac_lo= ac_hi=
14125 break
14126 fi
14127 ac_mid=`expr 2 '*' $ac_mid`
14128fi
14129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14130 done
14131else
14132 echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
14135ac_lo= ac_hi=
14136fi
14137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14138fi
14139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140# Binary search between lo and hi bounds.
14141while test "x$ac_lo" != "x$ac_hi"; do
14142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14143 cat >conftest.$ac_ext <<_ACEOF
14144/* confdefs.h. */
14145_ACEOF
14146cat confdefs.h >>conftest.$ac_ext
14147cat >>conftest.$ac_ext <<_ACEOF
14148/* end confdefs.h. */
14149$ac_includes_default
14150int
14151main ()
14152{
14153static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14154test_array [0] = 0
14155
14156 ;
14157 return 0;
14158}
14159_ACEOF
14160rm -f conftest.$ac_objext
14161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162 (eval $ac_compile) 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
7357c5b6
AM
14169 { ac_try='test -z "$ac_c_werror_flag"
14170 || test ! -s conftest.err'
d5efd9fc
AM
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest.$ac_objext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_hi=$ac_mid
14183else
14184 echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187ac_lo=`expr '(' $ac_mid ')' + 1`
14188fi
14189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14190done
14191case $ac_lo in
14192?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
14193'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14194echo "$as_me: error: in \`$ac_pwd':" >&2;}
14195{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d5efd9fc
AM
14196See \`config.log' for more details." >&5
14197echo "$as_me: error: cannot compute sizeof (void *), 77
14198See \`config.log' for more details." >&2;}
7357c5b6 14199 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
14200esac
14201else
14202 if test "$cross_compiling" = yes; then
7357c5b6
AM
14203 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14204echo "$as_me: error: in \`$ac_pwd':" >&2;}
14205{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14206See \`config.log' for more details." >&5
14207echo "$as_me: error: cannot run test program while cross compiling
14208See \`config.log' for more details." >&2;}
14209 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14210else
14211 cat >conftest.$ac_ext <<_ACEOF
14212/* confdefs.h. */
14213_ACEOF
14214cat confdefs.h >>conftest.$ac_ext
14215cat >>conftest.$ac_ext <<_ACEOF
14216/* end confdefs.h. */
14217$ac_includes_default
14218long longval () { return (long) (sizeof (void *)); }
14219unsigned long ulongval () { return (long) (sizeof (void *)); }
14220#include <stdio.h>
14221#include <stdlib.h>
14222int
14223main ()
14224{
14225
14226 FILE *f = fopen ("conftest.val", "w");
14227 if (! f)
14228 exit (1);
14229 if (((long) (sizeof (void *))) < 0)
14230 {
14231 long i = longval ();
14232 if (i != ((long) (sizeof (void *))))
14233 exit (1);
14234 fprintf (f, "%ld\n", i);
14235 }
14236 else
14237 {
14238 unsigned long i = ulongval ();
14239 if (i != ((long) (sizeof (void *))))
14240 exit (1);
14241 fprintf (f, "%lu\n", i);
14242 }
14243 exit (ferror (f) || fclose (f) != 0);
14244
14245 ;
14246 return 0;
14247}
14248_ACEOF
14249rm -f conftest$ac_exeext
14250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251 (eval $ac_link) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14260 ac_cv_sizeof_void_p=`cat conftest.val`
14261else
14262 echo "$as_me: program exited with status $ac_status" >&5
14263echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
14266( exit $ac_status )
7357c5b6
AM
14267{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14268echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
14269{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14270See \`config.log' for more details." >&5
14271echo "$as_me: error: cannot compute sizeof (void *), 77
14272See \`config.log' for more details." >&2;}
7357c5b6 14273 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14274fi
14275rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14276fi
14277fi
14278rm -f conftest.val
14279else
14280 ac_cv_sizeof_void_p=0
14281fi
14282fi
14283echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14284echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14285cat >>confdefs.h <<_ACEOF
14286#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14287_ACEOF
14288
14289 ;;
14290esac
14291
14292# Lacking an uint64_t? Test size of long
14293case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14294 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14295echo $ECHO_N "checking for long... $ECHO_C" >&6
14296if test "${ac_cv_type_long+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298else
14299 cat >conftest.$ac_ext <<_ACEOF
14300/* confdefs.h. */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h. */
14305$ac_includes_default
14306int
14307main ()
14308{
14309if ((long *) 0)
14310 return 0;
14311if (sizeof (long))
14312 return 0;
14313 ;
14314 return 0;
14315}
14316_ACEOF
14317rm -f conftest.$ac_objext
14318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
7357c5b6
AM
14326 { ac_try='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
d5efd9fc
AM
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_type_long=yes
14340else
14341 echo "$as_me: failed program was:" >&5
14342sed 's/^/| /' conftest.$ac_ext >&5
14343
14344ac_cv_type_long=no
14345fi
14346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14347fi
14348echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14349echo "${ECHO_T}$ac_cv_type_long" >&6
14350
14351echo "$as_me:$LINENO: checking size of long" >&5
14352echo $ECHO_N "checking size of long... $ECHO_C" >&6
14353if test "${ac_cv_sizeof_long+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355else
14356 if test "$ac_cv_type_long" = yes; then
14357 # The cast to unsigned long works around a bug in the HP C Compiler
14358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14360 # This bug is HP SR number 8606223364.
14361 if test "$cross_compiling" = yes; then
14362 # Depending upon the size, compute the lo and hi bounds.
14363cat >conftest.$ac_ext <<_ACEOF
14364/* confdefs.h. */
14365_ACEOF
14366cat confdefs.h >>conftest.$ac_ext
14367cat >>conftest.$ac_ext <<_ACEOF
14368/* end confdefs.h. */
14369$ac_includes_default
14370int
14371main ()
14372{
14373static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14374test_array [0] = 0
14375
14376 ;
14377 return 0;
14378}
14379_ACEOF
14380rm -f conftest.$ac_objext
14381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>conftest.er1
14383 ac_status=$?
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
7357c5b6
AM
14389 { ac_try='test -z "$ac_c_werror_flag"
14390 || test ! -s conftest.err'
d5efd9fc
AM
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_lo=0 ac_mid=0
14403 while :; do
14404 cat >conftest.$ac_ext <<_ACEOF
14405/* confdefs.h. */
14406_ACEOF
14407cat confdefs.h >>conftest.$ac_ext
14408cat >>conftest.$ac_ext <<_ACEOF
14409/* end confdefs.h. */
14410$ac_includes_default
14411int
14412main ()
14413{
14414static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14415test_array [0] = 0
14416
14417 ;
14418 return 0;
14419}
14420_ACEOF
14421rm -f conftest.$ac_objext
14422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14423 (eval $ac_compile) 2>conftest.er1
14424 ac_status=$?
14425 grep -v '^ *+' conftest.er1 >conftest.err
14426 rm -f conftest.er1
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
7357c5b6
AM
14430 { ac_try='test -z "$ac_c_werror_flag"
14431 || test ! -s conftest.err'
d5efd9fc
AM
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; } &&
14437 { ac_try='test -s conftest.$ac_objext'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_hi=$ac_mid; break
14444else
14445 echo "$as_me: failed program was:" >&5
14446sed 's/^/| /' conftest.$ac_ext >&5
14447
14448ac_lo=`expr $ac_mid + 1`
14449 if test $ac_lo -le $ac_mid; then
14450 ac_lo= ac_hi=
14451 break
14452 fi
14453 ac_mid=`expr 2 '*' $ac_mid + 1`
14454fi
14455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14456 done
14457else
14458 echo "$as_me: failed program was:" >&5
14459sed 's/^/| /' conftest.$ac_ext >&5
14460
14461cat >conftest.$ac_ext <<_ACEOF
14462/* confdefs.h. */
14463_ACEOF
14464cat confdefs.h >>conftest.$ac_ext
14465cat >>conftest.$ac_ext <<_ACEOF
14466/* end confdefs.h. */
14467$ac_includes_default
14468int
14469main ()
14470{
14471static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14472test_array [0] = 0
14473
14474 ;
14475 return 0;
14476}
14477_ACEOF
14478rm -f conftest.$ac_objext
14479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480 (eval $ac_compile) 2>conftest.er1
14481 ac_status=$?
14482 grep -v '^ *+' conftest.er1 >conftest.err
14483 rm -f conftest.er1
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
7357c5b6
AM
14487 { ac_try='test -z "$ac_c_werror_flag"
14488 || test ! -s conftest.err'
d5efd9fc
AM
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_hi=-1 ac_mid=-1
14501 while :; do
14502 cat >conftest.$ac_ext <<_ACEOF
14503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
14507/* end confdefs.h. */
14508$ac_includes_default
14509int
14510main ()
14511{
14512static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14513test_array [0] = 0
14514
14515 ;
14516 return 0;
14517}
14518_ACEOF
14519rm -f conftest.$ac_objext
14520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
7357c5b6
AM
14528 { ac_try='test -z "$ac_c_werror_flag"
14529 || test ! -s conftest.err'
d5efd9fc
AM
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14541 ac_lo=$ac_mid; break
14542else
14543 echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
14545
14546ac_hi=`expr '(' $ac_mid ')' - 1`
14547 if test $ac_mid -le $ac_hi; then
14548 ac_lo= ac_hi=
14549 break
14550 fi
14551 ac_mid=`expr 2 '*' $ac_mid`
14552fi
14553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14554 done
14555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559ac_lo= ac_hi=
14560fi
14561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14562fi
14563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564# Binary search between lo and hi bounds.
14565while test "x$ac_lo" != "x$ac_hi"; do
14566 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14567 cat >conftest.$ac_ext <<_ACEOF
14568/* confdefs.h. */
14569_ACEOF
14570cat confdefs.h >>conftest.$ac_ext
14571cat >>conftest.$ac_ext <<_ACEOF
14572/* end confdefs.h. */
14573$ac_includes_default
14574int
14575main ()
14576{
14577static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14578test_array [0] = 0
14579
14580 ;
14581 return 0;
14582}
14583_ACEOF
14584rm -f conftest.$ac_objext
14585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586 (eval $ac_compile) 2>conftest.er1
14587 ac_status=$?
14588 grep -v '^ *+' conftest.er1 >conftest.err
14589 rm -f conftest.er1
14590 cat conftest.err >&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } &&
7357c5b6
AM
14593 { ac_try='test -z "$ac_c_werror_flag"
14594 || test ! -s conftest.err'
d5efd9fc
AM
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest.$ac_objext'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_hi=$ac_mid
14607else
14608 echo "$as_me: failed program was:" >&5
14609sed 's/^/| /' conftest.$ac_ext >&5
14610
14611ac_lo=`expr '(' $ac_mid ')' + 1`
14612fi
14613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14614done
14615case $ac_lo in
14616?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
14617'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14618echo "$as_me: error: in \`$ac_pwd':" >&2;}
14619{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d5efd9fc
AM
14620See \`config.log' for more details." >&5
14621echo "$as_me: error: cannot compute sizeof (long), 77
14622See \`config.log' for more details." >&2;}
7357c5b6 14623 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
14624esac
14625else
14626 if test "$cross_compiling" = yes; then
7357c5b6
AM
14627 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14628echo "$as_me: error: in \`$ac_pwd':" >&2;}
14629{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14630See \`config.log' for more details." >&5
14631echo "$as_me: error: cannot run test program while cross compiling
14632See \`config.log' for more details." >&2;}
14633 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14634else
14635 cat >conftest.$ac_ext <<_ACEOF
14636/* confdefs.h. */
14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
14640/* end confdefs.h. */
14641$ac_includes_default
14642long longval () { return (long) (sizeof (long)); }
14643unsigned long ulongval () { return (long) (sizeof (long)); }
14644#include <stdio.h>
14645#include <stdlib.h>
14646int
14647main ()
14648{
14649
14650 FILE *f = fopen ("conftest.val", "w");
14651 if (! f)
14652 exit (1);
14653 if (((long) (sizeof (long))) < 0)
14654 {
14655 long i = longval ();
14656 if (i != ((long) (sizeof (long))))
14657 exit (1);
14658 fprintf (f, "%ld\n", i);
14659 }
14660 else
14661 {
14662 unsigned long i = ulongval ();
14663 if (i != ((long) (sizeof (long))))
14664 exit (1);
14665 fprintf (f, "%lu\n", i);
14666 }
14667 exit (ferror (f) || fclose (f) != 0);
14668
14669 ;
14670 return 0;
14671}
14672_ACEOF
14673rm -f conftest$ac_exeext
14674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 ac_cv_sizeof_long=`cat conftest.val`
14685else
14686 echo "$as_me: program exited with status $ac_status" >&5
14687echo "$as_me: failed program was:" >&5
14688sed 's/^/| /' conftest.$ac_ext >&5
14689
14690( exit $ac_status )
7357c5b6
AM
14691{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14692echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
14693{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14694See \`config.log' for more details." >&5
14695echo "$as_me: error: cannot compute sizeof (long), 77
14696See \`config.log' for more details." >&2;}
7357c5b6 14697 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14698fi
14699rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14700fi
14701fi
14702rm -f conftest.val
14703else
14704 ac_cv_sizeof_long=0
14705fi
14706fi
14707echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14708echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14709cat >>confdefs.h <<_ACEOF
14710#define SIZEOF_LONG $ac_cv_sizeof_long
14711_ACEOF
14712
14713 ;;
14714esac
14715
14716if test $acx_cv_header_stdint = stddef.h; then
14717 # Lacking a good header? Test size of everything and deduce all types.
14718 echo "$as_me:$LINENO: checking for int" >&5
14719echo $ECHO_N "checking for int... $ECHO_C" >&6
14720if test "${ac_cv_type_int+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14722else
14723 cat >conftest.$ac_ext <<_ACEOF
14724/* confdefs.h. */
14725_ACEOF
14726cat confdefs.h >>conftest.$ac_ext
14727cat >>conftest.$ac_ext <<_ACEOF
14728/* end confdefs.h. */
14729$ac_includes_default
14730int
14731main ()
14732{
14733if ((int *) 0)
14734 return 0;
14735if (sizeof (int))
14736 return 0;
14737 ;
14738 return 0;
14739}
14740_ACEOF
14741rm -f conftest.$ac_objext
14742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743 (eval $ac_compile) 2>conftest.er1
14744 ac_status=$?
14745 grep -v '^ *+' conftest.er1 >conftest.err
14746 rm -f conftest.er1
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
7357c5b6
AM
14750 { ac_try='test -z "$ac_c_werror_flag"
14751 || test ! -s conftest.err'
d5efd9fc
AM
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_cv_type_int=yes
14764else
14765 echo "$as_me: failed program was:" >&5
14766sed 's/^/| /' conftest.$ac_ext >&5
14767
14768ac_cv_type_int=no
14769fi
14770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14771fi
14772echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14773echo "${ECHO_T}$ac_cv_type_int" >&6
14774
14775echo "$as_me:$LINENO: checking size of int" >&5
14776echo $ECHO_N "checking size of int... $ECHO_C" >&6
14777if test "${ac_cv_sizeof_int+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779else
14780 if test "$ac_cv_type_int" = yes; then
14781 # The cast to unsigned long works around a bug in the HP C Compiler
14782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14784 # This bug is HP SR number 8606223364.
14785 if test "$cross_compiling" = yes; then
14786 # Depending upon the size, compute the lo and hi bounds.
14787cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h. */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h. */
14793$ac_includes_default
14794int
14795main ()
14796{
14797static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14798test_array [0] = 0
14799
14800 ;
14801 return 0;
14802}
14803_ACEOF
14804rm -f conftest.$ac_objext
14805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14806 (eval $ac_compile) 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
7357c5b6
AM
14813 { ac_try='test -z "$ac_c_werror_flag"
14814 || test ! -s conftest.err'
d5efd9fc
AM
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try='test -s conftest.$ac_objext'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14826 ac_lo=0 ac_mid=0
14827 while :; do
14828 cat >conftest.$ac_ext <<_ACEOF
14829/* confdefs.h. */
14830_ACEOF
14831cat confdefs.h >>conftest.$ac_ext
14832cat >>conftest.$ac_ext <<_ACEOF
14833/* end confdefs.h. */
14834$ac_includes_default
14835int
14836main ()
14837{
14838static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14839test_array [0] = 0
14840
14841 ;
14842 return 0;
14843}
14844_ACEOF
14845rm -f conftest.$ac_objext
14846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14847 (eval $ac_compile) 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
7357c5b6
AM
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
d5efd9fc
AM
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest.$ac_objext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_hi=$ac_mid; break
14868else
14869 echo "$as_me: failed program was:" >&5
14870sed 's/^/| /' conftest.$ac_ext >&5
14871
14872ac_lo=`expr $ac_mid + 1`
14873 if test $ac_lo -le $ac_mid; then
14874 ac_lo= ac_hi=
14875 break
14876 fi
14877 ac_mid=`expr 2 '*' $ac_mid + 1`
14878fi
14879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14880 done
14881else
14882 echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
14884
14885cat >conftest.$ac_ext <<_ACEOF
14886/* confdefs.h. */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
14890/* end confdefs.h. */
14891$ac_includes_default
14892int
14893main ()
14894{
14895static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14896test_array [0] = 0
14897
14898 ;
14899 return 0;
14900}
14901_ACEOF
14902rm -f conftest.$ac_objext
14903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904 (eval $ac_compile) 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
7357c5b6
AM
14911 { ac_try='test -z "$ac_c_werror_flag"
14912 || test ! -s conftest.err'
d5efd9fc
AM
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_hi=-1 ac_mid=-1
14925 while :; do
14926 cat >conftest.$ac_ext <<_ACEOF
14927/* confdefs.h. */
14928_ACEOF
14929cat confdefs.h >>conftest.$ac_ext
14930cat >>conftest.$ac_ext <<_ACEOF
14931/* end confdefs.h. */
14932$ac_includes_default
14933int
14934main ()
14935{
14936static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14937test_array [0] = 0
14938
14939 ;
14940 return 0;
14941}
14942_ACEOF
14943rm -f conftest.$ac_objext
14944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14945 (eval $ac_compile) 2>conftest.er1
14946 ac_status=$?
14947 grep -v '^ *+' conftest.er1 >conftest.err
14948 rm -f conftest.er1
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
7357c5b6
AM
14952 { ac_try='test -z "$ac_c_werror_flag"
14953 || test ! -s conftest.err'
d5efd9fc
AM
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; } &&
14959 { ac_try='test -s conftest.$ac_objext'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_lo=$ac_mid; break
14966else
14967 echo "$as_me: failed program was:" >&5
14968sed 's/^/| /' conftest.$ac_ext >&5
14969
14970ac_hi=`expr '(' $ac_mid ')' - 1`
14971 if test $ac_mid -le $ac_hi; then
14972 ac_lo= ac_hi=
14973 break
14974 fi
14975 ac_mid=`expr 2 '*' $ac_mid`
14976fi
14977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14978 done
14979else
14980 echo "$as_me: failed program was:" >&5
14981sed 's/^/| /' conftest.$ac_ext >&5
14982
14983ac_lo= ac_hi=
14984fi
14985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14986fi
14987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14988# Binary search between lo and hi bounds.
14989while test "x$ac_lo" != "x$ac_hi"; do
14990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14991 cat >conftest.$ac_ext <<_ACEOF
14992/* confdefs.h. */
14993_ACEOF
14994cat confdefs.h >>conftest.$ac_ext
14995cat >>conftest.$ac_ext <<_ACEOF
14996/* end confdefs.h. */
14997$ac_includes_default
14998int
14999main ()
15000{
15001static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15002test_array [0] = 0
15003
15004 ;
15005 return 0;
15006}
15007_ACEOF
15008rm -f conftest.$ac_objext
15009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010 (eval $ac_compile) 2>conftest.er1
15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
7357c5b6
AM
15017 { ac_try='test -z "$ac_c_werror_flag"
15018 || test ! -s conftest.err'
d5efd9fc
AM
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; } &&
15024 { ac_try='test -s conftest.$ac_objext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15030 ac_hi=$ac_mid
15031else
15032 echo "$as_me: failed program was:" >&5
15033sed 's/^/| /' conftest.$ac_ext >&5
15034
15035ac_lo=`expr '(' $ac_mid ')' + 1`
15036fi
15037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15038done
15039case $ac_lo in
15040?*) ac_cv_sizeof_int=$ac_lo;;
7357c5b6
AM
15041'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15042echo "$as_me: error: in \`$ac_pwd':" >&2;}
15043{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d5efd9fc
AM
15044See \`config.log' for more details." >&5
15045echo "$as_me: error: cannot compute sizeof (int), 77
15046See \`config.log' for more details." >&2;}
7357c5b6 15047 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15048esac
15049else
15050 if test "$cross_compiling" = yes; then
7357c5b6
AM
15051 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15052echo "$as_me: error: in \`$ac_pwd':" >&2;}
15053{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15054See \`config.log' for more details." >&5
15055echo "$as_me: error: cannot run test program while cross compiling
15056See \`config.log' for more details." >&2;}
15057 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15058else
15059 cat >conftest.$ac_ext <<_ACEOF
15060/* confdefs.h. */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h. */
15065$ac_includes_default
15066long longval () { return (long) (sizeof (int)); }
15067unsigned long ulongval () { return (long) (sizeof (int)); }
15068#include <stdio.h>
15069#include <stdlib.h>
15070int
15071main ()
15072{
15073
15074 FILE *f = fopen ("conftest.val", "w");
15075 if (! f)
15076 exit (1);
15077 if (((long) (sizeof (int))) < 0)
15078 {
15079 long i = longval ();
15080 if (i != ((long) (sizeof (int))))
15081 exit (1);
15082 fprintf (f, "%ld\n", i);
15083 }
15084 else
15085 {
15086 unsigned long i = ulongval ();
15087 if (i != ((long) (sizeof (int))))
15088 exit (1);
15089 fprintf (f, "%lu\n", i);
15090 }
15091 exit (ferror (f) || fclose (f) != 0);
15092
15093 ;
15094 return 0;
15095}
15096_ACEOF
15097rm -f conftest$ac_exeext
15098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15099 (eval $ac_link) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 ac_cv_sizeof_int=`cat conftest.val`
15109else
15110 echo "$as_me: program exited with status $ac_status" >&5
15111echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114( exit $ac_status )
7357c5b6
AM
15115{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15116echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15117{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15118See \`config.log' for more details." >&5
15119echo "$as_me: error: cannot compute sizeof (int), 77
15120See \`config.log' for more details." >&2;}
7357c5b6 15121 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15122fi
15123rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15124fi
15125fi
15126rm -f conftest.val
15127else
15128 ac_cv_sizeof_int=0
15129fi
15130fi
15131echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15132echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15133cat >>confdefs.h <<_ACEOF
15134#define SIZEOF_INT $ac_cv_sizeof_int
15135_ACEOF
15136
15137
15138 echo "$as_me:$LINENO: checking for short" >&5
15139echo $ECHO_N "checking for short... $ECHO_C" >&6
15140if test "${ac_cv_type_short+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15142else
15143 cat >conftest.$ac_ext <<_ACEOF
15144/* confdefs.h. */
15145_ACEOF
15146cat confdefs.h >>conftest.$ac_ext
15147cat >>conftest.$ac_ext <<_ACEOF
15148/* end confdefs.h. */
15149$ac_includes_default
15150int
15151main ()
15152{
15153if ((short *) 0)
15154 return 0;
15155if (sizeof (short))
15156 return 0;
15157 ;
15158 return 0;
15159}
15160_ACEOF
15161rm -f conftest.$ac_objext
15162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163 (eval $ac_compile) 2>conftest.er1
15164 ac_status=$?
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -f conftest.er1
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
7357c5b6
AM
15170 { ac_try='test -z "$ac_c_werror_flag"
15171 || test ! -s conftest.err'
d5efd9fc
AM
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_cv_type_short=yes
15184else
15185 echo "$as_me: failed program was:" >&5
15186sed 's/^/| /' conftest.$ac_ext >&5
15187
15188ac_cv_type_short=no
15189fi
15190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15191fi
15192echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15193echo "${ECHO_T}$ac_cv_type_short" >&6
15194
15195echo "$as_me:$LINENO: checking size of short" >&5
15196echo $ECHO_N "checking size of short... $ECHO_C" >&6
15197if test "${ac_cv_sizeof_short+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199else
15200 if test "$ac_cv_type_short" = yes; then
15201 # The cast to unsigned long works around a bug in the HP C Compiler
15202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15204 # This bug is HP SR number 8606223364.
15205 if test "$cross_compiling" = yes; then
15206 # Depending upon the size, compute the lo and hi bounds.
15207cat >conftest.$ac_ext <<_ACEOF
15208/* confdefs.h. */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h. */
15213$ac_includes_default
15214int
15215main ()
15216{
15217static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15218test_array [0] = 0
15219
15220 ;
15221 return 0;
15222}
15223_ACEOF
15224rm -f conftest.$ac_objext
15225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15226 (eval $ac_compile) 2>conftest.er1
15227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } &&
7357c5b6
AM
15233 { ac_try='test -z "$ac_c_werror_flag"
15234 || test ! -s conftest.err'
d5efd9fc
AM
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest.$ac_objext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_lo=0 ac_mid=0
15247 while :; do
15248 cat >conftest.$ac_ext <<_ACEOF
15249/* confdefs.h. */
15250_ACEOF
15251cat confdefs.h >>conftest.$ac_ext
15252cat >>conftest.$ac_ext <<_ACEOF
15253/* end confdefs.h. */
15254$ac_includes_default
15255int
15256main ()
15257{
15258static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15259test_array [0] = 0
15260
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265rm -f conftest.$ac_objext
15266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>conftest.er1
15268 ac_status=$?
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
7357c5b6
AM
15274 { ac_try='test -z "$ac_c_werror_flag"
15275 || test ! -s conftest.err'
d5efd9fc
AM
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try='test -s conftest.$ac_objext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_hi=$ac_mid; break
15288else
15289 echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292ac_lo=`expr $ac_mid + 1`
15293 if test $ac_lo -le $ac_mid; then
15294 ac_lo= ac_hi=
15295 break
15296 fi
15297 ac_mid=`expr 2 '*' $ac_mid + 1`
15298fi
15299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15300 done
15301else
15302 echo "$as_me: failed program was:" >&5
15303sed 's/^/| /' conftest.$ac_ext >&5
15304
15305cat >conftest.$ac_ext <<_ACEOF
15306/* confdefs.h. */
15307_ACEOF
15308cat confdefs.h >>conftest.$ac_ext
15309cat >>conftest.$ac_ext <<_ACEOF
15310/* end confdefs.h. */
15311$ac_includes_default
15312int
15313main ()
15314{
15315static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15316test_array [0] = 0
15317
15318 ;
15319 return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext
15323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15324 (eval $ac_compile) 2>conftest.er1
15325 ac_status=$?
15326 grep -v '^ *+' conftest.er1 >conftest.err
15327 rm -f conftest.er1
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
7357c5b6
AM
15331 { ac_try='test -z "$ac_c_werror_flag"
15332 || test ! -s conftest.err'
d5efd9fc
AM
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest.$ac_objext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_hi=-1 ac_mid=-1
15345 while :; do
15346 cat >conftest.$ac_ext <<_ACEOF
15347/* confdefs.h. */
15348_ACEOF
15349cat confdefs.h >>conftest.$ac_ext
15350cat >>conftest.$ac_ext <<_ACEOF
15351/* end confdefs.h. */
15352$ac_includes_default
15353int
15354main ()
15355{
15356static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15357test_array [0] = 0
15358
15359 ;
15360 return 0;
15361}
15362_ACEOF
15363rm -f conftest.$ac_objext
15364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15365 (eval $ac_compile) 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
7357c5b6
AM
15372 { ac_try='test -z "$ac_c_werror_flag"
15373 || test ! -s conftest.err'
d5efd9fc
AM
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try='test -s conftest.$ac_objext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_lo=$ac_mid; break
15386else
15387 echo "$as_me: failed program was:" >&5
15388sed 's/^/| /' conftest.$ac_ext >&5
15389
15390ac_hi=`expr '(' $ac_mid ')' - 1`
15391 if test $ac_mid -le $ac_hi; then
15392 ac_lo= ac_hi=
15393 break
15394 fi
15395 ac_mid=`expr 2 '*' $ac_mid`
15396fi
15397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15398 done
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403ac_lo= ac_hi=
15404fi
15405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15406fi
15407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15408# Binary search between lo and hi bounds.
15409while test "x$ac_lo" != "x$ac_hi"; do
15410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15411 cat >conftest.$ac_ext <<_ACEOF
15412/* confdefs.h. */
15413_ACEOF
15414cat confdefs.h >>conftest.$ac_ext
15415cat >>conftest.$ac_ext <<_ACEOF
15416/* end confdefs.h. */
15417$ac_includes_default
15418int
15419main ()
15420{
15421static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15422test_array [0] = 0
15423
15424 ;
15425 return 0;
15426}
15427_ACEOF
15428rm -f conftest.$ac_objext
15429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15430 (eval $ac_compile) 2>conftest.er1
15431 ac_status=$?
15432 grep -v '^ *+' conftest.er1 >conftest.err
15433 rm -f conftest.er1
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
7357c5b6
AM
15437 { ac_try='test -z "$ac_c_werror_flag"
15438 || test ! -s conftest.err'
d5efd9fc
AM
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest.$ac_objext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_hi=$ac_mid
15451else
15452 echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455ac_lo=`expr '(' $ac_mid ')' + 1`
15456fi
15457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15458done
15459case $ac_lo in
15460?*) ac_cv_sizeof_short=$ac_lo;;
7357c5b6
AM
15461'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15462echo "$as_me: error: in \`$ac_pwd':" >&2;}
15463{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d5efd9fc
AM
15464See \`config.log' for more details." >&5
15465echo "$as_me: error: cannot compute sizeof (short), 77
15466See \`config.log' for more details." >&2;}
7357c5b6 15467 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15468esac
15469else
15470 if test "$cross_compiling" = yes; then
7357c5b6
AM
15471 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15472echo "$as_me: error: in \`$ac_pwd':" >&2;}
15473{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15474See \`config.log' for more details." >&5
15475echo "$as_me: error: cannot run test program while cross compiling
15476See \`config.log' for more details." >&2;}
15477 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15478else
15479 cat >conftest.$ac_ext <<_ACEOF
15480/* confdefs.h. */
15481_ACEOF
15482cat confdefs.h >>conftest.$ac_ext
15483cat >>conftest.$ac_ext <<_ACEOF
15484/* end confdefs.h. */
15485$ac_includes_default
15486long longval () { return (long) (sizeof (short)); }
15487unsigned long ulongval () { return (long) (sizeof (short)); }
15488#include <stdio.h>
15489#include <stdlib.h>
15490int
15491main ()
15492{
15493
15494 FILE *f = fopen ("conftest.val", "w");
15495 if (! f)
15496 exit (1);
15497 if (((long) (sizeof (short))) < 0)
15498 {
15499 long i = longval ();
15500 if (i != ((long) (sizeof (short))))
15501 exit (1);
15502 fprintf (f, "%ld\n", i);
15503 }
15504 else
15505 {
15506 unsigned long i = ulongval ();
15507 if (i != ((long) (sizeof (short))))
15508 exit (1);
15509 fprintf (f, "%lu\n", i);
15510 }
15511 exit (ferror (f) || fclose (f) != 0);
15512
15513 ;
15514 return 0;
15515}
15516_ACEOF
15517rm -f conftest$ac_exeext
15518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519 (eval $ac_link) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_cv_sizeof_short=`cat conftest.val`
15529else
15530 echo "$as_me: program exited with status $ac_status" >&5
15531echo "$as_me: failed program was:" >&5
15532sed 's/^/| /' conftest.$ac_ext >&5
15533
15534( exit $ac_status )
7357c5b6
AM
15535{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15536echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15537{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15538See \`config.log' for more details." >&5
15539echo "$as_me: error: cannot compute sizeof (short), 77
15540See \`config.log' for more details." >&2;}
7357c5b6 15541 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15542fi
15543rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15544fi
15545fi
15546rm -f conftest.val
15547else
15548 ac_cv_sizeof_short=0
15549fi
15550fi
15551echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15552echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15553cat >>confdefs.h <<_ACEOF
15554#define SIZEOF_SHORT $ac_cv_sizeof_short
15555_ACEOF
15556
15557
15558 echo "$as_me:$LINENO: checking for char" >&5
15559echo $ECHO_N "checking for char... $ECHO_C" >&6
15560if test "${ac_cv_type_char+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562else
15563 cat >conftest.$ac_ext <<_ACEOF
15564/* confdefs.h. */
15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
15568/* end confdefs.h. */
15569$ac_includes_default
15570int
15571main ()
15572{
15573if ((char *) 0)
15574 return 0;
15575if (sizeof (char))
15576 return 0;
15577 ;
15578 return 0;
15579}
15580_ACEOF
15581rm -f conftest.$ac_objext
15582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583 (eval $ac_compile) 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
7357c5b6
AM
15590 { ac_try='test -z "$ac_c_werror_flag"
15591 || test ! -s conftest.err'
d5efd9fc
AM
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; } &&
15597 { ac_try='test -s conftest.$ac_objext'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }; then
15603 ac_cv_type_char=yes
15604else
15605 echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5
15607
15608ac_cv_type_char=no
15609fi
15610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15611fi
15612echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15613echo "${ECHO_T}$ac_cv_type_char" >&6
15614
15615echo "$as_me:$LINENO: checking size of char" >&5
15616echo $ECHO_N "checking size of char... $ECHO_C" >&6
15617if test "${ac_cv_sizeof_char+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15619else
15620 if test "$ac_cv_type_char" = yes; then
15621 # The cast to unsigned long works around a bug in the HP C Compiler
15622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15624 # This bug is HP SR number 8606223364.
15625 if test "$cross_compiling" = yes; then
15626 # Depending upon the size, compute the lo and hi bounds.
15627cat >conftest.$ac_ext <<_ACEOF
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
15633$ac_includes_default
15634int
15635main ()
15636{
15637static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15638test_array [0] = 0
15639
15640 ;
15641 return 0;
15642}
15643_ACEOF
15644rm -f conftest.$ac_objext
15645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15646 (eval $ac_compile) 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
7357c5b6
AM
15653 { ac_try='test -z "$ac_c_werror_flag"
15654 || test ! -s conftest.err'
d5efd9fc
AM
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; } &&
15660 { ac_try='test -s conftest.$ac_objext'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }; then
15666 ac_lo=0 ac_mid=0
15667 while :; do
15668 cat >conftest.$ac_ext <<_ACEOF
15669/* confdefs.h. */
15670_ACEOF
15671cat confdefs.h >>conftest.$ac_ext
15672cat >>conftest.$ac_ext <<_ACEOF
15673/* end confdefs.h. */
15674$ac_includes_default
15675int
15676main ()
15677{
15678static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15679test_array [0] = 0
15680
15681 ;
15682 return 0;
15683}
15684_ACEOF
15685rm -f conftest.$ac_objext
15686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15687 (eval $ac_compile) 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
7357c5b6
AM
15694 { ac_try='test -z "$ac_c_werror_flag"
15695 || test ! -s conftest.err'
d5efd9fc
AM
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_hi=$ac_mid; break
15708else
15709 echo "$as_me: failed program was:" >&5
15710sed 's/^/| /' conftest.$ac_ext >&5
15711
15712ac_lo=`expr $ac_mid + 1`
15713 if test $ac_lo -le $ac_mid; then
15714 ac_lo= ac_hi=
15715 break
15716 fi
15717 ac_mid=`expr 2 '*' $ac_mid + 1`
15718fi
15719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15720 done
15721else
15722 echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725cat >conftest.$ac_ext <<_ACEOF
15726/* confdefs.h. */
15727_ACEOF
15728cat confdefs.h >>conftest.$ac_ext
15729cat >>conftest.$ac_ext <<_ACEOF
15730/* end confdefs.h. */
15731$ac_includes_default
15732int
15733main ()
15734{
15735static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15736test_array [0] = 0
15737
15738 ;
15739 return 0;
15740}
15741_ACEOF
15742rm -f conftest.$ac_objext
15743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>conftest.er1
15745 ac_status=$?
15746 grep -v '^ *+' conftest.er1 >conftest.err
15747 rm -f conftest.er1
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
7357c5b6
AM
15751 { ac_try='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
d5efd9fc
AM
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_hi=-1 ac_mid=-1
15765 while :; do
15766 cat >conftest.$ac_ext <<_ACEOF
15767/* confdefs.h. */
15768_ACEOF
15769cat confdefs.h >>conftest.$ac_ext
15770cat >>conftest.$ac_ext <<_ACEOF
15771/* end confdefs.h. */
15772$ac_includes_default
15773int
15774main ()
15775{
15776static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15777test_array [0] = 0
15778
15779 ;
15780 return 0;
15781}
15782_ACEOF
15783rm -f conftest.$ac_objext
15784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
7357c5b6
AM
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
d5efd9fc
AM
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_lo=$ac_mid; break
15806else
15807 echo "$as_me: failed program was:" >&5
15808sed 's/^/| /' conftest.$ac_ext >&5
15809
15810ac_hi=`expr '(' $ac_mid ')' - 1`
15811 if test $ac_mid -le $ac_hi; then
15812 ac_lo= ac_hi=
15813 break
15814 fi
15815 ac_mid=`expr 2 '*' $ac_mid`
15816fi
15817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15818 done
15819else
15820 echo "$as_me: failed program was:" >&5
15821sed 's/^/| /' conftest.$ac_ext >&5
15822
15823ac_lo= ac_hi=
15824fi
15825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15826fi
15827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15828# Binary search between lo and hi bounds.
15829while test "x$ac_lo" != "x$ac_hi"; do
15830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15831 cat >conftest.$ac_ext <<_ACEOF
15832/* confdefs.h. */
15833_ACEOF
15834cat confdefs.h >>conftest.$ac_ext
15835cat >>conftest.$ac_ext <<_ACEOF
15836/* end confdefs.h. */
15837$ac_includes_default
15838int
15839main ()
15840{
15841static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15842test_array [0] = 0
15843
15844 ;
15845 return 0;
15846}
15847_ACEOF
15848rm -f conftest.$ac_objext
15849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850 (eval $ac_compile) 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
7357c5b6
AM
15857 { ac_try='test -z "$ac_c_werror_flag"
15858 || test ! -s conftest.err'
d5efd9fc
AM
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15870 ac_hi=$ac_mid
15871else
15872 echo "$as_me: failed program was:" >&5
15873sed 's/^/| /' conftest.$ac_ext >&5
15874
15875ac_lo=`expr '(' $ac_mid ')' + 1`
15876fi
15877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15878done
15879case $ac_lo in
15880?*) ac_cv_sizeof_char=$ac_lo;;
7357c5b6
AM
15881'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15882echo "$as_me: error: in \`$ac_pwd':" >&2;}
15883{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d5efd9fc
AM
15884See \`config.log' for more details." >&5
15885echo "$as_me: error: cannot compute sizeof (char), 77
15886See \`config.log' for more details." >&2;}
7357c5b6 15887 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15888esac
15889else
15890 if test "$cross_compiling" = yes; then
7357c5b6
AM
15891 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15892echo "$as_me: error: in \`$ac_pwd':" >&2;}
15893{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15894See \`config.log' for more details." >&5
15895echo "$as_me: error: cannot run test program while cross compiling
15896See \`config.log' for more details." >&2;}
15897 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15898else
15899 cat >conftest.$ac_ext <<_ACEOF
15900/* confdefs.h. */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h. */
15905$ac_includes_default
15906long longval () { return (long) (sizeof (char)); }
15907unsigned long ulongval () { return (long) (sizeof (char)); }
15908#include <stdio.h>
15909#include <stdlib.h>
15910int
15911main ()
15912{
15913
15914 FILE *f = fopen ("conftest.val", "w");
15915 if (! f)
15916 exit (1);
15917 if (((long) (sizeof (char))) < 0)
15918 {
15919 long i = longval ();
15920 if (i != ((long) (sizeof (char))))
15921 exit (1);
15922 fprintf (f, "%ld\n", i);
15923 }
15924 else
15925 {
15926 unsigned long i = ulongval ();
15927 if (i != ((long) (sizeof (char))))
15928 exit (1);
15929 fprintf (f, "%lu\n", i);
15930 }
15931 exit (ferror (f) || fclose (f) != 0);
15932
15933 ;
15934 return 0;
15935}
15936_ACEOF
15937rm -f conftest$ac_exeext
15938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_cv_sizeof_char=`cat conftest.val`
15949else
15950 echo "$as_me: program exited with status $ac_status" >&5
15951echo "$as_me: failed program was:" >&5
15952sed 's/^/| /' conftest.$ac_ext >&5
15953
15954( exit $ac_status )
7357c5b6
AM
15955{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15956echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15957{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15958See \`config.log' for more details." >&5
15959echo "$as_me: error: cannot compute sizeof (char), 77
15960See \`config.log' for more details." >&2;}
7357c5b6 15961 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15962fi
15963rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15964fi
15965fi
15966rm -f conftest.val
15967else
15968 ac_cv_sizeof_char=0
15969fi
15970fi
15971echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15972echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15973cat >>confdefs.h <<_ACEOF
15974#define SIZEOF_CHAR $ac_cv_sizeof_char
15975_ACEOF
15976
15977
15978
15979 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15980echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15981 case "$ac_cv_sizeof_char" in
15982 1) acx_cv_type_int8_t=char ;;
15983 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15984echo "$as_me: error: no 8-bit type" >&2;}
15985 { (exit please report a bug); exit please report a bug; }; }
15986 esac
15987 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15988echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15989
15990 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15991echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15992 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15993 2:*) acx_cv_type_int16_t=int ;;
15994 *:2) acx_cv_type_int16_t=short ;;
15995 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15996echo "$as_me: error: no 16-bit type" >&2;}
15997 { (exit please report a bug); exit please report a bug; }; }
15998 esac
15999 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16000echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16001
16002 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16003echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16004 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16005 4:*) acx_cv_type_int32_t=int ;;
16006 *:4) acx_cv_type_int32_t=long ;;
16007 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16008echo "$as_me: error: no 32-bit type" >&2;}
16009 { (exit please report a bug); exit please report a bug; }; }
16010 esac
16011 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16012echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16013fi
16014
16015# These tests are here to make the output prettier
16016
16017if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16018 case "$ac_cv_sizeof_long" in
16019 8) acx_cv_type_int64_t=long ;;
16020 esac
16021 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16022echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16023 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16024echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16025fi
16026
16027# Now we can use the above types
16028
16029if test "$ac_cv_type_uintptr_t" != yes; then
16030 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16031echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16032 case $ac_cv_sizeof_void_p in
16033 2) acx_cv_type_intptr_t=int16_t ;;
16034 4) acx_cv_type_intptr_t=int32_t ;;
16035 8) acx_cv_type_intptr_t=int64_t ;;
16036 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16037echo "$as_me: error: no equivalent for intptr_t" >&2;}
16038 { (exit please report a bug); exit please report a bug; }; }
16039 esac
16040 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16041echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16042fi
16043
16044# ----------------- done all checks, emit header -------------
16045 ac_config_commands="$ac_config_commands bfd_stdint.h"
16046
16047
16048
2ba49b59
KC
16049echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16050echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16051if test "${ac_cv_header_time+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053else
16054 cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060#include <sys/types.h>
16061#include <sys/time.h>
16062#include <time.h>
16063
16064int
16065main ()
16066{
16067if ((struct tm *) 0)
16068return 0;
16069 ;
16070 return 0;
16071}
16072_ACEOF
16073rm -f conftest.$ac_objext
16074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16075 (eval $ac_compile) 2>conftest.er1
16076 ac_status=$?
16077 grep -v '^ *+' conftest.er1 >conftest.err
16078 rm -f conftest.er1
16079 cat conftest.err >&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } &&
7357c5b6
AM
16082 { ac_try='test -z "$ac_c_werror_flag"
16083 || test ! -s conftest.err'
2ba49b59
KC
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest.$ac_objext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_cv_header_time=yes
16096else
16097 echo "$as_me: failed program was:" >&5
16098sed 's/^/| /' conftest.$ac_ext >&5
16099
16100ac_cv_header_time=no
16101fi
16102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16103fi
16104echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16105echo "${ECHO_T}$ac_cv_header_time" >&6
16106if test $ac_cv_header_time = yes; then
16107
16108cat >>confdefs.h <<\_ACEOF
16109#define TIME_WITH_SYS_TIME 1
16110_ACEOF
16111
16112fi
16113
16114
16115
16116
16117
16118
16119ac_header_dirent=no
16120for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16121 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16122echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16123echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
16124if eval "test \"\${$as_ac_Header+set}\" = set"; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16126else
16127 cat >conftest.$ac_ext <<_ACEOF
16128/* confdefs.h. */
16129_ACEOF
16130cat confdefs.h >>conftest.$ac_ext
16131cat >>conftest.$ac_ext <<_ACEOF
16132/* end confdefs.h. */
16133#include <sys/types.h>
16134#include <$ac_hdr>
16135
16136int
16137main ()
16138{
16139if ((DIR *) 0)
16140return 0;
16141 ;
16142 return 0;
16143}
16144_ACEOF
16145rm -f conftest.$ac_objext
16146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
7357c5b6
AM
16154 { ac_try='test -z "$ac_c_werror_flag"
16155 || test ! -s conftest.err'
2ba49b59
KC
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; } &&
16161 { ac_try='test -s conftest.$ac_objext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 eval "$as_ac_Header=yes"
16168else
16169 echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
16172eval "$as_ac_Header=no"
16173fi
16174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16175fi
16176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16178if test `eval echo '${'$as_ac_Header'}'` = yes; then
16179 cat >>confdefs.h <<_ACEOF
16180#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16181_ACEOF
16182
16183ac_header_dirent=$ac_hdr; break
16184fi
16185
16186done
16187# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16188if test $ac_header_dirent = dirent.h; then
16189 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16190echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16191if test "${ac_cv_search_opendir+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193else
16194 ac_func_search_save_LIBS=$LIBS
16195ac_cv_search_opendir=no
16196cat >conftest.$ac_ext <<_ACEOF
16197/* confdefs.h. */
16198_ACEOF
16199cat confdefs.h >>conftest.$ac_ext
16200cat >>conftest.$ac_ext <<_ACEOF
16201/* end confdefs.h. */
16202
16203/* Override any gcc2 internal prototype to avoid an error. */
16204#ifdef __cplusplus
16205extern "C"
16206#endif
16207/* We use char because int might match the return type of a gcc2
16208 builtin and then its argument prototype would still apply. */
16209char opendir ();
16210int
16211main ()
16212{
16213opendir ();
16214 ;
16215 return 0;
16216}
16217_ACEOF
16218rm -f conftest.$ac_objext conftest$ac_exeext
16219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220 (eval $ac_link) 2>conftest.er1
16221 ac_status=$?
16222 grep -v '^ *+' conftest.er1 >conftest.err
16223 rm -f conftest.er1
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } &&
7357c5b6
AM
16227 { ac_try='test -z "$ac_c_werror_flag"
16228 || test ! -s conftest.err'
2ba49b59
KC
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; } &&
16234 { ac_try='test -s conftest$ac_exeext'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 ac_cv_search_opendir="none required"
16241else
16242 echo "$as_me: failed program was:" >&5
16243sed 's/^/| /' conftest.$ac_ext >&5
16244
16245fi
16246rm -f conftest.err conftest.$ac_objext \
16247 conftest$ac_exeext conftest.$ac_ext
16248if test "$ac_cv_search_opendir" = no; then
16249 for ac_lib in dir; do
16250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16251 cat >conftest.$ac_ext <<_ACEOF
16252/* confdefs.h. */
16253_ACEOF
16254cat confdefs.h >>conftest.$ac_ext
16255cat >>conftest.$ac_ext <<_ACEOF
16256/* end confdefs.h. */
16257
16258/* Override any gcc2 internal prototype to avoid an error. */
16259#ifdef __cplusplus
16260extern "C"
16261#endif
16262/* We use char because int might match the return type of a gcc2
16263 builtin and then its argument prototype would still apply. */
16264char opendir ();
16265int
16266main ()
16267{
16268opendir ();
16269 ;
16270 return 0;
16271}
16272_ACEOF
16273rm -f conftest.$ac_objext conftest$ac_exeext
16274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
7357c5b6
AM
16282 { ac_try='test -z "$ac_c_werror_flag"
16283 || test ! -s conftest.err'
2ba49b59
KC
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest$ac_exeext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 ac_cv_search_opendir="-l$ac_lib"
16296break
16297else
16298 echo "$as_me: failed program was:" >&5
16299sed 's/^/| /' conftest.$ac_ext >&5
16300
16301fi
16302rm -f conftest.err conftest.$ac_objext \
16303 conftest$ac_exeext conftest.$ac_ext
16304 done
16305fi
16306LIBS=$ac_func_search_save_LIBS
16307fi
16308echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16309echo "${ECHO_T}$ac_cv_search_opendir" >&6
16310if test "$ac_cv_search_opendir" != no; then
16311 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16312
16313fi
16314
16315else
16316 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16317echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16318if test "${ac_cv_search_opendir+set}" = set; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16320else
16321 ac_func_search_save_LIBS=$LIBS
16322ac_cv_search_opendir=no
16323cat >conftest.$ac_ext <<_ACEOF
16324/* confdefs.h. */
16325_ACEOF
16326cat confdefs.h >>conftest.$ac_ext
16327cat >>conftest.$ac_ext <<_ACEOF
16328/* end confdefs.h. */
16329
16330/* Override any gcc2 internal prototype to avoid an error. */
16331#ifdef __cplusplus
16332extern "C"
16333#endif
16334/* We use char because int might match the return type of a gcc2
16335 builtin and then its argument prototype would still apply. */
16336char opendir ();
16337int
16338main ()
16339{
16340opendir ();
16341 ;
16342 return 0;
16343}
16344_ACEOF
16345rm -f conftest.$ac_objext conftest$ac_exeext
16346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347 (eval $ac_link) 2>conftest.er1
16348 ac_status=$?
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
7357c5b6
AM
16354 { ac_try='test -z "$ac_c_werror_flag"
16355 || test ! -s conftest.err'
2ba49b59
KC
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try='test -s conftest$ac_exeext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16364 ac_status=$?
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_cv_search_opendir="none required"
16368else
16369 echo "$as_me: failed program was:" >&5
16370sed 's/^/| /' conftest.$ac_ext >&5
16371
16372fi
16373rm -f conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375if test "$ac_cv_search_opendir" = no; then
16376 for ac_lib in x; do
16377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16378 cat >conftest.$ac_ext <<_ACEOF
16379/* confdefs.h. */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h. */
16384
16385/* Override any gcc2 internal prototype to avoid an error. */
16386#ifdef __cplusplus
16387extern "C"
16388#endif
16389/* We use char because int might match the return type of a gcc2
16390 builtin and then its argument prototype would still apply. */
16391char opendir ();
16392int
16393main ()
16394{
16395opendir ();
16396 ;
16397 return 0;
16398}
16399_ACEOF
16400rm -f conftest.$ac_objext conftest$ac_exeext
16401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
7357c5b6
AM
16409 { ac_try='test -z "$ac_c_werror_flag"
16410 || test ! -s conftest.err'
2ba49b59
KC
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest$ac_exeext'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_cv_search_opendir="-l$ac_lib"
16423break
16424else
16425 echo "$as_me: failed program was:" >&5
16426sed 's/^/| /' conftest.$ac_ext >&5
16427
16428fi
16429rm -f conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16431 done
16432fi
16433LIBS=$ac_func_search_save_LIBS
16434fi
16435echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16436echo "${ECHO_T}$ac_cv_search_opendir" >&6
16437if test "$ac_cv_search_opendir" != no; then
16438 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16439
16440fi
16441
16442fi
16443
16444echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16445echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16446if test "${gcc_cv_header_string+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16448else
16449 cat >conftest.$ac_ext <<_ACEOF
16450/* confdefs.h. */
16451_ACEOF
16452cat confdefs.h >>conftest.$ac_ext
16453cat >>conftest.$ac_ext <<_ACEOF
16454/* end confdefs.h. */
16455#include <string.h>
16456#include <strings.h>
16457int
16458main ()
16459{
16460
16461 ;
16462 return 0;
16463}
16464_ACEOF
16465rm -f conftest.$ac_objext
16466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16467 (eval $ac_compile) 2>conftest.er1
16468 ac_status=$?
16469 grep -v '^ *+' conftest.er1 >conftest.err
16470 rm -f conftest.er1
16471 cat conftest.err >&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
7357c5b6
AM
16474 { ac_try='test -z "$ac_c_werror_flag"
16475 || test ! -s conftest.err'
2ba49b59
KC
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 gcc_cv_header_string=yes
16488else
16489 echo "$as_me: failed program was:" >&5
16490sed 's/^/| /' conftest.$ac_ext >&5
16491
16492gcc_cv_header_string=no
16493fi
16494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16495fi
16496echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16497echo "${ECHO_T}$gcc_cv_header_string" >&6
16498if test $gcc_cv_header_string = yes; then
16499
16500cat >>confdefs.h <<\_ACEOF
16501#define STRING_WITH_STRINGS 1
16502_ACEOF
16503
2e0fbf77
JW
16504fi
16505
5464f5a1
NN
16506
16507
16508
16509
16510
16511
16512
633fd09f 16513for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 16514do
5464f5a1
NN
16515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16516echo "$as_me:$LINENO: checking for $ac_func" >&5
16517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16518if eval "test \"\${$as_ac_var+set}\" = set"; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16520else
16521 cat >conftest.$ac_ext <<_ACEOF
16522/* confdefs.h. */
16523_ACEOF
16524cat confdefs.h >>conftest.$ac_ext
16525cat >>conftest.$ac_ext <<_ACEOF
16526/* end confdefs.h. */
16527/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16529#define $ac_func innocuous_$ac_func
16530
252b5132 16531/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16532 which can conflict with char $ac_func (); below.
16533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16534 <limits.h> exists even on freestanding compilers. */
16535
16536#ifdef __STDC__
16537# include <limits.h>
16538#else
16539# include <assert.h>
16540#endif
6be7c12c 16541
5464f5a1 16542#undef $ac_func
252b5132 16543
5464f5a1
NN
16544/* Override any gcc2 internal prototype to avoid an error. */
16545#ifdef __cplusplus
16546extern "C"
16547{
16548#endif
16549/* We use char because int might match the return type of a gcc2
16550 builtin and then its argument prototype would still apply. */
16551char $ac_func ();
252b5132
RH
16552/* The GNU C library defines this for functions which it implements
16553 to always fail with ENOSYS. Some functions are actually named
16554 something starting with __ and the normal name is an alias. */
16555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16556choke me
16557#else
5464f5a1
NN
16558char (*f) () = $ac_func;
16559#endif
16560#ifdef __cplusplus
16561}
252b5132
RH
16562#endif
16563
5464f5a1
NN
16564int
16565main ()
16566{
16567return f != $ac_func;
16568 ;
16569 return 0;
16570}
16571_ACEOF
16572rm -f conftest.$ac_objext conftest$ac_exeext
16573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574 (eval $ac_link) 2>conftest.er1
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
7357c5b6
AM
16581 { ac_try='test -z "$ac_c_werror_flag"
16582 || test ! -s conftest.err'
5464f5a1
NN
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest$ac_exeext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 eval "$as_ac_var=yes"
16595else
16596 echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599eval "$as_ac_var=no"
16600fi
16601rm -f conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16603fi
16604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16605echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16606if test `eval echo '${'$as_ac_var'}'` = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16609_ACEOF
252b5132 16610
252b5132
RH
16611fi
16612done
16613
5464f5a1 16614
49c97a80
ILT
16615for ac_func in strtoull
16616do
5464f5a1
NN
16617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16618echo "$as_me:$LINENO: checking for $ac_func" >&5
16619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16620if eval "test \"\${$as_ac_var+set}\" = set"; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622else
16623 cat >conftest.$ac_ext <<_ACEOF
16624/* confdefs.h. */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h. */
16629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16631#define $ac_func innocuous_$ac_func
16632
49c97a80 16633/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16634 which can conflict with char $ac_func (); below.
16635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16636 <limits.h> exists even on freestanding compilers. */
16637
16638#ifdef __STDC__
16639# include <limits.h>
16640#else
16641# include <assert.h>
16642#endif
49c97a80 16643
5464f5a1 16644#undef $ac_func
49c97a80 16645
5464f5a1
NN
16646/* Override any gcc2 internal prototype to avoid an error. */
16647#ifdef __cplusplus
16648extern "C"
16649{
16650#endif
16651/* We use char because int might match the return type of a gcc2
16652 builtin and then its argument prototype would still apply. */
16653char $ac_func ();
49c97a80
ILT
16654/* The GNU C library defines this for functions which it implements
16655 to always fail with ENOSYS. Some functions are actually named
16656 something starting with __ and the normal name is an alias. */
16657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16658choke me
16659#else
5464f5a1
NN
16660char (*f) () = $ac_func;
16661#endif
16662#ifdef __cplusplus
16663}
49c97a80
ILT
16664#endif
16665
5464f5a1
NN
16666int
16667main ()
16668{
16669return f != $ac_func;
16670 ;
16671 return 0;
16672}
16673_ACEOF
16674rm -f conftest.$ac_objext conftest$ac_exeext
16675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>conftest.er1
16677 ac_status=$?
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
7357c5b6
AM
16683 { ac_try='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
5464f5a1
NN
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest$ac_exeext'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 eval "$as_ac_var=yes"
16697else
16698 echo "$as_me: failed program was:" >&5
16699sed 's/^/| /' conftest.$ac_ext >&5
16700
16701eval "$as_ac_var=no"
16702fi
16703rm -f conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16705fi
16706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16707echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16708if test `eval echo '${'$as_ac_var'}'` = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16711_ACEOF
49c97a80 16712
49c97a80
ILT
16713fi
16714done
16715
6be7c12c 16716
2e9ebff5
JG
16717echo "$as_me:$LINENO: checking whether basename is declared" >&5
16718echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16719if test "${ac_cv_have_decl_basename+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16721else
16722 cat >conftest.$ac_ext <<_ACEOF
16723/* confdefs.h. */
16724_ACEOF
16725cat confdefs.h >>conftest.$ac_ext
16726cat >>conftest.$ac_ext <<_ACEOF
16727/* end confdefs.h. */
ec7b76fe 16728$ac_includes_default
2e9ebff5
JG
16729int
16730main ()
16731{
16732#ifndef basename
16733 char *p = (char *) basename;
16734#endif
16735
16736 ;
16737 return 0;
16738}
16739_ACEOF
16740rm -f conftest.$ac_objext
16741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742 (eval $ac_compile) 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
7357c5b6
AM
16749 { ac_try='test -z "$ac_c_werror_flag"
16750 || test ! -s conftest.err'
2e9ebff5
JG
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest.$ac_objext'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_cv_have_decl_basename=yes
16763else
16764 echo "$as_me: failed program was:" >&5
16765sed 's/^/| /' conftest.$ac_ext >&5
16766
16767ac_cv_have_decl_basename=no
16768fi
16769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16770fi
16771echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16772echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16773if test $ac_cv_have_decl_basename = yes; then
16774
16775cat >>confdefs.h <<_ACEOF
16776#define HAVE_DECL_BASENAME 1
16777_ACEOF
16778
16779
16780else
16781 cat >>confdefs.h <<_ACEOF
16782#define HAVE_DECL_BASENAME 0
16783_ACEOF
16784
16785
16786fi
16787
16788
ec7b76fe
JG
16789echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16790echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16791if test "${ac_cv_have_decl_ftello+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793else
16794 cat >conftest.$ac_ext <<_ACEOF
16795/* confdefs.h. */
16796_ACEOF
16797cat confdefs.h >>conftest.$ac_ext
16798cat >>conftest.$ac_ext <<_ACEOF
16799/* end confdefs.h. */
16800$ac_includes_default
16801int
16802main ()
16803{
16804#ifndef ftello
16805 char *p = (char *) ftello;
16806#endif
16807
16808 ;
16809 return 0;
16810}
16811_ACEOF
16812rm -f conftest.$ac_objext
16813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
7357c5b6
AM
16821 { ac_try='test -z "$ac_c_werror_flag"
16822 || test ! -s conftest.err'
ec7b76fe
JG
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; } &&
16828 { ac_try='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_have_decl_ftello=yes
16835else
16836 echo "$as_me: failed program was:" >&5
16837sed 's/^/| /' conftest.$ac_ext >&5
16838
16839ac_cv_have_decl_ftello=no
16840fi
16841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16842fi
16843echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16844echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16845if test $ac_cv_have_decl_ftello = yes; then
16846
16847cat >>confdefs.h <<_ACEOF
16848#define HAVE_DECL_FTELLO 1
16849_ACEOF
16850
16851
16852else
16853 cat >>confdefs.h <<_ACEOF
16854#define HAVE_DECL_FTELLO 0
16855_ACEOF
16856
16857
16858fi
16859
16860
16861echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16862echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16863if test "${ac_cv_have_decl_ftello64+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865else
16866 cat >conftest.$ac_ext <<_ACEOF
16867/* confdefs.h. */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h. */
16872$ac_includes_default
16873int
16874main ()
16875{
16876#ifndef ftello64
16877 char *p = (char *) ftello64;
16878#endif
16879
16880 ;
16881 return 0;
16882}
16883_ACEOF
16884rm -f conftest.$ac_objext
16885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886 (eval $ac_compile) 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
7357c5b6
AM
16893 { ac_try='test -z "$ac_c_werror_flag"
16894 || test ! -s conftest.err'
ec7b76fe
JG
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try='test -s conftest.$ac_objext'
16901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902 (eval $ac_try) 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 ac_cv_have_decl_ftello64=yes
16907else
16908 echo "$as_me: failed program was:" >&5
16909sed 's/^/| /' conftest.$ac_ext >&5
16910
16911ac_cv_have_decl_ftello64=no
16912fi
16913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16914fi
16915echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16916echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16917if test $ac_cv_have_decl_ftello64 = yes; then
16918
16919cat >>confdefs.h <<_ACEOF
16920#define HAVE_DECL_FTELLO64 1
16921_ACEOF
16922
16923
16924else
16925 cat >>confdefs.h <<_ACEOF
16926#define HAVE_DECL_FTELLO64 0
16927_ACEOF
16928
16929
16930fi
16931
16932
16933echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16934echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16935if test "${ac_cv_have_decl_fseeko+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937else
16938 cat >conftest.$ac_ext <<_ACEOF
16939/* confdefs.h. */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h. */
16944$ac_includes_default
16945int
16946main ()
16947{
16948#ifndef fseeko
16949 char *p = (char *) fseeko;
16950#endif
16951
16952 ;
16953 return 0;
16954}
16955_ACEOF
16956rm -f conftest.$ac_objext
16957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958 (eval $ac_compile) 2>conftest.er1
16959 ac_status=$?
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
7357c5b6
AM
16965 { ac_try='test -z "$ac_c_werror_flag"
16966 || test ! -s conftest.err'
ec7b76fe
JG
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest.$ac_objext'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_cv_have_decl_fseeko=yes
16979else
16980 echo "$as_me: failed program was:" >&5
16981sed 's/^/| /' conftest.$ac_ext >&5
16982
16983ac_cv_have_decl_fseeko=no
16984fi
16985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16986fi
16987echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16988echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16989if test $ac_cv_have_decl_fseeko = yes; then
16990
16991cat >>confdefs.h <<_ACEOF
16992#define HAVE_DECL_FSEEKO 1
16993_ACEOF
16994
16995
16996else
16997 cat >>confdefs.h <<_ACEOF
16998#define HAVE_DECL_FSEEKO 0
16999_ACEOF
17000
17001
17002fi
17003
17004
17005echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
17006echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
17007if test "${ac_cv_have_decl_fseeko64+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009else
17010 cat >conftest.$ac_ext <<_ACEOF
17011/* confdefs.h. */
17012_ACEOF
17013cat confdefs.h >>conftest.$ac_ext
17014cat >>conftest.$ac_ext <<_ACEOF
17015/* end confdefs.h. */
17016$ac_includes_default
17017int
17018main ()
17019{
17020#ifndef fseeko64
17021 char *p = (char *) fseeko64;
17022#endif
17023
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext
17029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030 (eval $ac_compile) 2>conftest.er1
17031 ac_status=$?
17032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
7357c5b6
AM
17037 { ac_try='test -z "$ac_c_werror_flag"
17038 || test ! -s conftest.err'
ec7b76fe
JG
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_have_decl_fseeko64=yes
17051else
17052 echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055ac_cv_have_decl_fseeko64=no
17056fi
17057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17058fi
17059echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
17060echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
17061if test $ac_cv_have_decl_fseeko64 = yes; then
17062
17063cat >>confdefs.h <<_ACEOF
17064#define HAVE_DECL_FSEEKO64 1
17065_ACEOF
17066
17067
17068else
17069 cat >>confdefs.h <<_ACEOF
17070#define HAVE_DECL_FSEEKO64 0
17071_ACEOF
17072
17073
17074fi
17075
17076
2e9ebff5 17077
6be7c12c 17078
252b5132 17079case "${host}" in
855b0be7 17080*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
17081
17082cat >>confdefs.h <<\_ACEOF
252b5132 17083#define USE_BINARY_FOPEN 1
5464f5a1 17084_ACEOF
252b5132
RH
17085 ;;
17086esac
17087
d34a2b1d
JG
17088echo "$as_me:$LINENO: checking whether ffs is declared" >&5
17089echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
17090if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 17091 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17092else
5464f5a1
NN
17093 cat >conftest.$ac_ext <<_ACEOF
17094/* confdefs.h. */
17095_ACEOF
17096cat confdefs.h >>conftest.$ac_ext
17097cat >>conftest.$ac_ext <<_ACEOF
17098/* end confdefs.h. */
d34a2b1d 17099$ac_includes_default
5464f5a1
NN
17100int
17101main ()
17102{
d34a2b1d
JG
17103#ifndef ffs
17104 char *p = (char *) ffs;
17105#endif
17106
5464f5a1
NN
17107 ;
17108 return 0;
17109}
17110_ACEOF
17111rm -f conftest.$ac_objext
17112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17113 (eval $ac_compile) 2>conftest.er1
17114 ac_status=$?
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
7357c5b6
AM
17120 { ac_try='test -z "$ac_c_werror_flag"
17121 || test ! -s conftest.err'
5464f5a1
NN
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; } &&
17127 { ac_try='test -s conftest.$ac_objext'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17130 ac_status=$?
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
d34a2b1d 17133 ac_cv_have_decl_ffs=yes
252b5132 17134else
5464f5a1
NN
17135 echo "$as_me: failed program was:" >&5
17136sed 's/^/| /' conftest.$ac_ext >&5
17137
d34a2b1d 17138ac_cv_have_decl_ffs=no
252b5132 17139fi
5464f5a1 17140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17141fi
d34a2b1d
JG
17142echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
17143echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
17144if test $ac_cv_have_decl_ffs = yes; then
252b5132 17145
d34a2b1d
JG
17146cat >>confdefs.h <<_ACEOF
17147#define HAVE_DECL_FFS 1
17148_ACEOF
5464f5a1 17149
d34a2b1d
JG
17150
17151else
17152 cat >>confdefs.h <<_ACEOF
17153#define HAVE_DECL_FFS 0
5464f5a1 17154_ACEOF
252b5132 17155
d34a2b1d 17156
252b5132
RH
17157fi
17158
d34a2b1d
JG
17159
17160echo "$as_me:$LINENO: checking whether free is declared" >&5
17161echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
17162if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 17163 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17164else
5464f5a1
NN
17165 cat >conftest.$ac_ext <<_ACEOF
17166/* confdefs.h. */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h. */
d34a2b1d 17171$ac_includes_default
5464f5a1
NN
17172int
17173main ()
17174{
d34a2b1d
JG
17175#ifndef free
17176 char *p = (char *) free;
17177#endif
17178
5464f5a1
NN
17179 ;
17180 return 0;
17181}
17182_ACEOF
17183rm -f conftest.$ac_objext
17184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17185 (eval $ac_compile) 2>conftest.er1
17186 ac_status=$?
17187 grep -v '^ *+' conftest.er1 >conftest.err
17188 rm -f conftest.er1
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
7357c5b6
AM
17192 { ac_try='test -z "$ac_c_werror_flag"
17193 || test ! -s conftest.err'
5464f5a1
NN
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest.$ac_objext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
d34a2b1d 17205 ac_cv_have_decl_free=yes
252b5132 17206else
5464f5a1
NN
17207 echo "$as_me: failed program was:" >&5
17208sed 's/^/| /' conftest.$ac_ext >&5
17209
d34a2b1d 17210ac_cv_have_decl_free=no
252b5132 17211fi
5464f5a1 17212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17213fi
d34a2b1d
JG
17214echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
17215echo "${ECHO_T}$ac_cv_have_decl_free" >&6
17216if test $ac_cv_have_decl_free = yes; then
17217
17218cat >>confdefs.h <<_ACEOF
17219#define HAVE_DECL_FREE 1
17220_ACEOF
252b5132 17221
5464f5a1 17222
d34a2b1d
JG
17223else
17224 cat >>confdefs.h <<_ACEOF
17225#define HAVE_DECL_FREE 0
5464f5a1 17226_ACEOF
252b5132 17227
d34a2b1d 17228
252b5132
RH
17229fi
17230
d34a2b1d
JG
17231
17232echo "$as_me:$LINENO: checking whether getenv is declared" >&5
17233echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
17234if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 17235 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17236else
5464f5a1
NN
17237 cat >conftest.$ac_ext <<_ACEOF
17238/* confdefs.h. */
17239_ACEOF
17240cat confdefs.h >>conftest.$ac_ext
17241cat >>conftest.$ac_ext <<_ACEOF
17242/* end confdefs.h. */
d34a2b1d 17243$ac_includes_default
5464f5a1
NN
17244int
17245main ()
17246{
d34a2b1d
JG
17247#ifndef getenv
17248 char *p = (char *) getenv;
17249#endif
17250
5464f5a1
NN
17251 ;
17252 return 0;
17253}
17254_ACEOF
17255rm -f conftest.$ac_objext
17256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17257 (eval $ac_compile) 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
7357c5b6
AM
17264 { ac_try='test -z "$ac_c_werror_flag"
17265 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17271 { ac_try='test -s conftest.$ac_objext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
d34a2b1d 17277 ac_cv_have_decl_getenv=yes
252b5132 17278else
5464f5a1
NN
17279 echo "$as_me: failed program was:" >&5
17280sed 's/^/| /' conftest.$ac_ext >&5
17281
d34a2b1d 17282ac_cv_have_decl_getenv=no
252b5132 17283fi
5464f5a1 17284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17285fi
d34a2b1d
JG
17286echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
17287echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
17288if test $ac_cv_have_decl_getenv = yes; then
252b5132 17289
d34a2b1d
JG
17290cat >>confdefs.h <<_ACEOF
17291#define HAVE_DECL_GETENV 1
17292_ACEOF
5464f5a1 17293
d34a2b1d
JG
17294
17295else
17296 cat >>confdefs.h <<_ACEOF
17297#define HAVE_DECL_GETENV 0
5464f5a1 17298_ACEOF
252b5132 17299
d34a2b1d 17300
252b5132
RH
17301fi
17302
d34a2b1d
JG
17303
17304echo "$as_me:$LINENO: checking whether malloc is declared" >&5
17305echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
17306if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 17307 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17308else
5464f5a1
NN
17309 cat >conftest.$ac_ext <<_ACEOF
17310/* confdefs.h. */
17311_ACEOF
17312cat confdefs.h >>conftest.$ac_ext
17313cat >>conftest.$ac_ext <<_ACEOF
17314/* end confdefs.h. */
d34a2b1d 17315$ac_includes_default
5464f5a1
NN
17316int
17317main ()
17318{
d34a2b1d
JG
17319#ifndef malloc
17320 char *p = (char *) malloc;
17321#endif
17322
5464f5a1
NN
17323 ;
17324 return 0;
17325}
17326_ACEOF
17327rm -f conftest.$ac_objext
17328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17329 (eval $ac_compile) 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
7357c5b6
AM
17336 { ac_try='test -z "$ac_c_werror_flag"
17337 || test ! -s conftest.err'
5464f5a1
NN
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try='test -s conftest.$ac_objext'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; }; then
d34a2b1d 17349 ac_cv_have_decl_malloc=yes
252b5132 17350else
5464f5a1
NN
17351 echo "$as_me: failed program was:" >&5
17352sed 's/^/| /' conftest.$ac_ext >&5
17353
d34a2b1d 17354ac_cv_have_decl_malloc=no
252b5132 17355fi
5464f5a1 17356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17357fi
d34a2b1d
JG
17358echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17359echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17360if test $ac_cv_have_decl_malloc = yes; then
252b5132 17361
d34a2b1d
JG
17362cat >>confdefs.h <<_ACEOF
17363#define HAVE_DECL_MALLOC 1
17364_ACEOF
5464f5a1 17365
d34a2b1d
JG
17366
17367else
17368 cat >>confdefs.h <<_ACEOF
17369#define HAVE_DECL_MALLOC 0
5464f5a1 17370_ACEOF
252b5132 17371
d34a2b1d 17372
252b5132
RH
17373fi
17374
d34a2b1d
JG
17375
17376echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17377echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17378if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 17379 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17380else
5464f5a1
NN
17381 cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h. */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h. */
d34a2b1d 17387$ac_includes_default
5464f5a1
NN
17388int
17389main ()
17390{
d34a2b1d
JG
17391#ifndef realloc
17392 char *p = (char *) realloc;
17393#endif
17394
5464f5a1
NN
17395 ;
17396 return 0;
17397}
17398_ACEOF
17399rm -f conftest.$ac_objext
17400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17401 (eval $ac_compile) 2>conftest.er1
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
7357c5b6
AM
17408 { ac_try='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
5464f5a1
NN
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest.$ac_objext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
d34a2b1d 17421 ac_cv_have_decl_realloc=yes
252b5132 17422else
5464f5a1
NN
17423 echo "$as_me: failed program was:" >&5
17424sed 's/^/| /' conftest.$ac_ext >&5
17425
d34a2b1d 17426ac_cv_have_decl_realloc=no
252b5132 17427fi
5464f5a1 17428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17429fi
d34a2b1d
JG
17430echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17431echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17432if test $ac_cv_have_decl_realloc = yes; then
17433
17434cat >>confdefs.h <<_ACEOF
17435#define HAVE_DECL_REALLOC 1
17436_ACEOF
252b5132 17437
5464f5a1 17438
d34a2b1d
JG
17439else
17440 cat >>confdefs.h <<_ACEOF
17441#define HAVE_DECL_REALLOC 0
efa9bda4
AL
17442_ACEOF
17443
d34a2b1d 17444
efa9bda4
AL
17445fi
17446
d34a2b1d 17447
be5cacdb
L
17448echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17449echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17450if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452else
17453 cat >conftest.$ac_ext <<_ACEOF
17454/* confdefs.h. */
17455_ACEOF
17456cat confdefs.h >>conftest.$ac_ext
17457cat >>conftest.$ac_ext <<_ACEOF
17458/* end confdefs.h. */
17459$ac_includes_default
17460int
17461main ()
17462{
17463#ifndef stpcpy
17464 char *p = (char *) stpcpy;
17465#endif
17466
17467 ;
17468 return 0;
17469}
17470_ACEOF
17471rm -f conftest.$ac_objext
17472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17473 (eval $ac_compile) 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
7357c5b6
AM
17480 { ac_try='test -z "$ac_c_werror_flag"
17481 || test ! -s conftest.err'
be5cacdb
L
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest.$ac_objext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_cv_have_decl_stpcpy=yes
17494else
17495 echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498ac_cv_have_decl_stpcpy=no
17499fi
17500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17501fi
17502echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17503echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17504if test $ac_cv_have_decl_stpcpy = yes; then
17505
17506cat >>confdefs.h <<_ACEOF
17507#define HAVE_DECL_STPCPY 1
17508_ACEOF
17509
17510
17511else
17512 cat >>confdefs.h <<_ACEOF
17513#define HAVE_DECL_STPCPY 0
17514_ACEOF
17515
17516
17517fi
17518
17519
d34a2b1d
JG
17520echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17521echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17522if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17524else
17525 cat >conftest.$ac_ext <<_ACEOF
17526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
d34a2b1d 17531$ac_includes_default
efa9bda4
AL
17532int
17533main ()
17534{
d34a2b1d
JG
17535#ifndef strstr
17536 char *p = (char *) strstr;
17537#endif
17538
efa9bda4
AL
17539 ;
17540 return 0;
17541}
17542_ACEOF
17543rm -f conftest.$ac_objext
17544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17545 (eval $ac_compile) 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
7357c5b6
AM
17552 { ac_try='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
efa9bda4
AL
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
d34a2b1d 17565 ac_cv_have_decl_strstr=yes
efa9bda4
AL
17566else
17567 echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
d34a2b1d 17570ac_cv_have_decl_strstr=no
efa9bda4
AL
17571fi
17572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17573fi
d34a2b1d
JG
17574echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17575echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17576if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 17577
d34a2b1d
JG
17578cat >>confdefs.h <<_ACEOF
17579#define HAVE_DECL_STRSTR 1
17580_ACEOF
efa9bda4 17581
d34a2b1d
JG
17582
17583else
17584 cat >>confdefs.h <<_ACEOF
17585#define HAVE_DECL_STRSTR 0
5464f5a1 17586_ACEOF
252b5132 17587
d34a2b1d 17588
252b5132
RH
17589fi
17590
6be7c12c 17591
36527912
AJ
17592echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17593echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17594if test "${ac_cv_have_decl_snprintf+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17596else
17597 cat >conftest.$ac_ext <<_ACEOF
17598/* confdefs.h. */
17599_ACEOF
17600cat confdefs.h >>conftest.$ac_ext
17601cat >>conftest.$ac_ext <<_ACEOF
17602/* end confdefs.h. */
17603$ac_includes_default
17604int
17605main ()
17606{
17607#ifndef snprintf
17608 char *p = (char *) snprintf;
17609#endif
17610
17611 ;
17612 return 0;
17613}
17614_ACEOF
17615rm -f conftest.$ac_objext
17616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17617 (eval $ac_compile) 2>conftest.er1
17618 ac_status=$?
17619 grep -v '^ *+' conftest.er1 >conftest.err
17620 rm -f conftest.er1
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
7357c5b6
AM
17624 { ac_try='test -z "$ac_c_werror_flag"
17625 || test ! -s conftest.err'
36527912
AJ
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest.$ac_objext'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 ac_cv_have_decl_snprintf=yes
17638else
17639 echo "$as_me: failed program was:" >&5
17640sed 's/^/| /' conftest.$ac_ext >&5
17641
17642ac_cv_have_decl_snprintf=no
17643fi
17644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17645fi
17646echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17647echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17648if test $ac_cv_have_decl_snprintf = yes; then
17649
17650cat >>confdefs.h <<_ACEOF
17651#define HAVE_DECL_SNPRINTF 1
17652_ACEOF
17653
17654
17655else
17656 cat >>confdefs.h <<_ACEOF
17657#define HAVE_DECL_SNPRINTF 0
17658_ACEOF
17659
17660
17661fi
17662
17663
17664echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17665echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17666if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668else
17669 cat >conftest.$ac_ext <<_ACEOF
17670/* confdefs.h. */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h. */
17675$ac_includes_default
17676int
17677main ()
17678{
17679#ifndef vsnprintf
17680 char *p = (char *) vsnprintf;
17681#endif
17682
17683 ;
17684 return 0;
17685}
17686_ACEOF
17687rm -f conftest.$ac_objext
17688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689 (eval $ac_compile) 2>conftest.er1
17690 ac_status=$?
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
7357c5b6
AM
17696 { ac_try='test -z "$ac_c_werror_flag"
17697 || test ! -s conftest.err'
36527912
AJ
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest.$ac_objext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_have_decl_vsnprintf=yes
17710else
17711 echo "$as_me: failed program was:" >&5
17712sed 's/^/| /' conftest.$ac_ext >&5
17713
17714ac_cv_have_decl_vsnprintf=no
17715fi
17716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17717fi
17718echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17719echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17720if test $ac_cv_have_decl_vsnprintf = yes; then
17721
17722cat >>confdefs.h <<_ACEOF
17723#define HAVE_DECL_VSNPRINTF 1
17724_ACEOF
17725
17726
17727else
17728 cat >>confdefs.h <<_ACEOF
17729#define HAVE_DECL_VSNPRINTF 0
17730_ACEOF
17731
17732
17733fi
17734
17735
d34a2b1d 17736
1b315056 17737# Link in zlib if we can. This allows us to read compressed debug sections.
7357c5b6 17738# This is used only by compress.c.
1b315056
CS
17739echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
17740echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
17741if test "${ac_cv_search_zlibVersion+set}" = set; then
17742 echo $ECHO_N "(cached) $ECHO_C" >&6
17743else
17744 ac_func_search_save_LIBS=$LIBS
17745ac_cv_search_zlibVersion=no
17746cat >conftest.$ac_ext <<_ACEOF
17747/* confdefs.h. */
17748_ACEOF
17749cat confdefs.h >>conftest.$ac_ext
17750cat >>conftest.$ac_ext <<_ACEOF
17751/* end confdefs.h. */
17752
17753/* Override any gcc2 internal prototype to avoid an error. */
17754#ifdef __cplusplus
17755extern "C"
17756#endif
17757/* We use char because int might match the return type of a gcc2
17758 builtin and then its argument prototype would still apply. */
17759char zlibVersion ();
17760int
17761main ()
17762{
17763zlibVersion ();
17764 ;
17765 return 0;
17766}
17767_ACEOF
17768rm -f conftest.$ac_objext conftest$ac_exeext
17769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17770 (eval $ac_link) 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } &&
7357c5b6
AM
17777 { ac_try='test -z "$ac_c_werror_flag"
17778 || test ! -s conftest.err'
1b315056
CS
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest$ac_exeext'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 ac_cv_search_zlibVersion="none required"
17791else
17792 echo "$as_me: failed program was:" >&5
17793sed 's/^/| /' conftest.$ac_ext >&5
17794
17795fi
17796rm -f conftest.err conftest.$ac_objext \
17797 conftest$ac_exeext conftest.$ac_ext
17798if test "$ac_cv_search_zlibVersion" = no; then
17799 for ac_lib in z; do
17800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17801 cat >conftest.$ac_ext <<_ACEOF
17802/* confdefs.h. */
17803_ACEOF
17804cat confdefs.h >>conftest.$ac_ext
17805cat >>conftest.$ac_ext <<_ACEOF
17806/* end confdefs.h. */
17807
17808/* Override any gcc2 internal prototype to avoid an error. */
17809#ifdef __cplusplus
17810extern "C"
17811#endif
17812/* We use char because int might match the return type of a gcc2
17813 builtin and then its argument prototype would still apply. */
17814char zlibVersion ();
17815int
17816main ()
17817{
17818zlibVersion ();
17819 ;
17820 return 0;
17821}
17822_ACEOF
17823rm -f conftest.$ac_objext conftest$ac_exeext
17824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17825 (eval $ac_link) 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } &&
7357c5b6
AM
17832 { ac_try='test -z "$ac_c_werror_flag"
17833 || test ! -s conftest.err'
1b315056
CS
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; } &&
17839 { ac_try='test -s conftest$ac_exeext'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 ac_cv_search_zlibVersion="-l$ac_lib"
17846break
17847else
17848 echo "$as_me: failed program was:" >&5
17849sed 's/^/| /' conftest.$ac_ext >&5
17850
17851fi
17852rm -f conftest.err conftest.$ac_objext \
17853 conftest$ac_exeext conftest.$ac_ext
17854 done
17855fi
17856LIBS=$ac_func_search_save_LIBS
17857fi
17858echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
17859echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
17860if test "$ac_cv_search_zlibVersion" != no; then
17861 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
17862
17863for ac_header in zlib.h
17864do
17865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17866if eval "test \"\${$as_ac_Header+set}\" = set"; then
17867 echo "$as_me:$LINENO: checking for $ac_header" >&5
17868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17869if eval "test \"\${$as_ac_Header+set}\" = set"; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871fi
17872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17874else
17875 # Is the header compilable?
17876echo "$as_me:$LINENO: checking $ac_header usability" >&5
17877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17878cat >conftest.$ac_ext <<_ACEOF
17879/* confdefs.h. */
17880_ACEOF
17881cat confdefs.h >>conftest.$ac_ext
17882cat >>conftest.$ac_ext <<_ACEOF
17883/* end confdefs.h. */
17884$ac_includes_default
17885#include <$ac_header>
17886_ACEOF
17887rm -f conftest.$ac_objext
17888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17889 (eval $ac_compile) 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
7357c5b6
AM
17896 { ac_try='test -z "$ac_c_werror_flag"
17897 || test ! -s conftest.err'
1b315056
CS
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest.$ac_objext'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 ac_header_compiler=yes
17910else
17911 echo "$as_me: failed program was:" >&5
17912sed 's/^/| /' conftest.$ac_ext >&5
17913
17914ac_header_compiler=no
17915fi
17916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17918echo "${ECHO_T}$ac_header_compiler" >&6
17919
17920# Is the header present?
17921echo "$as_me:$LINENO: checking $ac_header presence" >&5
17922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17923cat >conftest.$ac_ext <<_ACEOF
17924/* confdefs.h. */
17925_ACEOF
17926cat confdefs.h >>conftest.$ac_ext
17927cat >>conftest.$ac_ext <<_ACEOF
17928/* end confdefs.h. */
17929#include <$ac_header>
17930_ACEOF
17931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17933 ac_status=$?
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } >/dev/null; then
17939 if test -s conftest.err; then
17940 ac_cpp_err=$ac_c_preproc_warn_flag
17941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17942 else
17943 ac_cpp_err=
17944 fi
17945else
17946 ac_cpp_err=yes
17947fi
17948if test -z "$ac_cpp_err"; then
17949 ac_header_preproc=yes
17950else
17951 echo "$as_me: failed program was:" >&5
17952sed 's/^/| /' conftest.$ac_ext >&5
17953
17954 ac_header_preproc=no
17955fi
17956rm -f conftest.err conftest.$ac_ext
17957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17958echo "${ECHO_T}$ac_header_preproc" >&6
17959
17960# So? What about this header?
17961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17962 yes:no: )
17963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17967 ac_header_preproc=yes
17968 ;;
17969 no:yes:* )
17970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17973echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17977echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17982 (
17983 cat <<\_ASBOX
17984## ------------------------------------------ ##
17985## Report this to the AC_PACKAGE_NAME lists. ##
17986## ------------------------------------------ ##
17987_ASBOX
17988 ) |
17989 sed "s/^/$as_me: WARNING: /" >&2
17990 ;;
17991esac
17992echo "$as_me:$LINENO: checking for $ac_header" >&5
17993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17994if eval "test \"\${$as_ac_Header+set}\" = set"; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17996else
17997 eval "$as_ac_Header=\$ac_header_preproc"
17998fi
17999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18001
18002fi
18003if test `eval echo '${'$as_ac_Header'}'` = yes; then
18004 cat >>confdefs.h <<_ACEOF
18005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18006_ACEOF
18007
18008fi
18009
18010done
18011
18012fi
18013
18014
252b5132
RH
18015# If we are configured native, pick a core file support file.
18016COREFILE=
18017COREFLAG=
18018TRAD_HEADER=
18019if test "${target}" = "${host}"; then
18020 case "${host}" in
13dfd2d0 18021 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
18022 COREFILE=''
18023 ;;
ed84e695 18024 alpha*-*-linux-*)
252b5132
RH
18025 COREFILE=trad-core.lo
18026 TRAD_HEADER='"hosts/alphalinux.h"'
18027 ;;
690cc98b
NC
18028 alpha*-*-netbsd* | alpha*-*-openbsd*)
18029 COREFILE=netbsd-core.lo
18030 ;;
252b5132 18031 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
18032 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
18033 COREFILE='' ;;
e33533a4
MK
18034 arm-*-netbsd* | arm-*-openbsd*)
18035 COREFILE=netbsd-core.lo
18036 ;;
252b5132
RH
18037 arm-*-riscix) COREFILE=trad-core.lo ;;
18038 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
18039 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
18040 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
18041 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
18042 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
18043 hppa*-*-netbsd* | hppa*-*-openbsd*)
18044 COREFILE=netbsd-core.lo
18045 ;;
18046
dc810e39 18047 i370-*-*)
5b93d8bb
AM
18048 COREFILE=trad-core.lo
18049 TRAD_HEADER='"hosts/i370linux.h"'
18050 ;;
18051
80c7c40a 18052 i[3-7]86-sequent-bsd*)
5b93d8bb 18053 COREFILE=trad-core.lo
252b5132
RH
18054 TRAD_HEADER='"hosts/symmetry.h"'
18055 ;;
80c7c40a
NC
18056 i[3-7]86-sequent-sysv4*) ;;
18057 i[3-7]86-sequent-sysv*)
252b5132
RH
18058 COREFILE=trad-core.lo
18059 TRAD_HEADER='"hosts/symmetry.h"'
18060 ;;
80c7c40a 18061 i[3-7]86-*-bsdi)
7e3b3466
NC
18062 COREFILE=
18063 ;;
d2bef492 18064 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
18065 COREFILE=trad-core.lo
18066 TRAD_HEADER='"hosts/i386bsd.h"'
18067 ;;
0b3e17e9 18068 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
18069 COREFILE=''
18070 TRAD_HEADER='"hosts/i386bsd.h"'
18071 ;;
4615568e 18072 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
18073 COREFILE=netbsd-core.lo
18074 ;;
80c7c40a 18075 i[3-7]86-esix-sysv3*)
252b5132
RH
18076 COREFILE=trad-core.lo
18077 TRAD_HEADER='"hosts/esix.h"'
18078 ;;
80c7c40a 18079 i[3-7]86-*-sco3.2v5*)
252b5132
RH
18080 COREFILE=sco5-core.lo
18081 ;;
80c7c40a 18082 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
18083 COREFILE=trad-core.lo
18084 TRAD_HEADER='"hosts/i386sco.h"'
18085 ;;
80c7c40a 18086 i[3-7]86-*-mach3*)
252b5132
RH
18087 COREFILE=trad-core.lo
18088 TRAD_HEADER='"hosts/i386mach3.h"'
18089 ;;
ed84e695 18090 i[3-7]86-*-linux-*)
252b5132
RH
18091 COREFILE=trad-core.lo
18092 TRAD_HEADER='"hosts/i386linux.h"'
18093 ;;
80c7c40a
NC
18094 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
18095 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
18096 i860-*-mach3* | i860-*-osf1*)
18097 COREFILE=trad-core.lo
18098 TRAD_HEADER='"hosts/i860mach3.h"'
18099 ;;
252b5132
RH
18100 mips-*-netbsd* | mips*-*-openbsd*)
18101 COREFILE=netbsd-core.lo
18102 ;;
18103 mips-dec-*)
18104 COREFILE=trad-core.lo
18105 TRAD_HEADER='"hosts/decstation.h"'
18106 ;;
18107 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
18108 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
18109 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
18110 mips-*-sysv4*) ;;
18111 mips-*-sysv* | mips-*-riscos*)
18112 COREFILE=trad-core.lo
18113 TRAD_HEADER='"hosts/riscos.h"'
18114 ;;
18115 mips-sony-bsd*)
18116 COREFILE=trad-core.lo
18117 TRAD_HEADER='"hosts/news-mips.h"'
18118 ;;
18119 m68*-bull*-sysv*)
18120 COREFILE=trad-core.lo
18121 TRAD_HEADER='"hosts/dpx2.h"'
18122 ;;
18123 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
18124 m68*-hp-bsd*)
18125 COREFILE=trad-core.lo
18126 TRAD_HEADER='"hosts/hp300bsd.h"'
18127 ;;
ed84e695 18128 m68*-*-linux-*)
252b5132
RH
18129 COREFILE=trad-core.lo
18130 TRAD_HEADER='"hosts/m68klinux.h"'
18131 ;;
18132 m68*-motorola-sysv*)
18133 COREFILE=trad-core.lo
18134 TRAD_HEADER='"hosts/delta68.h"'
18135 ;;
18136 m68*-sony-*)
18137 COREFILE=trad-core.lo
18138 TRAD_HEADER='"hosts/news.h"'
18139 ;;
18140 m68*-*-netbsd* | m68*-*-openbsd*)
18141 COREFILE=netbsd-core.lo
18142 ;;
18143 m68*-apple-aux*)
18144 COREFILE=trad-core.lo
18145 TRAD_HEADER='"hosts/m68kaux.h"'
18146 ;;
eb1e0e80
NC
18147 m88*-*-sysv4*)
18148 ;;
18149 m88*-motorola-sysv*)
18150 COREFILE=ptrace-core.lo
18151 ;;
252b5132
RH
18152 m88*-*-mach3*)
18153 COREFILE=trad-core.lo
18154 TRAD_HEADER='"hosts/m88kmach3.h"'
18155 ;;
c6f8758f
NC
18156 m88*-*-openbsd*)
18157 COREFILE=netbsd-core.lo
18158 ;;
252b5132
RH
18159 ns32k-pc532-mach)
18160 COREFILE=trad-core.lo
18161 TRAD_HEADER='"hosts/pc532mach.h"'
18162 ;;
18163 ns32k-*-netbsd* | ns32k-*-openbsd*)
18164 COREFILE=netbsd-core.lo
18165 ;;
eb1e0e80
NC
18166 rs6000-*-lynx*)
18167 COREFILE=lynx-core.lo
18168 ;;
18169 rs6000-*-aix5.* | powerpc-*-aix5.*)
18170 COREFILE=rs6000-core.lo
18171 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
18172 ;;
83954261 18173 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
18174 COREFILE=rs6000-core.lo
18175 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
18176 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
18177 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
18178 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
18179echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
18180 cat >conftest.$ac_ext <<_ACEOF
18181/* confdefs.h. */
18182_ACEOF
18183cat confdefs.h >>conftest.$ac_ext
18184cat >>conftest.$ac_ext <<_ACEOF
18185/* end confdefs.h. */
83954261 18186#include <core.h>
5464f5a1
NN
18187int
18188main ()
18189{
83954261 18190struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
18191 ;
18192 return 0;
18193}
18194_ACEOF
18195rm -f conftest.$ac_objext
18196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18197 (eval $ac_compile) 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
7357c5b6
AM
18204 { ac_try='test -z "$ac_c_werror_flag"
18205 || test ! -s conftest.err'
5464f5a1
NN
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest.$ac_objext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217
18218cat >>confdefs.h <<\_ACEOF
83954261 18219#define HAVE_ST_C_IMPL 1
5464f5a1 18220_ACEOF
83954261 18221
5464f5a1
NN
18222 echo "$as_me:$LINENO: result: yes" >&5
18223echo "${ECHO_T}yes" >&6
83954261 18224else
5464f5a1
NN
18225 echo "$as_me: failed program was:" >&5
18226sed 's/^/| /' conftest.$ac_ext >&5
18227
18228echo "$as_me:$LINENO: result: no" >&5
18229echo "${ECHO_T}no" >&6
83954261 18230fi
5464f5a1 18231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 18232 ;;
252b5132
RH
18233 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
18234 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
18235 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
18236 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
18237 powerpc-*-beos*) ;;
13dfd2d0
NC
18238 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
18239 COREFILE='' ;;
252b5132 18240 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 18241 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 18242 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
18243 sh*-*-netbsd* | sh*-*-openbsd*)
18244 COREFILE=netbsd-core.lo
18245 ;;
a9bf1154 18246 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
18247 COREFILE=netbsd-core.lo
18248 ;;
18249 tahoe-*-*)
18250 COREFILE=trad-core.lo
18251 TRAD_HEADER='"hosts/tahoe.h"'
18252 ;;
de6e5e1a
NC
18253 vax-*-netbsd* | vax-*-openbsd*)
18254 COREFILE=netbsd-core.lo
18255 ;;
252b5132
RH
18256 vax-*-ultrix2*)
18257 COREFILE=trad-core.lo
18258 TRAD_HEADER='"hosts/vaxult2.h"'
18259 ;;
18260 vax-*-ultrix*)
18261 COREFILE=trad-core.lo
18262 TRAD_HEADER='"hosts/vaxult2.h"'
18263 ;;
ed84e695 18264 vax-*-linux-*)
f8fc3443
NC
18265 COREFILE=trad-core.lo
18266 TRAD_HEADER='"hosts/vaxlinux.h"'
18267 ;;
252b5132
RH
18268 vax-*-*)
18269 COREFILE=trad-core.lo
18270 TRAD_HEADER='"hosts/vaxbsd.h"'
18271 ;;
85cfd8d3
MK
18272 x86_64-*-netbsd* | x86_64-*-openbsd*)
18273 COREFILE=netbsd-core.lo
18274 ;;
252b5132
RH
18275 esac
18276
18277 case "$COREFILE" in
18278 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
18279 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
18280 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
18281 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
18282 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
18283 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
18284 osf-core.lo) COREFLAG=-DOSF_CORE ;;
18285 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
18286 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
18287 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
18288 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
18289 esac
18290
18291 # ELF corefile support has several flavors, but all of
18292 # them use something called <sys/procfs.h>
5464f5a1
NN
18293
18294for ac_header in sys/procfs.h
252b5132 18295do
5464f5a1
NN
18296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18297if eval "test \"\${$as_ac_Header+set}\" = set"; then
18298 echo "$as_me:$LINENO: checking for $ac_header" >&5
18299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18300if eval "test \"\${$as_ac_Header+set}\" = set"; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18302fi
18303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18305else
18306 # Is the header compilable?
18307echo "$as_me:$LINENO: checking $ac_header usability" >&5
18308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18309cat >conftest.$ac_ext <<_ACEOF
18310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
18315$ac_includes_default
18316#include <$ac_header>
18317_ACEOF
18318rm -f conftest.$ac_objext
18319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18320 (eval $ac_compile) 2>conftest.er1
18321 ac_status=$?
18322 grep -v '^ *+' conftest.er1 >conftest.err
18323 rm -f conftest.er1
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
7357c5b6
AM
18327 { ac_try='test -z "$ac_c_werror_flag"
18328 || test ! -s conftest.err'
5464f5a1
NN
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest.$ac_objext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_header_compiler=yes
18341else
18342 echo "$as_me: failed program was:" >&5
18343sed 's/^/| /' conftest.$ac_ext >&5
18344
18345ac_header_compiler=no
18346fi
18347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18349echo "${ECHO_T}$ac_header_compiler" >&6
18350
18351# Is the header present?
18352echo "$as_me:$LINENO: checking $ac_header presence" >&5
18353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18354cat >conftest.$ac_ext <<_ACEOF
18355/* confdefs.h. */
18356_ACEOF
18357cat confdefs.h >>conftest.$ac_ext
18358cat >>conftest.$ac_ext <<_ACEOF
18359/* end confdefs.h. */
18360#include <$ac_header>
18361_ACEOF
18362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18364 ac_status=$?
18365 grep -v '^ *+' conftest.er1 >conftest.err
18366 rm -f conftest.er1
18367 cat conftest.err >&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } >/dev/null; then
18370 if test -s conftest.err; then
18371 ac_cpp_err=$ac_c_preproc_warn_flag
18372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18373 else
18374 ac_cpp_err=
18375 fi
252b5132 18376else
5464f5a1 18377 ac_cpp_err=yes
252b5132 18378fi
5464f5a1
NN
18379if test -z "$ac_cpp_err"; then
18380 ac_header_preproc=yes
18381else
18382 echo "$as_me: failed program was:" >&5
18383sed 's/^/| /' conftest.$ac_ext >&5
18384
18385 ac_header_preproc=no
252b5132 18386fi
5464f5a1
NN
18387rm -f conftest.err conftest.$ac_ext
18388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18389echo "${ECHO_T}$ac_header_preproc" >&6
18390
18391# So? What about this header?
18392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18393 yes:no: )
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18398 ac_header_preproc=yes
18399 ;;
18400 no:yes:* )
18401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18408echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18413 (
18414 cat <<\_ASBOX
18415## ------------------------------------------ ##
18416## Report this to the AC_PACKAGE_NAME lists. ##
18417## ------------------------------------------ ##
18418_ASBOX
18419 ) |
18420 sed "s/^/$as_me: WARNING: /" >&2
18421 ;;
18422esac
18423echo "$as_me:$LINENO: checking for $ac_header" >&5
18424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18425if eval "test \"\${$as_ac_Header+set}\" = set"; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 18427else
5464f5a1
NN
18428 eval "$as_ac_Header=\$ac_header_preproc"
18429fi
18430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18432
252b5132 18433fi
5464f5a1
NN
18434if test `eval echo '${'$as_ac_Header'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18437_ACEOF
18438
18439fi
18440
252b5132
RH
18441done
18442
18443 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
18444 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
18445echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
18446 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18448else
18449 cat >conftest.$ac_ext <<_ACEOF
18450/* confdefs.h. */
18451_ACEOF
18452cat confdefs.h >>conftest.$ac_ext
18453cat >>conftest.$ac_ext <<_ACEOF
18454/* end confdefs.h. */
7ee38065
MS
18455
18456#define _SYSCALL32
252b5132 18457#include <sys/procfs.h>
5464f5a1
NN
18458int
18459main ()
18460{
252b5132 18461prstatus_t avar
5464f5a1
NN
18462 ;
18463 return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext
18467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18468 (eval $ac_compile) 2>conftest.er1
18469 ac_status=$?
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
7357c5b6
AM
18475 { ac_try='test -z "$ac_c_werror_flag"
18476 || test ! -s conftest.err'
5464f5a1
NN
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try='test -s conftest.$ac_objext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
252b5132
RH
18488 bfd_cv_have_sys_procfs_type_prstatus_t=yes
18489else
5464f5a1
NN
18490 echo "$as_me: failed program was:" >&5
18491sed 's/^/| /' conftest.$ac_ext >&5
18492
18493bfd_cv_have_sys_procfs_type_prstatus_t=no
18494
252b5132 18495fi
5464f5a1 18496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18497fi
18498
18499 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
18500
18501cat >>confdefs.h <<\_ACEOF
252b5132 18502#define HAVE_PRSTATUS_T 1
5464f5a1 18503_ACEOF
252b5132
RH
18504
18505 fi
5464f5a1
NN
18506 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
18507echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 18508
5464f5a1
NN
18509 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
18510echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
18511 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18513else
5464f5a1
NN
18514 cat >conftest.$ac_ext <<_ACEOF
18515/* confdefs.h. */
18516_ACEOF
18517cat confdefs.h >>conftest.$ac_ext
18518cat >>conftest.$ac_ext <<_ACEOF
18519/* end confdefs.h. */
7ee38065
MS
18520
18521#define _SYSCALL32
18522#include <sys/procfs.h>
5464f5a1
NN
18523int
18524main ()
18525{
7ee38065 18526prstatus32_t avar
5464f5a1
NN
18527 ;
18528 return 0;
18529}
18530_ACEOF
18531rm -f conftest.$ac_objext
18532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18533 (eval $ac_compile) 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
7357c5b6
AM
18540 { ac_try='test -z "$ac_c_werror_flag"
18541 || test ! -s conftest.err'
5464f5a1
NN
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
7ee38065
MS
18553 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
18554else
5464f5a1
NN
18555 echo "$as_me: failed program was:" >&5
18556sed 's/^/| /' conftest.$ac_ext >&5
18557
18558bfd_cv_have_sys_procfs_type_prstatus32_t=no
18559
7ee38065 18560fi
5464f5a1 18561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18562fi
18563
18564 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
18565
18566cat >>confdefs.h <<\_ACEOF
7ee38065 18567#define HAVE_PRSTATUS32_T 1
5464f5a1 18568_ACEOF
7ee38065
MS
18569
18570 fi
5464f5a1
NN
18571 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
18572echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 18573
5464f5a1
NN
18574 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
18575echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18576 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18578else
5464f5a1
NN
18579 cat >conftest.$ac_ext <<_ACEOF
18580/* confdefs.h. */
18581_ACEOF
18582cat confdefs.h >>conftest.$ac_ext
18583cat >>conftest.$ac_ext <<_ACEOF
18584/* end confdefs.h. */
7ee38065
MS
18585
18586#define _SYSCALL32
252b5132 18587#include <sys/procfs.h>
5464f5a1
NN
18588int
18589main ()
18590{
252b5132 18591prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
18592 ;
18593 return 0;
18594}
18595_ACEOF
18596rm -f conftest.$ac_objext
18597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18598 (eval $ac_compile) 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
7357c5b6
AM
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
5464f5a1
NN
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest.$ac_objext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
252b5132
RH
18618 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18619else
5464f5a1
NN
18620 echo "$as_me: failed program was:" >&5
18621sed 's/^/| /' conftest.$ac_ext >&5
18622
18623bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18624
252b5132 18625fi
5464f5a1 18626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18627fi
18628
18629 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
18630
18631cat >>confdefs.h <<\_ACEOF
252b5132 18632#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 18633_ACEOF
252b5132
RH
18634
18635 fi
5464f5a1
NN
18636 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18637echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 18638
5464f5a1
NN
18639 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18640echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18641 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18643else
5464f5a1
NN
18644 cat >conftest.$ac_ext <<_ACEOF
18645/* confdefs.h. */
18646_ACEOF
18647cat confdefs.h >>conftest.$ac_ext
18648cat >>conftest.$ac_ext <<_ACEOF
18649/* end confdefs.h. */
7ee38065
MS
18650
18651#define _SYSCALL32
18652#include <sys/procfs.h>
5464f5a1
NN
18653int
18654main ()
18655{
7ee38065 18656prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
18657 ;
18658 return 0;
18659}
18660_ACEOF
18661rm -f conftest.$ac_objext
18662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18663 (eval $ac_compile) 2>conftest.er1
18664 ac_status=$?
18665 grep -v '^ *+' conftest.er1 >conftest.err
18666 rm -f conftest.er1
18667 cat conftest.err >&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
7357c5b6
AM
18670 { ac_try='test -z "$ac_c_werror_flag"
18671 || 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_member_prstatus32_t_pr_who=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_member_prstatus32_t_pr_who=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_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
18695
18696cat >>confdefs.h <<\_ACEOF
7ee38065 18697#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 18698_ACEOF
7ee38065
MS
18699
18700 fi
5464f5a1
NN
18701 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18702echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 18703
5464f5a1
NN
18704 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18705echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18706 if test "${bfd_cv_have_sys_procfs_type_pstatus_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 18721pstatus_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); } &&
7357c5b6
AM
18735 { ac_try='test -z "$ac_c_werror_flag"
18736 || test ! -s conftest.err'
5464f5a1
NN
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest.$ac_objext'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
252b5132
RH
18748 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18749else
5464f5a1
NN
18750 echo "$as_me: failed program was:" >&5
18751sed 's/^/| /' conftest.$ac_ext >&5
18752
18753bfd_cv_have_sys_procfs_type_pstatus_t=no
18754
252b5132 18755fi
5464f5a1 18756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18757fi
18758
18759 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
18760
18761cat >>confdefs.h <<\_ACEOF
252b5132 18762#define HAVE_PSTATUS_T 1
5464f5a1 18763_ACEOF
252b5132
RH
18764
18765 fi
5464f5a1
NN
18766 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18767echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 18768
5464f5a1
NN
18769 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18770echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18771 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18773else
5464f5a1
NN
18774 cat >conftest.$ac_ext <<_ACEOF
18775/* confdefs.h. */
18776_ACEOF
18777cat confdefs.h >>conftest.$ac_ext
18778cat >>conftest.$ac_ext <<_ACEOF
18779/* end confdefs.h. */
f572a39d
AM
18780
18781#define _SYSCALL32
18782#include <sys/procfs.h>
5464f5a1
NN
18783int
18784main ()
18785{
f572a39d 18786pxstatus_t avar
5464f5a1
NN
18787 ;
18788 return 0;
18789}
18790_ACEOF
18791rm -f conftest.$ac_objext
18792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18793 (eval $ac_compile) 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
7357c5b6
AM
18800 { ac_try='test -z "$ac_c_werror_flag"
18801 || test ! -s conftest.err'
5464f5a1
NN
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest.$ac_objext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
f572a39d
AM
18813 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18814else
5464f5a1
NN
18815 echo "$as_me: failed program was:" >&5
18816sed 's/^/| /' conftest.$ac_ext >&5
18817
18818bfd_cv_have_sys_procfs_type_pxstatus_t=no
18819
f572a39d 18820fi
5464f5a1 18821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18822fi
18823
18824 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
18825
18826cat >>confdefs.h <<\_ACEOF
f572a39d 18827#define HAVE_PXSTATUS_T 1
5464f5a1 18828_ACEOF
f572a39d
AM
18829
18830 fi
5464f5a1
NN
18831 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18832echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 18833
5464f5a1
NN
18834 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18835echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18836 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18838else
5464f5a1
NN
18839 cat >conftest.$ac_ext <<_ACEOF
18840/* confdefs.h. */
18841_ACEOF
18842cat confdefs.h >>conftest.$ac_ext
18843cat >>conftest.$ac_ext <<_ACEOF
18844/* end confdefs.h. */
7ee38065
MS
18845
18846#define _SYSCALL32
18847#include <sys/procfs.h>
5464f5a1
NN
18848int
18849main ()
18850{
7ee38065 18851pstatus32_t avar
5464f5a1
NN
18852 ;
18853 return 0;
18854}
18855_ACEOF
18856rm -f conftest.$ac_objext
18857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18858 (eval $ac_compile) 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
7357c5b6
AM
18865 { ac_try='test -z "$ac_c_werror_flag"
18866 || test ! -s conftest.err'
5464f5a1
NN
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest.$ac_objext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
7ee38065
MS
18878 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18879else
5464f5a1
NN
18880 echo "$as_me: failed program was:" >&5
18881sed 's/^/| /' conftest.$ac_ext >&5
18882
18883bfd_cv_have_sys_procfs_type_pstatus32_t=no
18884
7ee38065 18885fi
5464f5a1 18886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18887fi
18888
18889 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
18890
18891cat >>confdefs.h <<\_ACEOF
7ee38065 18892#define HAVE_PSTATUS32_T 1
5464f5a1 18893_ACEOF
7ee38065
MS
18894
18895 fi
5464f5a1
NN
18896 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18897echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 18898
5464f5a1
NN
18899 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18900echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18901 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18903else
5464f5a1
NN
18904 cat >conftest.$ac_ext <<_ACEOF
18905/* confdefs.h. */
18906_ACEOF
18907cat confdefs.h >>conftest.$ac_ext
18908cat >>conftest.$ac_ext <<_ACEOF
18909/* end confdefs.h. */
7ee38065
MS
18910
18911#define _SYSCALL32
252b5132 18912#include <sys/procfs.h>
5464f5a1
NN
18913int
18914main ()
18915{
252b5132 18916prpsinfo_t avar
5464f5a1
NN
18917 ;
18918 return 0;
18919}
18920_ACEOF
18921rm -f conftest.$ac_objext
18922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18923 (eval $ac_compile) 2>conftest.er1
18924 ac_status=$?
18925 grep -v '^ *+' conftest.er1 >conftest.err
18926 rm -f conftest.er1
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
7357c5b6
AM
18930 { ac_try='test -z "$ac_c_werror_flag"
18931 || test ! -s conftest.err'
5464f5a1
NN
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest.$ac_objext'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; }; then
252b5132
RH
18943 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18944else
5464f5a1
NN
18945 echo "$as_me: failed program was:" >&5
18946sed 's/^/| /' conftest.$ac_ext >&5
18947
18948bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18949
252b5132 18950fi
5464f5a1 18951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18952fi
18953
18954 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
18955
18956cat >>confdefs.h <<\_ACEOF
252b5132 18957#define HAVE_PRPSINFO_T 1
5464f5a1 18958_ACEOF
252b5132
RH
18959
18960 fi
5464f5a1
NN
18961 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18962echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 18963
5464f5a1
NN
18964 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18965echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18966 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18968else
5464f5a1
NN
18969 cat >conftest.$ac_ext <<_ACEOF
18970/* confdefs.h. */
18971_ACEOF
18972cat confdefs.h >>conftest.$ac_ext
18973cat >>conftest.$ac_ext <<_ACEOF
18974/* end confdefs.h. */
7ee38065
MS
18975
18976#define _SYSCALL32
18977#include <sys/procfs.h>
5464f5a1
NN
18978int
18979main ()
18980{
7ee38065 18981prpsinfo32_t avar
5464f5a1
NN
18982 ;
18983 return 0;
18984}
18985_ACEOF
18986rm -f conftest.$ac_objext
18987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18988 (eval $ac_compile) 2>conftest.er1
18989 ac_status=$?
18990 grep -v '^ *+' conftest.er1 >conftest.err
18991 rm -f conftest.er1
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
7357c5b6
AM
18995 { ac_try='test -z "$ac_c_werror_flag"
18996 || test ! -s conftest.err'
5464f5a1
NN
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest.$ac_objext'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
7ee38065
MS
19008 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
19009else
5464f5a1
NN
19010 echo "$as_me: failed program was:" >&5
19011sed 's/^/| /' conftest.$ac_ext >&5
19012
19013bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
19014
7ee38065 19015fi
5464f5a1 19016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19017fi
19018
19019 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
19020
19021cat >>confdefs.h <<\_ACEOF
7ee38065 19022#define HAVE_PRPSINFO32_T 1
5464f5a1 19023_ACEOF
7ee38065
MS
19024
19025 fi
5464f5a1
NN
19026 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
19027echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 19028
5464f5a1
NN
19029 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
19030echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
19031 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19033else
5464f5a1
NN
19034 cat >conftest.$ac_ext <<_ACEOF
19035/* confdefs.h. */
19036_ACEOF
19037cat confdefs.h >>conftest.$ac_ext
19038cat >>conftest.$ac_ext <<_ACEOF
19039/* end confdefs.h. */
7ee38065
MS
19040
19041#define _SYSCALL32
252b5132 19042#include <sys/procfs.h>
5464f5a1
NN
19043int
19044main ()
19045{
252b5132 19046psinfo_t avar
5464f5a1
NN
19047 ;
19048 return 0;
19049}
19050_ACEOF
19051rm -f conftest.$ac_objext
19052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
7357c5b6
AM
19060 { ac_try='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
5464f5a1
NN
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest.$ac_objext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
252b5132
RH
19073 bfd_cv_have_sys_procfs_type_psinfo_t=yes
19074else
5464f5a1
NN
19075 echo "$as_me: failed program was:" >&5
19076sed 's/^/| /' conftest.$ac_ext >&5
19077
19078bfd_cv_have_sys_procfs_type_psinfo_t=no
19079
252b5132 19080fi
5464f5a1 19081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19082fi
19083
19084 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
19085
19086cat >>confdefs.h <<\_ACEOF
252b5132 19087#define HAVE_PSINFO_T 1
5464f5a1 19088_ACEOF
252b5132
RH
19089
19090 fi
5464f5a1
NN
19091 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
19092echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 19093
5464f5a1
NN
19094 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
19095echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
19096 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19098else
5464f5a1
NN
19099 cat >conftest.$ac_ext <<_ACEOF
19100/* confdefs.h. */
19101_ACEOF
19102cat confdefs.h >>conftest.$ac_ext
19103cat >>conftest.$ac_ext <<_ACEOF
19104/* end confdefs.h. */
7ee38065
MS
19105
19106#define _SYSCALL32
19107#include <sys/procfs.h>
5464f5a1
NN
19108int
19109main ()
19110{
7ee38065 19111psinfo32_t avar
5464f5a1
NN
19112 ;
19113 return 0;
19114}
19115_ACEOF
19116rm -f conftest.$ac_objext
19117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19118 (eval $ac_compile) 2>conftest.er1
19119 ac_status=$?
19120 grep -v '^ *+' conftest.er1 >conftest.err
19121 rm -f conftest.er1
19122 cat conftest.err >&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } &&
7357c5b6
AM
19125 { ac_try='test -z "$ac_c_werror_flag"
19126 || test ! -s conftest.err'
5464f5a1
NN
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest.$ac_objext'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; }; then
7ee38065
MS
19138 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
19139else
5464f5a1
NN
19140 echo "$as_me: failed program was:" >&5
19141sed 's/^/| /' conftest.$ac_ext >&5
19142
19143bfd_cv_have_sys_procfs_type_psinfo32_t=no
19144
7ee38065 19145fi
5464f5a1 19146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19147fi
19148
19149 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
19150
19151cat >>confdefs.h <<\_ACEOF
7ee38065 19152#define HAVE_PSINFO32_T 1
5464f5a1 19153_ACEOF
7ee38065
MS
19154
19155 fi
5464f5a1
NN
19156 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
19157echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 19158
5464f5a1
NN
19159 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
19160echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
19161 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19163else
5464f5a1
NN
19164 cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
7ee38065
MS
19170
19171#define _SYSCALL32
252b5132 19172#include <sys/procfs.h>
5464f5a1
NN
19173int
19174main ()
19175{
252b5132 19176lwpstatus_t avar
5464f5a1
NN
19177 ;
19178 return 0;
19179}
19180_ACEOF
19181rm -f conftest.$ac_objext
19182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19183 (eval $ac_compile) 2>conftest.er1
19184 ac_status=$?
19185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
7357c5b6
AM
19190 { ac_try='test -z "$ac_c_werror_flag"
19191 || test ! -s conftest.err'
5464f5a1
NN
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try='test -s conftest.$ac_objext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
252b5132
RH
19203 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
19204else
5464f5a1
NN
19205 echo "$as_me: failed program was:" >&5
19206sed 's/^/| /' conftest.$ac_ext >&5
19207
19208bfd_cv_have_sys_procfs_type_lwpstatus_t=no
19209
252b5132 19210fi
5464f5a1 19211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19212fi
19213
19214 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
19215
19216cat >>confdefs.h <<\_ACEOF
252b5132 19217#define HAVE_LWPSTATUS_T 1
5464f5a1 19218_ACEOF
252b5132
RH
19219
19220 fi
5464f5a1
NN
19221 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
19222echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 19223
5464f5a1
NN
19224 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
19225echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
19226 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 19228else
5464f5a1
NN
19229 cat >conftest.$ac_ext <<_ACEOF
19230/* confdefs.h. */
19231_ACEOF
19232cat confdefs.h >>conftest.$ac_ext
19233cat >>conftest.$ac_ext <<_ACEOF
19234/* end confdefs.h. */
f572a39d
AM
19235
19236#define _SYSCALL32
19237#include <sys/procfs.h>
5464f5a1
NN
19238int
19239main ()
19240{
f572a39d 19241lwpxstatus_t avar
5464f5a1
NN
19242 ;
19243 return 0;
19244}
19245_ACEOF
19246rm -f conftest.$ac_objext
19247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248 (eval $ac_compile) 2>conftest.er1
19249 ac_status=$?
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
7357c5b6
AM
19255 { ac_try='test -z "$ac_c_werror_flag"
19256 || test ! -s conftest.err'
5464f5a1
NN
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest.$ac_objext'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
f572a39d
AM
19268 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
19269else
5464f5a1
NN
19270 echo "$as_me: failed program was:" >&5
19271sed 's/^/| /' conftest.$ac_ext >&5
19272
19273bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
19274
f572a39d 19275fi
5464f5a1 19276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
19277fi
19278
19279 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
19280
19281cat >>confdefs.h <<\_ACEOF
f572a39d 19282#define HAVE_LWPXSTATUS_T 1
5464f5a1 19283_ACEOF
f572a39d
AM
19284
19285 fi
5464f5a1
NN
19286 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
19287echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 19288
5464f5a1
NN
19289 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
19290echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
19291 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19293else
5464f5a1
NN
19294 cat >conftest.$ac_ext <<_ACEOF
19295/* confdefs.h. */
19296_ACEOF
19297cat confdefs.h >>conftest.$ac_ext
19298cat >>conftest.$ac_ext <<_ACEOF
19299/* end confdefs.h. */
7ee38065
MS
19300
19301#define _SYSCALL32
252b5132 19302#include <sys/procfs.h>
5464f5a1
NN
19303int
19304main ()
19305{
252b5132 19306lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
19307 ;
19308 return 0;
19309}
19310_ACEOF
19311rm -f conftest.$ac_objext
19312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313 (eval $ac_compile) 2>conftest.er1
19314 ac_status=$?
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
7357c5b6
AM
19320 { ac_try='test -z "$ac_c_werror_flag"
19321 || test ! -s conftest.err'
5464f5a1
NN
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest.$ac_objext'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
252b5132
RH
19333 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
19334else
5464f5a1
NN
19335 echo "$as_me: failed program was:" >&5
19336sed 's/^/| /' conftest.$ac_ext >&5
19337
19338bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
19339
252b5132 19340fi
5464f5a1 19341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19342fi
19343
19344 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
19345
19346cat >>confdefs.h <<\_ACEOF
252b5132 19347#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 19348_ACEOF
252b5132
RH
19349
19350 fi
5464f5a1
NN
19351 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
19352echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 19353
5464f5a1
NN
19354 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
19355echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
19356 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19358else
5464f5a1
NN
19359 cat >conftest.$ac_ext <<_ACEOF
19360/* confdefs.h. */
19361_ACEOF
19362cat confdefs.h >>conftest.$ac_ext
19363cat >>conftest.$ac_ext <<_ACEOF
19364/* end confdefs.h. */
7ee38065
MS
19365
19366#define _SYSCALL32
252b5132 19367#include <sys/procfs.h>
5464f5a1
NN
19368int
19369main ()
19370{
252b5132 19371lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
19372 ;
19373 return 0;
19374}
19375_ACEOF
19376rm -f conftest.$ac_objext
19377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19378 (eval $ac_compile) 2>conftest.er1
19379 ac_status=$?
19380 grep -v '^ *+' conftest.er1 >conftest.err
19381 rm -f conftest.er1
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
7357c5b6
AM
19385 { ac_try='test -z "$ac_c_werror_flag"
19386 || test ! -s conftest.err'
5464f5a1
NN
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; } &&
19392 { ac_try='test -s conftest.$ac_objext'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
252b5132
RH
19398 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
19399else
5464f5a1
NN
19400 echo "$as_me: failed program was:" >&5
19401sed 's/^/| /' conftest.$ac_ext >&5
19402
19403bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
19404
252b5132 19405fi
5464f5a1 19406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19407fi
19408
19409 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
19410
19411cat >>confdefs.h <<\_ACEOF
252b5132 19412#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 19413_ACEOF
252b5132
RH
19414
19415 fi
5464f5a1
NN
19416 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
19417echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 19418
5464f5a1
NN
19419 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
19420echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
19421 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 19423else
5464f5a1
NN
19424 cat >conftest.$ac_ext <<_ACEOF
19425/* confdefs.h. */
19426_ACEOF
19427cat confdefs.h >>conftest.$ac_ext
19428cat >>conftest.$ac_ext <<_ACEOF
19429/* end confdefs.h. */
7ee38065
MS
19430
19431#define _SYSCALL32
e3c976c4 19432#include <sys/procfs.h>
5464f5a1
NN
19433int
19434main ()
19435{
e3c976c4 19436win32_pstatus_t avar
5464f5a1
NN
19437 ;
19438 return 0;
19439}
19440_ACEOF
19441rm -f conftest.$ac_objext
19442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19443 (eval $ac_compile) 2>conftest.er1
19444 ac_status=$?
19445 grep -v '^ *+' conftest.er1 >conftest.err
19446 rm -f conftest.er1
19447 cat conftest.err >&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } &&
7357c5b6
AM
19450 { ac_try='test -z "$ac_c_werror_flag"
19451 || test ! -s conftest.err'
5464f5a1
NN
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
e3c976c4
ILT
19463 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
19464else
5464f5a1
NN
19465 echo "$as_me: failed program was:" >&5
19466sed 's/^/| /' conftest.$ac_ext >&5
19467
19468bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
19469
e3c976c4 19470fi
5464f5a1 19471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19472fi
19473
e3c976c4 19474 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
19475
19476cat >>confdefs.h <<\_ACEOF
e3c976c4 19477#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 19478_ACEOF
16e9c715
NC
19479
19480 fi
5464f5a1
NN
19481 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
19482echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
19483
19484 fi
19485fi
16e9c715 19486
b3baf5d0 19487
6be7c12c 19488if test -n "$TRAD_HEADER"; then
5464f5a1
NN
19489
19490cat >>confdefs.h <<_ACEOF
252b5132 19491#define TRAD_HEADER $TRAD_HEADER
5464f5a1 19492_ACEOF
252b5132 19493
3f9b03b5 19494fi
252b5132
RH
19495
19496# Horrible hacks to build DLLs on Windows.
19497WIN32LDFLAGS=
19498WIN32LIBADD=
19499case "${host}" in
19500*-*-cygwin*)
19501 if test "$enable_shared" = "yes"; then
19502 WIN32LDFLAGS="-no-undefined"
19503 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
19504 fi
19505 ;;
78be1d6e 19506*-*-linux*)
39691762
L
19507 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
19508 # libiberty.a.
c5cb8442
TS
19509 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
19510 if test -n "$x"; then
19511 WIN32LIBADD="-L../libiberty/pic -liberty"
19512 fi
39691762 19513 ;;
252b5132
RH
19514esac
19515
6be7c12c
AO
19516
19517
252b5132
RH
19518# target stuff:
19519
19520# Canonicalize the secondary target names.
19521if test -n "$enable_targets" ; then
19522 for targ in `echo $enable_targets | sed 's/,/ /g'`
19523 do
6d83c84b 19524 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
19525 if test -n "$result" ; then
19526 canon_targets="$canon_targets $result"
19527 else
19528 # Allow targets that config.sub doesn't recognize, like "all".
19529 canon_targets="$canon_targets $targ"
19530 fi
19531 done
19532fi
19533
19534all_targets=false
19535defvec=
19536selvecs=
08f74004 19537assocvecs=
252b5132
RH
19538selarchs=
19539TDEFINES=
19540for targ in $target $canon_targets
19541do
19542 if test "x$targ" = "xall"; then
19543 all_targets=true
08f74004 19544 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
19545 else
19546 . $srcdir/config.bfd
19547 if test "x$targ" = "x$target"; then
19548 defvec=$targ_defvec
19549 fi
19550 selvecs="$selvecs $targ_defvec $targ_selvecs"
19551 selarchs="$selarchs $targ_archs"
19552 TDEFINES="$TDEFINES $targ_cflags"
19553 fi
19554done
19555
6be7c12c 19556
252b5132
RH
19557# This processing still needs to be done if we're to decide properly whether
19558# 64-bit support needs to be compiled in. Currently, it will be included if
19559# the default or any other explicitly requested target requires it; it
19560# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 19561# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
19562# used.
19563
19564# uniq the default and selected vectors in all the configured targets.
19565f=""
19566for i in $selvecs ; do
19567 case " $f " in
19568 *" $i "*) ;;
19569 *) f="$f $i" ;;
19570 esac
19571done
19572selvecs="$f"
19573
6be7c12c 19574
08f74004
AM
19575# uniq the associated vectors in all the configured targets.
19576f=""
19577for i in $assocvecs ; do
19578 case " $f " in
19579 *" $i "*) ;;
19580 *) f="$f $i" ;;
19581 esac
19582done
19583assocvecs="$f"
19584
19585
252b5132
RH
19586# uniq the architectures in all the configured targets.
19587f=""
19588for i in $selarchs ; do
19589 case " $f " in
19590 *" $i "*) ;;
19591 *) f="$f $i" ;;
19592 esac
19593done
19594selarchs="$f"
19595
19596# Target backend .o files.
19597tb=
19598
104d59d1 19599elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
19600
19601for vec in $selvecs
19602do
69263e90 19603 target_size=32
252b5132
RH
19604 case "$vec" in
19605 # This list is alphabetized to make it easy to compare
dc810e39
AM
19606 # with the two vector lists in targets.c. For the same reason,
19607 # use one entry per line, even though this leads to long lines.
252b5132 19608 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 19609 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
19610 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
19611 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19612 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 19613 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
19614 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19615 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19616 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19617 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
19618 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19619 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19620 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19621 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
19622 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19623 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19624 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19625 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19626 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19627 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19628 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
19629 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19630 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 19631 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
e81819a5
NC
19632 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19633 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 19634 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
e81819a5
NC
19635 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19636 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 19637 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
e81819a5
NC
19638 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19639 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 19640 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 19641 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 19642 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 19643 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 19644 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 19645 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 19646 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 19647 bfd_elf32_bigarm_symbian_vec)
00a97672 19648 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19649 bfd_elf32_bigarm_vxworks_vec)
00a97672 19650 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
19651 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19652 bfd_elf32_bigmips_vxworks_vec)
19653 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 19654 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 19655 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 19656 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 19657 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
19658 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19659 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 19660 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 19661 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 19662 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 19663 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 19664 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 19665 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 19666 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 19667 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 19668 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
19669 bfd_elf32_i386_dragonfly_vec)
19670 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
19671 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19672 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19673 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 19674 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 19675 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 19676 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 19677 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 19678 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 19679 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 19680 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 19681 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 19682 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 19683 bfd_elf32_littlearm_symbian_vec)
00a97672 19684 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19685 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
19686 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19687 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
19688 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19689 bfd_elf32_littlemips_vxworks_vec)
19690 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 19691 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 19692 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
19693 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19694 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19695 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
19696 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19697 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
19698 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19699 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19700 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19701 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
19702 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19703 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
19704 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19705 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 19706 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 19707 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
19708 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19709 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19710 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19711 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 19712 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 19713 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
19714 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19715 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
19716 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19717 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19718 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 19719 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
19720 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19721 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
19722 # FIXME: We include cofflink.lo not because it's needed for
19723 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19724 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
19725 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19726 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19727 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19728 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19729 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19730 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19731 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19732 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19733 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19734 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19735 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19736 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19737 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 19738 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 19739 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
19740 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19741 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 19742 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
19743 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19744 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 19745 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 19746 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 19747 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 19748 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 19749 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
19750 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19751 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 19752 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
19753 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19754 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 19755 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
19756 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19757 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19758 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 19759 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
19760 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19761 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 19762 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 19763 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
19764 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19765 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19766 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
19767 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19768 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
19769 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19770 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19771 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19772 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 19773 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 19774 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
19775 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 ;;
19776 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 19777 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19778 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 19779 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
19780 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19781 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19782 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19783 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 19784 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 19785 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 19786 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 19787 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
19788 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19789 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
19790 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
19791 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
19792 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
19793 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
19794 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
19795 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
19796 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
19797 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
19798 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
19799 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 19800 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19801 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19802 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
19803 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
19804 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19805 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19806 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 19807 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
19808 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19809 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
19810 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19811 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
19812 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19813 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19814 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
19815 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19816 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19817 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
19818 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19819 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
19820 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
19821 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19822 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 19823 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
19824 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19825 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 19826 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 19827 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 19828 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
19829 mach_o_be_vec) tb="$tb mach-o.lo" ;;
19830 mach_o_le_vec) tb="$tb mach-o.lo" ;;
19831 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
19832 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19833 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19834 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19835 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
19836 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19837 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 19838 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 19839 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 19840 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 19841 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 19842 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 19843 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 19844 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 19845 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
19846 pef_vec) tb="$tb pef.lo" ;;
19847 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 19848 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 19849 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19850 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 19851 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 19852 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 19853 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19854 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19855 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 19856 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19857 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
19858 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19859 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 19860 som_vec) tb="$tb som.lo" ;;
dc810e39 19861 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
19862 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
19863 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
19864 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19865 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19866 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 19867 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 19868 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
19869 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19870 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
19871 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
19872 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
19873 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
19874 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
19875 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
19876 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 19877 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19878 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19879 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19880 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19881 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19882 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 19883 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 19884 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 19885 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 19886 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 19887 versados_vec) tb="$tb versados.lo" ;;
dc810e39 19888 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
19889 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19890 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
19891 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 19892 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 19893 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 19894
341ca622
AM
19895 # These appear out of order in targets.c
19896 srec_vec) tb="$tb srec.lo" ;;
19897 symbolsrec_vec) tb="$tb srec.lo" ;;
19898 tekhex_vec) tb="$tb tekhex.lo" ;;
19899 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
19900 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
19901
252b5132 19902 "") ;;
5464f5a1
NN
19903 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19904echo "$as_me: error: *** unknown target vector $vec" >&2;}
19905 { (exit 1); exit 1; }; } ;;
252b5132 19906 esac
69263e90
AM
19907
19908 if test ${target_size} = 64; then
19909 target64=true
19910 fi
19911 if test x"${vec}" = x"${defvec}"; then
19912 bfd_default_target_size=${target_size}
19913 fi
252b5132
RH
19914done
19915
19916# Target architecture .o files.
19917# A couple of CPUs use shorter file names to avoid problems on DOS
19918# filesystems.
d031aafb 19919ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
19920
19921# Weed out duplicate .o files.
19922f=""
19923for i in $tb ; do
19924 case " $f " in
19925 *" $i "*) ;;
19926 *) f="$f $i" ;;
19927 esac
19928done
19929tb="$f"
19930
19931f=""
19932for i in $ta ; do
19933 case " $f " in
19934 *" $i "*) ;;
19935 *) f="$f $i" ;;
19936 esac
19937done
19938ta="$f"
19939
19940bfd_backends="$tb"
19941bfd_machines="$ta"
19942
19943if test x${all_targets} = xtrue ; then
19944 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19945 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19946 selvecs=
19947 havevecs=
19948 selarchs=
08f74004
AM
19949 test -n "$assocvecs" &&
19950 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
19951else # all_targets is true
19952 # Only set these if they will be nonempty, for the clever echo.
19953 havevecs=
08f74004 19954 assocvecs=
252b5132
RH
19955 test -n "$selvecs" &&
19956 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19957 test -n "$selvecs" &&
19958 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19959 test -n "$selarchs" &&
19960 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19961fi # all_targets is true
19962
19963case ${host64}-${target64}-${want64} in
19964 *true*)
19965 wordsize=64
21e40a48 19966 bfd64_libs='$(BFD64_LIBS)'
252b5132 19967 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 19968 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
19969 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19970echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19972echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 19973 fi
966abd70
HPN
19974 if test -n "$GCC" ; then
19975 bad_64bit_gcc=no;
5464f5a1
NN
19976 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19977echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 19978 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
19979 cat >conftest.$ac_ext <<_ACEOF
19980/* confdefs.h. */
19981_ACEOF
19982cat confdefs.h >>conftest.$ac_ext
19983cat >>conftest.$ac_ext <<_ACEOF
19984/* end confdefs.h. */
966abd70 19985:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 19986_ACEOF
966abd70 19987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 19988 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 19989 bad_64bit_gcc=yes;
5464f5a1
NN
19990 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19991echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 19992else
5464f5a1
NN
19993 echo "$as_me:$LINENO: result: no" >&5
19994echo "${ECHO_T}no" >&6
966abd70
HPN
19995fi
19996rm -f conftest*
19997
19998 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
19999 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
20000echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
20001 { (exit 1); exit 1; }; }
966abd70
HPN
20002 fi
20003 fi
252b5132
RH
20004 ;;
20005 false-false-false)
20006 wordsize=32
20007 all_backends='$(BFD32_BACKENDS)'
20008 ;;
20009esac
20010
6be7c12c
AO
20011
20012
20013
20014
20015
69263e90 20016
2858ef35 20017
1012372a
AC
20018# Determine the host dependant file_ptr a.k.a. off_t type. In order
20019# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
20020# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
20021# Hopefully a reasonable assumption since fseeko et.al. should be
20022# upward compatible.
5464f5a1
NN
20023
20024
20025
20026
2e6f4fae
DJ
20027
20028for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 20029do
5464f5a1
NN
20030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20031echo "$as_me:$LINENO: checking for $ac_func" >&5
20032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20033if eval "test \"\${$as_ac_var+set}\" = set"; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20035else
2ba49b59
KC
20036 cat >conftest.$ac_ext <<_ACEOF
20037/* confdefs.h. */
20038_ACEOF
20039cat confdefs.h >>conftest.$ac_ext
20040cat >>conftest.$ac_ext <<_ACEOF
20041/* end confdefs.h. */
20042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20044#define $ac_func innocuous_$ac_func
20045
20046/* System header to define __stub macros and hopefully few prototypes,
20047 which can conflict with char $ac_func (); below.
20048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20049 <limits.h> exists even on freestanding compilers. */
20050
20051#ifdef __STDC__
20052# include <limits.h>
20053#else
20054# include <assert.h>
20055#endif
20056
20057#undef $ac_func
20058
20059/* Override any gcc2 internal prototype to avoid an error. */
20060#ifdef __cplusplus
20061extern "C"
20062{
20063#endif
20064/* We use char because int might match the return type of a gcc2
20065 builtin and then its argument prototype would still apply. */
20066char $ac_func ();
20067/* The GNU C library defines this for functions which it implements
20068 to always fail with ENOSYS. Some functions are actually named
20069 something starting with __ and the normal name is an alias. */
20070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20071choke me
20072#else
20073char (*f) () = $ac_func;
20074#endif
20075#ifdef __cplusplus
20076}
20077#endif
20078
20079int
20080main ()
20081{
20082return f != $ac_func;
20083 ;
20084 return 0;
20085}
20086_ACEOF
20087rm -f conftest.$ac_objext conftest$ac_exeext
20088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20089 (eval $ac_link) 2>conftest.er1
20090 ac_status=$?
20091 grep -v '^ *+' conftest.er1 >conftest.err
20092 rm -f conftest.er1
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } &&
7357c5b6
AM
20096 { ac_try='test -z "$ac_c_werror_flag"
20097 || test ! -s conftest.err'
2ba49b59
KC
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try='test -s conftest$ac_exeext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 eval "$as_ac_var=yes"
20110else
20111 echo "$as_me: failed program was:" >&5
20112sed 's/^/| /' conftest.$ac_ext >&5
20113
20114eval "$as_ac_var=no"
20115fi
20116rm -f conftest.err conftest.$ac_objext \
20117 conftest$ac_exeext conftest.$ac_ext
20118fi
20119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20121if test `eval echo '${'$as_ac_var'}'` = yes; then
20122 cat >>confdefs.h <<_ACEOF
20123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20124_ACEOF
20125
20126fi
20127done
20128
20129if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
20130 echo "$as_me:$LINENO: checking for off_t" >&5
20131echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20132if test "${ac_cv_type_off_t+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134else
20135 cat >conftest.$ac_ext <<_ACEOF
20136/* confdefs.h. */
20137_ACEOF
20138cat confdefs.h >>conftest.$ac_ext
20139cat >>conftest.$ac_ext <<_ACEOF
20140/* end confdefs.h. */
20141$ac_includes_default
20142int
20143main ()
20144{
20145if ((off_t *) 0)
20146 return 0;
20147if (sizeof (off_t))
20148 return 0;
20149 ;
20150 return 0;
20151}
20152_ACEOF
20153rm -f conftest.$ac_objext
20154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20155 (eval $ac_compile) 2>conftest.er1
20156 ac_status=$?
20157 grep -v '^ *+' conftest.er1 >conftest.err
20158 rm -f conftest.er1
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
7357c5b6
AM
20162 { ac_try='test -z "$ac_c_werror_flag"
20163 || test ! -s conftest.err'
2ba49b59
KC
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } &&
20169 { ac_try='test -s conftest.$ac_objext'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_cv_type_off_t=yes
20176else
20177 echo "$as_me: failed program was:" >&5
20178sed 's/^/| /' conftest.$ac_ext >&5
20179
20180ac_cv_type_off_t=no
20181fi
20182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20183fi
20184echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20185echo "${ECHO_T}$ac_cv_type_off_t" >&6
20186
20187echo "$as_me:$LINENO: checking size of off_t" >&5
20188echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
20189if test "${ac_cv_sizeof_off_t+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
20191else
20192 if test "$ac_cv_type_off_t" = yes; then
20193 # The cast to unsigned long works around a bug in the HP C Compiler
20194 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20195 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20196 # This bug is HP SR number 8606223364.
20197 if test "$cross_compiling" = yes; then
20198 # Depending upon the size, compute the lo and hi bounds.
20199cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
20200/* confdefs.h. */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h. */
2ba49b59
KC
20205$ac_includes_default
20206int
20207main ()
20208{
20209static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
20210test_array [0] = 0
5464f5a1 20211
2ba49b59
KC
20212 ;
20213 return 0;
20214}
20215_ACEOF
20216rm -f conftest.$ac_objext
20217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218 (eval $ac_compile) 2>conftest.er1
20219 ac_status=$?
20220 grep -v '^ *+' conftest.er1 >conftest.err
20221 rm -f conftest.er1
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
7357c5b6
AM
20225 { ac_try='test -z "$ac_c_werror_flag"
20226 || test ! -s conftest.err'
2ba49b59
KC
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest.$ac_objext'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_lo=0 ac_mid=0
20239 while :; do
20240 cat >conftest.$ac_ext <<_ACEOF
20241/* confdefs.h. */
20242_ACEOF
20243cat confdefs.h >>conftest.$ac_ext
20244cat >>conftest.$ac_ext <<_ACEOF
20245/* end confdefs.h. */
20246$ac_includes_default
20247int
20248main ()
20249{
20250static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20251test_array [0] = 0
5464f5a1 20252
2ba49b59
KC
20253 ;
20254 return 0;
20255}
20256_ACEOF
20257rm -f conftest.$ac_objext
20258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259 (eval $ac_compile) 2>conftest.er1
20260 ac_status=$?
20261 grep -v '^ *+' conftest.er1 >conftest.err
20262 rm -f conftest.er1
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
7357c5b6
AM
20266 { ac_try='test -z "$ac_c_werror_flag"
20267 || test ! -s conftest.err'
2ba49b59
KC
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest.$ac_objext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_hi=$ac_mid; break
20280else
20281 echo "$as_me: failed program was:" >&5
20282sed 's/^/| /' conftest.$ac_ext >&5
1012372a 20283
2ba49b59
KC
20284ac_lo=`expr $ac_mid + 1`
20285 if test $ac_lo -le $ac_mid; then
20286 ac_lo= ac_hi=
20287 break
20288 fi
20289 ac_mid=`expr 2 '*' $ac_mid + 1`
20290fi
20291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20292 done
20293else
20294 echo "$as_me: failed program was:" >&5
20295sed 's/^/| /' conftest.$ac_ext >&5
1012372a 20296
2ba49b59
KC
20297cat >conftest.$ac_ext <<_ACEOF
20298/* confdefs.h. */
20299_ACEOF
20300cat confdefs.h >>conftest.$ac_ext
20301cat >>conftest.$ac_ext <<_ACEOF
20302/* end confdefs.h. */
20303$ac_includes_default
20304int
20305main ()
5464f5a1 20306{
2ba49b59
KC
20307static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
20308test_array [0] = 0
1012372a 20309
2ba49b59
KC
20310 ;
20311 return 0;
20312}
20313_ACEOF
20314rm -f conftest.$ac_objext
20315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20316 (eval $ac_compile) 2>conftest.er1
20317 ac_status=$?
20318 grep -v '^ *+' conftest.er1 >conftest.err
20319 rm -f conftest.er1
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
7357c5b6
AM
20323 { ac_try='test -z "$ac_c_werror_flag"
20324 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
20330 { ac_try='test -s conftest.$ac_objext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 ac_hi=-1 ac_mid=-1
20337 while :; do
20338 cat >conftest.$ac_ext <<_ACEOF
20339/* confdefs.h. */
20340_ACEOF
20341cat confdefs.h >>conftest.$ac_ext
20342cat >>conftest.$ac_ext <<_ACEOF
20343/* end confdefs.h. */
20344$ac_includes_default
5464f5a1
NN
20345int
20346main ()
20347{
2ba49b59
KC
20348static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
20349test_array [0] = 0
20350
5464f5a1
NN
20351 ;
20352 return 0;
20353}
20354_ACEOF
2ba49b59
KC
20355rm -f conftest.$ac_objext
20356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
7357c5b6
AM
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
5464f5a1
NN
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
2ba49b59 20371 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
2ba49b59 20377 ac_lo=$ac_mid; break
5464f5a1
NN
20378else
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
2ba49b59
KC
20382ac_hi=`expr '(' $ac_mid ')' - 1`
20383 if test $ac_mid -le $ac_hi; then
20384 ac_lo= ac_hi=
20385 break
20386 fi
20387 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 20388fi
2ba49b59
KC
20389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20390 done
20391else
20392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
1012372a 20394
2ba49b59 20395ac_lo= ac_hi=
1012372a 20396fi
2ba49b59
KC
20397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20398fi
20399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20400# Binary search between lo and hi bounds.
20401while test "x$ac_lo" != "x$ac_hi"; do
20402 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
20403 cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
2ba49b59 20409$ac_includes_default
5464f5a1
NN
20410int
20411main ()
20412{
2ba49b59
KC
20413static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20414test_array [0] = 0
20415
5464f5a1
NN
20416 ;
20417 return 0;
20418}
20419_ACEOF
20420rm -f conftest.$ac_objext
20421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
7357c5b6
AM
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
5464f5a1
NN
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest.$ac_objext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
2ba49b59 20442 ac_hi=$ac_mid
1012372a 20443else
5464f5a1
NN
20444 echo "$as_me: failed program was:" >&5
20445sed 's/^/| /' conftest.$ac_ext >&5
20446
2ba49b59 20447ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 20448fi
5464f5a1 20449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 20450done
2ba49b59
KC
20451case $ac_lo in
20452?*) ac_cv_sizeof_off_t=$ac_lo;;
7357c5b6
AM
20453'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20454echo "$as_me: error: in \`$ac_pwd':" >&2;}
20455{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
2ba49b59
KC
20456See \`config.log' for more details." >&5
20457echo "$as_me: error: cannot compute sizeof (off_t), 77
20458See \`config.log' for more details." >&2;}
7357c5b6 20459 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
20460esac
20461else
20462 if test "$cross_compiling" = yes; then
7357c5b6
AM
20463 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20464echo "$as_me: error: in \`$ac_pwd':" >&2;}
20465{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20466See \`config.log' for more details." >&5
20467echo "$as_me: error: cannot run test program while cross compiling
20468See \`config.log' for more details." >&2;}
20469 { (exit 1); exit 1; }; }; }
2ba49b59
KC
20470else
20471 cat >conftest.$ac_ext <<_ACEOF
20472/* confdefs.h. */
20473_ACEOF
20474cat confdefs.h >>conftest.$ac_ext
20475cat >>conftest.$ac_ext <<_ACEOF
20476/* end confdefs.h. */
20477$ac_includes_default
20478long longval () { return (long) (sizeof (off_t)); }
20479unsigned long ulongval () { return (long) (sizeof (off_t)); }
20480#include <stdio.h>
20481#include <stdlib.h>
20482int
20483main ()
20484{
1012372a 20485
2ba49b59
KC
20486 FILE *f = fopen ("conftest.val", "w");
20487 if (! f)
20488 exit (1);
20489 if (((long) (sizeof (off_t))) < 0)
20490 {
20491 long i = longval ();
20492 if (i != ((long) (sizeof (off_t))))
20493 exit (1);
20494 fprintf (f, "%ld\n", i);
20495 }
20496 else
20497 {
20498 unsigned long i = ulongval ();
20499 if (i != ((long) (sizeof (off_t))))
20500 exit (1);
20501 fprintf (f, "%lu\n", i);
20502 }
20503 exit (ferror (f) || fclose (f) != 0);
20504
20505 ;
20506 return 0;
20507}
20508_ACEOF
20509rm -f conftest$ac_exeext
20510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20511 (eval $ac_link) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_cv_sizeof_off_t=`cat conftest.val`
20521else
20522 echo "$as_me: program exited with status $ac_status" >&5
20523echo "$as_me: failed program was:" >&5
20524sed 's/^/| /' conftest.$ac_ext >&5
1012372a 20525
2ba49b59 20526( exit $ac_status )
7357c5b6
AM
20527{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20528echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
20529{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20530See \`config.log' for more details." >&5
20531echo "$as_me: error: cannot compute sizeof (off_t), 77
20532See \`config.log' for more details." >&2;}
7357c5b6 20533 { (exit 1); exit 1; }; }; }
1012372a 20534fi
2ba49b59
KC
20535rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20536fi
20537fi
20538rm -f conftest.val
20539else
20540 ac_cv_sizeof_off_t=0
20541fi
20542fi
5464f5a1
NN
20543echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
20544echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 20545cat >>confdefs.h <<_ACEOF
1012372a 20546#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 20547_ACEOF
1012372a
AC
20548
20549
1012372a 20550fi
5464f5a1
NN
20551echo "$as_me:$LINENO: checking file_ptr type" >&5
20552echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
20553bfd_file_ptr="long"
20554bfd_ufile_ptr="unsigned long"
20555if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
20556 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
20557 bfd_file_ptr=BFD_HOST_64_BIT
20558 bfd_ufile_ptr=BFD_HOST_U_64_BIT
20559fi
5464f5a1
NN
20560echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
20561echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
20562
20563
20564
20565
252b5132
RH
20566tdefaults=""
20567test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
20568test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 20569test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
20570test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
20571test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
20572
6be7c12c 20573
5464f5a1
NN
20574
20575
20576for ac_header in stdlib.h unistd.h
252b5132 20577do
5464f5a1
NN
20578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20579if eval "test \"\${$as_ac_Header+set}\" = set"; then
20580 echo "$as_me:$LINENO: checking for $ac_header" >&5
20581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20582if eval "test \"\${$as_ac_Header+set}\" = set"; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584fi
20585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20587else
20588 # Is the header compilable?
20589echo "$as_me:$LINENO: checking $ac_header usability" >&5
20590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20591cat >conftest.$ac_ext <<_ACEOF
20592/* confdefs.h. */
20593_ACEOF
20594cat confdefs.h >>conftest.$ac_ext
20595cat >>conftest.$ac_ext <<_ACEOF
20596/* end confdefs.h. */
20597$ac_includes_default
20598#include <$ac_header>
20599_ACEOF
20600rm -f conftest.$ac_objext
20601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602 (eval $ac_compile) 2>conftest.er1
20603 ac_status=$?
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
7357c5b6
AM
20609 { ac_try='test -z "$ac_c_werror_flag"
20610 || test ! -s conftest.err'
5464f5a1
NN
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; } &&
20616 { ac_try='test -s conftest.$ac_objext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_header_compiler=yes
20623else
20624 echo "$as_me: failed program was:" >&5
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
20627ac_header_compiler=no
20628fi
20629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20631echo "${ECHO_T}$ac_header_compiler" >&6
20632
20633# Is the header present?
20634echo "$as_me:$LINENO: checking $ac_header presence" >&5
20635echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20636cat >conftest.$ac_ext <<_ACEOF
20637/* confdefs.h. */
20638_ACEOF
20639cat confdefs.h >>conftest.$ac_ext
20640cat >>conftest.$ac_ext <<_ACEOF
20641/* end confdefs.h. */
20642#include <$ac_header>
20643_ACEOF
20644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } >/dev/null; then
20652 if test -s conftest.err; then
20653 ac_cpp_err=$ac_c_preproc_warn_flag
20654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20655 else
20656 ac_cpp_err=
20657 fi
252b5132 20658else
5464f5a1 20659 ac_cpp_err=yes
252b5132 20660fi
5464f5a1
NN
20661if test -z "$ac_cpp_err"; then
20662 ac_header_preproc=yes
20663else
20664 echo "$as_me: failed program was:" >&5
20665sed 's/^/| /' conftest.$ac_ext >&5
20666
20667 ac_header_preproc=no
252b5132 20668fi
5464f5a1
NN
20669rm -f conftest.err conftest.$ac_ext
20670echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20671echo "${ECHO_T}$ac_header_preproc" >&6
20672
20673# So? What about this header?
20674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20675 yes:no: )
20676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20680 ac_header_preproc=yes
20681 ;;
20682 no:yes:* )
20683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20686echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20690echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20695 (
20696 cat <<\_ASBOX
20697## ------------------------------------------ ##
20698## Report this to the AC_PACKAGE_NAME lists. ##
20699## ------------------------------------------ ##
20700_ASBOX
20701 ) |
20702 sed "s/^/$as_me: WARNING: /" >&2
20703 ;;
20704esac
20705echo "$as_me:$LINENO: checking for $ac_header" >&5
20706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20707if eval "test \"\${$as_ac_Header+set}\" = set"; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 20709else
5464f5a1
NN
20710 eval "$as_ac_Header=\$ac_header_preproc"
20711fi
20712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20714
20715fi
20716if test `eval echo '${'$as_ac_Header'}'` = yes; then
20717 cat >>confdefs.h <<_ACEOF
20718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20719_ACEOF
20720
252b5132 20721fi
5464f5a1 20722
252b5132
RH
20723done
20724
5464f5a1 20725
252b5132
RH
20726for ac_func in getpagesize
20727do
5464f5a1
NN
20728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20729echo "$as_me:$LINENO: checking for $ac_func" >&5
20730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20731if eval "test \"\${$as_ac_var+set}\" = set"; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733else
20734 cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
20740/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20742#define $ac_func innocuous_$ac_func
20743
252b5132 20744/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
20745 which can conflict with char $ac_func (); below.
20746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20747 <limits.h> exists even on freestanding compilers. */
20748
20749#ifdef __STDC__
20750# include <limits.h>
20751#else
20752# include <assert.h>
20753#endif
6be7c12c 20754
5464f5a1 20755#undef $ac_func
252b5132 20756
5464f5a1
NN
20757/* Override any gcc2 internal prototype to avoid an error. */
20758#ifdef __cplusplus
20759extern "C"
20760{
20761#endif
20762/* We use char because int might match the return type of a gcc2
20763 builtin and then its argument prototype would still apply. */
20764char $ac_func ();
252b5132
RH
20765/* The GNU C library defines this for functions which it implements
20766 to always fail with ENOSYS. Some functions are actually named
20767 something starting with __ and the normal name is an alias. */
20768#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20769choke me
20770#else
5464f5a1
NN
20771char (*f) () = $ac_func;
20772#endif
20773#ifdef __cplusplus
20774}
252b5132
RH
20775#endif
20776
5464f5a1
NN
20777int
20778main ()
20779{
20780return f != $ac_func;
20781 ;
20782 return 0;
20783}
20784_ACEOF
20785rm -f conftest.$ac_objext conftest$ac_exeext
20786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20787 (eval $ac_link) 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
7357c5b6
AM
20794 { ac_try='test -z "$ac_c_werror_flag"
20795 || test ! -s conftest.err'
5464f5a1
NN
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest$ac_exeext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 eval "$as_ac_var=yes"
20808else
20809 echo "$as_me: failed program was:" >&5
20810sed 's/^/| /' conftest.$ac_ext >&5
20811
20812eval "$as_ac_var=no"
20813fi
20814rm -f conftest.err conftest.$ac_objext \
20815 conftest$ac_exeext conftest.$ac_ext
20816fi
20817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20818echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20819if test `eval echo '${'$as_ac_var'}'` = yes; then
20820 cat >>confdefs.h <<_ACEOF
20821#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20822_ACEOF
252b5132 20823
252b5132
RH
20824fi
20825done
20826
5464f5a1
NN
20827echo "$as_me:$LINENO: checking for working mmap" >&5
20828echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20829if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20830 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
20831else
20832 if test "$cross_compiling" = yes; then
20833 ac_cv_func_mmap_fixed_mapped=no
20834else
5464f5a1
NN
20835 cat >conftest.$ac_ext <<_ACEOF
20836/* confdefs.h. */
20837_ACEOF
20838cat confdefs.h >>conftest.$ac_ext
20839cat >>conftest.$ac_ext <<_ACEOF
20840/* end confdefs.h. */
20841$ac_includes_default
20842/* malloc might have been renamed as rpl_malloc. */
20843#undef malloc
6be7c12c 20844
252b5132
RH
20845/* Thanks to Mike Haertel and Jim Avera for this test.
20846 Here is a matrix of mmap possibilities:
20847 mmap private not fixed
20848 mmap private fixed at somewhere currently unmapped
20849 mmap private fixed at somewhere already mapped
20850 mmap shared not fixed
20851 mmap shared fixed at somewhere currently unmapped
20852 mmap shared fixed at somewhere already mapped
20853 For private mappings, we should verify that changes cannot be read()
20854 back from the file, nor mmap's back from the file at a different
20855 address. (There have been systems where private was not correctly
20856 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 20857 VM page cache was not coherent with the file system buffer cache
252b5132
RH
20858 like early versions of FreeBSD and possibly contemporary NetBSD.)
20859 For shared mappings, we should conversely verify that changes get
5464f5a1 20860 propagated back to all the places they're supposed to be.
252b5132
RH
20861
20862 Grep wants private fixed already mapped.
20863 The main things grep needs to know about mmap are:
20864 * does it exist and is it safe to write into the mmap'd area
20865 * how to use it (BSD variants) */
5464f5a1 20866
252b5132
RH
20867#include <fcntl.h>
20868#include <sys/mman.h>
20869
5464f5a1
NN
20870#if !STDC_HEADERS && !HAVE_STDLIB_H
20871char *malloc ();
20872#endif
6be7c12c 20873
5464f5a1
NN
20874/* This mess was copied from the GNU getpagesize.h. */
20875#if !HAVE_GETPAGESIZE
252b5132 20876/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 20877# if !HAVE_SYS_PARAM_H
252b5132
RH
20878# define HAVE_SYS_PARAM_H 1
20879# endif
20880
20881# ifdef _SC_PAGESIZE
20882# define getpagesize() sysconf(_SC_PAGESIZE)
20883# else /* no _SC_PAGESIZE */
5464f5a1 20884# if HAVE_SYS_PARAM_H
252b5132
RH
20885# include <sys/param.h>
20886# ifdef EXEC_PAGESIZE
20887# define getpagesize() EXEC_PAGESIZE
20888# else /* no EXEC_PAGESIZE */
20889# ifdef NBPG
20890# define getpagesize() NBPG * CLSIZE
20891# ifndef CLSIZE
20892# define CLSIZE 1
20893# endif /* no CLSIZE */
20894# else /* no NBPG */
20895# ifdef NBPC
20896# define getpagesize() NBPC
20897# else /* no NBPC */
20898# ifdef PAGESIZE
20899# define getpagesize() PAGESIZE
20900# endif /* PAGESIZE */
20901# endif /* no NBPC */
20902# endif /* no NBPG */
20903# endif /* no EXEC_PAGESIZE */
20904# else /* no HAVE_SYS_PARAM_H */
20905# define getpagesize() 8192 /* punt totally */
20906# endif /* no HAVE_SYS_PARAM_H */
20907# endif /* no _SC_PAGESIZE */
20908
5464f5a1
NN
20909#endif /* no HAVE_GETPAGESIZE */
20910
20911int
20912main ()
20913{
20914 char *data, *data2, *data3;
20915 int i, pagesize;
20916 int fd;
20917
20918 pagesize = getpagesize ();
20919
20920 /* First, make a file with some known garbage in it. */
20921 data = (char *) malloc (pagesize);
20922 if (!data)
20923 exit (1);
20924 for (i = 0; i < pagesize; ++i)
20925 *(data + i) = rand ();
20926 umask (0);
20927 fd = creat ("conftest.mmap", 0600);
20928 if (fd < 0)
20929 exit (1);
20930 if (write (fd, data, pagesize) != pagesize)
20931 exit (1);
20932 close (fd);
20933
20934 /* Next, try to mmap the file at a fixed address which already has
20935 something else allocated at it. If we can, also make sure that
20936 we see the same garbage. */
20937 fd = open ("conftest.mmap", O_RDWR);
20938 if (fd < 0)
20939 exit (1);
20940 data2 = (char *) malloc (2 * pagesize);
20941 if (!data2)
20942 exit (1);
20943 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20944 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20946 exit (1);
20947 for (i = 0; i < pagesize; ++i)
20948 if (*(data + i) != *(data2 + i))
20949 exit (1);
20950
20951 /* Finally, make sure that changes to the mapped area do not
20952 percolate back to the file as seen by read(). (This is a bug on
20953 some variants of i386 svr4.0.) */
20954 for (i = 0; i < pagesize; ++i)
20955 *(data2 + i) = *(data2 + i) + 1;
20956 data3 = (char *) malloc (pagesize);
20957 if (!data3)
20958 exit (1);
20959 if (read (fd, data3, pagesize) != pagesize)
20960 exit (1);
20961 for (i = 0; i < pagesize; ++i)
20962 if (*(data + i) != *(data3 + i))
20963 exit (1);
20964 close (fd);
20965 exit (0);
20966}
20967_ACEOF
20968rm -f conftest$ac_exeext
20969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20970 (eval $ac_link) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975 (eval $ac_try) 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 ac_cv_func_mmap_fixed_mapped=yes
20980else
20981 echo "$as_me: program exited with status $ac_status" >&5
20982echo "$as_me: failed program was:" >&5
20983sed 's/^/| /' conftest.$ac_ext >&5
20984
20985( exit $ac_status )
20986ac_cv_func_mmap_fixed_mapped=no
20987fi
20988rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20989fi
20990fi
20991echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20992echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20993if test $ac_cv_func_mmap_fixed_mapped = yes; then
20994
20995cat >>confdefs.h <<\_ACEOF
20996#define HAVE_MMAP 1
20997_ACEOF
20998
20999fi
21000rm -f conftest.mmap
21001
21002
21003
21004for ac_func in madvise mprotect
21005do
21006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21007echo "$as_me:$LINENO: checking for $ac_func" >&5
21008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21009if eval "test \"\${$as_ac_var+set}\" = set"; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21011else
21012 cat >conftest.$ac_ext <<_ACEOF
21013/* confdefs.h. */
21014_ACEOF
21015cat confdefs.h >>conftest.$ac_ext
21016cat >>conftest.$ac_ext <<_ACEOF
21017/* end confdefs.h. */
21018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21020#define $ac_func innocuous_$ac_func
21021
21022/* System header to define __stub macros and hopefully few prototypes,
21023 which can conflict with char $ac_func (); below.
21024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21025 <limits.h> exists even on freestanding compilers. */
21026
21027#ifdef __STDC__
21028# include <limits.h>
21029#else
21030# include <assert.h>
21031#endif
21032
21033#undef $ac_func
21034
21035/* Override any gcc2 internal prototype to avoid an error. */
21036#ifdef __cplusplus
21037extern "C"
21038{
21039#endif
21040/* We use char because int might match the return type of a gcc2
21041 builtin and then its argument prototype would still apply. */
21042char $ac_func ();
21043/* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21047choke me
21048#else
21049char (*f) () = $ac_func;
21050#endif
21051#ifdef __cplusplus
21052}
21053#endif
21054
21055int
21056main ()
21057{
21058return f != $ac_func;
21059 ;
21060 return 0;
21061}
21062_ACEOF
21063rm -f conftest.$ac_objext conftest$ac_exeext
21064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065 (eval $ac_link) 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
7357c5b6
AM
21072 { ac_try='test -z "$ac_c_werror_flag"
21073 || test ! -s conftest.err'
5464f5a1
NN
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest$ac_exeext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 eval "$as_ac_var=yes"
21086else
21087 echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
21090eval "$as_ac_var=no"
21091fi
21092rm -f conftest.err conftest.$ac_objext \
21093 conftest$ac_exeext conftest.$ac_ext
21094fi
21095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21096echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21097if test `eval echo '${'$as_ac_var'}'` = yes; then
21098 cat >>confdefs.h <<_ACEOF
21099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21100_ACEOF
21101
21102fi
21103done
21104
21105case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
21106 true+yes )
21107cat >>confdefs.h <<\_ACEOF
21108#define USE_MMAP 1
21109_ACEOF
21110 ;;
21111esac
21112
21113rm -f doc/config.status
21114 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
21115
20e95c23 21116
5464f5a1
NN
21117 ac_config_commands="$ac_config_commands default"
21118
108a6f8e
CD
21119
21120
21121
21122
21123
5464f5a1
NN
21124cat >confcache <<\_ACEOF
21125# This file is a shell script that caches the results of configure
21126# tests run on this system so they can be shared between configure
21127# scripts and configure runs, see configure's option --config-cache.
21128# It is not useful on other systems. If it contains results you don't
21129# want to keep, you may remove or edit it.
21130#
21131# config.status only pays attention to the cache file if you give it
21132# the --recheck option to rerun configure.
21133#
21134# `ac_cv_env_foo' variables (set or unset) will be overridden when
21135# loading this file, other *unset* `ac_cv_foo' will be assigned the
21136# following values.
21137
21138_ACEOF
21139
21140# The following way of writing the cache mishandles newlines in values,
21141# but we know of no workaround that is simple, portable, and efficient.
21142# So, don't put newlines in cache variables' values.
21143# Ultrix sh set writes to stderr and can't be redirected directly,
21144# and sets the high bit in the cache file unless we assign to the vars.
21145{
21146 (set) 2>&1 |
21147 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21148 *ac_space=\ *)
21149 # `set' does not quote correctly, so add quotes (double-quote
21150 # substitution turns \\\\ into \\, and sed turns \\ into \).
21151 sed -n \
21152 "s/'/'\\\\''/g;
21153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21154 ;;
21155 *)
21156 # `set' quotes correctly as required by POSIX, so do not add quotes.
21157 sed -n \
21158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21159 ;;
21160 esac;
21161} |
21162 sed '
21163 t clear
21164 : clear
21165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21166 t end
21167 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21168 : end' >>confcache
21169if diff $cache_file confcache >/dev/null 2>&1; then :; else
21170 if test -w $cache_file; then
21171 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21172 cat confcache >$cache_file
21173 else
21174 echo "not updating unwritable cache $cache_file"
21175 fi
21176fi
21177rm -f confcache
21178
21179test "x$prefix" = xNONE && prefix=$ac_default_prefix
21180# Let make expand exec_prefix.
21181test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21182
21183# VPATH may cause trouble with some makes, so we remove $(srcdir),
21184# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21185# trailing colons and then remove the whole line if VPATH becomes empty
21186# (actually we leave an empty line to preserve line numbers).
21187if test "x$srcdir" = x.; then
21188 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21189s/:*\$(srcdir):*/:/;
21190s/:*\${srcdir}:*/:/;
21191s/:*@srcdir@:*/:/;
21192s/^\([^=]*=[ ]*\):*/\1/;
21193s/:*$//;
21194s/^[^=]*=[ ]*$//;
21195}'
21196fi
21197
21198DEFS=-DHAVE_CONFIG_H
21199
21200ac_libobjs=
21201ac_ltlibobjs=
21202for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21203 # 1. Remove the extension, and $U if already installed.
21204 ac_i=`echo "$ac_i" |
21205 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21206 # 2. Add them.
21207 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21208 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21209done
21210LIBOBJS=$ac_libobjs
21211
21212LTLIBOBJS=$ac_ltlibobjs
21213
21214
f5385ebf
AM
21215if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21216 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21217Usually this means the macro was only invoked conditionally." >&5
21218echo "$as_me: error: conditional \"AMDEP\" was never defined.
21219Usually this means the macro was only invoked conditionally." >&2;}
21220 { (exit 1); exit 1; }; }
21221fi
21222if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21223 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21224Usually this means the macro was only invoked conditionally." >&5
21225echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21226Usually this means the macro was only invoked conditionally." >&2;}
21227 { (exit 1); exit 1; }; }
21228fi
21229if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21230 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21231Usually this means the macro was only invoked conditionally." >&5
21232echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21233Usually this means the macro was only invoked conditionally." >&2;}
21234 { (exit 1); exit 1; }; }
21235fi
d5fbea21
DJ
21236if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
21237 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
21238Usually this means the macro was only invoked conditionally." >&5
21239echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
21240Usually this means the macro was only invoked conditionally." >&2;}
21241 { (exit 1); exit 1; }; }
21242fi
f5385ebf
AM
21243if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
21244 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
21245Usually this means the macro was only invoked conditionally." >&5
21246echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
21247Usually this means the macro was only invoked conditionally." >&2;}
21248 { (exit 1); exit 1; }; }
21249fi
5464f5a1
NN
21250
21251: ${CONFIG_STATUS=./config.status}
21252ac_clean_files_save=$ac_clean_files
21253ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21254{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21255echo "$as_me: creating $CONFIG_STATUS" >&6;}
21256cat >$CONFIG_STATUS <<_ACEOF
21257#! $SHELL
21258# Generated by $as_me.
21259# Run this file to recreate the current configuration.
21260# Compiler output produced by configure, useful for debugging
21261# configure, is in config.log if it exists.
21262
21263debug=false
21264ac_cs_recheck=false
21265ac_cs_silent=false
21266SHELL=\${CONFIG_SHELL-$SHELL}
21267_ACEOF
21268
21269cat >>$CONFIG_STATUS <<\_ACEOF
21270## --------------------- ##
21271## M4sh Initialization. ##
21272## --------------------- ##
21273
21274# Be Bourne compatible
21275if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21276 emulate sh
21277 NULLCMD=:
21278 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21279 # is contrary to our usage. Disable this feature.
21280 alias -g '${1+"$@"}'='"$@"'
21281elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21282 set -o posix
21283fi
21284DUALCASE=1; export DUALCASE # for MKS sh
21285
21286# Support unset when possible.
21287if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21288 as_unset=unset
21289else
21290 as_unset=false
21291fi
21292
21293
21294# Work around bugs in pre-3.0 UWIN ksh.
21295$as_unset ENV MAIL MAILPATH
21296PS1='$ '
21297PS2='> '
21298PS4='+ '
21299
21300# NLS nuisances.
21301for as_var in \
21302 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21303 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21304 LC_TELEPHONE LC_TIME
21305do
21306 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21307 eval $as_var=C; export $as_var
21308 else
21309 $as_unset $as_var
21310 fi
21311done
21312
21313# Required to use basename.
21314if expr a : '\(a\)' >/dev/null 2>&1; then
21315 as_expr=expr
21316else
21317 as_expr=false
21318fi
21319
21320if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21321 as_basename=basename
21322else
21323 as_basename=false
21324fi
252b5132 21325
6be7c12c 21326
5464f5a1
NN
21327# Name of the executable.
21328as_me=`$as_basename "$0" ||
21329$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21330 X"$0" : 'X\(//\)$' \| \
21331 X"$0" : 'X\(/\)$' \| \
21332 . : '\(.\)' 2>/dev/null ||
21333echo X/"$0" |
21334 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21335 /^X\/\(\/\/\)$/{ s//\1/; q; }
21336 /^X\/\(\/\).*/{ s//\1/; q; }
21337 s/.*/./; q'`
21338
21339
21340# PATH needs CR, and LINENO needs CR and PATH.
21341# Avoid depending upon Character Ranges.
21342as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21343as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21344as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21345as_cr_digits='0123456789'
21346as_cr_alnum=$as_cr_Letters$as_cr_digits
21347
21348# The user is always right.
21349if test "${PATH_SEPARATOR+set}" != set; then
21350 echo "#! /bin/sh" >conf$$.sh
21351 echo "exit 0" >>conf$$.sh
21352 chmod +x conf$$.sh
21353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21354 PATH_SEPARATOR=';'
21355 else
21356 PATH_SEPARATOR=:
21357 fi
21358 rm -f conf$$.sh
21359fi
21360
21361
21362 as_lineno_1=$LINENO
21363 as_lineno_2=$LINENO
21364 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21365 test "x$as_lineno_1" != "x$as_lineno_2" &&
21366 test "x$as_lineno_3" = "x$as_lineno_2" || {
21367 # Find who we are. Look in the path if we contain no path at all
21368 # relative or not.
21369 case $0 in
21370 *[\\/]* ) as_myself=$0 ;;
21371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21372for as_dir in $PATH
21373do
21374 IFS=$as_save_IFS
21375 test -z "$as_dir" && as_dir=.
21376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21377done
21378
21379 ;;
21380 esac
21381 # We did not find ourselves, most probably we were run as `sh COMMAND'
21382 # in which case we are not to be found in the path.
21383 if test "x$as_myself" = x; then
21384 as_myself=$0
21385 fi
21386 if test ! -f "$as_myself"; then
21387 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21388echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21389 { (exit 1); exit 1; }; }
21390 fi
21391 case $CONFIG_SHELL in
21392 '')
21393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21394for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21395do
21396 IFS=$as_save_IFS
21397 test -z "$as_dir" && as_dir=.
21398 for as_base in sh bash ksh sh5; do
21399 case $as_dir in
21400 /*)
21401 if ("$as_dir/$as_base" -c '
21402 as_lineno_1=$LINENO
21403 as_lineno_2=$LINENO
21404 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21405 test "x$as_lineno_1" != "x$as_lineno_2" &&
21406 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21407 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21408 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21409 CONFIG_SHELL=$as_dir/$as_base
21410 export CONFIG_SHELL
21411 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21412 fi;;
21413 esac
21414 done
21415done
21416;;
21417 esac
21418
21419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21420 # uniformly replaced by the line number. The first 'sed' inserts a
21421 # line-number line before each line; the second 'sed' does the real
21422 # work. The second script uses 'N' to pair each line-number line
21423 # with the numbered line, and appends trailing '-' during
21424 # substitution so that $LINENO is not a special case at line end.
21425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21426 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21427 sed '=' <$as_myself |
21428 sed '
21429 N
21430 s,$,-,
21431 : loop
21432 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21433 t loop
21434 s,-$,,
21435 s,^['$as_cr_digits']*\n,,
21436 ' >$as_me.lineno &&
21437 chmod +x $as_me.lineno ||
21438 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21439echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21440 { (exit 1); exit 1; }; }
21441
21442 # Don't try to exec as it changes $[0], causing all sort of problems
21443 # (the dirname of $[0] is not the place where we might find the
21444 # original and so on. Autoconf is especially sensible to this).
21445 . ./$as_me.lineno
21446 # Exit status is that of the last command.
21447 exit
252b5132 21448}
6be7c12c 21449
5464f5a1
NN
21450
21451case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21452 *c*,-n*) ECHO_N= ECHO_C='
21453' ECHO_T=' ' ;;
21454 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21455 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21456esac
21457
21458if expr a : '\(a\)' >/dev/null 2>&1; then
21459 as_expr=expr
252b5132 21460else
5464f5a1 21461 as_expr=false
252b5132 21462fi
5464f5a1
NN
21463
21464rm -f conf$$ conf$$.exe conf$$.file
21465echo >conf$$.file
21466if ln -s conf$$.file conf$$ 2>/dev/null; then
21467 # We could just check for DJGPP; but this test a) works b) is more generic
21468 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21469 if test -f conf$$.exe; then
21470 # Don't use ln at all; we don't have any links
21471 as_ln_s='cp -p'
21472 else
21473 as_ln_s='ln -s'
21474 fi
21475elif ln conf$$.file conf$$ 2>/dev/null; then
21476 as_ln_s=ln
21477else
21478 as_ln_s='cp -p'
252b5132 21479fi
5464f5a1 21480rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 21481
5464f5a1
NN
21482if mkdir -p . 2>/dev/null; then
21483 as_mkdir_p=:
21484else
21485 test -d ./-p && rmdir ./-p
21486 as_mkdir_p=false
252b5132 21487fi
b3baf5d0 21488
5464f5a1 21489as_executable_p="test -f"
252b5132 21490
5464f5a1
NN
21491# Sed expression to map a string onto a valid CPP name.
21492as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 21493
5464f5a1
NN
21494# Sed expression to map a string onto a valid variable name.
21495as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 21496
252b5132 21497
5464f5a1
NN
21498# IFS
21499# We need space, tab and new line, in precisely that order.
21500as_nl='
21501'
21502IFS=" $as_nl"
252b5132 21503
5464f5a1
NN
21504# CDPATH.
21505$as_unset CDPATH
21506
21507exec 6>&1
21508
21509# Open the log real soon, to keep \$[0] and so on meaningful, and to
21510# report actual input values of CONFIG_FILES etc. instead of their
21511# values after options handling. Logging --version etc. is OK.
21512exec 5>>config.log
21513{
21514 echo
21515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21516## Running $as_me. ##
21517_ASBOX
21518} >&5
21519cat >&5 <<_CSEOF
21520
21521This file was extended by $as_me, which was
21522generated by GNU Autoconf 2.59. Invocation command line was
21523
21524 CONFIG_FILES = $CONFIG_FILES
21525 CONFIG_HEADERS = $CONFIG_HEADERS
21526 CONFIG_LINKS = $CONFIG_LINKS
21527 CONFIG_COMMANDS = $CONFIG_COMMANDS
21528 $ $0 $@
21529
21530_CSEOF
21531echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21532echo >&5
21533_ACEOF
21534
21535# Files that config.status was made for.
21536if test -n "$ac_config_files"; then
21537 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 21538fi
5464f5a1
NN
21539
21540if test -n "$ac_config_headers"; then
21541 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 21542fi
252b5132 21543
5464f5a1
NN
21544if test -n "$ac_config_links"; then
21545 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 21546fi
252b5132 21547
5464f5a1
NN
21548if test -n "$ac_config_commands"; then
21549 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21550fi
252b5132 21551
5464f5a1
NN
21552cat >>$CONFIG_STATUS <<\_ACEOF
21553
21554ac_cs_usage="\
21555\`$as_me' instantiates files from templates according to the
21556current configuration.
21557
21558Usage: $0 [OPTIONS] [FILE]...
21559
21560 -h, --help print this help, then exit
21561 -V, --version print version number, then exit
21562 -q, --quiet do not print progress messages
21563 -d, --debug don't remove temporary files
21564 --recheck update $as_me by reconfiguring in the same conditions
21565 --file=FILE[:TEMPLATE]
21566 instantiate the configuration file FILE
21567 --header=FILE[:TEMPLATE]
21568 instantiate the configuration header FILE
21569
21570Configuration files:
21571$config_files
21572
21573Configuration headers:
21574$config_headers
21575
21576Configuration commands:
21577$config_commands
21578
21579Report bugs to <bug-autoconf@gnu.org>."
21580_ACEOF
21581
21582cat >>$CONFIG_STATUS <<_ACEOF
21583ac_cs_version="\\
21584config.status
21585configured by $0, generated by GNU Autoconf 2.59,
21586 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21587
21588Copyright (C) 2003 Free Software Foundation, Inc.
21589This config.status script is free software; the Free Software Foundation
21590gives unlimited permission to copy, distribute and modify it."
21591srcdir=$srcdir
21592INSTALL="$INSTALL"
21593_ACEOF
21594
21595cat >>$CONFIG_STATUS <<\_ACEOF
21596# If no file are specified by the user, then we need to provide default
21597# value. By we need to know if files were specified by the user.
21598ac_need_defaults=:
21599while test $# != 0
21600do
21601 case $1 in
21602 --*=*)
21603 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21604 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21605 ac_shift=:
6be7c12c 21606 ;;
5464f5a1
NN
21607 -*)
21608 ac_option=$1
21609 ac_optarg=$2
21610 ac_shift=shift
6be7c12c 21611 ;;
5464f5a1
NN
21612 *) # This is not an option, so the user has probably given explicit
21613 # arguments.
21614 ac_option=$1
21615 ac_need_defaults=false;;
21616 esac
252b5132 21617
5464f5a1
NN
21618 case $ac_option in
21619 # Handling of the options.
21620_ACEOF
21621cat >>$CONFIG_STATUS <<\_ACEOF
21622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21623 ac_cs_recheck=: ;;
21624 --version | --vers* | -V )
21625 echo "$ac_cs_version"; exit 0 ;;
21626 --he | --h)
21627 # Conflict between --help and --header
21628 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21629Try \`$0 --help' for more information." >&5
21630echo "$as_me: error: ambiguous option: $1
21631Try \`$0 --help' for more information." >&2;}
21632 { (exit 1); exit 1; }; };;
21633 --help | --hel | -h )
21634 echo "$ac_cs_usage"; exit 0 ;;
21635 --debug | --d* | -d )
21636 debug=: ;;
21637 --file | --fil | --fi | --f )
21638 $ac_shift
21639 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21640 ac_need_defaults=false;;
21641 --header | --heade | --head | --hea )
21642 $ac_shift
21643 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21644 ac_need_defaults=false;;
21645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21647 ac_cs_silent=: ;;
6be7c12c 21648
5464f5a1
NN
21649 # This is an error.
21650 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21651Try \`$0 --help' for more information." >&5
21652echo "$as_me: error: unrecognized option: $1
21653Try \`$0 --help' for more information." >&2;}
21654 { (exit 1); exit 1; }; } ;;
252b5132 21655
5464f5a1 21656 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 21657
5464f5a1
NN
21658 esac
21659 shift
21660done
6be7c12c 21661
5464f5a1 21662ac_configure_extra_args=
252b5132 21663
5464f5a1
NN
21664if $ac_cs_silent; then
21665 exec 6>/dev/null
21666 ac_configure_extra_args="$ac_configure_extra_args --silent"
21667fi
6be7c12c 21668
5464f5a1
NN
21669_ACEOF
21670cat >>$CONFIG_STATUS <<_ACEOF
21671if \$ac_cs_recheck; then
21672 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21673 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21674fi
21675
21676_ACEOF
21677
21678cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 21679#
5464f5a1 21680# INIT-COMMANDS section.
6be7c12c 21681#
b3baf5d0 21682
f5385ebf 21683AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
21684
21685
21686# The HP-UX ksh and POSIX shell print the target directory to stdout
21687# if CDPATH is set.
21688(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21689
21690sed_quote_subst='$sed_quote_subst'
21691double_quote_subst='$double_quote_subst'
21692delay_variable_subst='$delay_variable_subst'
21693enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21694macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21695macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21696enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21697pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21698enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21699host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21700host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21701host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21702build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21703build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21704build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21705SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21706Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21707GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21708EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21709FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21710LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21711NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21712LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21713max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21714ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21715exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21716lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21717lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21718lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21719reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21720reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21721deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21722file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21723AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21724AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21725STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21726RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21727old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21728old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21729old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21730CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21731CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21732compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21733GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21734lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21735lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21736lt_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"`'
21737objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21738SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21739ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21740MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21741lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21742lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21743lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21744lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21745lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21746need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21747libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21748shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21749extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21750archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21751enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21752export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21753whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21754compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21755old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21756old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21757archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21758archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21759module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21760module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21761with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21762allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21763no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21764hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21765hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21766hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21767hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21768hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21769hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21770hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21771hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21772inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21773link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21774fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21775always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21776export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21777exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21778include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21779prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21780file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21781variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21782need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21783need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21784version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21785runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21786shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21787shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21788libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21789library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21790soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21791postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21792postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21793finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21794finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21795hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21796sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21797sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21798hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21799enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21800enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21801enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21802old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21803striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21804
21805LTCC='$LTCC'
21806LTCFLAGS='$LTCFLAGS'
21807compiler='$compiler_DEFAULT'
21808
21809# Quote evaled strings.
21810for var in SED \
21811GREP \
21812EGREP \
21813FGREP \
21814LD \
21815NM \
21816LN_S \
21817lt_SP2NL \
21818lt_NL2SP \
21819reload_flag \
21820deplibs_check_method \
21821file_magic_cmd \
21822AR \
21823AR_FLAGS \
21824STRIP \
21825RANLIB \
21826CC \
21827CFLAGS \
21828compiler \
21829lt_cv_sys_global_symbol_pipe \
21830lt_cv_sys_global_symbol_to_cdecl \
21831lt_cv_sys_global_symbol_to_c_name_address \
21832SHELL \
21833ECHO \
21834lt_prog_compiler_no_builtin_flag \
21835lt_prog_compiler_wl \
21836lt_prog_compiler_pic \
21837lt_prog_compiler_static \
21838lt_cv_prog_compiler_c_o \
21839need_locks \
21840shrext_cmds \
21841export_dynamic_flag_spec \
21842whole_archive_flag_spec \
21843compiler_needs_object \
21844with_gnu_ld \
21845allow_undefined_flag \
21846no_undefined_flag \
21847hardcode_libdir_flag_spec \
21848hardcode_libdir_flag_spec_ld \
21849hardcode_libdir_separator \
21850fix_srcfile_path \
21851exclude_expsyms \
21852include_expsyms \
21853file_list_spec \
21854variables_saved_for_relink \
21855libname_spec \
21856library_names_spec \
21857soname_spec \
21858finish_eval \
21859old_striplib \
21860striplib; do
21861 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21862 *[\\\\\\\`\\"\\\$]*)
21863 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21864 ;;
21865 *)
21866 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21867 ;;
21868 esac
21869done
21870
21871# Double-quote double-evaled strings.
21872for var in reload_cmds \
21873old_postinstall_cmds \
21874old_postuninstall_cmds \
21875old_archive_cmds \
21876extract_expsyms_cmds \
21877old_archive_from_new_cmds \
21878old_archive_from_expsyms_cmds \
21879archive_cmds \
21880archive_expsym_cmds \
21881module_cmds \
21882module_expsym_cmds \
21883export_symbols_cmds \
21884prelink_cmds \
21885postinstall_cmds \
21886postuninstall_cmds \
21887finish_cmds \
21888sys_lib_search_path_spec \
21889sys_lib_dlsearch_path_spec; do
21890 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21891 *[\\\\\\\`\\"\\\$]*)
21892 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21893 ;;
21894 *)
21895 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21896 ;;
21897 esac
21898done
21899
21900# Fix-up fallback echo if it was mangled by the above quoting rules.
21901case \$lt_ECHO in
21902*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21903 ;;
21904esac
21905
21906ac_aux_dir='$ac_aux_dir'
21907xsi_shell='$xsi_shell'
21908lt_shell_append='$lt_shell_append'
21909
21910# See if we are running on zsh, and set the options which allow our
21911# commands through without removal of \ escapes INIT.
21912if test -n "\${ZSH_VERSION+set}" ; then
21913 setopt NO_GLOB_SUBST
21914fi
21915
21916
21917 PACKAGE='$PACKAGE'
21918 VERSION='$VERSION'
21919 TIMESTAMP='$TIMESTAMP'
21920 RM='$RM'
21921 ofile='$ofile'
21922
21923
21924
20e95c23
DJ
21925# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21926 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21927 # from automake.
21928 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21929 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21930 LINGUAS="${LINGUAS-%UNSET%}"
21931
5464f5a1 21932
d5efd9fc
AM
21933GCC="$GCC"
21934CC="$CC"
21935acx_cv_header_stdint="$acx_cv_header_stdint"
21936acx_cv_type_int8_t="$acx_cv_type_int8_t"
21937acx_cv_type_int16_t="$acx_cv_type_int16_t"
21938acx_cv_type_int32_t="$acx_cv_type_int32_t"
21939acx_cv_type_int64_t="$acx_cv_type_int64_t"
21940acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21941ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21942ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21943ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21944ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21945ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21946ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21947ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21948ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21949
21950
5464f5a1
NN
21951
21952_ACEOF
21953
21954
21955
21956cat >>$CONFIG_STATUS <<\_ACEOF
21957for ac_config_target in $ac_config_targets
252b5132 21958do
5464f5a1
NN
21959 case "$ac_config_target" in
21960 # Handling of arguments.
21961 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21962 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21963 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21964 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 21965 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 21966 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 21967 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 21968 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
21969 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21970 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21971 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21972echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21973 { (exit 1); exit 1; }; };;
252b5132
RH
21974 esac
21975done
21976
5464f5a1
NN
21977# If the user did not use the arguments to specify the items to instantiate,
21978# then the envvar interface is used. Set only those that are not.
21979# We use the long form for the default assignment because of an extremely
21980# bizarre bug on SunOS 4.1.3.
21981if $ac_need_defaults; then
21982 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21983 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21984 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21985fi
21986
21987# Have a temporary directory for convenience. Make it in the build tree
21988# simply because there is no reason to put it here, and in addition,
21989# creating and moving files from /tmp can sometimes cause problems.
21990# Create a temporary directory, and hook for its removal unless debugging.
21991$debug ||
21992{
21993 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21994 trap '{ (exit 1); exit 1; }' 1 2 13 15
21995}
b3baf5d0 21996
5464f5a1 21997# Create a (secure) tmp directory for tmp files.
b3baf5d0 21998
5464f5a1
NN
21999{
22000 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22001 test -n "$tmp" && test -d "$tmp"
22002} ||
22003{
22004 tmp=./confstat$$-$RANDOM
22005 (umask 077 && mkdir $tmp)
22006} ||
22007{
22008 echo "$me: cannot create a temporary directory in ." >&2
22009 { (exit 1); exit 1; }
22010}
22011
22012_ACEOF
22013
22014cat >>$CONFIG_STATUS <<_ACEOF
22015
22016#
22017# CONFIG_FILES section.
22018#
b3baf5d0 22019
5464f5a1
NN
22020# No need to generate the scripts if there are no CONFIG_FILES.
22021# This happens for instance when ./config.status config.h
22022if test -n "\$CONFIG_FILES"; then
22023 # Protect against being on the right side of a sed subst in config.status.
22024 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22025 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22026s,@SHELL@,$SHELL,;t t
22027s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22028s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22029s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22030s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22031s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22032s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22033s,@exec_prefix@,$exec_prefix,;t t
22034s,@prefix@,$prefix,;t t
22035s,@program_transform_name@,$program_transform_name,;t t
22036s,@bindir@,$bindir,;t t
22037s,@sbindir@,$sbindir,;t t
22038s,@libexecdir@,$libexecdir,;t t
22039s,@datadir@,$datadir,;t t
22040s,@sysconfdir@,$sysconfdir,;t t
22041s,@sharedstatedir@,$sharedstatedir,;t t
22042s,@localstatedir@,$localstatedir,;t t
22043s,@libdir@,$libdir,;t t
22044s,@includedir@,$includedir,;t t
22045s,@oldincludedir@,$oldincludedir,;t t
22046s,@infodir@,$infodir,;t t
22047s,@mandir@,$mandir,;t t
22048s,@build_alias@,$build_alias,;t t
22049s,@host_alias@,$host_alias,;t t
22050s,@target_alias@,$target_alias,;t t
22051s,@DEFS@,$DEFS,;t t
22052s,@ECHO_C@,$ECHO_C,;t t
22053s,@ECHO_N@,$ECHO_N,;t t
22054s,@ECHO_T@,$ECHO_T,;t t
22055s,@LIBS@,$LIBS,;t t
22056s,@build@,$build,;t t
22057s,@build_cpu@,$build_cpu,;t t
22058s,@build_vendor@,$build_vendor,;t t
22059s,@build_os@,$build_os,;t t
22060s,@host@,$host,;t t
22061s,@host_cpu@,$host_cpu,;t t
22062s,@host_vendor@,$host_vendor,;t t
22063s,@host_os@,$host_os,;t t
22064s,@target@,$target,;t t
22065s,@target_cpu@,$target_cpu,;t t
22066s,@target_vendor@,$target_vendor,;t t
22067s,@target_os@,$target_os,;t t
22068s,@CC@,$CC,;t t
22069s,@CFLAGS@,$CFLAGS,;t t
22070s,@LDFLAGS@,$LDFLAGS,;t t
22071s,@CPPFLAGS@,$CPPFLAGS,;t t
22072s,@ac_ct_CC@,$ac_ct_CC,;t t
22073s,@EXEEXT@,$EXEEXT,;t t
22074s,@OBJEXT@,$OBJEXT,;t t
22075s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22076s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22077s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 22078s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
22079s,@PACKAGE@,$PACKAGE,;t t
22080s,@VERSION@,$VERSION,;t t
22081s,@ACLOCAL@,$ACLOCAL,;t t
22082s,@AUTOCONF@,$AUTOCONF,;t t
22083s,@AUTOMAKE@,$AUTOMAKE,;t t
22084s,@AUTOHEADER@,$AUTOHEADER,;t t
22085s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
22086s,@install_sh@,$install_sh,;t t
22087s,@STRIP@,$STRIP,;t t
22088s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22089s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22090s,@mkdir_p@,$mkdir_p,;t t
22091s,@AWK@,$AWK,;t t
5464f5a1 22092s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
22093s,@am__leading_dot@,$am__leading_dot,;t t
22094s,@AMTAR@,$AMTAR,;t t
22095s,@am__tar@,$am__tar,;t t
22096s,@am__untar@,$am__untar,;t t
22097s,@DEPDIR@,$DEPDIR,;t t
22098s,@am__include@,$am__include,;t t
22099s,@am__quote@,$am__quote,;t t
22100s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22101s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22102s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22103s,@CCDEPMODE@,$CCDEPMODE,;t t
22104s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22105s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
22106s,@AR@,$AR,;t t
22107s,@ac_ct_AR@,$ac_ct_AR,;t t
22108s,@RANLIB@,$RANLIB,;t t
22109s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7357c5b6
AM
22110s,@CPP@,$CPP,;t t
22111s,@EGREP@,$EGREP,;t t
5464f5a1 22112s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb 22113s,@SED@,$SED,;t t
d7040cdb
SE
22114s,@FGREP@,$FGREP,;t t
22115s,@GREP@,$GREP,;t t
22116s,@LD@,$LD,;t t
22117s,@DUMPBIN@,$DUMPBIN,;t t
22118s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22119s,@NM@,$NM,;t t
22120s,@LN_S@,$LN_S,;t t
22121s,@lt_ECHO@,$lt_ECHO,;t t
0d4a1476 22122s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 22123s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
22124s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22125s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 22126s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 22127s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
22128s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22129s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22130s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
22131s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
22132s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
22133s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
22134s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
22135s,@host_noncanonical@,$host_noncanonical,;t t
22136s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
22137s,@bfdlibdir@,$bfdlibdir,;t t
22138s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 22139s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
22140s,@LIBINTL@,$LIBINTL,;t t
22141s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
22142s,@INCINTL@,$INCINTL,;t t
5464f5a1 22143s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
22144s,@GMSGFMT@,$GMSGFMT,;t t
22145s,@POSUB@,$POSUB,;t t
5464f5a1 22146s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 22147s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 22148s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
22149s,@GENCAT@,$GENCAT,;t t
22150s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 22151s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
22152s,@MSGFMT@,$MSGFMT,;t t
22153s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
22154s,@HDEFINES@,$HDEFINES,;t t
22155s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 22156s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
22157s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
22158s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
22159s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 22160s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
22161s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
22162s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
22163s,@COREFILE@,$COREFILE,;t t
22164s,@COREFLAG@,$COREFLAG,;t t
22165s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
22166s,@WIN32LIBADD@,$WIN32LIBADD,;t t
22167s,@TDEFINES@,$TDEFINES,;t t
22168s,@wordsize@,$wordsize,;t t
21e40a48 22169s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
22170s,@all_backends@,$all_backends,;t t
22171s,@bfd_backends@,$bfd_backends,;t t
22172s,@bfd_machines@,$bfd_machines,;t t
22173s,@bfd_default_target_size@,$bfd_default_target_size,;t t
22174s,@bfd_file_ptr@,$bfd_file_ptr,;t t
22175s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
22176s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
22177s,@datarootdir@,$datarootdir,;t t
22178s,@docdir@,$docdir,;t t
22179s,@htmldir@,$htmldir,;t t
5464f5a1
NN
22180s,@LIBOBJS@,$LIBOBJS,;t t
22181s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 22182CEOF
252b5132 22183
5464f5a1
NN
22184_ACEOF
22185
22186 cat >>$CONFIG_STATUS <<\_ACEOF
22187 # Split the substitutions into bite-sized pieces for seds with
22188 # small command number limits, like on Digital OSF/1 and HP-UX.
22189 ac_max_sed_lines=48
22190 ac_sed_frag=1 # Number of current file.
22191 ac_beg=1 # First line for current file.
22192 ac_end=$ac_max_sed_lines # Line after last line for current file.
22193 ac_more_lines=:
22194 ac_sed_cmds=
22195 while $ac_more_lines; do
22196 if test $ac_beg -gt 1; then
22197 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 22198 else
5464f5a1
NN
22199 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22200 fi
22201 if test ! -s $tmp/subs.frag; then
22202 ac_more_lines=false
22203 else
22204 # The purpose of the label and of the branching condition is to
22205 # speed up the sed processing (if there are no `@' at all, there
22206 # is no need to browse any of the substitutions).
22207 # These are the two extra sed commands mentioned above.
22208 (echo ':t
22209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22210 if test -z "$ac_sed_cmds"; then
22211 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22212 else
22213 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22214 fi
22215 ac_sed_frag=`expr $ac_sed_frag + 1`
22216 ac_beg=$ac_end
22217 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 22218 fi
5464f5a1
NN
22219 done
22220 if test -z "$ac_sed_cmds"; then
22221 ac_sed_cmds=cat
252b5132 22222 fi
5464f5a1 22223fi # test -n "$CONFIG_FILES"
6be7c12c 22224
5464f5a1
NN
22225_ACEOF
22226cat >>$CONFIG_STATUS <<\_ACEOF
22227for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 22228 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
22229 case $ac_file in
22230 - | *:- | *:-:* ) # input from stdin
22231 cat >$tmp/stdin
22232 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22234 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22236 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
22237 esac
22238
5464f5a1
NN
22239 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22240 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22241$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22242 X"$ac_file" : 'X\(//\)[^/]' \| \
22243 X"$ac_file" : 'X\(//\)$' \| \
22244 X"$ac_file" : 'X\(/\)' \| \
22245 . : '\(.\)' 2>/dev/null ||
22246echo X"$ac_file" |
22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22249 /^X\(\/\/\)$/{ s//\1/; q; }
22250 /^X\(\/\).*/{ s//\1/; q; }
22251 s/.*/./; q'`
22252 { if $as_mkdir_p; then
22253 mkdir -p "$ac_dir"
252b5132 22254 else
5464f5a1
NN
22255 as_dir="$ac_dir"
22256 as_dirs=
22257 while test ! -d "$as_dir"; do
22258 as_dirs="$as_dir $as_dirs"
22259 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22260$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22261 X"$as_dir" : 'X\(//\)[^/]' \| \
22262 X"$as_dir" : 'X\(//\)$' \| \
22263 X"$as_dir" : 'X\(/\)' \| \
22264 . : '\(.\)' 2>/dev/null ||
22265echo X"$as_dir" |
22266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22268 /^X\(\/\/\)$/{ s//\1/; q; }
22269 /^X\(\/\).*/{ s//\1/; q; }
22270 s/.*/./; q'`
22271 done
22272 test ! -n "$as_dirs" || mkdir $as_dirs
22273 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22274echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22275 { (exit 1); exit 1; }; }; }
22276
22277 ac_builddir=.
22278
22279if test "$ac_dir" != .; then
22280 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22281 # A "../" for each directory in $ac_dir_suffix.
22282 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22283else
22284 ac_dir_suffix= ac_top_builddir=
22285fi
252b5132 22286
5464f5a1
NN
22287case $srcdir in
22288 .) # No --srcdir option. We are building in place.
22289 ac_srcdir=.
22290 if test -z "$ac_top_builddir"; then
22291 ac_top_srcdir=.
22292 else
22293 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22294 fi ;;
22295 [\\/]* | ?:[\\/]* ) # Absolute path.
22296 ac_srcdir=$srcdir$ac_dir_suffix;
22297 ac_top_srcdir=$srcdir ;;
252b5132 22298 *) # Relative path.
5464f5a1
NN
22299 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22300 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22301esac
252b5132 22302
5464f5a1
NN
22303# Do not use `cd foo && pwd` to compute absolute paths, because
22304# the directories may not exist.
22305case `pwd` in
22306.) ac_abs_builddir="$ac_dir";;
22307*)
22308 case "$ac_dir" in
22309 .) ac_abs_builddir=`pwd`;;
22310 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22311 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22312 esac;;
22313esac
22314case $ac_abs_builddir in
22315.) ac_abs_top_builddir=${ac_top_builddir}.;;
22316*)
22317 case ${ac_top_builddir}. in
22318 .) ac_abs_top_builddir=$ac_abs_builddir;;
22319 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22320 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22321 esac;;
22322esac
22323case $ac_abs_builddir in
22324.) ac_abs_srcdir=$ac_srcdir;;
22325*)
22326 case $ac_srcdir in
22327 .) ac_abs_srcdir=$ac_abs_builddir;;
22328 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22329 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22330 esac;;
22331esac
22332case $ac_abs_builddir in
22333.) ac_abs_top_srcdir=$ac_top_srcdir;;
22334*)
22335 case $ac_top_srcdir in
22336 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22337 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22338 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22339 esac;;
22340esac
252b5132 22341
5464f5a1
NN
22342
22343 case $INSTALL in
22344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22345 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 22346 esac
252b5132 22347
7357c5b6
AM
22348 if test x"$ac_file" != x-; then
22349 { echo "$as_me:$LINENO: creating $ac_file" >&5
22350echo "$as_me: creating $ac_file" >&6;}
22351 rm -f "$ac_file"
22352 fi
5464f5a1
NN
22353 # Let's still pretend it is `configure' which instantiates (i.e., don't
22354 # use $as_me), people would be surprised to read:
22355 # /* config.h. Generated by config.status. */
22356 if test x"$ac_file" = x-; then
22357 configure_input=
22358 else
22359 configure_input="$ac_file. "
22360 fi
22361 configure_input=$configure_input"Generated from `echo $ac_file_in |
22362 sed 's,.*/,,'` by configure."
22363
22364 # First look for the input files in the build tree, otherwise in the
22365 # src tree.
22366 ac_file_inputs=`IFS=:
22367 for f in $ac_file_in; do
22368 case $f in
22369 -) echo $tmp/stdin ;;
22370 [\\/$]*)
22371 # Absolute (can't be DOS-style, as IFS=:)
22372 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22373echo "$as_me: error: cannot find input file: $f" >&2;}
22374 { (exit 1); exit 1; }; }
22375 echo "$f";;
22376 *) # Relative
22377 if test -f "$f"; then
22378 # Build tree
22379 echo "$f"
22380 elif test -f "$srcdir/$f"; then
22381 # Source tree
22382 echo "$srcdir/$f"
22383 else
22384 # /dev/null tree
22385 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22386echo "$as_me: error: cannot find input file: $f" >&2;}
22387 { (exit 1); exit 1; }; }
22388 fi;;
22389 esac
22390 done` || { (exit 1); exit 1; }
5464f5a1
NN
22391_ACEOF
22392cat >>$CONFIG_STATUS <<_ACEOF
22393 sed "$ac_vpsub
22394$extrasub
22395_ACEOF
22396cat >>$CONFIG_STATUS <<\_ACEOF
22397:t
22398/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22399s,@configure_input@,$configure_input,;t t
22400s,@srcdir@,$ac_srcdir,;t t
22401s,@abs_srcdir@,$ac_abs_srcdir,;t t
22402s,@top_srcdir@,$ac_top_srcdir,;t t
22403s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22404s,@builddir@,$ac_builddir,;t t
22405s,@abs_builddir@,$ac_abs_builddir,;t t
22406s,@top_builddir@,$ac_top_builddir,;t t
22407s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22408s,@INSTALL@,$ac_INSTALL,;t t
22409" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22410 rm -f $tmp/stdin
22411 if test x"$ac_file" != x-; then
22412 mv $tmp/out $ac_file
22413 else
22414 cat $tmp/out
22415 rm -f $tmp/out
22416 fi
22417
22418done
22419_ACEOF
22420cat >>$CONFIG_STATUS <<\_ACEOF
22421
22422#
22423# CONFIG_HEADER section.
22424#
252b5132
RH
22425
22426# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22427# NAME is the cpp macro being defined and VALUE is the value it is being given.
22428#
22429# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
22430ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22431ac_dB='[ ].*$,\1#\2'
22432ac_dC=' '
22433ac_dD=',;t'
22434# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22435ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22436ac_uB='$,\1#\2define\3'
252b5132 22437ac_uC=' '
5464f5a1
NN
22438ac_uD=',;t'
22439
22440for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 22441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
22442 case $ac_file in
22443 - | *:- | *:-:* ) # input from stdin
22444 cat >$tmp/stdin
22445 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22447 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22449 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
22450 esac
22451
5464f5a1
NN
22452 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22453echo "$as_me: creating $ac_file" >&6;}
22454
22455 # First look for the input files in the build tree, otherwise in the
22456 # src tree.
22457 ac_file_inputs=`IFS=:
22458 for f in $ac_file_in; do
22459 case $f in
22460 -) echo $tmp/stdin ;;
22461 [\\/$]*)
22462 # Absolute (can't be DOS-style, as IFS=:)
22463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22464echo "$as_me: error: cannot find input file: $f" >&2;}
22465 { (exit 1); exit 1; }; }
22466 # Do quote $f, to prevent DOS paths from being IFS'd.
22467 echo "$f";;
22468 *) # Relative
22469 if test -f "$f"; then
22470 # Build tree
22471 echo "$f"
22472 elif test -f "$srcdir/$f"; then
22473 # Source tree
22474 echo "$srcdir/$f"
22475 else
22476 # /dev/null tree
22477 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22478echo "$as_me: error: cannot find input file: $f" >&2;}
22479 { (exit 1); exit 1; }; }
22480 fi;;
22481 esac
22482 done` || { (exit 1); exit 1; }
22483 # Remove the trailing spaces.
22484 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22485
22486_ACEOF
22487
22488# Transform confdefs.h into two sed scripts, `conftest.defines' and
22489# `conftest.undefs', that substitutes the proper values into
22490# config.h.in to produce config.h. The first handles `#define'
22491# templates, and the second `#undef' templates.
22492# And first: Protect against being on the right side of a sed subst in
22493# config.status. Protect against being in an unquoted here document
22494# in config.status.
22495rm -f conftest.defines conftest.undefs
22496# Using a here document instead of a string reduces the quoting nightmare.
22497# Putting comments in sed scripts is not portable.
22498#
22499# `end' is used to avoid that the second main sed command (meant for
22500# 0-ary CPP macros) applies to n-ary macro definitions.
22501# See the Autoconf documentation for `clear'.
22502cat >confdef2sed.sed <<\_ACEOF
22503s/[\\&,]/\\&/g
22504s,[\\$`],\\&,g
22505t clear
22506: clear
22507s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22508t end
22509s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22510: end
22511_ACEOF
22512# If some macros were called several times there might be several times
22513# the same #defines, which is useless. Nevertheless, we may not want to
22514# sort them, since we want the *last* AC-DEFINE to be honored.
22515uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22516sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22517rm -f confdef2sed.sed
252b5132
RH
22518
22519# This sed command replaces #undef with comments. This is necessary, for
22520# example, in the case of _POSIX_SOURCE, which is predefined and required
22521# on some systems where configure will not decide to define it.
5464f5a1
NN
22522cat >>conftest.undefs <<\_ACEOF
22523s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22524_ACEOF
22525
22526# Break up conftest.defines because some shells have a limit on the size
22527# of here documents, and old seds have small limits too (100 cmds).
22528echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22529echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22530echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22531echo ' :' >>$CONFIG_STATUS
22532rm -f conftest.tail
22533while grep . conftest.defines >/dev/null
22534do
22535 # Write a limited-size here document to $tmp/defines.sed.
22536 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22537 # Speed up: don't consider the non `#define' lines.
22538 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22539 # Work around the forget-to-reset-the-flag bug.
22540 echo 't clr' >>$CONFIG_STATUS
22541 echo ': clr' >>$CONFIG_STATUS
22542 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22543 echo 'CEOF
22544 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22545 rm -f $tmp/in
22546 mv $tmp/out $tmp/in
22547' >>$CONFIG_STATUS
22548 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22549 rm -f conftest.defines
22550 mv conftest.tail conftest.defines
22551done
22552rm -f conftest.defines
22553echo ' fi # grep' >>$CONFIG_STATUS
22554echo >>$CONFIG_STATUS
252b5132 22555
5464f5a1
NN
22556# Break up conftest.undefs because some shells have a limit on the size
22557# of here documents, and old seds have small limits too (100 cmds).
22558echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 22559rm -f conftest.tail
5464f5a1 22560while grep . conftest.undefs >/dev/null
252b5132 22561do
5464f5a1
NN
22562 # Write a limited-size here document to $tmp/undefs.sed.
22563 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22564 # Speed up: don't consider the non `#undef'
22565 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22566 # Work around the forget-to-reset-the-flag bug.
22567 echo 't clr' >>$CONFIG_STATUS
22568 echo ': clr' >>$CONFIG_STATUS
22569 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 22570 echo 'CEOF
5464f5a1
NN
22571 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22572 rm -f $tmp/in
22573 mv $tmp/out $tmp/in
22574' >>$CONFIG_STATUS
22575 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22576 rm -f conftest.undefs
22577 mv conftest.tail conftest.undefs
252b5132 22578done
5464f5a1
NN
22579rm -f conftest.undefs
22580
22581cat >>$CONFIG_STATUS <<\_ACEOF
22582 # Let's still pretend it is `configure' which instantiates (i.e., don't
22583 # use $as_me), people would be surprised to read:
22584 # /* config.h. Generated by config.status. */
22585 if test x"$ac_file" = x-; then
22586 echo "/* Generated by configure. */" >$tmp/config.h
22587 else
22588 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22589 fi
22590 cat $tmp/in >>$tmp/config.h
22591 rm -f $tmp/in
22592 if test x"$ac_file" != x-; then
22593 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22594 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22595echo "$as_me: $ac_file is unchanged" >&6;}
22596 else
22597 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22598$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22599 X"$ac_file" : 'X\(//\)[^/]' \| \
22600 X"$ac_file" : 'X\(//\)$' \| \
22601 X"$ac_file" : 'X\(/\)' \| \
22602 . : '\(.\)' 2>/dev/null ||
22603echo X"$ac_file" |
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22606 /^X\(\/\/\)$/{ s//\1/; q; }
22607 /^X\(\/\).*/{ s//\1/; q; }
22608 s/.*/./; q'`
22609 { if $as_mkdir_p; then
22610 mkdir -p "$ac_dir"
252b5132 22611 else
5464f5a1
NN
22612 as_dir="$ac_dir"
22613 as_dirs=
22614 while test ! -d "$as_dir"; do
22615 as_dirs="$as_dir $as_dirs"
22616 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22617$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22618 X"$as_dir" : 'X\(//\)[^/]' \| \
22619 X"$as_dir" : 'X\(//\)$' \| \
22620 X"$as_dir" : 'X\(/\)' \| \
22621 . : '\(.\)' 2>/dev/null ||
22622echo X"$as_dir" |
22623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22625 /^X\(\/\/\)$/{ s//\1/; q; }
22626 /^X\(\/\).*/{ s//\1/; q; }
22627 s/.*/./; q'`
22628 done
22629 test ! -n "$as_dirs" || mkdir $as_dirs
22630 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22631echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22632 { (exit 1); exit 1; }; }; }
22633
22634 rm -f $ac_file
22635 mv $tmp/config.h $ac_file
252b5132 22636 fi
5464f5a1
NN
22637 else
22638 cat $tmp/config.h
22639 rm -f $tmp/config.h
252b5132 22640 fi
f5385ebf
AM
22641# Compute $ac_file's index in $config_headers.
22642_am_stamp_count=1
22643for _am_header in $config_headers :; do
22644 case $_am_header in
22645 $ac_file | $ac_file:* )
22646 break ;;
22647 * )
22648 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22649 esac
22650done
22651echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22652$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22653 X$ac_file : 'X\(//\)[^/]' \| \
22654 X$ac_file : 'X\(//\)$' \| \
22655 X$ac_file : 'X\(/\)' \| \
22656 . : '\(.\)' 2>/dev/null ||
22657echo X$ac_file |
22658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22660 /^X\(\/\/\)$/{ s//\1/; q; }
22661 /^X\(\/\).*/{ s//\1/; q; }
22662 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
22663done
22664_ACEOF
22665cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 22666
5464f5a1
NN
22667#
22668# CONFIG_COMMANDS section.
22669#
22670for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22671 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22672 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22673 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22674$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22675 X"$ac_dest" : 'X\(//\)[^/]' \| \
22676 X"$ac_dest" : 'X\(//\)$' \| \
22677 X"$ac_dest" : 'X\(/\)' \| \
22678 . : '\(.\)' 2>/dev/null ||
22679echo X"$ac_dest" |
22680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22682 /^X\(\/\/\)$/{ s//\1/; q; }
22683 /^X\(\/\).*/{ s//\1/; q; }
22684 s/.*/./; q'`
22685 { if $as_mkdir_p; then
22686 mkdir -p "$ac_dir"
22687 else
22688 as_dir="$ac_dir"
22689 as_dirs=
22690 while test ! -d "$as_dir"; do
22691 as_dirs="$as_dir $as_dirs"
22692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22694 X"$as_dir" : 'X\(//\)[^/]' \| \
22695 X"$as_dir" : 'X\(//\)$' \| \
22696 X"$as_dir" : 'X\(/\)' \| \
22697 . : '\(.\)' 2>/dev/null ||
22698echo X"$as_dir" |
22699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22701 /^X\(\/\/\)$/{ s//\1/; q; }
22702 /^X\(\/\).*/{ s//\1/; q; }
22703 s/.*/./; q'`
22704 done
22705 test ! -n "$as_dirs" || mkdir $as_dirs
22706 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22707echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22708 { (exit 1); exit 1; }; }; }
b3baf5d0 22709
5464f5a1 22710 ac_builddir=.
b3baf5d0 22711
5464f5a1
NN
22712if test "$ac_dir" != .; then
22713 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22714 # A "../" for each directory in $ac_dir_suffix.
22715 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22716else
22717 ac_dir_suffix= ac_top_builddir=
22718fi
22719
22720case $srcdir in
22721 .) # No --srcdir option. We are building in place.
22722 ac_srcdir=.
22723 if test -z "$ac_top_builddir"; then
22724 ac_top_srcdir=.
22725 else
22726 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22727 fi ;;
22728 [\\/]* | ?:[\\/]* ) # Absolute path.
22729 ac_srcdir=$srcdir$ac_dir_suffix;
22730 ac_top_srcdir=$srcdir ;;
22731 *) # Relative path.
22732 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22733 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22734esac
22735
22736# Do not use `cd foo && pwd` to compute absolute paths, because
22737# the directories may not exist.
22738case `pwd` in
22739.) ac_abs_builddir="$ac_dir";;
22740*)
22741 case "$ac_dir" in
22742 .) ac_abs_builddir=`pwd`;;
22743 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22744 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22745 esac;;
22746esac
22747case $ac_abs_builddir in
22748.) ac_abs_top_builddir=${ac_top_builddir}.;;
22749*)
22750 case ${ac_top_builddir}. in
22751 .) ac_abs_top_builddir=$ac_abs_builddir;;
22752 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22753 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22754 esac;;
22755esac
22756case $ac_abs_builddir in
22757.) ac_abs_srcdir=$ac_srcdir;;
22758*)
22759 case $ac_srcdir in
22760 .) ac_abs_srcdir=$ac_abs_builddir;;
22761 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22762 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22763 esac;;
22764esac
22765case $ac_abs_builddir in
22766.) ac_abs_top_srcdir=$ac_top_srcdir;;
22767*)
22768 case $ac_top_srcdir in
22769 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22770 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22771 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22772 esac;;
22773esac
22774
22775
22776 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22777echo "$as_me: executing $ac_dest commands" >&6;}
22778 case $ac_dest in
f5385ebf
AM
22779 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22780 # Strip MF so we end up with the name of the file.
22781 mf=`echo "$mf" | sed -e 's/:.*$//'`
22782 # Check whether this is an Automake generated Makefile or not.
22783 # We used to match only the files named `Makefile.in', but
22784 # some people rename them; so instead we look at the file content.
22785 # Grep'ing the first line is not enough: some people post-process
22786 # each Makefile.in and add a new line on top of each file to say so.
22787 # So let's grep whole file.
22788 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22789 dirpart=`(dirname "$mf") 2>/dev/null ||
22790$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22791 X"$mf" : 'X\(//\)[^/]' \| \
22792 X"$mf" : 'X\(//\)$' \| \
22793 X"$mf" : 'X\(/\)' \| \
22794 . : '\(.\)' 2>/dev/null ||
22795echo X"$mf" |
22796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22798 /^X\(\/\/\)$/{ s//\1/; q; }
22799 /^X\(\/\).*/{ s//\1/; q; }
22800 s/.*/./; q'`
22801 else
22802 continue
22803 fi
22804 # Extract the definition of DEPDIR, am__include, and am__quote
22805 # from the Makefile without running `make'.
22806 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22807 test -z "$DEPDIR" && continue
22808 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22809 test -z "am__include" && continue
22810 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22811 # When using ansi2knr, U may be empty or an underscore; expand it
22812 U=`sed -n 's/^U = //p' < "$mf"`
22813 # Find all dependency output files, they are included files with
22814 # $(DEPDIR) in their names. We invoke sed twice because it is the
22815 # simplest approach to changing $(DEPDIR) to its actual value in the
22816 # expansion.
22817 for file in `sed -n "
22818 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22819 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22820 # Make sure the directory exists.
22821 test -f "$dirpart/$file" && continue
22822 fdir=`(dirname "$file") 2>/dev/null ||
22823$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22824 X"$file" : 'X\(//\)[^/]' \| \
22825 X"$file" : 'X\(//\)$' \| \
22826 X"$file" : 'X\(/\)' \| \
22827 . : '\(.\)' 2>/dev/null ||
22828echo X"$file" |
22829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22831 /^X\(\/\/\)$/{ s//\1/; q; }
22832 /^X\(\/\).*/{ s//\1/; q; }
22833 s/.*/./; q'`
22834 { if $as_mkdir_p; then
22835 mkdir -p $dirpart/$fdir
22836 else
22837 as_dir=$dirpart/$fdir
22838 as_dirs=
22839 while test ! -d "$as_dir"; do
22840 as_dirs="$as_dir $as_dirs"
22841 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22842$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22843 X"$as_dir" : 'X\(//\)[^/]' \| \
22844 X"$as_dir" : 'X\(//\)$' \| \
22845 X"$as_dir" : 'X\(/\)' \| \
22846 . : '\(.\)' 2>/dev/null ||
22847echo X"$as_dir" |
22848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22850 /^X\(\/\/\)$/{ s//\1/; q; }
22851 /^X\(\/\).*/{ s//\1/; q; }
22852 s/.*/./; q'`
22853 done
22854 test ! -n "$as_dirs" || mkdir $as_dirs
22855 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22856echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22857 { (exit 1); exit 1; }; }; }
22858
22859 # echo "creating $dirpart/$file"
22860 echo '# dummy' > "$dirpart/$file"
22861 done
22862done
d7040cdb
SE
22863 ;;
22864 libtool )
22865
22866 # See if we are running on zsh, and set the options which allow our
22867 # commands through without removal of \ escapes.
22868 if test -n "${ZSH_VERSION+set}" ; then
22869 setopt NO_GLOB_SUBST
22870 fi
22871
22872 cfgfile="${ofile}T"
22873 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22874 $RM "$cfgfile"
22875
22876 cat <<_LT_EOF >> "$cfgfile"
22877#! $SHELL
22878
22879# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22880# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22881# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22882# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22883#
22884# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22885# 2006, 2007 Free Software Foundation, Inc.
22886#
22887# This file is part of GNU Libtool:
22888# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22889#
22890# This program is free software; you can redistribute it and/or modify
22891# it under the terms of the GNU General Public License as published by
0b3e17e9 22892# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
22893# (at your option) any later version.
22894#
22895# This program is distributed in the hope that it will be useful, but
22896# WITHOUT ANY WARRANTY; without even the implied warranty of
22897# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22898# General Public License for more details.
22899#
22900# You should have received a copy of the GNU General Public License
22901# along with this program; if not, a copy can be downloaded from
22902# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22903# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22904# MA 02110-1301, USA.
22905#
22906# As a special exception to the GNU General Public License, if you
22907# distribute this file as part of a program that contains a
22908# configuration script generated by Autoconf, you may include it under
22909# the same distribution terms that you use for the rest of that program.
22910
22911
22912# The names of the tagged configurations supported by this script.
22913available_tags=""
22914
22915# ### BEGIN LIBTOOL CONFIG
22916
22917# Whether or not to build shared libraries.
22918build_libtool_libs=$enable_shared
22919
22920# Which release of libtool.m4 was used?
22921macro_version=$macro_version
22922macro_revision=$macro_revision
22923
22924# Whether or not to build static libraries.
22925build_old_libs=$enable_static
22926
22927# What type of objects to build.
22928pic_mode=$pic_mode
22929
22930# Whether or not to optimize for fast installation.
22931fast_install=$enable_fast_install
22932
22933# The host system.
22934host_alias=$host_alias
22935host=$host
22936host_os=$host_os
22937
22938# The build system.
22939build_alias=$build_alias
22940build=$build
22941build_os=$build_os
22942
22943# A sed program that does not truncate output.
22944SED=$lt_SED
22945
22946# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22947Xsed="\$SED -e 1s/^X//"
22948
22949# A grep program that handles long lines.
22950GREP=$lt_GREP
22951
22952# An ERE matcher.
22953EGREP=$lt_EGREP
22954
22955# A literal string matcher.
22956FGREP=$lt_FGREP
22957
22958# A BSD- or MS-compatible name lister.
22959NM=$lt_NM
22960
22961# Whether we need soft or hard links.
22962LN_S=$lt_LN_S
22963
22964# What is the maximum length of a command?
22965max_cmd_len=$max_cmd_len
22966
22967# Object file suffix (normally "o").
22968objext=$ac_objext
22969
22970# Executable file suffix (normally "").
22971exeext=$exeext
22972
22973# whether the shell understands "unset".
22974lt_unset=$lt_unset
22975
22976# turn spaces into newlines.
22977SP2NL=$lt_lt_SP2NL
22978
22979# turn newlines into spaces.
22980NL2SP=$lt_lt_NL2SP
22981
22982# How to create reloadable object files.
22983reload_flag=$lt_reload_flag
22984reload_cmds=$lt_reload_cmds
22985
22986# Method to check whether dependent libraries are shared objects.
22987deplibs_check_method=$lt_deplibs_check_method
22988
22989# Command to use when deplibs_check_method == "file_magic".
22990file_magic_cmd=$lt_file_magic_cmd
22991
22992# The archiver.
22993AR=$lt_AR
22994AR_FLAGS=$lt_AR_FLAGS
22995
22996# A symbol stripping program.
22997STRIP=$lt_STRIP
22998
22999# Commands used to install an old-style archive.
23000RANLIB=$lt_RANLIB
23001old_postinstall_cmds=$lt_old_postinstall_cmds
23002old_postuninstall_cmds=$lt_old_postuninstall_cmds
23003
23004# A C compiler.
23005LTCC=$lt_CC
23006
23007# LTCC compiler flags.
23008LTCFLAGS=$lt_CFLAGS
23009
23010# Take the output of nm and produce a listing of raw symbols and C names.
23011global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23012
23013# Transform the output of nm in a proper C declaration.
23014global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23015
23016# Transform the output of nm in a C name address pair.
23017global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23018
23019# The name of the directory that contains temporary libtool files.
23020objdir=$objdir
23021
23022# Shell to use when invoking shell scripts.
23023SHELL=$lt_SHELL
23024
23025# An echo program that does not interpret backslashes.
23026ECHO=$lt_ECHO
23027
23028# Used to examine libraries when file_magic_cmd begins with "file".
23029MAGIC_CMD=$MAGIC_CMD
23030
23031# Must we lock files when doing compilation?
23032need_locks=$lt_need_locks
23033
23034# Old archive suffix (normally "a").
23035libext=$libext
23036
23037# Shared library suffix (normally ".so").
23038shrext_cmds=$lt_shrext_cmds
23039
23040# The commands to extract the exported symbol list from a shared archive.
23041extract_expsyms_cmds=$lt_extract_expsyms_cmds
23042
23043# Variables whose values should be saved in libtool wrapper scripts and
23044# restored at link time.
23045variables_saved_for_relink=$lt_variables_saved_for_relink
23046
23047# Do we need the "lib" prefix for modules?
23048need_lib_prefix=$need_lib_prefix
23049
23050# Do we need a version for libraries?
23051need_version=$need_version
23052
23053# Library versioning type.
23054version_type=$version_type
23055
23056# Shared library runtime path variable.
23057runpath_var=$runpath_var
23058
23059# Shared library path variable.
23060shlibpath_var=$shlibpath_var
23061
23062# Is shlibpath searched before the hard-coded library search path?
23063shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23064
23065# Format of library name prefix.
23066libname_spec=$lt_libname_spec
23067
23068# List of archive names. First name is the real one, the rest are links.
23069# The last name is the one that the linker finds with -lNAME
23070library_names_spec=$lt_library_names_spec
23071
23072# The coded name of the library, if different from the real name.
23073soname_spec=$lt_soname_spec
23074
23075# Command to use after installation of a shared archive.
23076postinstall_cmds=$lt_postinstall_cmds
23077
23078# Command to use after uninstallation of a shared archive.
23079postuninstall_cmds=$lt_postuninstall_cmds
23080
23081# Commands used to finish a libtool library installation in a directory.
23082finish_cmds=$lt_finish_cmds
23083
23084# As "finish_cmds", except a single script fragment to be evaled but
23085# not shown.
23086finish_eval=$lt_finish_eval
23087
23088# Whether we should hardcode library paths into libraries.
23089hardcode_into_libs=$hardcode_into_libs
23090
23091# Compile-time system search path for libraries.
23092sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23093
23094# Run-time system search path for libraries.
23095sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23096
23097# Whether dlopen is supported.
23098dlopen_support=$enable_dlopen
23099
23100# Whether dlopen of programs is supported.
23101dlopen_self=$enable_dlopen_self
23102
23103# Whether dlopen of statically linked programs is supported.
23104dlopen_self_static=$enable_dlopen_self_static
23105
23106# Commands to strip libraries.
23107old_striplib=$lt_old_striplib
23108striplib=$lt_striplib
23109
23110
23111# The linker used to build libraries.
23112LD=$lt_LD
23113
23114# Commands used to build an old-style archive.
23115old_archive_cmds=$lt_old_archive_cmds
23116
23117# A language specific compiler.
23118CC=$lt_compiler
23119
23120# Is the compiler the GNU compiler?
23121with_gcc=$GCC
23122
23123# Compiler flag to turn off builtin functions.
23124no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23125
23126# How to pass a linker flag through the compiler.
23127wl=$lt_lt_prog_compiler_wl
23128
23129# Additional compiler flags for building library objects.
23130pic_flag=$lt_lt_prog_compiler_pic
23131
23132# Compiler flag to prevent dynamic linking.
23133link_static_flag=$lt_lt_prog_compiler_static
23134
23135# Does compiler simultaneously support -c and -o options?
23136compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23137
23138# Whether or not to add -lc for building shared libraries.
23139build_libtool_need_lc=$archive_cmds_need_lc
23140
23141# Whether or not to disallow shared libs when runtime libs are static.
23142allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23143
23144# Compiler flag to allow reflexive dlopens.
23145export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23146
23147# Compiler flag to generate shared objects directly from archives.
23148whole_archive_flag_spec=$lt_whole_archive_flag_spec
23149
23150# Whether the compiler copes with passing no objects directly.
23151compiler_needs_object=$lt_compiler_needs_object
23152
23153# Create an old-style archive from a shared archive.
23154old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23155
23156# Create a temporary old-style archive to link instead of a shared archive.
23157old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23158
23159# Commands used to build a shared archive.
23160archive_cmds=$lt_archive_cmds
23161archive_expsym_cmds=$lt_archive_expsym_cmds
23162
23163# Commands used to build a loadable module if different from building
23164# a shared archive.
23165module_cmds=$lt_module_cmds
23166module_expsym_cmds=$lt_module_expsym_cmds
23167
23168# Whether we are building with GNU ld or not.
23169with_gnu_ld=$lt_with_gnu_ld
23170
23171# Flag that allows shared libraries with undefined symbols to be built.
23172allow_undefined_flag=$lt_allow_undefined_flag
23173
23174# Flag that enforces no undefined symbols.
23175no_undefined_flag=$lt_no_undefined_flag
23176
23177# Flag to hardcode \$libdir into a binary during linking.
23178# This must work even if \$libdir does not exist
23179hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23180
23181# If ld is used when linking, flag to hardcode \$libdir into a binary
23182# during linking. This must work even if \$libdir does not exist.
23183hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23184
23185# Whether we need a single "-rpath" flag with a separated argument.
23186hardcode_libdir_separator=$lt_hardcode_libdir_separator
23187
23188# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23189# DIR into the resulting binary.
23190hardcode_direct=$hardcode_direct
23191
23192# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23193# DIR into the resulting binary and the resulting library dependency is
23194# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23195# library is relocated.
23196hardcode_direct_absolute=$hardcode_direct_absolute
23197
23198# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23199# into the resulting binary.
23200hardcode_minus_L=$hardcode_minus_L
23201
23202# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23203# into the resulting binary.
23204hardcode_shlibpath_var=$hardcode_shlibpath_var
23205
23206# Set to "yes" if building a shared library automatically hardcodes DIR
23207# into the library and all subsequent libraries and executables linked
23208# against it.
23209hardcode_automatic=$hardcode_automatic
23210
23211# Set to yes if linker adds runtime paths of dependent libraries
23212# to runtime path list.
23213inherit_rpath=$inherit_rpath
23214
23215# Whether libtool must link a program against all its dependency libraries.
23216link_all_deplibs=$link_all_deplibs
23217
23218# Fix the shell variable \$srcfile for the compiler.
23219fix_srcfile_path=$lt_fix_srcfile_path
23220
23221# Set to "yes" if exported symbols are required.
23222always_export_symbols=$always_export_symbols
23223
23224# The commands to list exported symbols.
23225export_symbols_cmds=$lt_export_symbols_cmds
23226
23227# Symbols that should not be listed in the preloaded symbols.
23228exclude_expsyms=$lt_exclude_expsyms
23229
23230# Symbols that must always be exported.
23231include_expsyms=$lt_include_expsyms
23232
23233# Commands necessary for linking programs (against libraries) with templates.
23234prelink_cmds=$lt_prelink_cmds
23235
23236# Specify filename containing input files.
23237file_list_spec=$lt_file_list_spec
23238
23239# How to hardcode a shared library path into an executable.
23240hardcode_action=$hardcode_action
23241
23242# ### END LIBTOOL CONFIG
23243
23244_LT_EOF
23245
23246 case $host_os in
23247 aix3*)
23248 cat <<\_LT_EOF >> "$cfgfile"
23249# AIX sometimes has problems with the GCC collect2 program. For some
23250# reason, if we set the COLLECT_NAMES environment variable, the problems
23251# vanish in a puff of smoke.
23252if test "X${COLLECT_NAMES+set}" != Xset; then
23253 COLLECT_NAMES=
23254 export COLLECT_NAMES
23255fi
23256_LT_EOF
23257 ;;
23258 esac
23259
23260
23261ltmain="$ac_aux_dir/ltmain.sh"
23262
23263
23264 # We use sed instead of cat because bash on DJGPP gets confused if
23265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23266 # text mode, it properly converts lines to CR/LF. This bash problem
23267 # is reportedly fixed, but why not run on old versions too?
23268 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23269 || (rm -f "$cfgfile"; exit 1)
23270
23271 case $xsi_shell in
23272 yes)
23273 cat << \_LT_EOF >> "$cfgfile"
23274# func_dirname file append nondir_replacement
23275# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23276# otherwise set result to NONDIR_REPLACEMENT.
23277func_dirname ()
23278{
23279 case ${1} in
23280 */*) func_dirname_result="${1%/*}${2}" ;;
23281 * ) func_dirname_result="${3}" ;;
23282 esac
23283}
23284
23285# func_basename file
23286func_basename ()
23287{
23288 func_basename_result="${1##*/}"
23289}
23290
23291# func_stripname prefix suffix name
23292# strip PREFIX and SUFFIX off of NAME.
23293# PREFIX and SUFFIX must not contain globbing or regex special
23294# characters, hashes, percent signs, but SUFFIX may contain a leading
23295# dot (in which case that matches only a dot).
23296func_stripname ()
23297{
23298 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23299 # positional parameters, so assign one to ordinary parameter first.
23300 func_stripname_result=${3}
23301 func_stripname_result=${func_stripname_result#"${1}"}
23302 func_stripname_result=${func_stripname_result%"${2}"}
23303}
23304
23305# func_opt_split
23306func_opt_split ()
23307{
23308 func_opt_split_opt=${1%%=*}
23309 func_opt_split_arg=${1#*=}
23310}
23311
23312# func_lo2o object
23313func_lo2o ()
23314{
23315 case ${1} in
23316 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23317 *) func_lo2o_result=${1} ;;
23318 esac
23319}
23320_LT_EOF
23321 ;;
23322 *) # Bourne compatible functions.
23323 cat << \_LT_EOF >> "$cfgfile"
23324# func_dirname file append nondir_replacement
23325# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23326# otherwise set result to NONDIR_REPLACEMENT.
23327func_dirname ()
23328{
23329 # Extract subdirectory from the argument.
23330 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23331 if test "X$func_dirname_result" = "X${1}"; then
23332 func_dirname_result="${3}"
23333 else
23334 func_dirname_result="$func_dirname_result${2}"
23335 fi
23336}
23337
23338# func_basename file
23339func_basename ()
23340{
23341 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23342}
23343
23344# func_stripname prefix suffix name
23345# strip PREFIX and SUFFIX off of NAME.
23346# PREFIX and SUFFIX must not contain globbing or regex special
23347# characters, hashes, percent signs, but SUFFIX may contain a leading
23348# dot (in which case that matches only a dot).
23349# func_strip_suffix prefix name
23350func_stripname ()
23351{
23352 case ${2} in
23353 .*) func_stripname_result=`$ECHO "X${3}" \
23354 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23355 *) func_stripname_result=`$ECHO "X${3}" \
23356 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23357 esac
23358}
23359
23360# sed scripts:
23361my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23362my_sed_long_arg='1s/^-[^=]*=//'
23363
23364# func_opt_split
23365func_opt_split ()
23366{
23367 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23368 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23369}
23370
23371# func_lo2o object
23372func_lo2o ()
23373{
23374 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23375}
23376_LT_EOF
23377esac
23378
23379case $lt_shell_append in
23380 yes)
23381 cat << \_LT_EOF >> "$cfgfile"
23382
23383# func_append var value
23384# Append VALUE to the end of shell variable VAR.
23385func_append ()
23386{
23387 eval "$1+=\$2"
23388}
23389_LT_EOF
23390 ;;
23391 *)
23392 cat << \_LT_EOF >> "$cfgfile"
23393
23394# func_append var value
23395# Append VALUE to the end of shell variable VAR.
23396func_append ()
23397{
23398 eval "$1=\$$1\$2"
23399}
23400_LT_EOF
23401 ;;
23402 esac
23403
23404
23405 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23406 || (rm -f "$cfgfile"; exit 1)
23407
23408 mv -f "$cfgfile" "$ofile" ||
23409 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23410 chmod +x "$ofile"
23411
f5385ebf 23412 ;;
20e95c23
DJ
23413 default-1 )
23414 for ac_file in $CONFIG_FILES; do
23415 # Support "outfile[:infile[:infile...]]"
23416 case "$ac_file" in
23417 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23418 esac
23419 # PO directories have a Makefile.in generated from Makefile.in.in.
23420 case "$ac_file" in */Makefile.in)
23421 # Adjust a relative srcdir.
23422 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23423 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23424 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23425 # In autoconf-2.13 it is called $ac_given_srcdir.
23426 # In autoconf-2.50 it is called $srcdir.
23427 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23428 case "$ac_given_srcdir" in
23429 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23430 /*) top_srcdir="$ac_given_srcdir" ;;
23431 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23432 esac
23433 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23434 rm -f "$ac_dir/POTFILES"
23435 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23436 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23437 POMAKEFILEDEPS="POTFILES.in"
23438 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
23439 # on $ac_dir but don't depend on user-specified configuration
23440 # parameters.
23441 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23442 # The LINGUAS file contains the set of available languages.
23443 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23444 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23445 fi
23446 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23447 # Hide the ALL_LINGUAS assigment from automake.
23448 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23449 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23450 else
23451 # The set of available languages was given in configure.in.
23452 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23453 fi
23454 case "$ac_given_srcdir" in
23455 .) srcdirpre= ;;
23456 *) srcdirpre='$(srcdir)/' ;;
23457 esac
23458 POFILES=
23459 GMOFILES=
23460 UPDATEPOFILES=
23461 DUMMYPOFILES=
23462 for lang in $ALL_LINGUAS; do
23463 POFILES="$POFILES $srcdirpre$lang.po"
23464 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23465 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23466 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23467 done
23468 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23469 # environment variable.
23470 INST_LINGUAS=
23471 if test -n "$ALL_LINGUAS"; then
23472 for presentlang in $ALL_LINGUAS; do
23473 useit=no
23474 if test "%UNSET%" != "$LINGUAS"; then
23475 desiredlanguages="$LINGUAS"
23476 else
23477 desiredlanguages="$ALL_LINGUAS"
23478 fi
23479 for desiredlang in $desiredlanguages; do
23480 # Use the presentlang catalog if desiredlang is
23481 # a. equal to presentlang, or
23482 # b. a variant of presentlang (because in this case,
23483 # presentlang can be used as a fallback for messages
23484 # which are not translated in the desiredlang catalog).
23485 case "$desiredlang" in
23486 "$presentlang"*) useit=yes;;
23487 esac
23488 done
23489 if test $useit = yes; then
23490 INST_LINGUAS="$INST_LINGUAS $presentlang"
23491 fi
23492 done
23493 fi
23494 CATALOGS=
23495 if test -n "$INST_LINGUAS"; then
23496 for lang in $INST_LINGUAS; do
23497 CATALOGS="$CATALOGS $lang.gmo"
23498 done
23499 fi
23500 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23501 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"
23502 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23503 if test -f "$f"; then
23504 case "$f" in
23505 *.orig | *.bak | *~) ;;
23506 *) cat "$f" >> "$ac_dir/Makefile" ;;
23507 esac
23508 fi
23509 done
23510 fi
23511 ;;
23512 esac
23513 done ;;
d5efd9fc
AM
23514 bfd_stdint.h )
23515if test "$GCC" = yes; then
23516 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23517else
23518 echo "/* generated for $CC */" > tmp-stdint.h
23519fi
23520
23521sed 's/^ *//' >> tmp-stdint.h <<EOF
23522
23523 #ifndef GCC_GENERATED_STDINT_H
23524 #define GCC_GENERATED_STDINT_H 1
23525
23526 #include <sys/types.h>
23527EOF
23528
23529if test "$acx_cv_header_stdint" != stdint.h; then
23530 echo "#include <stddef.h>" >> tmp-stdint.h
23531fi
23532if test "$acx_cv_header_stdint" != stddef.h; then
23533 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23534fi
23535
23536sed 's/^ *//' >> tmp-stdint.h <<EOF
23537 /* glibc uses these symbols as guards to prevent redefinitions. */
23538 #ifdef __int8_t_defined
23539 #define _INT8_T
23540 #define _INT16_T
23541 #define _INT32_T
23542 #endif
23543 #ifdef __uint32_t_defined
23544 #define _UINT32_T
23545 #endif
23546
23547EOF
23548
23549# ----------------- done header, emit basic int types -------------
23550if test "$acx_cv_header_stdint" = stddef.h; then
23551 sed 's/^ *//' >> tmp-stdint.h <<EOF
23552
23553 #ifndef _UINT8_T
23554 #define _UINT8_T
23555 #ifndef __uint8_t_defined
23556 #define __uint8_t_defined
23557 typedef unsigned $acx_cv_type_int8_t uint8_t;
23558 #endif
23559 #endif
23560
23561 #ifndef _UINT16_T
23562 #define _UINT16_T
23563 #ifndef __uint16_t_defined
23564 #define __uint16_t_defined
23565 typedef unsigned $acx_cv_type_int16_t uint16_t;
23566 #endif
23567 #endif
23568
23569 #ifndef _UINT32_T
23570 #define _UINT32_T
23571 #ifndef __uint32_t_defined
23572 #define __uint32_t_defined
23573 typedef unsigned $acx_cv_type_int32_t uint32_t;
23574 #endif
23575 #endif
23576
23577 #ifndef _INT8_T
23578 #define _INT8_T
23579 #ifndef __int8_t_defined
23580 #define __int8_t_defined
23581 typedef $acx_cv_type_int8_t int8_t;
23582 #endif
23583 #endif
23584
23585 #ifndef _INT16_T
23586 #define _INT16_T
23587 #ifndef __int16_t_defined
23588 #define __int16_t_defined
23589 typedef $acx_cv_type_int16_t int16_t;
23590 #endif
23591 #endif
23592
23593 #ifndef _INT32_T
23594 #define _INT32_T
23595 #ifndef __int32_t_defined
23596 #define __int32_t_defined
23597 typedef $acx_cv_type_int32_t int32_t;
23598 #endif
23599 #endif
23600EOF
23601elif test "$ac_cv_type_u_int32_t" = yes; then
23602 sed 's/^ *//' >> tmp-stdint.h <<EOF
23603
23604 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23605 #ifndef _INT8_T
23606 #define _INT8_T
23607 #endif
23608 #ifndef _INT16_T
23609 #define _INT16_T
23610 #endif
23611 #ifndef _INT32_T
23612 #define _INT32_T
23613 #endif
23614
23615 #ifndef _UINT8_T
23616 #define _UINT8_T
23617 #ifndef __uint8_t_defined
23618 #define __uint8_t_defined
23619 typedef u_int8_t uint8_t;
23620 #endif
23621 #endif
23622
23623 #ifndef _UINT16_T
23624 #define _UINT16_T
23625 #ifndef __uint16_t_defined
23626 #define __uint16_t_defined
23627 typedef u_int16_t uint16_t;
23628 #endif
23629 #endif
23630
23631 #ifndef _UINT32_T
23632 #define _UINT32_T
23633 #ifndef __uint32_t_defined
23634 #define __uint32_t_defined
23635 typedef u_int32_t uint32_t;
23636 #endif
23637 #endif
23638EOF
23639else
23640 sed 's/^ *//' >> tmp-stdint.h <<EOF
23641
23642 /* Some systems have guard macros to prevent redefinitions, define them. */
23643 #ifndef _INT8_T
23644 #define _INT8_T
23645 #endif
23646 #ifndef _INT16_T
23647 #define _INT16_T
23648 #endif
23649 #ifndef _INT32_T
23650 #define _INT32_T
23651 #endif
23652 #ifndef _UINT8_T
23653 #define _UINT8_T
23654 #endif
23655 #ifndef _UINT16_T
23656 #define _UINT16_T
23657 #endif
23658 #ifndef _UINT32_T
23659 #define _UINT32_T
23660 #endif
23661EOF
23662fi
23663
23664# ------------- done basic int types, emit int64_t types ------------
23665if test "$ac_cv_type_uint64_t" = yes; then
23666 sed 's/^ *//' >> tmp-stdint.h <<EOF
23667
23668 /* system headers have good uint64_t and int64_t */
23669 #ifndef _INT64_T
23670 #define _INT64_T
23671 #endif
23672 #ifndef _UINT64_T
23673 #define _UINT64_T
23674 #endif
23675EOF
23676elif test "$ac_cv_type_u_int64_t" = yes; then
23677 sed 's/^ *//' >> tmp-stdint.h <<EOF
23678
23679 /* system headers have an u_int64_t (and int64_t) */
23680 #ifndef _INT64_T
23681 #define _INT64_T
23682 #endif
23683 #ifndef _UINT64_T
23684 #define _UINT64_T
23685 #ifndef __uint64_t_defined
23686 #define __uint64_t_defined
23687 typedef u_int64_t uint64_t;
23688 #endif
23689 #endif
23690EOF
23691elif test -n "$acx_cv_type_int64_t"; then
23692 sed 's/^ *//' >> tmp-stdint.h <<EOF
23693
23694 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23695 #ifndef _INT64_T
23696 #define _INT64_T
23697 typedef $acx_cv_type_int64_t int64_t;
23698 #endif
23699 #ifndef _UINT64_T
23700 #define _UINT64_T
23701 #ifndef __uint64_t_defined
23702 #define __uint64_t_defined
23703 typedef unsigned $acx_cv_type_int64_t uint64_t;
23704 #endif
23705 #endif
23706EOF
23707else
23708 sed 's/^ *//' >> tmp-stdint.h <<EOF
23709
23710 /* some common heuristics for int64_t, using compiler-specific tests */
23711 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23712 #ifndef _INT64_T
23713 #define _INT64_T
23714 #ifndef __int64_t_defined
23715 typedef long long int64_t;
23716 #endif
23717 #endif
23718 #ifndef _UINT64_T
23719 #define _UINT64_T
23720 typedef unsigned long long uint64_t;
23721 #endif
23722
23723 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23724 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23725 does not implement __extension__. But that compiler doesn't define
23726 __GNUC_MINOR__. */
23727 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23728 # define __extension__
23729 # endif
23730
23731 # ifndef _INT64_T
23732 # define _INT64_T
23733 __extension__ typedef long long int64_t;
23734 # endif
23735 # ifndef _UINT64_T
23736 # define _UINT64_T
23737 __extension__ typedef unsigned long long uint64_t;
23738 # endif
23739
23740 #elif !defined __STRICT_ANSI__
23741 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23742
23743 # ifndef _INT64_T
23744 # define _INT64_T
23745 typedef __int64 int64_t;
23746 # endif
23747 # ifndef _UINT64_T
23748 # define _UINT64_T
23749 typedef unsigned __int64 uint64_t;
23750 # endif
23751 # endif /* compiler */
23752
23753 #endif /* ANSI version */
23754EOF
23755fi
23756
23757# ------------- done int64_t types, emit intptr types ------------
23758if test "$ac_cv_type_uintptr_t" != yes; then
23759 sed 's/^ *//' >> tmp-stdint.h <<EOF
23760
23761 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23762 #ifndef __uintptr_t_defined
23763 typedef u$acx_cv_type_intptr_t uintptr_t;
23764 #endif
23765 #ifndef __intptr_t_defined
23766 typedef $acx_cv_type_intptr_t intptr_t;
23767 #endif
23768EOF
23769fi
23770
23771# ------------- done intptr types, emit int_least types ------------
23772if test "$ac_cv_type_int_least32_t" != yes; then
23773 sed 's/^ *//' >> tmp-stdint.h <<EOF
23774
23775 /* Define int_least types */
23776 typedef int8_t int_least8_t;
23777 typedef int16_t int_least16_t;
23778 typedef int32_t int_least32_t;
23779 #ifdef _INT64_T
23780 typedef int64_t int_least64_t;
23781 #endif
23782
23783 typedef uint8_t uint_least8_t;
23784 typedef uint16_t uint_least16_t;
23785 typedef uint32_t uint_least32_t;
23786 #ifdef _UINT64_T
23787 typedef uint64_t uint_least64_t;
23788 #endif
23789EOF
23790fi
23791
23792# ------------- done intptr types, emit int_fast types ------------
23793if test "$ac_cv_type_int_fast32_t" != yes; then
23794 sed 's/^ *//' >> tmp-stdint.h <<EOF
23795
23796 /* Define int_fast types. short is often slow */
23797 typedef int8_t int_fast8_t;
23798 typedef int int_fast16_t;
23799 typedef int32_t int_fast32_t;
23800 #ifdef _INT64_T
23801 typedef int64_t int_fast64_t;
23802 #endif
23803
23804 typedef uint8_t uint_fast8_t;
23805 typedef unsigned int uint_fast16_t;
23806 typedef uint32_t uint_fast32_t;
23807 #ifdef _UINT64_T
23808 typedef uint64_t uint_fast64_t;
23809 #endif
23810EOF
23811fi
23812
23813if test "$ac_cv_type_uintmax_t" != yes; then
23814 sed 's/^ *//' >> tmp-stdint.h <<EOF
23815
23816 /* Define intmax based on what we found */
23817 #ifdef _INT64_T
23818 typedef int64_t intmax_t;
23819 #else
23820 typedef long intmax_t;
23821 #endif
23822 #ifdef _UINT64_T
23823 typedef uint64_t uintmax_t;
23824 #else
23825 typedef unsigned long uintmax_t;
23826 #endif
23827EOF
23828fi
23829
23830sed 's/^ *//' >> tmp-stdint.h <<EOF
23831
23832 #endif /* GCC_GENERATED_STDINT_H */
23833EOF
23834
23835if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23836 rm -f tmp-stdint.h
23837else
23838 mv -f tmp-stdint.h bfd_stdint.h
23839fi
23840
23841 ;;
20e95c23
DJ
23842 default )
23843case "$srcdir" in
23844 .) srcdirpre= ;;
23845 *) srcdirpre='$(srcdir)/' ;;
23846esac
23847POFILES=
23848GMOFILES=
23849for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23850 if test $lang != dummy; then
23851 POFILES="$POFILES $srcdirpre$lang.po"
23852 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23853 fi
23854done
23855sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23856 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23857 -e "s,@POFILES@,$POFILES," \
23858 -e "s,@GMOFILES@,$GMOFILES," \
23859 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
23860 esac
23861done
23862_ACEOF
23863
23864cat >>$CONFIG_STATUS <<\_ACEOF
23865
23866{ (exit 0); exit 0; }
23867_ACEOF
252b5132 23868chmod +x $CONFIG_STATUS
5464f5a1
NN
23869ac_clean_files=$ac_clean_files_save
23870
23871
23872# configure is writing to config.log, and then calls config.status.
23873# config.status does its own redirection, appending to config.log.
23874# Unfortunately, on DOS this fails, as config.log is still kept open
23875# by configure, so config.status won't be able to write to it; its
23876# output is simply discarded. So we exec the FD to /dev/null,
23877# effectively closing config.log, so it can be properly (re)opened and
23878# appended to by config.status. When coming back to configure, we
23879# need to make the FD available again.
23880if test "$no_create" != yes; then
23881 ac_cs_success=:
23882 ac_config_status_args=
23883 test "$silent" = yes &&
23884 ac_config_status_args="$ac_config_status_args --quiet"
23885 exec 5>/dev/null
23886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23887 exec 5>>config.log
23888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23889 # would make configure fail if this is the last instruction.
23890 $ac_cs_success || { (exit 1); exit 1; }
23891fi
252b5132 23892
55c80943 23893
This page took 1.903646 seconds and 4 git commands to generate.